| 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 |
Amazonka.OpsWorksCM.DescribeBackups
Description
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_backupId :: Lens' DescribeBackups (Maybe Text)
- describeBackups_maxResults :: Lens' DescribeBackups (Maybe Natural)
- describeBackups_nextToken :: Lens' DescribeBackups (Maybe Text)
- describeBackups_serverName :: Lens' DescribeBackups (Maybe Text)
- 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.
Constructors
| DescribeBackups' | |
Fields
| |
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:
DescribeBackups, describeBackups_backupId - Describes a single backup.
$sel:maxResults:DescribeBackups', describeBackups_maxResults - This is not currently implemented for DescribeBackups requests.
DescribeBackups, describeBackups_nextToken - This is not currently implemented for DescribeBackups requests.
DescribeBackups, describeBackups_serverName - Returns backups for the server with the specified ServerName.
Request Lenses
describeBackups_backupId :: Lens' DescribeBackups (Maybe Text) Source #
Describes a single backup.
describeBackups_maxResults :: Lens' DescribeBackups (Maybe Natural) Source #
This is not currently implemented for DescribeBackups requests.
describeBackups_nextToken :: Lens' DescribeBackups (Maybe Text) Source #
This is not currently implemented for DescribeBackups requests.
describeBackups_serverName :: Lens' DescribeBackups (Maybe Text) Source #
Returns backups for the server with the specified ServerName.
Destructuring the Response
data DescribeBackupsResponse Source #
See: newDescribeBackupsResponse smart constructor.
Constructors
| DescribeBackupsResponse' | |
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.
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.