IoT / Client / update_thing_groups_for_thing
update_thing_groups_for_thing#
- 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 )
- Parameters:
thingName (string) – The thing whose group memberships will be updated.
thingGroupsToAdd (list) –
The groups to which the thing will be added.
(string) –
thingGroupsToRemove (list) –
The groups from which the thing will be removed.
(string) –
overrideDynamicGroups (boolean) – Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.InternalFailureException
IoT.Client.exceptions.ResourceNotFoundException