» Resource: aws_apigatewayv2_api_mapping

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

» Example Usage

» Basic

resource "aws_apigatewayv2_api_mapping" "example" {
  api_id      = "${aws_apigatewayv2_api.example.id}"
  domain_name = "${aws_apigatewayv2_domain_name.example.id}"
  stage       = "${aws_apigatewayv2_stage.example.id}"
}

» Argument Reference

The following arguments are supported:

» Attribute Reference

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

  • id - The API mapping identifier.

» Import

aws_apigatewayv2_api_mapping can be imported by using the API mapping identifier and domain name, e.g.

$ terraform import aws_apigatewayv2_api_mapping.example 1122334/ws-api.example.com