datacube.utils.aws.s3_client#
- datacube.utils.aws.s3_client(profile=None, creds=None, region_name=None, session=None, aws_unsigned=None, use_ssl=True, cache=False, **cfg)[source]#
Construct s3 client with configured region_name.
- Parameters:
profile (
Optional
[str
]) – profile name to lookup (only used if session is not supplied)creds (
Optional
[ReadOnlyCredentials
]) – Override credentials with supplied dataregion_name (
Optional
[str
]) – region_name to use, overrides session settingaws_unsigned (
Optional
[bool
]) – Do not use any credentials when accessing S3 resourcessession (
Optional
[Session
]) – botocore session to useuse_ssl (
bool
) – Whether to connect via http or httpscache (
Union
[bool
,str
]) –True
- store/lookup s3 client in thread local cache."purge"
- delete from cache and return what was there to begin withcfg – passed on to
botocore.client.Config(..)
- Return type:
BaseClient