list_thing_principals
async
¶
list_thing_principals(
thing_name: ThingName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[RegistryMaxResults] = None,
) -> ListThingPrincipalsResponse
Lists the principals associated with the specified thing. A principal can be X.509 certificates, IAM users, groups, and roles, Amazon Cognito identities or federated identities.
Requires permission to access the ListThingPrincipals 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 in this operation.
-
thing_name(ThingName) –The name of the thing.
Raises:
-
InternalFailureException–An unexpected error has occurred.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource does not exist.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The rate exceeds the limit.
-
UnauthorizedException–You are not authorized to perform this operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iot/_services/async_io_t.py
14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 | |