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.

SetInstanceHealthInput

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

type SetInstanceHealthInput struct { HealthStatus *string `min:"1" type:"string" required:"true"` InstanceId *string `min:"1" type:"string" required:"true"` ShouldRespectGracePeriod *bool `type:"boolean"` }

HealthStatus

Type: *string

The health status of the instance. Set to Healthy to have the instance remain in service. Set to Unhealthy to have the instance be out of service. Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.

HealthStatus is a required field

InstanceId

Type: *string

The ID of the instance.

InstanceId is a required field

ShouldRespectGracePeriod

Type: *bool

If the Auto Scaling group of the specified instance has a HealthCheckGracePeriod specified for the group, by default, this call respects the grace period. Set this to False, to have the call not respect the grace period associated with the group.

For more information about the health check grace period, see CreateAutoScalingGroup.

Method

GoString

func (s SetInstanceHealthInput) GoString() string

GoString returns the string representation

SetHealthStatus

func (s *SetInstanceHealthInput) SetHealthStatus(v string) *SetInstanceHealthInput

SetHealthStatus sets the HealthStatus field's value.

SetInstanceId

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

SetInstanceId sets the InstanceId field's value.

SetShouldRespectGracePeriod

func (s *SetInstanceHealthInput) SetShouldRespectGracePeriod(v bool) *SetInstanceHealthInput

SetShouldRespectGracePeriod sets the ShouldRespectGracePeriod field's value.

String

func (s SetInstanceHealthInput) String() string

String returns the string representation

Validate

func (s *SetInstanceHealthInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: