github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/website/source/docs/providers/aws/r/api_gateway_resource.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_api_gateway_resource" 4 sidebar_current: "docs-aws-resource-api-gateway-resource" 5 description: |- 6 Provides an API Gateway Resource. 7 --- 8 9 # aws\_api\_gateway\_resource 10 11 Provides an API Gateway Resource. 12 13 ## Example Usage 14 15 ``` 16 resource "aws_api_gateway_rest_api" "MyDemoAPI" { 17 name = "MyDemoAPI" 18 description = "This is my API for demonstration purposes" 19 } 20 21 resource "aws_api_gateway_resource" "MyDemoResource" { 22 rest_api_id = "${aws_api_gateway_rest_api.MyDemoAPI.id}" 23 parent_id = "${aws_api_gateway_rest_api.MyDemoAPI.root_resource_id}" 24 path_part = "mydemoresource" 25 } 26 ``` 27 28 ## Argument Reference 29 30 The following arguments are supported: 31 32 * `rest_api_id` - (Required) The ID of the associated REST API 33 * `parent_id` - (Required) The ID of the parent API resource 34 * `path_part` - (Required) The last path segment of this API resource. 35 36 ## Attributes Reference 37 38 The following attributes are exported: 39 40 * `id` - The ID of the API resource 41 * `path` - The complete path for this API resource, including all parent paths