mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-02-02 18:00:18 -05:00
1.1 KiB
1.1 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| aws | AWS: aws_api_gateway_model | docs-aws-resource-api-gateway-model | Provides a Model for a API Gateway. |
aws_api_gateway_model
Provides a Model for a API Gateway.
Example Usage
resource "aws_api_gateway_rest_api" "MyDemoAPI" {
name = "MyDemoAPI"
description = "This is my API for demonstration purposes"
}
resource "aws_api_gateway_model" "MyDemoModel" {
rest_api_id = "${aws_api_gateway_rest_api.MyDemoAPI.id}"
name = "user"
description = "a JSON schema"
content_type = "application/json"
schema = <<EOF
{
"type": "object"
}
EOF
}
Argument Reference
The following arguments are supported:
rest_api_id- (Required) The ID of the associated REST APIname- (Required) The name of the modeldescription- (Optional) The description of the modelcontent_type- (Required) The content type of the modelschema- (Required) The schema of the model in a JSON form
Attributes Reference
The following attributes are exported:
id- The ID of the model