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.

ListServicesInput

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

type ListServicesInput struct { Filters []*ServiceFilter `type:"list"` MaxResults *int64 `min:"1" type:"integer"` NextToken *string `type:"string"` }

Filters

A complex type that lets you specify the namespaces that you want to list services for.

MaxResults

Type: *int64

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

NextToken

Type: *string

For the first ListServices request, omit this value.

If the response contains NextToken, submit another ListServices request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

AWS Cloud Map gets MaxResults services and then filters them based on the specified criteria. It's possible that no services in the first MaxResults services matched the specified criteria but that subsequent groups of MaxResults services do contain services that match the criteria.

Method

GoString

func (s ListServicesInput) GoString() string

GoString returns the string representation

SetFilters

func (s *ListServicesInput) SetFilters(v []*ServiceFilter) *ListServicesInput

SetFilters sets the Filters field's value.

SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

SetNextToken

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

SetNextToken sets the NextToken field's value.

String

func (s ListServicesInput) String() string

String returns the string representation

Validate

func (s *ListServicesInput) Validate() error

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

On this page: