deleteNamespace method

Future<void> deleteNamespace({
  1. required String namespace,
  2. required String tableBucketARN,
})

Deletes a namespace. For more information, see Delete a namespace in the Amazon Simple Storage Service User Guide.

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

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 associated with the namespace.

Implementation

Future<void> deleteNamespace({
  required String namespace,
  required String tableBucketARN,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/namespaces/${Uri.encodeComponent(tableBucketARN)}/${Uri.encodeComponent(namespace)}',
    exceptionFnMap: _exceptionFns,
  );
}