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.

DiscoverInstancesInput

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

type DiscoverInstancesInput struct { HealthStatus *string `type:"string" enum:"HealthStatusFilter"` MaxResults *int64 `min:"1" type:"integer"` NamespaceName *string `type:"string" required:"true"` QueryParameters map[string]*string `type:"map"` ServiceName *string `type:"string" required:"true"` }

HealthStatus

Type: *string

The health status of the instances that you want to discover.

MaxResults

Type: *int64

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

NamespaceName

Type: *string

The name of the namespace that you specified when you registered the instance.

NamespaceName is a required field

QueryParameters

Type: map[string]*string

A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all the specified key/value pairs will be returned.

ServiceName

Type: *string

The name of the service that you specified when you registered the instance.

ServiceName is a required field

Method

GoString

func (s DiscoverInstancesInput) GoString() string

GoString returns the string representation

SetHealthStatus

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

SetHealthStatus sets the HealthStatus field's value.

SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

SetNamespaceName

func (s *DiscoverInstancesInput) SetNamespaceName(v string) *DiscoverInstancesInput

SetNamespaceName sets the NamespaceName field's value.

SetQueryParameters

func (s *DiscoverInstancesInput) SetQueryParameters(v map[string]*string) *DiscoverInstancesInput

SetQueryParameters sets the QueryParameters field's value.

SetServiceName

func (s *DiscoverInstancesInput) SetServiceName(v string) *DiscoverInstancesInput

SetServiceName sets the ServiceName field's value.

String

func (s DiscoverInstancesInput) String() string

String returns the string representation

Validate

func (s *DiscoverInstancesInput) Validate() error

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

On this page: