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

Class: Aws::AppSync::Types::CreateTypeRequest

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

Overview

Note:

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

{
  api_id: "String", # required
  definition: "String", # required
  format: "SDL", # required, accepts SDL, JSON
}

Instance Attribute Summary collapse

Instance Attribute Details

#api_idString

The API ID.

Returns:

  • (String)


298
299
300
301
302
303
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 298

class CreateTypeRequest < Struct.new(
  :api_id,
  :definition,
  :format)
  include Aws::Structure
end

#definitionString

The type definition, in GraphQL Schema Definition Language (SDL) format.

For more information, see the GraphQL SDL documentation.

Returns:

  • (String)


298
299
300
301
302
303
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 298

class CreateTypeRequest < Struct.new(
  :api_id,
  :definition,
  :format)
  include Aws::Structure
end

#formatString

The type format: SDL or JSON.

Returns:

  • (String)


298
299
300
301
302
303
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 298

class CreateTypeRequest < Struct.new(
  :api_id,
  :definition,
  :format)
  include Aws::Structure
end