amazonka-glue-2.0: Amazon Glue 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.Glue.ListCrawls

Description

Returns all the crawls of a specified crawler. Returns only the crawls that have occurred since the launch date of the crawler history feature, and only retains up to 12 months of crawls. Older crawls will not be returned.

You may use this API to:

  • Retrive all the crawls of a specified crawler.
  • Retrieve all the crawls of a specified crawler within a limited count.
  • Retrieve all the crawls of a specified crawler in a specific time range.
  • Retrieve all the crawls of a specified crawler with a particular state, crawl ID, or DPU hour value.
Synopsis

Creating a Request

data ListCrawls Source #

See: newListCrawls smart constructor.

Constructors

ListCrawls' 

Fields

Instances

Instances details
ToJSON ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

ToHeaders ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

Methods

toHeaders :: ListCrawls -> [Header] #

ToPath ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

ToQuery ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

AWSRequest ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

Associated Types

type AWSResponse ListCrawls #

Generic ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

Associated Types

type Rep ListCrawls :: Type -> Type #

Read ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

Show ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

NFData ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

Methods

rnf :: ListCrawls -> () #

Eq ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

Hashable ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

type AWSResponse ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

type Rep ListCrawls Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

type Rep ListCrawls = D1 ('MetaData "ListCrawls" "Amazonka.Glue.ListCrawls" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "ListCrawls'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CrawlsFilter])) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "crawlerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newListCrawls Source #

Arguments

:: Text

ListCrawls

-> ListCrawls 

Create a value of ListCrawls 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:

ListCrawls, listCrawls_filters - Filters the crawls by the criteria you specify in a list of CrawlsFilter objects.

$sel:maxResults:ListCrawls', listCrawls_maxResults - The maximum number of results to return. The default is 20, and maximum is 100.

ListCrawls, listCrawls_nextToken - A continuation token, if this is a continuation call.

ListCrawls, listCrawls_crawlerName - The name of the crawler whose runs you want to retrieve.

Request Lenses

listCrawls_filters :: Lens' ListCrawls (Maybe [CrawlsFilter]) Source #

Filters the crawls by the criteria you specify in a list of CrawlsFilter objects.

listCrawls_maxResults :: Lens' ListCrawls (Maybe Natural) Source #

The maximum number of results to return. The default is 20, and maximum is 100.

listCrawls_nextToken :: Lens' ListCrawls (Maybe Text) Source #

A continuation token, if this is a continuation call.

listCrawls_crawlerName :: Lens' ListCrawls Text Source #

The name of the crawler whose runs you want to retrieve.

Destructuring the Response

data ListCrawlsResponse Source #

See: newListCrawlsResponse smart constructor.

Constructors

ListCrawlsResponse' 

Fields

  • crawls :: Maybe [CrawlerHistory]

    A list of CrawlerHistory objects representing the crawl runs that meet your criteria.

  • nextToken :: Maybe Text

    A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListCrawlsResponse Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

Associated Types

type Rep ListCrawlsResponse :: Type -> Type #

Read ListCrawlsResponse Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

Show ListCrawlsResponse Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

NFData ListCrawlsResponse Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

Methods

rnf :: ListCrawlsResponse -> () #

Eq ListCrawlsResponse Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

type Rep ListCrawlsResponse Source # 
Instance details

Defined in Amazonka.Glue.ListCrawls

type Rep ListCrawlsResponse = D1 ('MetaData "ListCrawlsResponse" "Amazonka.Glue.ListCrawls" "amazonka-glue-2.0-7miPWwBHdfn8N8SvbpLgE0" 'False) (C1 ('MetaCons "ListCrawlsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "crawls") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CrawlerHistory])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListCrawlsResponse Source #

Create a value of ListCrawlsResponse 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:

ListCrawlsResponse, listCrawlsResponse_crawls - A list of CrawlerHistory objects representing the crawl runs that meet your criteria.

ListCrawls, listCrawlsResponse_nextToken - A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.

$sel:httpStatus:ListCrawlsResponse', listCrawlsResponse_httpStatus - The response's http status code.

Response Lenses

listCrawlsResponse_crawls :: Lens' ListCrawlsResponse (Maybe [CrawlerHistory]) Source #

A list of CrawlerHistory objects representing the crawl runs that meet your criteria.

listCrawlsResponse_nextToken :: Lens' ListCrawlsResponse (Maybe Text) Source #

A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.