Files
opentf/website/source/docs/providers/aws/r/api_gateway_resource.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.0 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_api_gateway_resource docs-aws-resource-api-gateway-resource Provides an API Gateway Resource.

aws_api_gateway_resource

Provides an API Gateway Resource.

Example Usage

resource "aws_api_gateway_rest_api" "MyDemoAPI" {
  name        = "MyDemoAPI"
  description = "This is my API for demonstration purposes"
}

resource "aws_api_gateway_resource" "MyDemoResource" {
  rest_api_id = "${aws_api_gateway_rest_api.MyDemoAPI.id}"
  parent_id   = "${aws_api_gateway_rest_api.MyDemoAPI.root_resource_id}"
  path_part   = "mydemoresource"
}

Argument Reference

The following arguments are supported:

  • rest_api_id - (Required) The ID of the associated REST API
  • parent_id - (Required) The ID of the parent API resource
  • path_part - (Required) The last path segment of this API resource.

Attributes Reference

The following attributes are exported:

  • id - The ID of the API resource
  • path - The complete path for this API resource, including all parent paths