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.Backup.Types.BackupRule
Description
Synopsis
- data BackupRule = BackupRule' {
- completionWindowMinutes :: Maybe Integer
- copyActions :: Maybe [CopyAction]
- enableContinuousBackup :: Maybe Bool
- lifecycle :: Maybe Lifecycle
- recoveryPointTags :: Maybe (Sensitive (HashMap Text Text))
- ruleId :: Maybe Text
- scheduleExpression :: Maybe Text
- startWindowMinutes :: Maybe Integer
- ruleName :: Text
- targetBackupVaultName :: Text
- newBackupRule :: Text -> Text -> BackupRule
- backupRule_completionWindowMinutes :: Lens' BackupRule (Maybe Integer)
- backupRule_copyActions :: Lens' BackupRule (Maybe [CopyAction])
- backupRule_enableContinuousBackup :: Lens' BackupRule (Maybe Bool)
- backupRule_lifecycle :: Lens' BackupRule (Maybe Lifecycle)
- backupRule_recoveryPointTags :: Lens' BackupRule (Maybe (HashMap Text Text))
- backupRule_ruleId :: Lens' BackupRule (Maybe Text)
- backupRule_scheduleExpression :: Lens' BackupRule (Maybe Text)
- 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.
Constructors
BackupRule' | |
Fields
|
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: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: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.
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 “retention” 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.
Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the Feature availability by resource table. Backup ignores this expression for other resource types.
$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:ruleId:BackupRule'
, backupRule_ruleId
- Uniquely identifies a rule that is used to schedule the backup of a
selection of resources.
$sel:scheduleExpression:BackupRule'
, backupRule_scheduleExpression
- A cron expression in UTC specifying when Backup initiates a backup job.
For more information about Amazon Web Services cron expressions, see
Schedule Expressions for Rules
in the Amazon CloudWatch Events User Guide.. Two examples of Amazon
Web Services cron expressions are 15 * ? * * *
(take a backup every
hour at 15 minutes past the hour) and 0 12 * * ? *
(take a backup
every day at 12 noon UTC). For a table of examples, click the preceding
link and scroll down the page.
$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. If
this value is included, it must be at least 60 minutes to avoid errors.
$sel:ruleName:BackupRule'
, backupRule_ruleName
- A display name for a backup rule. Must contain 1 to 50 alphanumeric or
'-_.' characters.
$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_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_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_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 “retention” 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.
Resource types that are able to be transitioned to cold storage are listed in the "Lifecycle to cold storage" section of the Feature availability by resource table. Backup ignores this expression for other resource types.
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_ruleId :: Lens' BackupRule (Maybe Text) Source #
Uniquely identifies a rule that is used to schedule the backup of a selection of resources.
backupRule_scheduleExpression :: Lens' BackupRule (Maybe Text) Source #
A cron expression in UTC specifying when Backup initiates a backup job.
For more information about Amazon Web Services cron expressions, see
Schedule Expressions for Rules
in the Amazon CloudWatch Events User Guide.. Two examples of Amazon
Web Services cron expressions are 15 * ? * * *
(take a backup every
hour at 15 minutes past the hour) and 0 12 * * ? *
(take a backup
every day at 12 noon UTC). For a table of examples, click the preceding
link and scroll down the page.
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. If this value is included, it must be at least 60 minutes to avoid errors.
backupRule_ruleName :: Lens' BackupRule Text Source #
A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.
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.