Copyright | (c) 2013-2021 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 |
Synopsis
- data InstanceState = InstanceState' {
- instanceId :: Maybe Text
- state :: Maybe Text
- reasonCode :: Maybe Text
- description :: Maybe Text
- newInstanceState :: InstanceState
- instanceState_instanceId :: Lens' InstanceState (Maybe Text)
- instanceState_state :: Lens' InstanceState (Maybe Text)
- instanceState_reasonCode :: Lens' InstanceState (Maybe Text)
- instanceState_description :: Lens' InstanceState (Maybe Text)
Documentation
data InstanceState Source #
Information about the state of an EC2 instance.
See: newInstanceState
smart constructor.
InstanceState' | |
|
Instances
newInstanceState :: InstanceState Source #
Create a value of InstanceState
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:
$sel:instanceId:InstanceState'
, instanceState_instanceId
- The ID of the instance.
$sel:state:InstanceState'
, instanceState_state
- The current state of the instance.
Valid values: InService
| OutOfService
| Unknown
$sel:reasonCode:InstanceState'
, instanceState_reasonCode
- Information about the cause of OutOfService
instances. Specifically,
whether the cause is Elastic Load Balancing or the instance.
Valid values: ELB
| Instance
| N/A
$sel:description:InstanceState'
, instanceState_description
- A description of the instance state. This string can contain one or more
of the following messages.
N/A
A transient error occurred. Please try again later.
Instance has failed at least the UnhealthyThreshold number of health checks consecutively.
Instance has not passed the configured HealthyThreshold number of health checks consecutively.
Instance registration is still in progress.
Instance is in the EC2 Availability Zone for which LoadBalancer is not configured to route traffic to.
Instance is not currently registered with the LoadBalancer.
Instance deregistration currently in progress.
Disable Availability Zone is currently in progress.
Instance is in pending state.
Instance is in stopped state.
Instance is in terminated state.
instanceState_instanceId :: Lens' InstanceState (Maybe Text) Source #
The ID of the instance.
instanceState_state :: Lens' InstanceState (Maybe Text) Source #
The current state of the instance.
Valid values: InService
| OutOfService
| Unknown
instanceState_reasonCode :: Lens' InstanceState (Maybe Text) Source #
Information about the cause of OutOfService
instances. Specifically,
whether the cause is Elastic Load Balancing or the instance.
Valid values: ELB
| Instance
| N/A
instanceState_description :: Lens' InstanceState (Maybe Text) Source #
A description of the instance state. This string can contain one or more of the following messages.
N/A
A transient error occurred. Please try again later.
Instance has failed at least the UnhealthyThreshold number of health checks consecutively.
Instance has not passed the configured HealthyThreshold number of health checks consecutively.
Instance registration is still in progress.
Instance is in the EC2 Availability Zone for which LoadBalancer is not configured to route traffic to.
Instance is not currently registered with the LoadBalancer.
Instance deregistration currently in progress.
Disable Availability Zone is currently in progress.
Instance is in pending state.
Instance is in stopped state.
Instance is in terminated state.