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

Function call

awscli/customizations/emr/emrutils.py:175–196  ·  view source on GitHub ↗
(
    session,
    operation_name,
    parameters,
    region_name=None,
    endpoint_url=None,
    verify=None,
)

Source from the content-addressed store, hash-verified

173
174
175def call(
176 session,
177 operation_name,
178 parameters,
179 region_name=None,
180 endpoint_url=None,
181 verify=None,
182):
183 # We could get an error from get_endpoint() about not having
184 # a region configured. Before this happens we want to check
185 # for credentials so we can give a good error message.
186 if session.get_credentials() is None:
187 raise NoCredentialsError()
188
189 client = session.create_client(
190 'emr',
191 region_name=region_name,
192 endpoint_url=endpoint_url,
193 verify=verify,
194 )
195 LOG.debug('Calling ' + str(operation_name))
196 return getattr(client, operation_name)(**parameters)
197
198
199def get_example_file(command):

Callers 2

get_clusterFunction · 0.85

Calls 3

NoCredentialsErrorClass · 0.90
get_credentialsMethod · 0.45
create_clientMethod · 0.45