Skip to content

Resource: awsApigatewayv2IntegrationResponse

Manages an Amazon API Gateway Version 2 integration response. More information can be found in the Amazon API Gateway Developer Guide.

Example Usage

Basic

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.apigatewayv2IntegrationResponse.Apigatewayv2IntegrationResponse(
  this,
  "example",
  {
    apiId: "${aws_apigatewayv2_api.example.id}",
    integrationId: "${aws_apigatewayv2_integration.example.id}",
    integrationResponseKey: "/200/",
  }
);

Argument Reference

The following arguments are supported:

  • apiId - (Required) API identifier.
  • integrationId - (Required) Identifier of the awsApigatewayv2Integration.
  • integrationResponseKey - (Required) Integration response key.
  • contentHandlingStrategy - (Optional) How to handle response payload content type conversions. Valid values: CONVERT_TO_BINARY, CONVERT_TO_TEXT.
  • responseTemplates - (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.
  • templateSelectionExpression - (Optional) The template selection expression for the integration response.

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • id - Integration response identifier.

Import

awsApigatewayv2IntegrationResponse can be imported by using the API identifier, integration identifier and integration response identifier, e.g.,

$ terraform import aws_apigatewayv2_integration_response.example aabbccddee/1122334/998877