list_thing_principals_v2
async
¶
list_thing_principals_v2(
thing_name: ThingName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[RegistryMaxResults] = None,
thing_principal_type: Optional[ThingPrincipalType] = None,
) -> ListThingPrincipalsV2Response
Lists the principals associated with the specified thing. A principal can be an X.509 certificate or an Amazon Cognito ID.
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.
-
thing_principal_type(Optional[ThingPrincipalType], default:None) –The type of the relation you want to filter in the response. If no value is provided in this field, the response will list all principals, including both the
EXCLUSIVE_THINGandNON_EXCLUSIVE_THINGattachment types.-
EXCLUSIVE_THING- Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal.
-
NON_EXCLUSIVE_THING- Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.
-
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
14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 | |