| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.DeletePolicyVersion
Description
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.
Constructors
| DeletePolicyVersion' | |
Fields
| |
Instances
newDeletePolicyVersion Source #
Arguments
| :: 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:
DeletePolicyVersion, deletePolicyVersion_policyName - The name of the policy.
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.
Constructors
| DeletePolicyVersionResponse' | |
Instances
newDeletePolicyVersionResponse :: DeletePolicyVersionResponse Source #
Create a value of DeletePolicyVersionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.