amazonka-drs-2.0: Amazon Elastic Disaster Recovery 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.DrS.DescribeJobs

Description

Returns a list of Jobs. Use the JobsID and fromDate and toDate filters to limit which jobs are returned. The response is sorted by creationDataTime - latest date first. Jobs are created by the StartRecovery, TerminateRecoveryInstances and StartFailbackLaunch APIs. Jobs are also created by DiagnosticLaunch and TerminateDiagnosticInstances, which are APIs available only to *Support* and only used in response to relevant support tickets.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeJobs Source #

See: newDescribeJobs smart constructor.

Constructors

DescribeJobs' 

Fields

Instances

Instances details
ToJSON DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

ToHeaders DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

ToPath DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

ToQuery DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

AWSPager DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

AWSRequest DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

Associated Types

type AWSResponse DescribeJobs #

Generic DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

Associated Types

type Rep DescribeJobs :: Type -> Type #

Read DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

Show DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

NFData DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

Methods

rnf :: DescribeJobs -> () #

Eq DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

Hashable DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

type AWSResponse DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

type Rep DescribeJobs Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

type Rep DescribeJobs = D1 ('MetaData "DescribeJobs" "Amazonka.DrS.DescribeJobs" "amazonka-drs-2.0-Jcy074h2jPgFhWHQx96blx" 'False) (C1 ('MetaCons "DescribeJobs'" 'PrefixI 'True) (S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DescribeJobsRequestFilters)) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDescribeJobs :: DescribeJobs Source #

Create a value of DescribeJobs 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:filters:DescribeJobs', describeJobs_filters - A set of filters by which to return Jobs.

$sel:maxResults:DescribeJobs', describeJobs_maxResults - Maximum number of Jobs to retrieve.

DescribeJobs, describeJobs_nextToken - The token of the next Job to retrieve.

Request Lenses

describeJobs_filters :: Lens' DescribeJobs (Maybe DescribeJobsRequestFilters) Source #

A set of filters by which to return Jobs.

describeJobs_maxResults :: Lens' DescribeJobs (Maybe Natural) Source #

Maximum number of Jobs to retrieve.

describeJobs_nextToken :: Lens' DescribeJobs (Maybe Text) Source #

The token of the next Job to retrieve.

Destructuring the Response

data DescribeJobsResponse Source #

See: newDescribeJobsResponse smart constructor.

Constructors

DescribeJobsResponse' 

Fields

Instances

Instances details
Generic DescribeJobsResponse Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

Associated Types

type Rep DescribeJobsResponse :: Type -> Type #

Show DescribeJobsResponse Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

NFData DescribeJobsResponse Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

Methods

rnf :: DescribeJobsResponse -> () #

Eq DescribeJobsResponse Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

type Rep DescribeJobsResponse Source # 
Instance details

Defined in Amazonka.DrS.DescribeJobs

type Rep DescribeJobsResponse = D1 ('MetaData "DescribeJobsResponse" "Amazonka.DrS.DescribeJobs" "amazonka-drs-2.0-Jcy074h2jPgFhWHQx96blx" 'False) (C1 ('MetaCons "DescribeJobsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "items") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Job])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeJobsResponse Source #

Create a value of DescribeJobsResponse 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:items:DescribeJobsResponse', describeJobsResponse_items - An array of Jobs.

DescribeJobs, describeJobsResponse_nextToken - The token of the next Job to retrieve.

$sel:httpStatus:DescribeJobsResponse', describeJobsResponse_httpStatus - The response's http status code.

Response Lenses

describeJobsResponse_nextToken :: Lens' DescribeJobsResponse (Maybe Text) Source #

The token of the next Job to retrieve.