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 |
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 #
:: Text | |
-> Bool | |
-> ModifyBackupAttributes |
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:
$sel:backupId:ModifyBackupAttributes'
, modifyBackupAttributes_backupId
- The identifier (ID) of the backup to modify. To find the ID of a backup,
use the DescribeBackups operation.
$sel:neverExpires: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
Eq ModifyBackupAttributesResponse Source # | |
Read ModifyBackupAttributesResponse Source # | |
Show ModifyBackupAttributesResponse Source # | |
Defined in Amazonka.CloudHSMV2.ModifyBackupAttributes | |
Generic ModifyBackupAttributesResponse Source # | |
NFData ModifyBackupAttributesResponse Source # | |
Defined in Amazonka.CloudHSMV2.ModifyBackupAttributes rnf :: ModifyBackupAttributesResponse -> () # | |
type Rep ModifyBackupAttributesResponse Source # | |
Defined in Amazonka.CloudHSMV2.ModifyBackupAttributes type Rep ModifyBackupAttributesResponse = D1 ('MetaData "ModifyBackupAttributesResponse" "Amazonka.CloudHSMV2.ModifyBackupAttributes" "libZSservicesZSamazonka-cloudhsmv2ZSamazonka-cloudhsmv2" '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.