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 |
Describes backups. The results are ordered by time, with newest backups first. If you do not specify a BackupId or ServerName, the command returns all backups.
This operation is synchronous.
A ResourceNotFoundException
is thrown when the backup does not exist.
A ValidationException
is raised when parameters of the request are not
valid.
This operation returns paginated results.
Synopsis
- data DescribeBackups = DescribeBackups' {}
- newDescribeBackups :: DescribeBackups
- describeBackups_serverName :: Lens' DescribeBackups (Maybe Text)
- describeBackups_backupId :: Lens' DescribeBackups (Maybe Text)
- describeBackups_nextToken :: Lens' DescribeBackups (Maybe Text)
- describeBackups_maxResults :: Lens' DescribeBackups (Maybe Natural)
- data DescribeBackupsResponse = DescribeBackupsResponse' {}
- newDescribeBackupsResponse :: Int -> DescribeBackupsResponse
- describeBackupsResponse_backups :: Lens' DescribeBackupsResponse (Maybe [Backup])
- describeBackupsResponse_nextToken :: Lens' DescribeBackupsResponse (Maybe Text)
- describeBackupsResponse_httpStatus :: Lens' DescribeBackupsResponse Int
Creating a Request
data DescribeBackups Source #
See: newDescribeBackups
smart constructor.
DescribeBackups' | |
|
Instances
newDescribeBackups :: DescribeBackups Source #
Create a value of DescribeBackups
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:serverName:DescribeBackups'
, describeBackups_serverName
- Returns backups for the server with the specified ServerName.
$sel:backupId:DescribeBackups'
, describeBackups_backupId
- Describes a single backup.
$sel:nextToken:DescribeBackups'
, describeBackups_nextToken
- This is not currently implemented for DescribeBackups
requests.
$sel:maxResults:DescribeBackups'
, describeBackups_maxResults
- This is not currently implemented for DescribeBackups
requests.
Request Lenses
describeBackups_serverName :: Lens' DescribeBackups (Maybe Text) Source #
Returns backups for the server with the specified ServerName.
describeBackups_backupId :: Lens' DescribeBackups (Maybe Text) Source #
Describes a single backup.
describeBackups_nextToken :: Lens' DescribeBackups (Maybe Text) Source #
This is not currently implemented for DescribeBackups
requests.
describeBackups_maxResults :: Lens' DescribeBackups (Maybe Natural) Source #
This is not currently implemented for DescribeBackups
requests.
Destructuring the Response
data DescribeBackupsResponse Source #
See: newDescribeBackupsResponse
smart constructor.
Instances
newDescribeBackupsResponse Source #
Create a value of DescribeBackupsResponse
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:backups:DescribeBackupsResponse'
, describeBackupsResponse_backups
- Contains the response to a DescribeBackups
request.
$sel:nextToken:DescribeBackups'
, describeBackupsResponse_nextToken
- This is not currently implemented for DescribeBackups
requests.
$sel:httpStatus:DescribeBackupsResponse'
, describeBackupsResponse_httpStatus
- The response's http status code.
Response Lenses
describeBackupsResponse_backups :: Lens' DescribeBackupsResponse (Maybe [Backup]) Source #
Contains the response to a DescribeBackups
request.
describeBackupsResponse_nextToken :: Lens' DescribeBackupsResponse (Maybe Text) Source #
This is not currently implemented for DescribeBackups
requests.
describeBackupsResponse_httpStatus :: Lens' DescribeBackupsResponse Int Source #
The response's http status code.