Skip to content

/AWS1/CL_ELBINSTANCESTATE

Information about the state of an EC2 instance.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_instanceid TYPE /AWS1/ELBINSTANCEID /AWS1/ELBINSTANCEID

The ID of the instance.

iv_state TYPE /AWS1/ELBSTATE /AWS1/ELBSTATE

The current state of the instance.

Valid values: InService | OutOfService | Unknown

iv_reasoncode TYPE /AWS1/ELBREASONCODE /AWS1/ELBREASONCODE

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

Valid values: ELB | Instance | N/A

iv_description TYPE /AWS1/ELBDESCRIPTION /AWS1/ELBDESCRIPTION

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.


Queryable Attributes

InstanceId

The ID of the instance.

Accessible with the following methods

Method Description
GET_INSTANCEID() Getter for INSTANCEID, with configurable default
ASK_INSTANCEID() Getter for INSTANCEID w/ exceptions if field has no value
HAS_INSTANCEID() Determine if INSTANCEID has a value

State

The current state of the instance.

Valid values: InService | OutOfService | Unknown

Accessible with the following methods

Method Description
GET_STATE() Getter for STATE, with configurable default
ASK_STATE() Getter for STATE w/ exceptions if field has no value
HAS_STATE() Determine if STATE has a value

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

Accessible with the following methods

Method Description
GET_REASONCODE() Getter for REASONCODE, with configurable default
ASK_REASONCODE() Getter for REASONCODE w/ exceptions if field has no value
HAS_REASONCODE() Determine if REASONCODE has a value

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.

Accessible with the following methods

Method Description
GET_DESCRIPTION() Getter for DESCRIPTION, with configurable default
ASK_DESCRIPTION() Getter for DESCRIPTION w/ exceptions if field has no value
HAS_DESCRIPTION() Determine if DESCRIPTION has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_INSTANCESTATES

TYPES TT_INSTANCESTATES TYPE STANDARD TABLE OF REF TO /AWS1/CL_ELBINSTANCESTATE WITH DEFAULT KEY
.