libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • 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.

  • sortOrder :: Maybe SearchSortOrder

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

  • maxResults :: Maybe Natural

    The maximum number of results to return.

  • sortBy :: Maybe Text

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

  • resource :: ResourceType

    The name of the Amazon SageMaker resource to search for.

Instances

Instances details
Eq Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Methods

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

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

Read Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Show Search Source # 
Instance details

Defined in Amazonka.SageMaker.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 #

NFData Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Methods

rnf :: Search -> () #

Hashable Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Methods

hashWithSalt :: Int -> Search -> Int #

hash :: Search -> Int #

ToJSON 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 #

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

type Rep Search Source # 
Instance details

Defined in Amazonka.SageMaker.Search

type AWSResponse 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:nextToken: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:sortOrder:Search', search_sortOrder - How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending.

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

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

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

Request Lenses

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_sortOrder :: Lens' Search (Maybe SearchSortOrder) Source #

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

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

The maximum number of results to return.

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

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

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

  • results :: Maybe [SearchRecord]

    A list of SearchRecord objects.

  • 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Read SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Show SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Generic SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Associated Types

type Rep SearchResponse :: Type -> Type #

NFData SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

Methods

rnf :: SearchResponse -> () #

type Rep SearchResponse Source # 
Instance details

Defined in Amazonka.SageMaker.Search

type Rep SearchResponse = D1 ('MetaData "SearchResponse" "Amazonka.SageMaker.Search" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "SearchResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "results") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SearchRecord])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

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

$sel:nextToken: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:httpStatus:SearchResponse', searchResponse_httpStatus - The response's http status code.

Response Lenses

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

A list of SearchRecord objects.

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_httpStatus :: Lens' SearchResponse Int Source #

The response's http status code.