IoT / Client / list_policies

list_policies#

IoT.Client.list_policies(**kwargs)#

Lists your policies.

Requires permission to access the ListPolicies action.

See also: AWS API Documentation

Request Syntax

response = client.list_policies(
    marker='string',
    pageSize=123,
    ascendingOrder=True|False
)
Parameters:
  • marker (string) – The marker for the next set of results.

  • pageSize (integer) – The result page size.

  • ascendingOrder (boolean) – Specifies the order for results. If true, the results are returned in ascending creation order.

Return type:

dict

Returns:

Response Syntax

{
    'policies': [
        {
            'policyName': 'string',
            'policyArn': 'string'
        },
    ],
    'nextMarker': 'string'
}

Response Structure

  • (dict) –

    The output from the ListPolicies operation.

    • policies (list) –

      The descriptions of the policies.

      • (dict) –

        Describes an IoT policy.

        • policyName (string) –

          The policy name.

        • policyArn (string) –

          The policy ARN.

    • nextMarker (string) –

      The marker for the next set of results, or null if there are no additional results.

Exceptions

  • IoT.Client.exceptions.InvalidRequestException

  • IoT.Client.exceptions.ThrottlingException

  • IoT.Client.exceptions.UnauthorizedException

  • IoT.Client.exceptions.ServiceUnavailableException

  • IoT.Client.exceptions.InternalFailureException