delete_policy_version
(**kwargs)¶Deletes the specified version of the specified policy. You cannot delete the default version of a policy using this action. To delete the default version of a policy, use DeletePolicy. To find out which version of a policy is marked as the default version, use ListPolicyVersions.
Requires permission to access the DeletePolicyVersion action.
See also: AWS API Documentation
Request Syntax
response = client.delete_policy_version(
policyName='string',
policyVersionId='string'
)
[REQUIRED]
The name of the policy.
[REQUIRED]
The policy version ID.
None
Exceptions
IoT.Client.exceptions.DeleteConflictException
IoT.Client.exceptions.ResourceNotFoundException
IoT.Client.exceptions.InvalidRequestException
IoT.Client.exceptions.ThrottlingException
IoT.Client.exceptions.UnauthorizedException
IoT.Client.exceptions.ServiceUnavailableException
IoT.Client.exceptions.InternalFailureException