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
)
dict
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