Manages an Amazon API Gateway Version 2 integration response. More information can be found in the Amazon API Gateway Developer Guide.
resource "aws_apigatewayv2_integration_response" "example" {
api_id = aws_apigatewayv2_api.example.id
integration_id = aws_apigatewayv2_integration.example.id
integration_response_key = "/200/"
}
This resource supports the following arguments:
api_id
- (Required) API identifier.integration_id
- (Required) Identifier of the aws_apigatewayv2_integration
.integration_response_key
- (Required) Integration response key.content_handling_strategy
- (Optional) How to handle response payload content type conversions. Valid values: CONVERT_TO_BINARY
, CONVERT_TO_TEXT
.response_templates
- (Optional) Map of Velocity templates that are applied on the request payload based on the value of the Content-Type header sent by the client.template_selection_expression
- (Optional) The template selection expression for the integration response.This resource exports the following attributes in addition to the arguments above:
id
- Integration response identifier.In Terraform v1.5.0 and later, use an import
block to import aws_apigatewayv2_integration_response
using the API identifier, integration identifier and integration response identifier. For example:
import {
to = aws_apigatewayv2_integration_response.example
id = "aabbccddee/1122334/998877"
}
Using terraform import
, import aws_apigatewayv2_integration_response
using the API identifier, integration identifier and integration response identifier. For example:
% terraform import aws_apigatewayv2_integration_response.example aabbccddee/1122334/998877