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 |
List backups associated with an AWS account. To list backups for a given
table, specify TableName
. ListBackups
returns a paginated list of
results with at most 1 MB worth of items in a page. You can also specify
a maximum number of entries to be returned in a page.
In the request, start time is inclusive, but end time is exclusive. Note that these boundaries are for the time at which the original backup was requested.
You can call ListBackups
a maximum of five times per second.
This operation returns paginated results.
Synopsis
- data ListBackups = ListBackups' {}
- newListBackups :: ListBackups
- listBackups_timeRangeUpperBound :: Lens' ListBackups (Maybe UTCTime)
- listBackups_timeRangeLowerBound :: Lens' ListBackups (Maybe UTCTime)
- listBackups_limit :: Lens' ListBackups (Maybe Natural)
- listBackups_exclusiveStartBackupArn :: Lens' ListBackups (Maybe Text)
- listBackups_backupType :: Lens' ListBackups (Maybe BackupTypeFilter)
- listBackups_tableName :: Lens' ListBackups (Maybe Text)
- data ListBackupsResponse = ListBackupsResponse' {}
- newListBackupsResponse :: Int -> ListBackupsResponse
- listBackupsResponse_backupSummaries :: Lens' ListBackupsResponse (Maybe [BackupSummary])
- listBackupsResponse_lastEvaluatedBackupArn :: Lens' ListBackupsResponse (Maybe Text)
- listBackupsResponse_httpStatus :: Lens' ListBackupsResponse Int
Creating a Request
data ListBackups Source #
See: newListBackups
smart constructor.
ListBackups' | |
|
Instances
newListBackups :: ListBackups Source #
Create a value of ListBackups
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:timeRangeUpperBound:ListBackups'
, listBackups_timeRangeUpperBound
- Only backups created before this time are listed. TimeRangeUpperBound
is exclusive.
$sel:timeRangeLowerBound:ListBackups'
, listBackups_timeRangeLowerBound
- Only backups created after this time are listed. TimeRangeLowerBound
is inclusive.
$sel:limit:ListBackups'
, listBackups_limit
- Maximum number of backups to return at once.
$sel:exclusiveStartBackupArn:ListBackups'
, listBackups_exclusiveStartBackupArn
- LastEvaluatedBackupArn
is the Amazon Resource Name (ARN) of the backup
last evaluated when the current page of results was returned, inclusive
of the current page of results. This value may be specified as the
ExclusiveStartBackupArn
of a new ListBackups
operation in order to
fetch the next page of results.
$sel:backupType:ListBackups'
, listBackups_backupType
- The backups from the table specified by BackupType
are listed.
Where BackupType
can be:
USER
- On-demand backup created by you.SYSTEM
- On-demand backup automatically created by DynamoDB.ALL
- All types of on-demand backups (USER and SYSTEM).
$sel:tableName:ListBackups'
, listBackups_tableName
- The backups from the table specified by TableName
are listed.
Request Lenses
listBackups_timeRangeUpperBound :: Lens' ListBackups (Maybe UTCTime) Source #
Only backups created before this time are listed. TimeRangeUpperBound
is exclusive.
listBackups_timeRangeLowerBound :: Lens' ListBackups (Maybe UTCTime) Source #
Only backups created after this time are listed. TimeRangeLowerBound
is inclusive.
listBackups_limit :: Lens' ListBackups (Maybe Natural) Source #
Maximum number of backups to return at once.
listBackups_exclusiveStartBackupArn :: Lens' ListBackups (Maybe Text) Source #
LastEvaluatedBackupArn
is the Amazon Resource Name (ARN) of the backup
last evaluated when the current page of results was returned, inclusive
of the current page of results. This value may be specified as the
ExclusiveStartBackupArn
of a new ListBackups
operation in order to
fetch the next page of results.
listBackups_backupType :: Lens' ListBackups (Maybe BackupTypeFilter) Source #
The backups from the table specified by BackupType
are listed.
Where BackupType
can be:
USER
- On-demand backup created by you.SYSTEM
- On-demand backup automatically created by DynamoDB.ALL
- All types of on-demand backups (USER and SYSTEM).
listBackups_tableName :: Lens' ListBackups (Maybe Text) Source #
The backups from the table specified by TableName
are listed.
Destructuring the Response
data ListBackupsResponse Source #
See: newListBackupsResponse
smart constructor.
ListBackupsResponse' | |
|
Instances
newListBackupsResponse Source #
Create a value of ListBackupsResponse
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:backupSummaries:ListBackupsResponse'
, listBackupsResponse_backupSummaries
- List of BackupSummary
objects.
$sel:lastEvaluatedBackupArn:ListBackupsResponse'
, listBackupsResponse_lastEvaluatedBackupArn
- The ARN of the backup last evaluated when the current page of results
was returned, inclusive of the current page of results. This value may
be specified as the ExclusiveStartBackupArn
of a new ListBackups
operation in order to fetch the next page of results.
If LastEvaluatedBackupArn
is empty, then the last page of results has
been processed and there are no more results to be retrieved.
If LastEvaluatedBackupArn
is not empty, this may or may not indicate
that there is more data to be returned. All results are guaranteed to
have been returned if and only if no value for LastEvaluatedBackupArn
is returned.
$sel:httpStatus:ListBackupsResponse'
, listBackupsResponse_httpStatus
- The response's http status code.
Response Lenses
listBackupsResponse_backupSummaries :: Lens' ListBackupsResponse (Maybe [BackupSummary]) Source #
List of BackupSummary
objects.
listBackupsResponse_lastEvaluatedBackupArn :: Lens' ListBackupsResponse (Maybe Text) Source #
The ARN of the backup last evaluated when the current page of results
was returned, inclusive of the current page of results. This value may
be specified as the ExclusiveStartBackupArn
of a new ListBackups
operation in order to fetch the next page of results.
If LastEvaluatedBackupArn
is empty, then the last page of results has
been processed and there are no more results to be retrieved.
If LastEvaluatedBackupArn
is not empty, this may or may not indicate
that there is more data to be returned. All results are guaranteed to
have been returned if and only if no value for LastEvaluatedBackupArn
is returned.
listBackupsResponse_httpStatus :: Lens' ListBackupsResponse Int Source #
The response's http status code.