list_thing_groups
async
¶
list_thing_groups(
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[RegistryMaxResults] = None,
parent_group: Optional[ThingGroupName] = None,
name_prefix_filter: Optional[ThingGroupName] = None,
recursive: Optional[RecursiveWithoutDefault] = None,
) -> ListThingGroupsResponse
List the thing groups in your account.
Requires permission to access the ListThingGroups action.
Parameters:
-
next_token(Optional[NextToken], default:None) –To retrieve the next set of results, the
nextTokenvalue from a previous response; otherwise null to receive the first set of results. -
max_results(Optional[RegistryMaxResults], default:None) –The maximum number of results to return at one time.
-
parent_group(Optional[ThingGroupName], default:None) –A filter that limits the results to those with the specified parent group.
-
name_prefix_filter(Optional[ThingGroupName], default:None) –A filter that limits the results to those with the specified name prefix.
-
recursive(Optional[RecursiveWithoutDefault], default:None) –If true, return child groups as well.
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
14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 | |