APIGatewayClient.put_integration_response
rboto-api-gateway==0.4.0 · Service index · Types
Model summary (excerpt): Represents a put integration.
Install and imports
from rboto import APIGatewayClient
from rboto_api_gateway.types import (
ContentHandlingStrategy,
PutIntegrationResponseOutput,
)
Signature
async def put_integration_response(
*,
rest_api_id: str,
resource_id: str,
http_method: str,
status_code: str,
selection_pattern: str | None = None,
response_parameters: dict[str, str] | None = None,
response_templates: dict[str, str] | None = None,
content_handling: ContentHandlingStrategy | None = None,
) -> PutIntegrationResponseOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
rest_api_id |
Yes | The string identifier of the associated RestApi. |
resource_id |
Yes | Specifies a put integration response request's resource identifier. |
http_method |
Yes | Specifies a put integration response request's HTTP method. |
status_code |
Yes | Specifies the status code that is used to map the integration response to an existing MethodResponse. |
selection_pattern |
No | Specifies the selection pattern of a put integration response. |
response_parameters |
No | 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... |
response_templates |
No | Specifies a put integration response's templates. |
content_handling |
No | Specifies how to handle response payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_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. |
Output
PutIntegrationResponseOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
status_code |
str | None |
Always present | — |
selection_pattern |
str | None |
Always present | — |
response_parameters |
dict[str, str] | None |
Always present | — |
response_templates |
dict[str, str] | None |
Always present | — |
content_handling |
ContentHandlingStrategyOutput | None |
Always present | ContentHandlingStrategyOutput |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
ContentHandlingStrategy, PutIntegrationResponseOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_api_gateway.exceptions:
BadRequestError, ConflictError, LimitExceededError, NotFoundError, TooManyRequestsError, UnauthorizedError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.