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

Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.CreatePolicyVersion

Contents

Description

Creates a new version of the specified managed policy. To update a managed policy, you create a new policy version. A managed policy can have up to five versions. If the policy has five versions, you must delete an existing version using DeletePolicyVersion before you create a new version.

Optionally, you can set the new version as the policy's default version. The default version is the operative version; that is, the version that is in effect for the IAM users, groups, and roles that the policy is attached to.

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

http://docs.aws.amazon.com/IAM/latest/APIReference/API_CreatePolicyVersion.html

Synopsis

Request

Request constructor

Request lenses

cpvSetAsDefault :: Lens' CreatePolicyVersion (Maybe Bool) Source

Specifies whether to set this version as the policy's default version.

When this parameter is true, the new policy version becomes the operative version; that is, the version that is in effect for the IAM users, groups, and roles that the policy is attached to.

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

Response

Response constructor

Response lenses