IoT.Client.update_thing_group(**kwargs)¶Update a thing group.
Requires permission to access the UpdateThingGroup action.
See also: AWS API Documentation
Request Syntax
response = client.update_thing_group(
thingGroupName='string',
thingGroupProperties={
'thingGroupDescription': 'string',
'attributePayload': {
'attributes': {
'string': 'string'
},
'merge': True|False
}
},
expectedVersion=123
)
[REQUIRED]
The thing group to update.
[REQUIRED]
The thing group properties.
The thing group description.
The thing group attributes in JSON format.
A JSON string containing up to three key-value pair in JSON format. For example:
{\"attributes\":{\"string1\":\"string2\"}}
Specifies whether the list of attributes provided in the AttributePayload is merged with the attributes stored in the registry, instead of overwriting them.
To remove an attribute, call UpdateThing with an empty attribute value.
Note
The merge attribute is only valid when calling UpdateThing or UpdateThingGroup .
dict
Response Syntax
{
'version': 123
}
Response Structure
(dict) --
version (integer) --
The version of the updated thing group.
Exceptions
IoT.Client.exceptions.InvalidRequestExceptionIoT.Client.exceptions.VersionConflictExceptionIoT.Client.exceptions.ThrottlingExceptionIoT.Client.exceptions.InternalFailureExceptionIoT.Client.exceptions.ResourceNotFoundException