(self, parameters, value)
| 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 | |
| 223 | def _add_sign(command_table, session, **kwargs): |
nothing calls this directly
no test coverage detected