libZSservicesZSamazonka-backupZSamazonka-backup
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.Backup.ListRestoreJobs

Description

Returns a list of jobs that Backup initiated to restore a saved resource, including details about the recovery process.

Synopsis

Creating a Request

data ListRestoreJobs Source #

See: newListRestoreJobs smart constructor.

Constructors

ListRestoreJobs' 

Fields

  • byCreatedAfter :: Maybe POSIX

    Returns only restore jobs that were created after the specified date.

  • byStatus :: Maybe RestoreJobStatus

    Returns only restore jobs associated with the specified job status.

  • byAccountId :: Maybe Text

    The account ID to list the jobs from. Returns only restore jobs associated with the specified account ID.

  • byCreatedBefore :: Maybe POSIX

    Returns only restore jobs that were created before the specified date.

  • nextToken :: Maybe Text

    The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

  • maxResults :: Maybe Natural

    The maximum number of items to be returned.

Instances

Instances details
Eq ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Read ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Show ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Generic ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Associated Types

type Rep ListRestoreJobs :: Type -> Type #

NFData ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Methods

rnf :: ListRestoreJobs -> () #

Hashable ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

AWSRequest ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Associated Types

type AWSResponse ListRestoreJobs #

ToHeaders ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

ToPath ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

ToQuery ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

type Rep ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

type Rep ListRestoreJobs = D1 ('MetaData "ListRestoreJobs" "Amazonka.Backup.ListRestoreJobs" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "ListRestoreJobs'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "byCreatedAfter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "byStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RestoreJobStatus)) :*: S1 ('MetaSel ('Just "byAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "byCreatedBefore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))))
type AWSResponse ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

newListRestoreJobs :: ListRestoreJobs Source #

Create a value of ListRestoreJobs 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:byCreatedAfter:ListRestoreJobs', listRestoreJobs_byCreatedAfter - Returns only restore jobs that were created after the specified date.

$sel:byStatus:ListRestoreJobs', listRestoreJobs_byStatus - Returns only restore jobs associated with the specified job status.

$sel:byAccountId:ListRestoreJobs', listRestoreJobs_byAccountId - The account ID to list the jobs from. Returns only restore jobs associated with the specified account ID.

$sel:byCreatedBefore:ListRestoreJobs', listRestoreJobs_byCreatedBefore - Returns only restore jobs that were created before the specified date.

$sel:nextToken:ListRestoreJobs', listRestoreJobs_nextToken - The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

$sel:maxResults:ListRestoreJobs', listRestoreJobs_maxResults - The maximum number of items to be returned.

Request Lenses

listRestoreJobs_byCreatedAfter :: Lens' ListRestoreJobs (Maybe UTCTime) Source #

Returns only restore jobs that were created after the specified date.

listRestoreJobs_byStatus :: Lens' ListRestoreJobs (Maybe RestoreJobStatus) Source #

Returns only restore jobs associated with the specified job status.

listRestoreJobs_byAccountId :: Lens' ListRestoreJobs (Maybe Text) Source #

The account ID to list the jobs from. Returns only restore jobs associated with the specified account ID.

listRestoreJobs_byCreatedBefore :: Lens' ListRestoreJobs (Maybe UTCTime) Source #

Returns only restore jobs that were created before the specified date.

listRestoreJobs_nextToken :: Lens' ListRestoreJobs (Maybe Text) Source #

The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

listRestoreJobs_maxResults :: Lens' ListRestoreJobs (Maybe Natural) Source #

The maximum number of items to be returned.

Destructuring the Response

data ListRestoreJobsResponse Source #

See: newListRestoreJobsResponse smart constructor.

Constructors

ListRestoreJobsResponse' 

Fields

  • nextToken :: Maybe Text

    The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

  • restoreJobs :: Maybe [RestoreJobsListMember]

    An array of objects that contain detailed information about jobs to restore saved resources.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Read ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Show ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Generic ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Associated Types

type Rep ListRestoreJobsResponse :: Type -> Type #

NFData ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Methods

rnf :: ListRestoreJobsResponse -> () #

type Rep ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

type Rep ListRestoreJobsResponse = D1 ('MetaData "ListRestoreJobsResponse" "Amazonka.Backup.ListRestoreJobs" "libZSservicesZSamazonka-backupZSamazonka-backup" 'False) (C1 ('MetaCons "ListRestoreJobsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "restoreJobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RestoreJobsListMember])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListRestoreJobsResponse Source #

Create a value of ListRestoreJobsResponse 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:ListRestoreJobs', listRestoreJobsResponse_nextToken - The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

$sel:restoreJobs:ListRestoreJobsResponse', listRestoreJobsResponse_restoreJobs - An array of objects that contain detailed information about jobs to restore saved resources.

$sel:httpStatus:ListRestoreJobsResponse', listRestoreJobsResponse_httpStatus - The response's http status code.

Response Lenses

listRestoreJobsResponse_nextToken :: Lens' ListRestoreJobsResponse (Maybe Text) Source #

The next item following a partial list of returned items. For example, if a request is made to return maxResults number of items, NextToken allows you to return more items in your list starting at the location pointed to by the next token.

listRestoreJobsResponse_restoreJobs :: Lens' ListRestoreJobsResponse (Maybe [RestoreJobsListMember]) Source #

An array of objects that contain detailed information about jobs to restore saved resources.