Skip to content

Resource: awsApigatewayv2RouteResponse

Manages an Amazon API Gateway Version 2 route 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.apigatewayv2RouteResponse.Apigatewayv2RouteResponse(this, "example", {
  apiId: "${aws_apigatewayv2_api.example.id}",
  routeId: "${aws_apigatewayv2_route.example.id}",
  routeResponseKey: "$default",
});

Argument Reference

The following arguments are supported:

  • apiId - (Required) API identifier.
  • routeId - (Required) Identifier of the awsApigatewayv2Route.
  • routeResponseKey - (Required) Route response key.
  • modelSelectionExpression - (Optional) The model selection expression for the route response.
  • responseModels - (Optional) Response models for the route response.

Attributes Reference

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

  • id - Route response identifier.

Import

awsApigatewayv2RouteResponse can be imported by using the API identifier, route identifier and route response identifier, e.g.,

$ terraform import aws_apigatewayv2_route_response.example aabbccddee/1122334/998877