Lists the principals associated with the specified policy.Note: This action is deprecated. Please use ListTargetsForPolicy instead.Requires permission to access the ListPolicyPrincipals action.
Request
Query Params
Header Params
Responses
🟢200Success
application/json
Body
🟠480ResourceNotFoundException
🟠481InvalidRequestException
🟠482ThrottlingException
🟠483UnauthorizedException
🟠484ServiceUnavailableException
🟠485InternalFailureException
Request Request Example
Shell
JavaScript
Java
Swift
curl--location-g--request GET 'https://api.iotwireless.{region}.amazonaws.com/policy-principals' \
--header'x-amzn-iot-policy;'