amazonka-snowball-2.0: Amazon Import/Export Snowball 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.Snowball.ListJobs

Description

Returns an array of JobListEntry objects of the specified length. Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs. Calling this API action in one of the US regions will return jobs from the list of all jobs associated with this account in all US regions.

This operation returns paginated results.

Synopsis

Creating a Request

data ListJobs Source #

See: newListJobs smart constructor.

Constructors

ListJobs' 

Fields

  • maxResults :: Maybe Natural

    The number of JobListEntry objects to return.

  • nextToken :: Maybe Text

    HTTP requests are stateless. To identify what object comes "next" in the list of JobListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.

Instances

Instances details
ToJSON ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

ToHeaders ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

Methods

toHeaders :: ListJobs -> [Header] #

ToPath ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

ToQuery ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

AWSPager ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

AWSRequest ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

Associated Types

type AWSResponse ListJobs #

Generic ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

Associated Types

type Rep ListJobs :: Type -> Type #

Methods

from :: ListJobs -> Rep ListJobs x #

to :: Rep ListJobs x -> ListJobs #

Read ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

Show ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

NFData ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

Methods

rnf :: ListJobs -> () #

Eq ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

Hashable ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

Methods

hashWithSalt :: Int -> ListJobs -> Int #

hash :: ListJobs -> Int #

type AWSResponse ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

type Rep ListJobs Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

type Rep ListJobs = D1 ('MetaData "ListJobs" "Amazonka.Snowball.ListJobs" "amazonka-snowball-2.0-6vnXQdr1CFv4zLyXDWX7zH" 'False) (C1 ('MetaCons "ListJobs'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListJobs :: ListJobs Source #

Create a value of ListJobs 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:ListJobs', listJobs_maxResults - The number of JobListEntry objects to return.

ListJobs, listJobs_nextToken - HTTP requests are stateless. To identify what object comes "next" in the list of JobListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.

Request Lenses

listJobs_maxResults :: Lens' ListJobs (Maybe Natural) Source #

The number of JobListEntry objects to return.

listJobs_nextToken :: Lens' ListJobs (Maybe Text) Source #

HTTP requests are stateless. To identify what object comes "next" in the list of JobListEntry objects, you have the option of specifying NextToken as the starting point for your returned list.

Destructuring the Response

data ListJobsResponse Source #

See: newListJobsResponse smart constructor.

Constructors

ListJobsResponse' 

Fields

  • jobListEntries :: Maybe [JobListEntry]

    Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs.

  • nextToken :: Maybe Text

    HTTP requests are stateless. If you use this automatically generated NextToken value in your next ListJobs call, your returned JobListEntry objects will start from this point in the array.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListJobsResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

Associated Types

type Rep ListJobsResponse :: Type -> Type #

Read ListJobsResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

Show ListJobsResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

NFData ListJobsResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

Methods

rnf :: ListJobsResponse -> () #

Eq ListJobsResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

type Rep ListJobsResponse Source # 
Instance details

Defined in Amazonka.Snowball.ListJobs

type Rep ListJobsResponse = D1 ('MetaData "ListJobsResponse" "Amazonka.Snowball.ListJobs" "amazonka-snowball-2.0-6vnXQdr1CFv4zLyXDWX7zH" 'False) (C1 ('MetaCons "ListJobsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "jobListEntries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [JobListEntry])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListJobsResponse Source #

Create a value of ListJobsResponse 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:jobListEntries:ListJobsResponse', listJobsResponse_jobListEntries - Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs.

ListJobs, listJobsResponse_nextToken - HTTP requests are stateless. If you use this automatically generated NextToken value in your next ListJobs call, your returned JobListEntry objects will start from this point in the array.

$sel:httpStatus:ListJobsResponse', listJobsResponse_httpStatus - The response's http status code.

Response Lenses

listJobsResponse_jobListEntries :: Lens' ListJobsResponse (Maybe [JobListEntry]) Source #

Each JobListEntry object contains a job's state, a job's ID, and a value that indicates whether the job is a job part, in the case of export jobs.

listJobsResponse_nextToken :: Lens' ListJobsResponse (Maybe Text) Source #

HTTP requests are stateless. If you use this automatically generated NextToken value in your next ListJobs call, your returned JobListEntry objects will start from this point in the array.

listJobsResponse_httpStatus :: Lens' ListJobsResponse Int Source #

The response's http status code.