MCPcopy Index your code
hub / github.com/aws/aws-cli / add_to_params

Method add_to_params

awscli/customizations/cloudfront.py:209–220  ·  view source on GitHub ↗
(self, parameters, value)

Source from the content-addressed store, hash-verified

207 self.context = context
208
209 def add_to_params(self, parameters, value):
210 if value is not None:
211 client = self.context['session'].create_client(
212 'cloudfront',
213 region_name=self.context['parsed_args'].region,
214 endpoint_url=self.context['parsed_args'].endpoint_url,
215 verify=self.context['parsed_args'].verify_ssl,
216 )
217 response = client.get_distribution_config(Id=parameters['Id'])
218 parameters['IfMatch'] = response['ETag']
219 parameters['DistributionConfig'] = response['DistributionConfig']
220 parameters['DistributionConfig']['DefaultRootObject'] = value
221
222
223def _add_sign(command_table, session, **kwargs):

Callers

nothing calls this directly

Calls 1

create_clientMethod · 0.45

Tested by

no test coverage detected