add_thing_to_thing_group
async
¶
add_thing_to_thing_group(
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
thing_group_name: Optional[ThingGroupName] = None,
thing_group_arn: Optional[ThingGroupArn] = None,
thing_name: Optional[ThingName] = None,
thing_arn: Optional[ThingArn] = None,
override_dynamic_groups: Optional[OverrideDynamicGroups] = None,
) -> AddThingToThingGroupResponse
Adds a thing to a thing group.
Requires permission to access the AddThingToThingGroup action.
Parameters:
-
thing_group_name(Optional[ThingGroupName], default:None) –The name of the group to which you are adding a thing.
-
thing_group_arn(Optional[ThingGroupArn], default:None) –The ARN of the group to which you are adding a thing.
-
thing_name(Optional[ThingName], default:None) –The name of the thing to add to a group.
-
thing_arn(Optional[ThingArn], default:None) –The ARN of the thing to add to a group.
-
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
1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 | |