list_namespaces
async
¶
list_namespaces(
table_bucket_arn: TableBucketARN,
*,
config_overrides: Optional[AsyncS3TablesClientConfig] = None,
prefix: Optional[str] = None,
continuation_token: Optional[NextToken] = None,
max_namespaces: Optional[ListNamespacesLimit] = None,
) -> ListNamespacesResponse
Lists the namespaces within a table bucket. For more information, see Table namespaces in the Amazon Simple Storage Service User Guide.
- Permissions
-
You must have the
s3tables:ListNamespacespermission to use this operation.
Parameters:
-
table_bucket_arn(TableBucketARN) –The Amazon Resource Name (ARN) of the table bucket.
-
prefix(Optional[str], default:None) –The prefix of the namespaces.
-
continuation_token(Optional[NextToken], default:None) –ContinuationTokenindicates to Amazon S3 that the list is being continued on this bucket with a token.ContinuationTokenis obfuscated and is not a real key. You can use thisContinuationTokenfor pagination of the list results. -
max_namespaces(Optional[ListNamespacesLimit], default:None) –The maximum number of namespaces to return in the list.
Raises:
-
AccessDeniedException–The action cannot be performed because you do not have the required permission.
-
BadRequestException–The request is invalid or malformed.
-
ConflictException–The request conflicts with the resource's current state, such as a previous write, an existing table, or a migration that's in progress or already in the requested state. If the conflict is with a concurrent write, you can retry the request.
-
ForbiddenException–The caller isn't authorized to make the request.
-
InternalServerErrorException–The request failed due to an internal server error.
-
NotFoundException–The request was rejected because the specified resource could not be found.
-
TooManyRequestsException–The limit on the number of requests per second was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.