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 data

  • region_name (str | None) – region_name to use, overrides session setting

  • aws_unsigned (bool | None) – Do not use any credentials when accessing S3 resources

  • session (Session | None) – botocore session to use

  • use_ssl (bool) – Whether to connect via http or https

  • cache (bool | str) – True - store/lookup s3 client in thread local cache. "purge" - delete from cache and return what was there to begin with

  • cfg – passed on to botocore.client.Config(..)

Return type:

BaseClient