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

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

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

Overview

Note:

When passing CreateThingRequest as input to an Aws::Client method, you can use a vanilla 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\"}}`

Returns:

  • (Types::AttributePayload)

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

#thing_nameString

The name of the thing to create.

Returns:

  • (String)

    The name of the thing to create.

#thing_type_nameString

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

Returns:

  • (String)

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