Lists the policies attached to the specified principal. If you use an Cognito identity, the ID must be in AmazonCognito Identity format.Note: This action is deprecated. Please use ListAttachedPolicies instead.Requires permission to access the ListPrincipalPolicies 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/principal-policies' \
--header'x-amzn-iot-principal;'