| 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.AutoScaling.DeletePolicy
Description
Deletes the specified scaling policy.
Deleting either a step scaling policy or a simple scaling policy deletes the underlying alarm action, but does not delete the alarm, even if it no longer has an associated action.
For more information, see Deleting a scaling policy in the Amazon EC2 Auto Scaling User Guide.
Synopsis
Creating a Request
data DeletePolicy Source #
See: newDeletePolicy smart constructor.
Constructors
| DeletePolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeletePolicy |
Create a value of DeletePolicy 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:
DeletePolicy, deletePolicy_autoScalingGroupName - The name of the Auto Scaling group.
DeletePolicy, deletePolicy_policyName - The name or Amazon Resource Name (ARN) of the policy.
Request Lenses
deletePolicy_autoScalingGroupName :: Lens' DeletePolicy (Maybe Text) Source #
The name of the Auto Scaling group.
deletePolicy_policyName :: Lens' DeletePolicy Text Source #
The name or Amazon Resource Name (ARN) of the policy.
Destructuring the Response
data DeletePolicyResponse Source #
See: newDeletePolicyResponse smart constructor.
Constructors
| DeletePolicyResponse' | |
Instances
newDeletePolicyResponse :: DeletePolicyResponse Source #
Create a value of DeletePolicyResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.