MCPcopy Create free account
hub / github.com/aws/aws-cli / create_session

Function create_session

tests/utils/botocore/__init__.py:98–105  ·  view source on GitHub ↗
(**kwargs)

Source from the content-addressed store, hash-verified

96
97
98def create_session(**kwargs):
99 # Create a Session object. By default,
100 # the _LOADER object is used as the loader
101 # so that we reused the same models across tests.
102 session = botocore.session.Session(**kwargs)
103 session.register_component('data_loader', _LOADER)
104 session.set_config_variable('credentials_file', 'noexist/foo/botocore')
105 return session
106
107
108def get_botocore_default_config_mapping():

Calls 2

register_componentMethod · 0.95
set_config_variableMethod · 0.95