Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- data ListRestoreJobs = ListRestoreJobs' {}
- newListRestoreJobs :: ListRestoreJobs
- listRestoreJobs_byAccountId :: Lens' ListRestoreJobs (Maybe Text)
- listRestoreJobs_byCompleteAfter :: Lens' ListRestoreJobs (Maybe UTCTime)
- listRestoreJobs_byCompleteBefore :: Lens' ListRestoreJobs (Maybe UTCTime)
- listRestoreJobs_byCreatedAfter :: Lens' ListRestoreJobs (Maybe UTCTime)
- listRestoreJobs_byCreatedBefore :: Lens' ListRestoreJobs (Maybe UTCTime)
- listRestoreJobs_byStatus :: Lens' ListRestoreJobs (Maybe RestoreJobStatus)
- listRestoreJobs_maxResults :: Lens' ListRestoreJobs (Maybe Natural)
- listRestoreJobs_nextToken :: Lens' ListRestoreJobs (Maybe Text)
- data ListRestoreJobsResponse = ListRestoreJobsResponse' {}
- newListRestoreJobsResponse :: Int -> ListRestoreJobsResponse
- listRestoreJobsResponse_nextToken :: Lens' ListRestoreJobsResponse (Maybe Text)
- listRestoreJobsResponse_restoreJobs :: Lens' ListRestoreJobsResponse (Maybe [RestoreJobsListMember])
- listRestoreJobsResponse_httpStatus :: Lens' ListRestoreJobsResponse Int
Creating a Request
data ListRestoreJobs Source #
See: newListRestoreJobs
smart constructor.
ListRestoreJobs' | |
|
Instances
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.
ListRestoreJobsResponse' | |
|
Instances
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.
listRestoreJobsResponse_httpStatus :: Lens' ListRestoreJobsResponse Int Source #
The response's http status code.