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.CloudHSMV2.ModifyBackupAttributes
Description
Modifies attributes for AWS CloudHSM backup.
Synopsis
- data ModifyBackupAttributes = ModifyBackupAttributes' {
- backupId :: Text
- neverExpires :: Bool
- newModifyBackupAttributes :: Text -> Bool -> ModifyBackupAttributes
- modifyBackupAttributes_backupId :: Lens' ModifyBackupAttributes Text
- modifyBackupAttributes_neverExpires :: Lens' ModifyBackupAttributes Bool
- data ModifyBackupAttributesResponse = ModifyBackupAttributesResponse' {
- backup :: Maybe Backup
- httpStatus :: Int
- newModifyBackupAttributesResponse :: Int -> ModifyBackupAttributesResponse
- modifyBackupAttributesResponse_backup :: Lens' ModifyBackupAttributesResponse (Maybe Backup)
- modifyBackupAttributesResponse_httpStatus :: Lens' ModifyBackupAttributesResponse Int
Creating a Request
data ModifyBackupAttributes Source #
See: newModifyBackupAttributes
smart constructor.
Constructors
ModifyBackupAttributes' | |
Fields
|
Instances
newModifyBackupAttributes Source #
Create a value of ModifyBackupAttributes
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:
ModifyBackupAttributes
, modifyBackupAttributes_backupId
- The identifier (ID) of the backup to modify. To find the ID of a backup,
use the DescribeBackups operation.
ModifyBackupAttributes
, modifyBackupAttributes_neverExpires
- Specifies whether the service should exempt a backup from the retention
policy for the cluster. True
exempts a backup from the retention
policy. False
means the service applies the backup retention policy
defined at the cluster.
Request Lenses
modifyBackupAttributes_backupId :: Lens' ModifyBackupAttributes Text Source #
The identifier (ID) of the backup to modify. To find the ID of a backup, use the DescribeBackups operation.
modifyBackupAttributes_neverExpires :: Lens' ModifyBackupAttributes Bool Source #
Specifies whether the service should exempt a backup from the retention
policy for the cluster. True
exempts a backup from the retention
policy. False
means the service applies the backup retention policy
defined at the cluster.
Destructuring the Response
data ModifyBackupAttributesResponse Source #
See: newModifyBackupAttributesResponse
smart constructor.
Constructors
ModifyBackupAttributesResponse' | |
Fields
|
Instances
newModifyBackupAttributesResponse Source #
Create a value of ModifyBackupAttributesResponse
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:backup:ModifyBackupAttributesResponse'
, modifyBackupAttributesResponse_backup
- Undocumented member.
$sel:httpStatus:ModifyBackupAttributesResponse'
, modifyBackupAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
modifyBackupAttributesResponse_backup :: Lens' ModifyBackupAttributesResponse (Maybe Backup) Source #
Undocumented member.
modifyBackupAttributesResponse_httpStatus :: Lens' ModifyBackupAttributesResponse Int Source #
The response's http status code.