aws#

Manage the AWS environment that s3pathlib dealing with.

class s3pathlib.aws.Context[source]#

A globally available context object managing AWS SDK credentials.

TODO: use singleton pattern to create context object

attach_boto_session(boto_ses: Session)[source]#

Attach a custom boto session, also remove caches.

property s3_client: S3Client#

Access the s3 client.

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#client

property sts_client: STSClient#

Access the s3 client.

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#client

property aws_account_id: str#

The AWS Account ID of the current boto session.

property aws_region: str#

The AWS Region of the current boto session.