libZSservicesZSamazonka-elbZSamazonka-elb
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ELB.Types.InstanceState

Description

 
Synopsis

Documentation

data InstanceState Source #

Information about the state of an EC2 instance.

See: newInstanceState smart constructor.

Constructors

InstanceState' 

Fields

  • instanceId :: Maybe Text

    The ID of the instance.

  • state :: Maybe Text

    The current state of the instance.

    Valid values: InService | OutOfService | Unknown

  • reasonCode :: Maybe Text

    Information about the cause of OutOfService instances. Specifically, whether the cause is Elastic Load Balancing or the instance.

    Valid values: ELB | Instance | N/A

  • description :: Maybe Text

    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.

Instances

Instances details
Eq InstanceState Source # 
Instance details

Defined in Amazonka.ELB.Types.InstanceState

Read InstanceState Source # 
Instance details

Defined in Amazonka.ELB.Types.InstanceState

Show InstanceState Source # 
Instance details

Defined in Amazonka.ELB.Types.InstanceState

Generic InstanceState Source # 
Instance details

Defined in Amazonka.ELB.Types.InstanceState

Associated Types

type Rep InstanceState :: Type -> Type #

NFData InstanceState Source # 
Instance details

Defined in Amazonka.ELB.Types.InstanceState

Methods

rnf :: InstanceState -> () #

Hashable InstanceState Source # 
Instance details

Defined in Amazonka.ELB.Types.InstanceState

FromXML InstanceState Source # 
Instance details

Defined in Amazonka.ELB.Types.InstanceState

type Rep InstanceState Source # 
Instance details

Defined in Amazonka.ELB.Types.InstanceState

type Rep InstanceState = D1 ('MetaData "InstanceState" "Amazonka.ELB.Types.InstanceState" "libZSservicesZSamazonka-elbZSamazonka-elb" 'False) (C1 ('MetaCons "InstanceState'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "reasonCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

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_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.