Skip to content

/AWS1/CL_IOT=>LISTPRINCIPALPOLICIES()

About ListPrincipalPolicies

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 and works as expected for backward compatibility, but we won't add enhancements. Use ListAttachedPolicies instead.

Requires permission to access the ListPrincipalPolicies action.

Method Signature

IMPORTING

Required arguments:

IV_PRINCIPAL TYPE /AWS1/IOTPRINCIPAL /AWS1/IOTPRINCIPAL

The principal. Valid principals are CertificateArn (arn:aws:iot:region:accountId:cert/certificateId), thingGroupArn (arn:aws:iot:region:accountId:thinggroup/groupName) and CognitoId (region:id).

Optional arguments:

IV_MARKER TYPE /AWS1/IOTMARKER /AWS1/IOTMARKER

The marker for the next set of results.

IV_PAGESIZE TYPE /AWS1/IOTPAGESIZE /AWS1/IOTPAGESIZE

The result page size.

IV_ASCENDINGORDER TYPE /AWS1/IOTASCENDINGORDER /AWS1/IOTASCENDINGORDER

Specifies the order for results. If true, results are returned in ascending creation order.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_IOTLISTPRINCPOLRSP /AWS1/CL_IOTLISTPRINCPOLRSP