AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

InstanceState

import "github.com/aws/aws-sdk-go/service/elb"

type InstanceState struct { Description *string `type:"string"` InstanceId *string `type:"string"` ReasonCode *string `type:"string"` State *string `type:"string"` }

Information about the state of an EC2 instance.

Description

Type: *string

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.

InstanceId

Type: *string

The ID of the instance.

ReasonCode

Type: *string

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

Valid values: ELB | Instance | N/A

State

Type: *string

The current state of the instance.

Valid values: InService | OutOfService | Unknown

Method

GoString

func (s InstanceState) GoString() string

GoString returns the string representation

SetDescription

func (s *InstanceState) SetDescription(v string) *InstanceState

SetDescription sets the Description field's value.

SetInstanceId

func (s *InstanceState) SetInstanceId(v string) *InstanceState

SetInstanceId sets the InstanceId field's value.

SetReasonCode

func (s *InstanceState) SetReasonCode(v string) *InstanceState

SetReasonCode sets the ReasonCode field's value.

SetState

func (s *InstanceState) SetState(v string) *InstanceState

SetState sets the State field's value.

String

func (s InstanceState) String() string

String returns the string representation

On this page: