define_s3_client

Contents

define_s3_client#

define_s3_client(endpoint=None, profile_name=None, requester_pays: bool = False, no_sign_request: bool = False, **kwargs)[source]#

Define S3 client This function searches for S3 configuration in many places. It does apply configuration variables precedence, and you might have a use for it. Here is the order of precedence from least to greatest (the last listed configuration variables override all other variables):

  1. AWS profile

  2. Given arguments

  3. AWS environment variable

Parameters:
  • endpoint – The s3 endpoint (s3.yourdomain.com)

  • profile_name – The name of the aws profile. Default to default profile in AWS configuration file.

  • requester_pays (bool) – True if the endpoint says ‘requester pays’

  • no_sign_request (bool) – True if the endpoint is open access