Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data CreatePolicyVersion
- createPolicyVersion :: Text -> Text -> CreatePolicyVersion
- cpvPolicyArn :: Lens' CreatePolicyVersion Text
- cpvPolicyDocument :: Lens' CreatePolicyVersion Text
- cpvSetAsDefault :: Lens' CreatePolicyVersion (Maybe Bool)
- data CreatePolicyVersionResponse
- createPolicyVersionResponse :: CreatePolicyVersionResponse
- cpvrPolicyVersion :: Lens' CreatePolicyVersionResponse (Maybe PolicyVersion)
Request
data CreatePolicyVersion Source
Request constructor
CreatePolicyVersion
constructor.
The fields accessible through corresponding lenses are:
Request lenses
cpvPolicyDocument :: Lens' CreatePolicyVersion Text Source
The policy document.
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
createPolicyVersionResponse :: CreatePolicyVersionResponse Source
CreatePolicyVersionResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
cpvrPolicyVersion :: Lens' CreatePolicyVersionResponse (Maybe PolicyVersion) Source
Information about the policy version.