awscc_apigateway_model (Resource)

The AWS::ApiGateway::Model resource defines the structure of a request or response payload for an API method.

Example Usage

resource "awscc_apigateway_model" "example" {
  rest_api_id  = awscc_apigateway_rest_api.example.id
  name         = "example"
  description  = "example model"
  content_type = "application/json"

  schema = jsonencode({
    type = "object"
  })
}

resource "awscc_apigateway_rest_api" "example" {
  name        = "exampleAPI"
  description = "Example API"
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

$ terraform import awscc_apigateway_model.example <resource ID>