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,
  },
  billing_group_name: "BillingGroupName",
}

The input for the CreateThing operation.

Constant Summary collapse

SENSITIVE =
[]

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"\}\}



4958
4959
4960
4961
4962
4963
4964
4965
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 4958

class CreateThingRequest < Struct.new(
  :thing_name,
  :thing_type_name,
  :attribute_payload,
  :billing_group_name)
  SENSITIVE = []
  include Aws::Structure
end

#billing_group_nameString

The name of the billing group the thing will be added to.

Returns:

  • (String)


4958
4959
4960
4961
4962
4963
4964
4965
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 4958

class CreateThingRequest < Struct.new(
  :thing_name,
  :thing_type_name,
  :attribute_payload,
  :billing_group_name)
  SENSITIVE = []
  include Aws::Structure
end

#thing_nameString

The name of the thing to create.

You can't change a thing's name after you create it. To change a thing's name, you must create a new thing, give it the new name, and then delete the old thing.

Returns:

  • (String)


4958
4959
4960
4961
4962
4963
4964
4965
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 4958

class CreateThingRequest < Struct.new(
  :thing_name,
  :thing_type_name,
  :attribute_payload,
  :billing_group_name)
  SENSITIVE = []
  include Aws::Structure
end

#thing_type_nameString

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

Returns:

  • (String)


4958
4959
4960
4961
4962
4963
4964
4965
# File 'gems/aws-sdk-iot/lib/aws-sdk-iot/types.rb', line 4958

class CreateThingRequest < Struct.new(
  :thing_name,
  :thing_type_name,
  :attribute_payload,
  :billing_group_name)
  SENSITIVE = []
  include Aws::Structure
end