Copyright | (c) 2013-2015 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 |
Terminates the specified instance and optionally adjusts the desired group size.
This call simply makes a termination request. The instances is not terminated immediately.
See: AWS API Reference for TerminateInstanceInAutoScalingGroup.
- terminateInstanceInAutoScalingGroup :: Text -> Bool -> TerminateInstanceInAutoScalingGroup
- data TerminateInstanceInAutoScalingGroup
- tiiasgInstanceId :: Lens' TerminateInstanceInAutoScalingGroup Text
- tiiasgShouldDecrementDesiredCapacity :: Lens' TerminateInstanceInAutoScalingGroup Bool
- terminateInstanceInAutoScalingGroupResponse :: Int -> TerminateInstanceInAutoScalingGroupResponse
- data TerminateInstanceInAutoScalingGroupResponse
- tiiasgrsActivity :: Lens' TerminateInstanceInAutoScalingGroupResponse (Maybe Activity)
- tiiasgrsStatus :: Lens' TerminateInstanceInAutoScalingGroupResponse Int
Creating a Request
terminateInstanceInAutoScalingGroup Source
Creates a value of TerminateInstanceInAutoScalingGroup
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TerminateInstanceInAutoScalingGroup Source
See: terminateInstanceInAutoScalingGroup
smart constructor.
Request Lenses
tiiasgInstanceId :: Lens' TerminateInstanceInAutoScalingGroup Text Source
The ID of the EC2 instance.
tiiasgShouldDecrementDesiredCapacity :: Lens' TerminateInstanceInAutoScalingGroup Bool Source
If true
, terminating this instance also decrements the size of the
Auto Scaling group.
Destructuring the Response
terminateInstanceInAutoScalingGroupResponse Source
Creates a value of TerminateInstanceInAutoScalingGroupResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TerminateInstanceInAutoScalingGroupResponse Source
See: terminateInstanceInAutoScalingGroupResponse
smart constructor.
Response Lenses
tiiasgrsActivity :: Lens' TerminateInstanceInAutoScalingGroupResponse (Maybe Activity) Source
A scaling activity.
tiiasgrsStatus :: Lens' TerminateInstanceInAutoScalingGroupResponse Int Source
The response status code.