github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/api_gateway_rest_api.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_api_gateway_rest_api"
     4  sidebar_current: "docs-aws-resource-api-gateway-rest-api"
     5  description: |-
     6    Provides an API Gateway REST API.
     7  ---
     8  
     9  # aws\_api\_gateway\_rest\_api
    10  
    11  Provides an API Gateway REST API.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "aws_api_gateway_rest_api" "MyDemoAPI" {
    17    name        = "MyDemoAPI"
    18    description = "This is my API for demonstration purposes"
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24  The following arguments are supported:
    25  
    26  * `name` - (Required) The name of the REST API
    27  * `description` - (Optional) The description of the REST API
    28  * `binary_media_types` - (Optional) The list of binary media types supported by the RestApi. By default, the RestApi supports only UTF-8-encoded text payloads.
    29  
    30  ## Attributes Reference
    31  
    32  The following attributes are exported:
    33  
    34  * `id` - The ID of the REST API
    35  * `root_resource_id` - The resource ID of the REST API's root
    36  * `created_date` - The creation date of the REST API