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 (
str|None) – profile name to lookup (only used if session is not supplied)creds (
ReadOnlyCredentials|None) – Override credentials with supplied dataregion_name (
str|None) – region_name to use, overrides session settingaws_unsigned (
bool|None) – Do not use any credentials when accessing S3 resourcessession (
Session|None) – botocore session to useuse_ssl (
bool) – Whether to connect via http or httpscache (
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