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 |
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.
ModifyBackupAttributes' | |
|
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.
ModifyBackupAttributesResponse' | |
|
Instances
Generic ModifyBackupAttributesResponse Source # | |
Read ModifyBackupAttributesResponse Source # | |
Show ModifyBackupAttributesResponse Source # | |
Defined in Amazonka.CloudHSMV2.ModifyBackupAttributes | |
NFData ModifyBackupAttributesResponse Source # | |
Defined in Amazonka.CloudHSMV2.ModifyBackupAttributes rnf :: ModifyBackupAttributesResponse -> () # | |
Eq ModifyBackupAttributesResponse Source # | |
type Rep ModifyBackupAttributesResponse Source # | |
Defined in Amazonka.CloudHSMV2.ModifyBackupAttributes type Rep ModifyBackupAttributesResponse = D1 ('MetaData "ModifyBackupAttributesResponse" "Amazonka.CloudHSMV2.ModifyBackupAttributes" "amazonka-cloudhsmv2-2.0-JPONnjzt63Q1wP3HCntyXZ" 'False) (C1 ('MetaCons "ModifyBackupAttributesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "backup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Backup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.