Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Deletes the specified version from the specified managed policy.
You cannot delete the default version from a policy using this operation. To delete the default version from 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, see Versioning for managed policies in the IAM User Guide.
Synopsis
- data DeletePolicyVersion = DeletePolicyVersion' {}
- newDeletePolicyVersion :: Text -> Text -> DeletePolicyVersion
- deletePolicyVersion_policyArn :: Lens' DeletePolicyVersion Text
- deletePolicyVersion_versionId :: Lens' DeletePolicyVersion Text
- data DeletePolicyVersionResponse = DeletePolicyVersionResponse' {
- newDeletePolicyVersionResponse :: DeletePolicyVersionResponse
Creating a Request
data DeletePolicyVersion Source #
See: newDeletePolicyVersion
smart constructor.
DeletePolicyVersion' | |
|
Instances
newDeletePolicyVersion Source #
:: Text | |
-> Text | |
-> DeletePolicyVersion |
Create a value of DeletePolicyVersion
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:policyArn:DeletePolicyVersion'
, deletePolicyVersion_policyArn
- The Amazon Resource Name (ARN) of the IAM policy from which you want to
delete a version.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
$sel:versionId:DeletePolicyVersion'
, deletePolicyVersion_versionId
- The policy version to delete.
This parameter allows (through its regex pattern) a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
Request Lenses
deletePolicyVersion_policyArn :: Lens' DeletePolicyVersion Text Source #
The Amazon Resource Name (ARN) of the IAM policy from which you want to delete a version.
For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
deletePolicyVersion_versionId :: Lens' DeletePolicyVersion Text Source #
The policy version to delete.
This parameter allows (through its regex pattern) a string of characters that consists of the lowercase letter 'v' followed by one or two digits, and optionally followed by a period '.' and a string of letters and digits.
For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide.
Destructuring the Response
data DeletePolicyVersionResponse Source #
See: newDeletePolicyVersionResponse
smart constructor.
Instances
newDeletePolicyVersionResponse :: DeletePolicyVersionResponse Source #
Create a value of DeletePolicyVersionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.