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.

LoadBalancerTargetGroupState

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

type LoadBalancerTargetGroupState struct { LoadBalancerTargetGroupARN *string `min:"1" type:"string"` State *string `min:"1" type:"string"` }

Describes the state of a target group.

If you attach a target group to an existing Auto Scaling group, the initial state is Adding. The state transitions to Added after all Auto Scaling instances are registered with the target group. If Elastic Load Balancing health checks are enabled, the state transitions to InService after at least one Auto Scaling instance passes the health check. If EC2 health checks are enabled instead, the target group remains in the Added state.

LoadBalancerTargetGroupARN

Type: *string

The Amazon Resource Name (ARN) of the target group.

State

Type: *string

The state of the target group.

  • Adding - The Auto Scaling instances are being registered with the target group.

  • Added - All Auto Scaling instances are registered with the target group.

  • InService - At least one Auto Scaling instance passed an ELB health check.

  • Removing - The Auto Scaling instances are being deregistered from the target group. If connection draining is enabled, Elastic Load Balancing waits for in-flight requests to complete before deregistering the instances.

  • Removed - All Auto Scaling instances are deregistered from the target group.

Method

GoString

func (s LoadBalancerTargetGroupState) GoString() string

GoString returns the string representation

SetLoadBalancerTargetGroupARN

func (s *LoadBalancerTargetGroupState) SetLoadBalancerTargetGroupARN(v string) *LoadBalancerTargetGroupState

SetLoadBalancerTargetGroupARN sets the LoadBalancerTargetGroupARN field's value.

SetState

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

SetState sets the State field's value.

String

func (s LoadBalancerTargetGroupState) String() string

String returns the string representation

On this page: