You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::APIGateway::Types::CreateModelRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing CreateModelRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  rest_api_id: "String", # required
  name: "String", # required
  description: "String",
  schema: "String",
  content_type: "String", # required
}

Request to add a new Model to an existing RestApi resource.

Instance Attribute Summary collapse

Instance Attribute Details

#content_typeString

[Required] The content-type for the model.

Returns:

  • (String)

    [Required] The content-type for the model.

#descriptionString

The description of the model.

Returns:

  • (String)

    The description of the model.

#nameString

[Required] The name of the model. Must be alphanumeric.

Returns:

  • (String)

    [Required] The name of the model.

#rest_api_idString

[Required] The RestApi identifier under which the Model will be created.

Returns:

  • (String)

    [Required] The RestApi identifier under which the Model will be created.

#schemaString

The schema for the model. For application/json models, this should be JSON schema draft 4target="_blank" model.

Returns:

  • (String)

    The schema for the model.