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

Class: Aws::IoTThingsGraph::Types::DefinitionDocument

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

Overview

Note:

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

{
  language: "GRAPHQL", # required, accepts GRAPHQL
  text: "DefinitionText", # required
}

A document that defines an entity.

Instance Attribute Summary collapse

Instance Attribute Details

#languageString

The language used to define the entity. GRAPHQL is the only valid value.

Returns:

  • (String)


221
222
223
224
225
# File 'gems/aws-sdk-iotthingsgraph/lib/aws-sdk-iotthingsgraph/types.rb', line 221

class DefinitionDocument < Struct.new(
  :language,
  :text)
  include Aws::Structure
end

#textString

The GraphQL text that defines the entity.

Returns:

  • (String)


221
222
223
224
225
# File 'gems/aws-sdk-iotthingsgraph/lib/aws-sdk-iotthingsgraph/types.rb', line 221

class DefinitionDocument < Struct.new(
  :language,
  :text)
  include Aws::Structure
end