list_policy_principals
¶
list_policy_principals(
policy_name: PolicyName,
*,
config_overrides: Optional[IoTClientConfig] = None,
marker: Optional[Marker] = None,
page_size: Optional[PageSize] = None,
ascending_order: Optional[AscendingOrder] = None,
) -> ListPolicyPrincipalsResponse
Lists the principals associated with the specified policy.
Note: This action is deprecated and works as expected for backward compatibility, but we won't add enhancements. Use ListTargetsForPolicy instead.
Requires permission to access the ListPolicyPrincipals action.
Parameters:
-
policy_name(PolicyName) –The policy name.
-
marker(Optional[Marker], default:None) –The marker for the next set of results.
-
page_size(Optional[PageSize], default:None) –The result page size.
-
ascending_order(Optional[AscendingOrder], default:None) –Specifies the order for results. If true, the results are returned in ascending creation order.
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/io_t.py
12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 | |