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
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#api_idString

The API ID.

Returns:

  • (String)


1015
1016
1017
1018
1019
1020
1021
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 1015

class CreateTypeRequest < Struct.new(
  :api_id,
  :definition,
  :format)
  SENSITIVE = []
  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)


1015
1016
1017
1018
1019
1020
1021
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 1015

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

#formatString

The type format: SDL or JSON.

Returns:

  • (String)


1015
1016
1017
1018
1019
1020
1021
# File 'gems/aws-sdk-appsync/lib/aws-sdk-appsync/types.rb', line 1015

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