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.

ListInstancesInput

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

type ListInstancesInput struct { MaxResults *int64 `min:"1" type:"integer"` NextToken *string `type:"string"` ServiceId *string `type:"string" required:"true"` }

MaxResults

Type: *int64

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

NextToken

Type: *string

For the first ListInstances request, omit this value.

If more than MaxResults instances match the specified criteria, you can submit another ListInstances 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 you want to list instances for.

ServiceId is a required field

Method

GoString

func (s ListInstancesInput) GoString() string

GoString returns the string representation

SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

SetNextToken

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

SetNextToken sets the NextToken field's value.

SetServiceId

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

SetServiceId sets the ServiceId field's value.

String

func (s ListInstancesInput) String() string

String returns the string representation

Validate

func (s *ListInstancesInput) Validate() error

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

On this page: