S3Tables / Client / get_table_policy
get_table_policy¶
- S3Tables.Client.get_table_policy(**kwargs)¶
Gets details about a table policy. For more information, see Viewing a table policy in the Amazon Simple Storage Service User Guide.
Permissions
You must have the
s3tables:GetTablePolicypermission to use this operation.See also: AWS API Documentation
Request Syntax
response = client.get_table_policy( tableBucketARN='string', namespace='string', name='string' )
- Parameters:
tableBucketARN (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the table bucket that contains the table.
namespace (string) –
[REQUIRED]
The namespace associated with the table.
name (string) –
[REQUIRED]
The name of the table.
- Return type:
dict
- Returns:
Response Syntax
{ 'resourcePolicy': 'string' }
Response Structure
(dict) –
resourcePolicy (string) –
The
JSONthat defines the policy.
Exceptions
S3Tables.Client.exceptions.InternalServerErrorExceptionS3Tables.Client.exceptions.ForbiddenExceptionS3Tables.Client.exceptions.NotFoundExceptionS3Tables.Client.exceptions.TooManyRequestsExceptionS3Tables.Client.exceptions.ConflictExceptionS3Tables.Client.exceptions.BadRequestException