Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Terminates the specified instance and optionally adjusts the desired group size.
This call simply makes a termination request. The instance is not terminated immediately.
- terminateInstanceInAutoScalingGroup :: Text -> Bool -> TerminateInstanceInAutoScalingGroup
- data TerminateInstanceInAutoScalingGroup
- tiiasgInstanceId :: Lens' TerminateInstanceInAutoScalingGroup Text
- tiiasgShouldDecrementDesiredCapacity :: Lens' TerminateInstanceInAutoScalingGroup Bool
- terminateInstanceInAutoScalingGroupResponse :: Int -> TerminateInstanceInAutoScalingGroupResponse
- data TerminateInstanceInAutoScalingGroupResponse
- tiiasgrsActivity :: Lens' TerminateInstanceInAutoScalingGroupResponse (Maybe Activity)
- tiiasgrsResponseStatus :: 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:
tiiasgInstanceId
- The ID of the instance.tiiasgShouldDecrementDesiredCapacity
- Indicates whether terminating the instance also decrements the size of the Auto Scaling group.
data TerminateInstanceInAutoScalingGroup Source #
See: terminateInstanceInAutoScalingGroup
smart constructor.
Request Lenses
tiiasgInstanceId :: Lens' TerminateInstanceInAutoScalingGroup Text Source #
The ID of the instance.
tiiasgShouldDecrementDesiredCapacity :: Lens' TerminateInstanceInAutoScalingGroup Bool Source #
Indicates whether terminating the 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:
tiiasgrsActivity
- A scaling activity.tiiasgrsResponseStatus
- -- | The response status code.
data TerminateInstanceInAutoScalingGroupResponse Source #
See: terminateInstanceInAutoScalingGroupResponse
smart constructor.
Response Lenses
tiiasgrsActivity :: Lens' TerminateInstanceInAutoScalingGroupResponse (Maybe Activity) Source #
A scaling activity.
tiiasgrsResponseStatus :: Lens' TerminateInstanceInAutoScalingGroupResponse Int Source #
- - | The response status code.