list_policy_versions
(**kwargs)¶Lists the versions of the specified policy and identifies the default version.
Requires permission to access the ListPolicyVersions action.
See also: AWS API Documentation
Request Syntax
response = client.list_policy_versions(
policyName='string'
)
[REQUIRED]
The policy name.
{
'policyVersions': [
{
'versionId': 'string',
'isDefaultVersion': True|False,
'createDate': datetime(2015, 1, 1)
},
]
}
Response Structure
The output from the ListPolicyVersions operation.
The policy versions.
Describes a policy version.
The policy version ID.
Specifies whether the policy version is the default.
The date and time the policy was created.
Exceptions
IoT.Client.exceptions.ResourceNotFoundException
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.UnauthorizedException
IoT.Client.exceptions.ServiceUnavailableException
IoT.Client.exceptions.InternalFailureException