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.

GetInstancesHealthStatusInput

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

type GetInstancesHealthStatusInput struct { Instances []*string `min:"1" type:"list"` MaxResults *int64 `min:"1" type:"integer"` NextToken *string `type:"string"` ServiceId *string `type:"string" required:"true"` }

Instances

Type: []*string

An array that contains the IDs of all the instances that you want to get the health status for.

If you omit Instances, AWS Cloud Map returns the health status for all the instances that are associated with the specified service.

To get the IDs for the instances that you've registered by using a specified service, submit a ListInstances request.

MaxResults

Type: *int64

The maximum number of instances that you want AWS Cloud Map to return in the response to a GetInstancesHealthStatus request. If you don't specify a value for MaxResults, AWS Cloud Map returns up to 100 instances.

NextToken

Type: *string

For the first GetInstancesHealthStatus request, omit this value.

If more than MaxResults instances match the specified criteria, you can submit another GetInstancesHealthStatus request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

ServiceId

Type: *string

The ID of the service that the instance is associated with.

ServiceId is a required field

Method

GoString

func (s GetInstancesHealthStatusInput) GoString() string

GoString returns the string representation

SetInstances

func (s *GetInstancesHealthStatusInput) SetInstances(v []*string) *GetInstancesHealthStatusInput

SetInstances sets the Instances field's value.

SetMaxResults

func (s *GetInstancesHealthStatusInput) SetMaxResults(v int64) *GetInstancesHealthStatusInput

SetMaxResults sets the MaxResults field's value.

SetNextToken

func (s *GetInstancesHealthStatusInput) SetNextToken(v string) *GetInstancesHealthStatusInput

SetNextToken sets the NextToken field's value.

SetServiceId

func (s *GetInstancesHealthStatusInput) SetServiceId(v string) *GetInstancesHealthStatusInput

SetServiceId sets the ServiceId field's value.

String

func (s GetInstancesHealthStatusInput) String() string

String returns the string representation

Validate

func (s *GetInstancesHealthStatusInput) Validate() error

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

On this page: