put_integration_response
async
¶
put_integration_response(
rest_api_id: String,
resource_id: String,
http_method: String,
status_code: StatusCode,
*,
config_overrides: Optional[AsyncAPIGatewayClientConfig] = 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/async_api_gateway.py
6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 | |