Class: Aws::IoT::Types::UpdateThingRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::IoT::Types::UpdateThingRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-iot/types.rb
Overview
When making an API call, you may pass UpdateThingRequest data as a hash:
{
thing_name: "ThingName", # required
thing_type_name: "ThingTypeName",
attribute_payload: {
attributes: {
"AttributeName" => "AttributeValue",
},
merge: false,
},
expected_version: 1,
remove_thing_type: false,
}
The input for the UpdateThing operation.
Instance Attribute Summary collapse
-
#attribute_payload ⇒ Types::AttributePayload
A list of thing attributes, a JSON string containing name-value pairs.
-
#expected_version ⇒ Integer
The expected version of the thing record in the registry.
-
#remove_thing_type ⇒ Boolean
Remove a thing type association.
-
#thing_name ⇒ String
The name of the thing to update.
-
#thing_type_name ⇒ String
The name of the thing type.
Instance Attribute Details
#attribute_payload ⇒ Types::AttributePayload
A list of thing attributes, a JSON string containing name-value pairs. For example:
‘“attributes”:{“name1”:“value2”}`
This data is used to add new attributes or update existing attributes.
11537 11538 11539 11540 11541 11542 11543 11544 |
# File 'lib/aws-sdk-iot/types.rb', line 11537 class UpdateThingRequest < Struct.new( :thing_name, :thing_type_name, :attribute_payload, :expected_version, :remove_thing_type) include Aws::Structure end |
#expected_version ⇒ Integer
The expected version of the thing record in the registry. If the version of the record in the registry does not match the expected version specified in the request, the ‘UpdateThing` request is rejected with a `VersionConflictException`.
11537 11538 11539 11540 11541 11542 11543 11544 |
# File 'lib/aws-sdk-iot/types.rb', line 11537 class UpdateThingRequest < Struct.new( :thing_name, :thing_type_name, :attribute_payload, :expected_version, :remove_thing_type) include Aws::Structure end |
#remove_thing_type ⇒ Boolean
Remove a thing type association. If true, the association is removed.
11537 11538 11539 11540 11541 11542 11543 11544 |
# File 'lib/aws-sdk-iot/types.rb', line 11537 class UpdateThingRequest < Struct.new( :thing_name, :thing_type_name, :attribute_payload, :expected_version, :remove_thing_type) include Aws::Structure end |
#thing_name ⇒ String
The name of the thing to update.
11537 11538 11539 11540 11541 11542 11543 11544 |
# File 'lib/aws-sdk-iot/types.rb', line 11537 class UpdateThingRequest < Struct.new( :thing_name, :thing_type_name, :attribute_payload, :expected_version, :remove_thing_type) include Aws::Structure end |
#thing_type_name ⇒ String
The name of the thing type.
11537 11538 11539 11540 11541 11542 11543 11544 |
# File 'lib/aws-sdk-iot/types.rb', line 11537 class UpdateThingRequest < Struct.new( :thing_name, :thing_type_name, :attribute_payload, :expected_version, :remove_thing_type) include Aws::Structure end |