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.

ListNamespacesInput

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

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

Filters

A complex type that identifies the namespaces that you want to list. You can choose to list public or private namespaces.

MaxResults

Type: *int64

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

NextToken

Type: *string

For the first ListNamespaces request, omit this value.

If the response contains NextToken, submit another ListNamespaces 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 namespaces and then filters them based on the specified criteria. It's possible that no namespaces in the first MaxResults namespaces matched the specified criteria but that subsequent groups of MaxResults namespaces do contain namespaces that match the criteria.

Method

GoString

func (s ListNamespacesInput) GoString() string

GoString returns the string representation

SetFilters

func (s *ListNamespacesInput) SetFilters(v []*NamespaceFilter) *ListNamespacesInput

SetFilters sets the Filters field's value.

SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

SetNextToken

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

SetNextToken sets the NextToken field's value.

String

func (s ListNamespacesInput) String() string

String returns the string representation

Validate

func (s *ListNamespacesInput) Validate() error

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

On this page: