list_policy_principals
async
¶
list_policy_principals(
policy_name: PolicyName,
*,
config_overrides: Optional[AsyncIoTClientConfig] = 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/async_io_t.py
12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 | |