MCPcopy
hub / github.com/aws/aws-cli / create_client

Method create_client

awscli/customizations/s3/factory.py:40–53  ·  view source on GitHub ↗
(self, params, is_source_client=False)

Source from the content-addressed store, hash-verified

38 self._session = session
39
40 def create_client(self, params, is_source_client=False):
41 create_client_kwargs = {'verify': params['verify_ssl']}
42 if params.get('sse') == 'aws:kms':
43 create_client_kwargs['config'] = Config(signature_version='s3v4')
44 region = params['region']
45 endpoint_url = params['endpoint_url']
46 if is_source_client and params['source_region']:
47 if params['paths_type'] == 's3s3':
48 region = params['source_region']
49 endpoint_url = None
50
51 create_client_kwargs['region_name'] = region
52 create_client_kwargs['endpoint_url'] = endpoint_url
53 return self._session.create_client('s3', **create_client_kwargs)
54
55
56class TransferManagerFactory:

Callers 15

_run_mainMethod · 0.45
_run_mainMethod · 0.45
_run_mainMethod · 0.45
add_to_paramsMethod · 0.45
invokeMethod · 0.45
invokeMethod · 0.45
_run_mainMethod · 0.45
_get_clientMethod · 0.45

Calls 1

ConfigClass · 0.85

Tested by

no test coverage detected