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

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

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

Overview

Note:

When passing CreateTypeRequest as input to an Aws::Client method, you can use a vanilla 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)

    The API ID.

#definitionString

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

For more information, see the GraphQL SDL documentation.

Returns:

  • (String)

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

#formatString

The type format: SDL or JSON.

Possible values:

  • SDL
  • JSON

Returns:

  • (String)

    The type format: SDL or JSON.