IoT.Client.update_thing_groups_for_thing(**kwargs)¶Updates the groups to which the thing belongs.
Requires permission to access the UpdateThingGroupsForThing action.
See also: AWS API Documentation
Request Syntax
response = client.update_thing_groups_for_thing(
thingName='string',
thingGroupsToAdd=[
'string',
],
thingGroupsToRemove=[
'string',
],
overrideDynamicGroups=True|False
)
The groups to which the thing will be added.
The groups from which the thing will be removed.
dict
Response Syntax
{}
Response Structure
Exceptions
IoT.Client.exceptions.InvalidRequestExceptionIoT.Client.exceptions.ThrottlingExceptionIoT.Client.exceptions.InternalFailureExceptionIoT.Client.exceptions.ResourceNotFoundException