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

Class: Aws::IoT::Types::CreateThingRequest

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

Overview

Note:

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

{
  thing_name: "ThingName", # required
  thing_type_name: "ThingTypeName",
  attribute_payload: {
    attributes: {
      "AttributeName" => "AttributeValue",
    },
    merge: false,
  },
}

The input for the CreateThing operation.

Instance Attribute Summary collapse

Instance Attribute Details

#attribute_payloadTypes::AttributePayload

The attribute payload, which consists of up to three name/value pairs in a JSON document. For example:

\{"attributes":\{"string1":"string2"\}\}



784
785
786
787
788
789
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 784

class CreateThingRequest < Struct.new(
  :thing_name,
  :thing_type_name,
  :attribute_payload)
  include Aws::Structure
end

#thing_nameString

The name of the thing to create.

Returns:

  • (String)


784
785
786
787
788
789
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 784

class CreateThingRequest < Struct.new(
  :thing_name,
  :thing_type_name,
  :attribute_payload)
  include Aws::Structure
end

#thing_type_nameString

The name of the thing type associated with the new thing.

Returns:

  • (String)


784
785
786
787
788
789
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 784

class CreateThingRequest < Struct.new(
  :thing_name,
  :thing_type_name,
  :attribute_payload)
  include Aws::Structure
end