» Resource: aws_apigatewayv2_route

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

» Example Usage

» Basic

resource "aws_apigatewayv2_route" "example" {
  api_id    = "${aws_apigatewayv2_api.example.id}"
  route_key = "$default"
}

» Argument Reference

The following arguments are supported:

» Attribute Reference

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

  • id - The route identifier.

» Import

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

$ terraform import aws_apigatewayv2_route.example aabbccddee/1122334