awswrangler.athena.create_athena_bucket¶
- awswrangler.athena.create_athena_bucket(boto3_session: Session | None = None) str ¶
Create the default Athena bucket if it doesn’t exist.
- Parameters:
boto3_session (
Session
|None
) – The default boto3 session will be used if boto3_session receiveNone
.- Return type:
str
- Returns:
Bucket s3 path (E.g. s3://aws-athena-query-results-ACCOUNT-REGION/)
Examples
>>> import awswrangler as wr >>> wr.athena.create_athena_bucket() 's3://aws-athena-query-results-ACCOUNT-REGION/'