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.

SearchInput

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

type SearchInput struct { MaxResults *int64 `min:"1" type:"integer"` NextToken *string `type:"string"` Resource *string `type:"string" required:"true" enum:"ResourceType"` SearchExpression *SearchExpression `type:"structure"` SortBy *string `min:"1" type:"string"` SortOrder *string `type:"string" enum:"SearchSortOrder"` }

MaxResults

Type: *int64

The maximum number of results to return in a SearchResponse.

NextToken

Type: *string

If more than MaxResults resource objects match the specified SearchExpression, the SearchResponse includes a NextToken. The NextToken can be passed to the next SearchRequest to continue retrieving results for the specified SearchExpression and Sort parameters.

Resource

Type: *string

The name of the Amazon SageMaker resource to search for. Currently, the only valid Resource value is TrainingJob.

Resource is a required field

SearchExpression

A multi-expression that searches for the specified resource or resources in a search. All resource objects that satisfy the expression's condition are included in the search results. You must specify at least one subexpression, filter, or nested filter. A SearchExpression can contain up to twenty elements.

A SearchExpression contains the following components:

  • A list of Filter objects. Each filter defines a simple Boolean expression comprised of a resource property name, Boolean operator, and value.

  • A list of NestedFilter objects. Each nested filter defines a list of Boolean expressions using a list of resource properties. A nested filter is satisfied if a single object in the list satisfies all Boolean expressions.

  • A list of SearchExpression objects. A search expression object can be nested in a list of search expression objects.

  • A Boolean operator: And or Or.

SortBy

Type: *string

The name of the resource property used to sort the SearchResults. The default is LastModifiedTime.

SortOrder

Type: *string

How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending.

Method

GoString

func (s SearchInput) GoString() string

GoString returns the string representation

SetMaxResults

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

SetMaxResults sets the MaxResults field's value.

SetNextToken

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

SetNextToken sets the NextToken field's value.

SetResource

func (s *SearchInput) SetResource(v string) *SearchInput

SetResource sets the Resource field's value.

SetSearchExpression

func (s *SearchInput) SetSearchExpression(v *SearchExpression) *SearchInput

SetSearchExpression sets the SearchExpression field's value.

SetSortBy

func (s *SearchInput) SetSortBy(v string) *SearchInput

SetSortBy sets the SortBy field's value.

SetSortOrder

func (s *SearchInput) SetSortOrder(v string) *SearchInput

SetSortOrder sets the SortOrder field's value.

String

func (s SearchInput) String() string

String returns the string representation

Validate

func (s *SearchInput) Validate() error

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

On this page: