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

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type InstanceHealthSummary struct { InstanceHealth *string `locationName:"instanceHealth" type:"string" enum:"InstanceHealthState"` InstanceHealthReason *string `locationName:"instanceHealthReason" type:"string" enum:"InstanceHealthReason"` InstanceName *string `locationName:"instanceName" type:"string"` }

Describes information about the health of the instance.


Type: *string

Describes the overall instance health. Valid values are below.


Type: *string

More information about the instance health. If the instanceHealth is healthy, then an instanceHealthReason value is not provided.

If instanceHealth is initial, the instanceHealthReason value can be one of the following:

  • Lb.RegistrationInProgress - The target instance is in the process of being registered with the load balancer.

  • Lb.InitialHealthChecking - The Lightsail load balancer is still sending the target instance the minimum number of health checks required to determine its health status.

If instanceHealth is unhealthy, the instanceHealthReason value can be one of the following:

  • Instance.ResponseCodeMismatch - The health checks did not return an expected HTTP code.

  • Instance.Timeout - The health check requests timed out.

  • Instance.FailedHealthChecks - The health checks failed because the connection to the target instance timed out, the target instance response was malformed, or the target instance failed the health check for an unknown reason.

  • Lb.InternalError - The health checks failed due to an internal error.

If instanceHealth is unused, the instanceHealthReason value can be one of the following:

  • Instance.NotRegistered - The target instance is not registered with the target group.

  • Instance.NotInUse - The target group is not used by any load balancer, or the target instance is in an Availability Zone that is not enabled for its load balancer.

  • Instance.IpUnusable - The target IP address is reserved for use by a Lightsail load balancer.

  • Instance.InvalidState - The target is in the stopped or terminated state.

If instanceHealth is draining, the instanceHealthReason value can be one of the following:

  • Instance.DeregistrationInProgress - The target instance is in the process of being deregistered and the deregistration delay period has not expired.


Type: *string

The name of the Lightsail instance for which you are requesting health check data.



func (s InstanceHealthSummary) GoString() string

GoString returns the string representation


func (s *InstanceHealthSummary) SetInstanceHealth(v string) *InstanceHealthSummary

SetInstanceHealth sets the InstanceHealth field's value.


func (s *InstanceHealthSummary) SetInstanceHealthReason(v string) *InstanceHealthSummary

SetInstanceHealthReason sets the InstanceHealthReason field's value.


func (s *InstanceHealthSummary) SetInstanceName(v string) *InstanceHealthSummary

SetInstanceName sets the InstanceName field's value.


func (s InstanceHealthSummary) String() string

String returns the string representation

On this page: