| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.CloudHSMv2.DescribeBackups
Description
Gets information about backups of AWS CloudHSM clusters.
This is a paginated operation, which means that each response might contain only a subset of all the backups. When the response contains only a subset of backups, it includes a NextToken value. Use this value in a subsequent DescribeBackups request to get more backups. When you receive a response with no NextToken (or an empty or null value), that means there are no more backups to get.
This operation returns paginated results.
Synopsis
- describeBackups :: DescribeBackups
- data DescribeBackups
- dbFilters :: Lens' DescribeBackups (HashMap Text [Text])
- dbNextToken :: Lens' DescribeBackups (Maybe Text)
- dbMaxResults :: Lens' DescribeBackups (Maybe Natural)
- describeBackupsResponse :: Int -> DescribeBackupsResponse
- data DescribeBackupsResponse
- dbrsBackups :: Lens' DescribeBackupsResponse [Backup]
- dbrsNextToken :: Lens' DescribeBackupsResponse (Maybe Text)
- dbrsResponseStatus :: Lens' DescribeBackupsResponse Int
Creating a Request
describeBackups :: DescribeBackups Source #
Creates a value of DescribeBackups with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dbFilters- One or more filters to limit the items returned in the response. Use thebackupIdsfilter to return only the specified backups. Specify backups by their backup identifier (ID). Use theclusterIdsfilter to return only the backups for the specified clusters. Specify clusters by their cluster identifier (ID). Use thestatesfilter to return only backups that match the specified state.dbNextToken- TheNextTokenvalue that you received in the previous response. Use this value to get more backups.dbMaxResults- The maximum number of backups to return in the response. When there are more backups than the number you specify, the response contains aNextTokenvalue.
data DescribeBackups Source #
See: describeBackups smart constructor.
Instances
Request Lenses
dbFilters :: Lens' DescribeBackups (HashMap Text [Text]) Source #
One or more filters to limit the items returned in the response. Use the backupIds filter to return only the specified backups. Specify backups by their backup identifier (ID). Use the clusterIds filter to return only the backups for the specified clusters. Specify clusters by their cluster identifier (ID). Use the states filter to return only backups that match the specified state.
dbNextToken :: Lens' DescribeBackups (Maybe Text) Source #
The NextToken value that you received in the previous response. Use this value to get more backups.
dbMaxResults :: Lens' DescribeBackups (Maybe Natural) Source #
The maximum number of backups to return in the response. When there are more backups than the number you specify, the response contains a NextToken value.
Destructuring the Response
describeBackupsResponse Source #
Arguments
| :: Int | |
| -> DescribeBackupsResponse |
Creates a value of DescribeBackupsResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dbrsBackups- A list of backups.dbrsNextToken- An opaque string that indicates that the response contains only a subset of backups. Use this value in a subsequentDescribeBackupsrequest to get more backups.dbrsResponseStatus- -- | The response status code.
data DescribeBackupsResponse Source #
See: describeBackupsResponse smart constructor.
Instances
Response Lenses
dbrsBackups :: Lens' DescribeBackupsResponse [Backup] Source #
A list of backups.
dbrsNextToken :: Lens' DescribeBackupsResponse (Maybe Text) Source #
An opaque string that indicates that the response contains only a subset of backups. Use this value in a subsequent DescribeBackups request to get more backups.
dbrsResponseStatus :: Lens' DescribeBackupsResponse Int Source #
- - | The response status code.