amazonka-backup-2.0: Amazon Backup 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.Backup.ListRestoreJobs

Description

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

This operation returns paginated results.

Synopsis

Creating a Request

data ListRestoreJobs Source #

See: newListRestoreJobs smart constructor.

Constructors

ListRestoreJobs' 

Fields

  • byAccountId :: Maybe Text

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

  • byCompleteAfter :: Maybe POSIX

    Returns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).

  • byCompleteBefore :: Maybe POSIX

    Returns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).

  • byCreatedAfter :: Maybe POSIX

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

  • byCreatedBefore :: Maybe POSIX

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

  • byStatus :: Maybe RestoreJobStatus

    Returns only restore jobs associated with the specified job status.

  • maxResults :: Maybe Natural

    The maximum number of items to be returned.

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

Instances

Instances details
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

AWSPager ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

AWSRequest ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Associated Types

type AWSResponse ListRestoreJobs #

Generic ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Associated Types

type Rep ListRestoreJobs :: Type -> Type #

Read ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Show ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

NFData ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Methods

rnf :: ListRestoreJobs -> () #

Eq ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Hashable ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

type AWSResponse ListRestoreJobs Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

type Rep 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:byAccountId:ListRestoreJobs', listRestoreJobs_byAccountId - The account ID to list the jobs from. Returns only restore jobs associated with the specified account ID.

$sel:byCompleteAfter:ListRestoreJobs', listRestoreJobs_byCompleteAfter - Returns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).

$sel:byCompleteBefore:ListRestoreJobs', listRestoreJobs_byCompleteBefore - Returns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).

$sel:byCreatedAfter:ListRestoreJobs', listRestoreJobs_byCreatedAfter - Returns only restore jobs that were created after the specified date.

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

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

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

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.

Request Lenses

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_byCompleteAfter :: Lens' ListRestoreJobs (Maybe UTCTime) Source #

Returns only copy jobs completed after a date expressed in Unix format and Coordinated Universal Time (UTC).

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

Returns only copy jobs completed before a date expressed in Unix format and Coordinated Universal Time (UTC).

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

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

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

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

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

Returns only restore jobs associated with the specified job status.

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

The maximum number of items to be returned.

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.

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
Generic ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Associated Types

type Rep ListRestoreJobsResponse :: Type -> Type #

Read ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Show ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

NFData ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

Methods

rnf :: ListRestoreJobsResponse -> () #

Eq ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

type Rep ListRestoreJobsResponse Source # 
Instance details

Defined in Amazonka.Backup.ListRestoreJobs

type Rep ListRestoreJobsResponse = D1 ('MetaData "ListRestoreJobsResponse" "Amazonka.Backup.ListRestoreJobs" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" '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:

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.