getNamespace method

Future<GetNamespaceResponse> getNamespace({
  1. required String namespace,
  2. required String tableBucketARN,
})

Gets details about a namespace. For more information, see Table namespaces in the Amazon Simple Storage Service User Guide.

Permissions
You must have the s3tables:GetNamespace permission to use this operation.

May throw AccessDeniedException. May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw InternalServerErrorException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter namespace : The name of the namespace.

Parameter tableBucketARN : The Amazon Resource Name (ARN) of the table bucket.

Implementation

Future<GetNamespaceResponse> getNamespace({
  required String namespace,
  required String tableBucketARN,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/namespaces/${Uri.encodeComponent(tableBucketARN)}/${Uri.encodeComponent(namespace)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetNamespaceResponse.fromJson(response);
}