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

Method _convert_to_request_dict

awscli/botocore/client.py:947–973  ·  view source on GitHub ↗
(
        self,
        api_params,
        operation_model,
        endpoint_url,
        context=None,
        headers=None,
        set_user_agent_header=True,
    )

Source from the content-addressed store, hash-verified

945 raise
946
947 def _convert_to_request_dict(
948 self,
949 api_params,
950 operation_model,
951 endpoint_url,
952 context=None,
953 headers=None,
954 set_user_agent_header=True,
955 ):
956 request_dict = self._serializer.serialize_to_request(
957 api_params, operation_model
958 )
959 if not self._client_config.inject_host_prefix:
960 request_dict.pop('host_prefix', None)
961 if headers is not None:
962 request_dict['headers'].update(headers)
963 if set_user_agent_header:
964 user_agent = self._user_agent_creator.to_string()
965 else:
966 user_agent = None
967 prepare_request_dict(
968 request_dict,
969 endpoint_url=endpoint_url,
970 user_agent=user_agent,
971 context=context,
972 )
973 return request_dict
974
975 def _emit_api_params(self, api_params, operation_model, context):
976 # Given the API params provided by the user and the operation_model

Callers 3

_make_api_callMethod · 0.95
generate_presigned_urlFunction · 0.80
generate_presigned_postFunction · 0.80

Calls 4

prepare_request_dictFunction · 0.90
serialize_to_requestMethod · 0.45
updateMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected