Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes the specified Auto Scaling group.
If the group has instances or scaling activities in progress, you must specify the option to force the deletion in order for it to succeed.
If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm that no longer has an associated action.
To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity so that Auto Scaling does not launch replacement instances.
To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup and set the minimum size and desired capacity of the Auto Scaling group to zero.
- deleteAutoScalingGroup :: Text -> DeleteAutoScalingGroup
- data DeleteAutoScalingGroup
- dasgForceDelete :: Lens' DeleteAutoScalingGroup (Maybe Bool)
- dasgAutoScalingGroupName :: Lens' DeleteAutoScalingGroup Text
- deleteAutoScalingGroupResponse :: DeleteAutoScalingGroupResponse
- data DeleteAutoScalingGroupResponse
Creating a Request
deleteAutoScalingGroup Source #
Creates a value of DeleteAutoScalingGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DeleteAutoScalingGroup Source #
See: deleteAutoScalingGroup
smart constructor.
Request Lenses
dasgForceDelete :: Lens' DeleteAutoScalingGroup (Maybe Bool) Source #
Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.
dasgAutoScalingGroupName :: Lens' DeleteAutoScalingGroup Text Source #
The name of the group to delete.
Destructuring the Response
deleteAutoScalingGroupResponse :: DeleteAutoScalingGroupResponse Source #
Creates a value of DeleteAutoScalingGroupResponse
with the minimum fields required to make a request.
data DeleteAutoScalingGroupResponse Source #
See: deleteAutoScalingGroupResponse
smart constructor.