AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::ApiGatewayV2::Types::CreateModelRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb

Overview

Note:

When making an API call, you may pass CreateModelRequest data as a hash:

{
  api_id: "__string", # required
  content_type: "StringWithLengthBetween1And256",
  description: "StringWithLengthBetween0And1024",
  name: "StringWithLengthBetween1And128", # required
  schema: "StringWithLengthBetween0And32K", # required
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#api_idString

Returns:

  • (String)


2204
2205
2206
2207
2208
2209
2210
2211
2212
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2204

class CreateModelRequest < Struct.new(
  :api_id,
  :content_type,
  :description,
  :name,
  :schema)
  SENSITIVE = []
  include Aws::Structure
end

#content_typeString

A string with a length between [1-256].

Returns:

  • (String)


2204
2205
2206
2207
2208
2209
2210
2211
2212
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2204

class CreateModelRequest < Struct.new(
  :api_id,
  :content_type,
  :description,
  :name,
  :schema)
  SENSITIVE = []
  include Aws::Structure
end

#descriptionString

A string with a length between [0-1024].

Returns:

  • (String)


2204
2205
2206
2207
2208
2209
2210
2211
2212
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2204

class CreateModelRequest < Struct.new(
  :api_id,
  :content_type,
  :description,
  :name,
  :schema)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

A string with a length between [1-128].

Returns:

  • (String)


2204
2205
2206
2207
2208
2209
2210
2211
2212
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2204

class CreateModelRequest < Struct.new(
  :api_id,
  :content_type,
  :description,
  :name,
  :schema)
  SENSITIVE = []
  include Aws::Structure
end

#schemaString

A string with a length between [0-32768].

Returns:

  • (String)


2204
2205
2206
2207
2208
2209
2210
2211
2212
# File 'gems/aws-sdk-apigatewayv2/lib/aws-sdk-apigatewayv2/types.rb', line 2204

class CreateModelRequest < Struct.new(
  :api_id,
  :content_type,
  :description,
  :name,
  :schema)
  SENSITIVE = []
  include Aws::Structure
end