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

Method add_to_params

awscli/customizations/awslambda.py:151–165  ·  view source on GitHub ↗
(self, parameters, value)

Source from the content-addressed store, hash-verified

149 self._param_to_replace = kwargs['serialized_name']
150
151 def add_to_params(self, parameters, value):
152 if value is None:
153 return
154 unpacked = self._unpack_argument(value)
155 if 'ZipFile' in unpacked:
156 raise ParamValidationError(
157 "ZipFile cannot be provided "
158 "as part of the %s argument. "
159 "Please use the '--zip-file' "
160 "option instead to specify a zip file." % self._cli_name
161 )
162 if parameters.get(self._param_to_replace):
163 parameters[self._param_to_replace].update(unpacked)
164 else:
165 parameters[self._param_to_replace] = unpacked

Callers

nothing calls this directly

Calls 3

_unpack_argumentMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected