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 |
Returns a list of existing backup jobs for an authenticated account for the last 30 days. For a longer period of time, consider using these monitoring tools.
Synopsis
- data ListBackupJobs = ListBackupJobs' {}
- newListBackupJobs :: ListBackupJobs
- listBackupJobs_byResourceArn :: Lens' ListBackupJobs (Maybe Text)
- listBackupJobs_byCreatedAfter :: Lens' ListBackupJobs (Maybe UTCTime)
- listBackupJobs_byAccountId :: Lens' ListBackupJobs (Maybe Text)
- listBackupJobs_byCreatedBefore :: Lens' ListBackupJobs (Maybe UTCTime)
- listBackupJobs_byBackupVaultName :: Lens' ListBackupJobs (Maybe Text)
- listBackupJobs_byResourceType :: Lens' ListBackupJobs (Maybe Text)
- listBackupJobs_nextToken :: Lens' ListBackupJobs (Maybe Text)
- listBackupJobs_byState :: Lens' ListBackupJobs (Maybe BackupJobState)
- listBackupJobs_maxResults :: Lens' ListBackupJobs (Maybe Natural)
- data ListBackupJobsResponse = ListBackupJobsResponse' {
- backupJobs :: Maybe [BackupJob]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListBackupJobsResponse :: Int -> ListBackupJobsResponse
- listBackupJobsResponse_backupJobs :: Lens' ListBackupJobsResponse (Maybe [BackupJob])
- listBackupJobsResponse_nextToken :: Lens' ListBackupJobsResponse (Maybe Text)
- listBackupJobsResponse_httpStatus :: Lens' ListBackupJobsResponse Int
Creating a Request
data ListBackupJobs Source #
See: newListBackupJobs
smart constructor.
ListBackupJobs' | |
|
Instances
newListBackupJobs :: ListBackupJobs Source #
Create a value of ListBackupJobs
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:byResourceArn:ListBackupJobs'
, listBackupJobs_byResourceArn
- Returns only backup jobs that match the specified resource Amazon
Resource Name (ARN).
$sel:byCreatedAfter:ListBackupJobs'
, listBackupJobs_byCreatedAfter
- Returns only backup jobs that were created after the specified date.
$sel:byAccountId:ListBackupJobs'
, listBackupJobs_byAccountId
- The account ID to list the jobs from. Returns only backup jobs
associated with the specified account ID.
If used from an Organizations management account, passing *
returns
all jobs across the organization.
$sel:byCreatedBefore:ListBackupJobs'
, listBackupJobs_byCreatedBefore
- Returns only backup jobs that were created before the specified date.
$sel:byBackupVaultName:ListBackupJobs'
, listBackupJobs_byBackupVaultName
- Returns only backup jobs that will be stored in the specified backup
vault. Backup vaults are identified by names that are unique to the
account used to create them and the Amazon Web Services Region where
they are created. They consist of lowercase letters, numbers, and
hyphens.
$sel:byResourceType:ListBackupJobs'
, listBackupJobs_byResourceType
- Returns only backup jobs for the specified resources:
DynamoDB
for Amazon DynamoDBEBS
for Amazon Elastic Block StoreEC2
for Amazon Elastic Compute CloudEFS
for Amazon Elastic File SystemRDS
for Amazon Relational Database ServiceAurora
for Amazon AuroraStorage Gateway
for Storage Gateway
$sel:nextToken:ListBackupJobs'
, listBackupJobs_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:byState:ListBackupJobs'
, listBackupJobs_byState
- Returns only backup jobs that are in the specified state.
$sel:maxResults:ListBackupJobs'
, listBackupJobs_maxResults
- The maximum number of items to be returned.
Request Lenses
listBackupJobs_byResourceArn :: Lens' ListBackupJobs (Maybe Text) Source #
Returns only backup jobs that match the specified resource Amazon Resource Name (ARN).
listBackupJobs_byCreatedAfter :: Lens' ListBackupJobs (Maybe UTCTime) Source #
Returns only backup jobs that were created after the specified date.
listBackupJobs_byAccountId :: Lens' ListBackupJobs (Maybe Text) Source #
The account ID to list the jobs from. Returns only backup jobs associated with the specified account ID.
If used from an Organizations management account, passing *
returns
all jobs across the organization.
listBackupJobs_byCreatedBefore :: Lens' ListBackupJobs (Maybe UTCTime) Source #
Returns only backup jobs that were created before the specified date.
listBackupJobs_byBackupVaultName :: Lens' ListBackupJobs (Maybe Text) Source #
Returns only backup jobs that will be stored in the specified backup vault. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.
listBackupJobs_byResourceType :: Lens' ListBackupJobs (Maybe Text) Source #
Returns only backup jobs for the specified resources:
DynamoDB
for Amazon DynamoDBEBS
for Amazon Elastic Block StoreEC2
for Amazon Elastic Compute CloudEFS
for Amazon Elastic File SystemRDS
for Amazon Relational Database ServiceAurora
for Amazon AuroraStorage Gateway
for Storage Gateway
listBackupJobs_nextToken :: Lens' ListBackupJobs (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.
listBackupJobs_byState :: Lens' ListBackupJobs (Maybe BackupJobState) Source #
Returns only backup jobs that are in the specified state.
listBackupJobs_maxResults :: Lens' ListBackupJobs (Maybe Natural) Source #
The maximum number of items to be returned.
Destructuring the Response
data ListBackupJobsResponse Source #
See: newListBackupJobsResponse
smart constructor.
ListBackupJobsResponse' | |
|
Instances
newListBackupJobsResponse Source #
Create a value of ListBackupJobsResponse
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:backupJobs:ListBackupJobsResponse'
, listBackupJobsResponse_backupJobs
- An array of structures containing metadata about your backup jobs
returned in JSON format.
$sel:nextToken:ListBackupJobs'
, listBackupJobsResponse_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:httpStatus:ListBackupJobsResponse'
, listBackupJobsResponse_httpStatus
- The response's http status code.
Response Lenses
listBackupJobsResponse_backupJobs :: Lens' ListBackupJobsResponse (Maybe [BackupJob]) Source #
An array of structures containing metadata about your backup jobs returned in JSON format.
listBackupJobsResponse_nextToken :: Lens' ListBackupJobsResponse (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.
listBackupJobsResponse_httpStatus :: Lens' ListBackupJobsResponse Int Source #
The response's http status code.