put_integration_response
¶
put_integration_response(
rest_api_id: String,
resource_id: String,
http_method: String,
status_code: StatusCode,
*,
config_overrides: Optional[APIGatewayClientConfig] = None,
selection_pattern: Optional[String] = None,
response_parameters: Optional[MapOfStringToString] = None,
response_templates: Optional[MapOfStringToString] = None,
content_handling: Optional[ContentHandlingStrategy] = None,
) -> IntegrationResponse
Represents a put integration.
Parameters:
-
rest_api_id(String) –The string identifier of the associated RestApi.
-
resource_id(String) –Specifies a put integration response request's resource identifier.
-
http_method(String) –Specifies a put integration response request's HTTP method.
-
status_code(StatusCode) –Specifies the status code that is used to map the integration response to an existing MethodResponse.
-
selection_pattern(Optional[String], default:None) –Specifies the selection pattern of a put integration response.
-
response_parameters(Optional[MapOfStringToString], default:None) –A key-value map specifying response parameters that are passed to the method response from the back end. The key is a method response header parameter name and the mapped value is an integration response header value, a static value enclosed within a pair of single quotes, or a JSON expression from the integration response body. The mapping key must match the pattern of
method.response.header.{name}, wherenameis a valid and unique header name. The mapped non-static value must match the pattern ofintegration.response.header.{name}orintegration.response.body.{JSON-expression}, wherenamemust be a valid and unique response header name andJSON-expressiona valid JSON expression without the$prefix. -
response_templates(Optional[MapOfStringToString], default:None) –Specifies a put integration response's templates.
-
content_handling(Optional[ContentHandlingStrategy], default:None) –Specifies how to handle response payload content type conversions. Supported values are
CONVERT_TO_BINARYandCONVERT_TO_TEXT, with the following behaviors:If this property is not defined, the response payload will be passed through from the integration response to the method response without modification.
Raises:
-
BadRequestException–The submitted request is not valid, for example, the input is incomplete or incorrect. See the accompanying error message for details.
-
ConflictException–The request configuration has conflicts. For details, see the accompanying error message.
-
LimitExceededException–The request exceeded the rate limit. Retry after the specified time period.
-
NotFoundException–The requested resource is not found. Make sure that the request URI is correct.
-
TooManyRequestsException–The request has reached its throttling limit. Retry after the specified time period.
-
UnauthorizedException–The request is denied because the caller has insufficient permissions.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_api_gateway/_services/api_gateway.py
6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 | |