| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.Backup.ListRestoreJobs
Description
Returns a list of jobs that Backup initiated to restore a saved resource, including details about the recovery process.
Synopsis
- data ListRestoreJobs = ListRestoreJobs' {}
- newListRestoreJobs :: ListRestoreJobs
- listRestoreJobs_byCreatedAfter :: Lens' ListRestoreJobs (Maybe UTCTime)
- listRestoreJobs_byStatus :: Lens' ListRestoreJobs (Maybe RestoreJobStatus)
- listRestoreJobs_byAccountId :: Lens' ListRestoreJobs (Maybe Text)
- listRestoreJobs_byCreatedBefore :: Lens' ListRestoreJobs (Maybe UTCTime)
- listRestoreJobs_nextToken :: Lens' ListRestoreJobs (Maybe Text)
- listRestoreJobs_maxResults :: Lens' ListRestoreJobs (Maybe Natural)
- 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.
Constructors
| ListRestoreJobs' | |
Fields
| |
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: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
| |
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:
$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.
listRestoreJobsResponse_httpStatus :: Lens' ListRestoreJobsResponse Int Source #
The response's http status code.