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

Class: Aws::APIGateway::Types::GetModelTemplateRequest

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

Overview

Note:

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

{
  rest_api_id: "String", # required
  model_name: "String", # required
}

Request to generate a sample mapping template used to transform the payload.

Instance Attribute Summary collapse

Instance Attribute Details

#model_nameString

The name of the model for which to generate a template.

Returns:

  • (String)


3492
3493
3494
3495
3496
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 3492

class GetModelTemplateRequest < Struct.new(
  :rest_api_id,
  :model_name)
  include Aws::Structure
end

#rest_api_idString

The string identifier of the associated RestApi.

Returns:

  • (String)


3492
3493
3494
3495
3496
# File 'gems/aws-sdk-apigateway/lib/aws-sdk-apigateway/types.rb', line 3492

class GetModelTemplateRequest < Struct.new(
  :rest_api_id,
  :model_name)
  include Aws::Structure
end