awswrangler.s3.create_namespace¶
- awswrangler.s3.create_namespace(table_bucket_arn: str, namespace: str, boto3_session: Session | None = None) str¶
Create a namespace in an S3 Table Bucket.
- Parameters:
table_bucket_arn (str) – The ARN of the table bucket.
namespace (str) – The name of the namespace to create.
boto3_session (boto3.Session, optional) – Boto3 Session. If None, the default boto3 session is used.
- Returns:
The namespace name.
- Return type:
str
Examples
>>> import awswrangler as wr >>> ns = wr.s3.create_namespace( ... table_bucket_arn="arn:aws:s3tables:us-east-1:123456789012:bucket/my-bucket", ... namespace="my_namespace", ... )