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 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.
Synopsis
- data DeletePolicyVersion = DeletePolicyVersion' {}
- newDeletePolicyVersion :: Text -> Text -> DeletePolicyVersion
- deletePolicyVersion_policyName :: Lens' DeletePolicyVersion Text
- deletePolicyVersion_policyVersionId :: Lens' DeletePolicyVersion Text
- data DeletePolicyVersionResponse = DeletePolicyVersionResponse' {
- newDeletePolicyVersionResponse :: DeletePolicyVersionResponse
Creating a Request
data DeletePolicyVersion Source #
The input for the DeletePolicyVersion operation.
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:policyName:DeletePolicyVersion'
, deletePolicyVersion_policyName
- The name of the policy.
$sel:policyVersionId:DeletePolicyVersion'
, deletePolicyVersion_policyVersionId
- The policy version ID.
Request Lenses
deletePolicyVersion_policyName :: Lens' DeletePolicyVersion Text Source #
The name of the policy.
deletePolicyVersion_policyVersionId :: Lens' DeletePolicyVersion Text Source #
The policy version ID.
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.