update_thing_groups_for_thing
async
¶
update_thing_groups_for_thing(
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
thing_name: Optional[ThingName] = None,
thing_groups_to_add: Optional[ThingGroupList] = None,
thing_groups_to_remove: Optional[ThingGroupList] = None,
override_dynamic_groups: Optional[OverrideDynamicGroups] = None,
) -> UpdateThingGroupsForThingResponse
Updates the groups to which the thing belongs.
Requires permission to access the UpdateThingGroupsForThing action.
Parameters:
-
thing_name(Optional[ThingName], default:None) –The thing whose group memberships will be updated.
-
thing_groups_to_add(Optional[ThingGroupList], default:None) –The groups to which the thing will be added.
-
thing_groups_to_remove(Optional[ThingGroupList], default:None) –The groups from which the thing will be removed.
-
override_dynamic_groups(Optional[OverrideDynamicGroups], default:None) –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.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ThrottlingException–The rate exceeds the limit.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 | |