Skip to content

ModifyBackupAttributes

Source: src/AWS/CloudHSMV2/ModifyBackupAttributes.ts

Runtime binding for the ModifyBackupAttributes operation (IAM action cloudhsm:ModifyBackupAttributes).

Toggles a backup’s NeverExpires attribute — pin a golden backup so the cluster’s retention policy never deletes it, or unpin it again. Provide the implementation with Effect.provide(AWS.CloudHSMV2.ModifyBackupAttributesHttp).

const modifyBackupAttributes =
yield* AWS.CloudHSMV2.ModifyBackupAttributes();
yield* modifyBackupAttributes({ BackupId: backupId, NeverExpires: true });