amazonka-iam-1.2.0.1: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.DeletePolicyVersion

Contents

Description

Deletes the specified version of the specified managed policy.

You cannot delete the default version of a policy using this API. 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.

For information about versions for managed policies, refer to Versioning for Managed Policies in the Using IAM guide.

See: AWS API Reference for DeletePolicyVersion.

Synopsis

Creating a Request

deletePolicyVersion Source

Creates a value of DeletePolicyVersion with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

dpvVersionId :: Lens' DeletePolicyVersion Text Source

The policy version to delete.

For more information about managed policy versions, see Versioning for Managed Policies in the Using IAM guide.

Destructuring the Response

deletePolicyVersionResponse :: DeletePolicyVersionResponse Source

Creates a value of DeletePolicyVersionResponse with the minimum fields required to make a request.