amazonka-sagemaker-2.0: Amazon SageMaker Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SageMaker.Search

Description

Finds Amazon SageMaker resources that match a search query. Matching resources are returned as a list of SearchRecord objects in the response. You can sort the search results by any resource property in a ascending or descending order.

You can query against the following value types: numeric, text, Boolean, and timestamp.

This operation returns paginated results.

Synopsis

Creating a Request

data Search Source #

See: newSearch smart constructor.

Constructors

Search' 

Fields

  • maxResults :: Maybe Natural

    The maximum number of results to return.

  • nextToken :: Maybe Text

    If more than MaxResults resources match the specified SearchExpression, the response includes a NextToken. The NextToken can be passed to the next SearchRequest to continue retrieving results.

  • searchExpression :: Maybe SearchExpression

    A Boolean conditional statement. Resources must satisfy this condition to be included in search results. You must provide at least one subexpression, filter, or nested filter. The maximum number of recursive SubExpressions, NestedFilters, and Filters that can be included in a SearchExpression object is 50.

  • sortBy :: Maybe Text

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

  • sortOrder :: Maybe SearchSortOrder

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

  • resource :: ResourceType

    The name of the Amazon SageMaker resource to search for.

Instances

Instances details
ToJSON Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

ToHeaders Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Methods

toHeaders :: Search -> [Header] #

ToPath Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Methods

toPath :: Search -> ByteString #

ToQuery Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

AWSPager Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

AWSRequest Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Associated Types

type AWSResponse Search #

Generic Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Associated Types

type Rep Search :: Type -> Type #

Methods

from :: Search -> Rep Search x #

to :: Rep Search x -> Search #

Read Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Show Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

NFData Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Methods

rnf :: Search -> () #

Eq Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Methods

(==) :: Search -> Search -> Bool #

(/=) :: Search -> Search -> Bool #

Hashable Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Methods

hashWithSalt :: Int -> Search -> Int #

hash :: Search -> Int #

type AWSResponse Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

type Rep Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

newSearch Source #

Create a value of Search with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:maxResults:Search', search_maxResults - The maximum number of results to return.

Search, search_nextToken - If more than MaxResults resources match the specified SearchExpression, the response includes a NextToken. The NextToken can be passed to the next SearchRequest to continue retrieving results.

$sel:searchExpression:Search', search_searchExpression - A Boolean conditional statement. Resources must satisfy this condition to be included in search results. You must provide at least one subexpression, filter, or nested filter. The maximum number of recursive SubExpressions, NestedFilters, and Filters that can be included in a SearchExpression object is 50.

$sel:sortBy:Search', search_sortBy - The name of the resource property used to sort the SearchResults. The default is LastModifiedTime.

$sel:sortOrder:Search', search_sortOrder - How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending.

$sel:resource:Search', search_resource - The name of the Amazon SageMaker resource to search for.

Request Lenses

search_maxResults :: Lens' Search (Maybe Natural) Source #

The maximum number of results to return.

search_nextToken :: Lens' Search (Maybe Text) Source #

If more than MaxResults resources match the specified SearchExpression, the response includes a NextToken. The NextToken can be passed to the next SearchRequest to continue retrieving results.

search_searchExpression :: Lens' Search (Maybe SearchExpression) Source #

A Boolean conditional statement. Resources must satisfy this condition to be included in search results. You must provide at least one subexpression, filter, or nested filter. The maximum number of recursive SubExpressions, NestedFilters, and Filters that can be included in a SearchExpression object is 50.

search_sortBy :: Lens' Search (Maybe Text) Source #

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

search_sortOrder :: Lens' Search (Maybe SearchSortOrder) Source #

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

search_resource :: Lens' Search ResourceType Source #

The name of the Amazon SageMaker resource to search for.

Destructuring the Response

data SearchResponse Source #

See: newSearchResponse smart constructor.

Constructors

SearchResponse' 

Fields

  • nextToken :: Maybe Text

    If the result of the previous Search request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request.

  • results :: Maybe [SearchRecord]

    A list of SearchRecord objects.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Associated Types

type Rep SearchResponse :: Type -> Type #

Show SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

NFData SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Methods

rnf :: SearchResponse -> () #

Eq SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

type Rep SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

type Rep SearchResponse = D1 ('MetaData "SearchResponse" "Amazonka.SageMaker.Search" "amazonka-sagemaker-2.0-9SyrKZ4KqhsL1qX9u3ILA3" 'False) (C1 ('MetaCons "SearchResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "results") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SearchRecord])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newSearchResponse Source #

Create a value of SearchResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

Search, searchResponse_nextToken - If the result of the previous Search request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request.

$sel:results:SearchResponse', searchResponse_results - A list of SearchRecord objects.

$sel:httpStatus:SearchResponse', searchResponse_httpStatus - The response's http status code.

Response Lenses

searchResponse_nextToken :: Lens' SearchResponse (Maybe Text) Source #

If the result of the previous Search request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request.

searchResponse_results :: Lens' SearchResponse (Maybe [SearchRecord]) Source #

A list of SearchRecord objects.

searchResponse_httpStatus :: Lens' SearchResponse Int Source #

The response's http status code.