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 |
Synopsis
- data BackupRule = BackupRule' {
- ruleId :: Maybe Text
- lifecycle :: Maybe Lifecycle
- recoveryPointTags :: Maybe (Sensitive (HashMap Text Text))
- scheduleExpression :: Maybe Text
- enableContinuousBackup :: Maybe Bool
- completionWindowMinutes :: Maybe Integer
- copyActions :: Maybe [CopyAction]
- startWindowMinutes :: Maybe Integer
- ruleName :: Text
- targetBackupVaultName :: Text
- newBackupRule :: Text -> Text -> BackupRule
- backupRule_ruleId :: Lens' BackupRule (Maybe Text)
- backupRule_lifecycle :: Lens' BackupRule (Maybe Lifecycle)
- backupRule_recoveryPointTags :: Lens' BackupRule (Maybe (HashMap Text Text))
- backupRule_scheduleExpression :: Lens' BackupRule (Maybe Text)
- backupRule_enableContinuousBackup :: Lens' BackupRule (Maybe Bool)
- backupRule_completionWindowMinutes :: Lens' BackupRule (Maybe Integer)
- backupRule_copyActions :: Lens' BackupRule (Maybe [CopyAction])
- backupRule_startWindowMinutes :: Lens' BackupRule (Maybe Integer)
- backupRule_ruleName :: Lens' BackupRule Text
- backupRule_targetBackupVaultName :: Lens' BackupRule Text
Documentation
data BackupRule Source #
Specifies a scheduled task used to back up a selection of resources.
See: newBackupRule
smart constructor.
BackupRule' | |
|
Instances
Create a value of BackupRule
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:ruleId:BackupRule'
, backupRule_ruleId
- Uniquely identifies a rule that is used to schedule the backup of a
selection of resources.
$sel:lifecycle:BackupRule'
, backupRule_lifecycle
- The lifecycle defines when a protected resource is transitioned to cold
storage and when it expires. Backup transitions and expires backups
automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
$sel:recoveryPointTags:BackupRule'
, backupRule_recoveryPointTags
- An array of key-value pair strings that are assigned to resources that
are associated with this rule when restored from backup.
$sel:scheduleExpression:BackupRule'
, backupRule_scheduleExpression
- A cron expression in UTC specifying when Backup initiates a backup job.
For more information about cron expressions, see
Schedule Expressions for Rules
in the Amazon CloudWatch Events User Guide.. Prior to specifying a
value for this parameter, we recommend testing your cron expression
using one of the many available cron generator and testing tools.
$sel:enableContinuousBackup:BackupRule'
, backupRule_enableContinuousBackup
- Specifies whether Backup creates continuous backups. True causes Backup
to create continuous backups capable of point-in-time restore (PITR).
False (or not specified) causes Backup to create snapshot backups.
$sel:completionWindowMinutes:BackupRule'
, backupRule_completionWindowMinutes
- A value in minutes after a backup job is successfully started before it
must be completed or it will be canceled by Backup. This value is
optional.
$sel:copyActions:BackupRule'
, backupRule_copyActions
- An array of CopyAction
objects, which contains the details of the copy
operation.
$sel:startWindowMinutes:BackupRule'
, backupRule_startWindowMinutes
- A value in minutes after a backup is scheduled before a job will be
canceled if it doesn't start successfully. This value is optional.
$sel:ruleName:BackupRule'
, backupRule_ruleName
- An optional display name for a backup rule.
$sel:targetBackupVaultName:BackupRule'
, backupRule_targetBackupVaultName
- The name of a logical container where backups are stored. Backup vaults
are identified by names that are unique to the account used to create
them and the Amazon Web Services Region where they are created. They
consist of lowercase letters, numbers, and hyphens.
backupRule_ruleId :: Lens' BackupRule (Maybe Text) Source #
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
backupRule_lifecycle :: Lens' BackupRule (Maybe Lifecycle) Source #
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup transitions and expires backups automatically according to the lifecycle that you define.
Backups transitioned to cold storage must be stored in cold storage for a minimum of 90 days. Therefore, the “expire after days” setting must be 90 days greater than the “transition to cold after days” setting. The “transition to cold after days” setting cannot be changed after a backup has been transitioned to cold.
Only Amazon EFS file system backups can be transitioned to cold storage.
backupRule_recoveryPointTags :: Lens' BackupRule (Maybe (HashMap Text Text)) Source #
An array of key-value pair strings that are assigned to resources that are associated with this rule when restored from backup.
backupRule_scheduleExpression :: Lens' BackupRule (Maybe Text) Source #
A cron expression in UTC specifying when Backup initiates a backup job. For more information about cron expressions, see Schedule Expressions for Rules in the Amazon CloudWatch Events User Guide.. Prior to specifying a value for this parameter, we recommend testing your cron expression using one of the many available cron generator and testing tools.
backupRule_enableContinuousBackup :: Lens' BackupRule (Maybe Bool) Source #
Specifies whether Backup creates continuous backups. True causes Backup to create continuous backups capable of point-in-time restore (PITR). False (or not specified) causes Backup to create snapshot backups.
backupRule_completionWindowMinutes :: Lens' BackupRule (Maybe Integer) Source #
A value in minutes after a backup job is successfully started before it must be completed or it will be canceled by Backup. This value is optional.
backupRule_copyActions :: Lens' BackupRule (Maybe [CopyAction]) Source #
An array of CopyAction
objects, which contains the details of the copy
operation.
backupRule_startWindowMinutes :: Lens' BackupRule (Maybe Integer) Source #
A value in minutes after a backup is scheduled before a job will be canceled if it doesn't start successfully. This value is optional.
backupRule_ruleName :: Lens' BackupRule Text Source #
An optional display name for a backup rule.
backupRule_targetBackupVaultName :: Lens' BackupRule Text Source #
The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the Amazon Web Services Region where they are created. They consist of lowercase letters, numbers, and hyphens.