amazonka-backup-2.0: Amazon Backup SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Backup.Types.BackupRule

Description

 
Synopsis

Documentation

data BackupRule Source #

Specifies a scheduled task used to back up a selection of resources.

See: newBackupRule smart constructor.

Constructors

BackupRule' 

Fields

  • completionWindowMinutes :: Maybe Integer

    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.

  • copyActions :: Maybe [CopyAction]

    An array of CopyAction objects, which contains the details of the copy operation.

  • enableContinuousBackup :: Maybe Bool

    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.

  • lifecycle :: Maybe 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.

  • recoveryPointTags :: Maybe (Sensitive (HashMap Text Text))

    An array of key-value pair strings that are assigned to resources that are associated with this rule when restored from backup.

  • ruleId :: Maybe Text

    Uniquely identifies a rule that is used to schedule the backup of a selection of resources.

  • scheduleExpression :: Maybe Text

    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.

  • startWindowMinutes :: Maybe Integer

    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.

  • ruleName :: Text

    A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.

  • targetBackupVaultName :: Text

    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.

Instances

Instances details
FromJSON BackupRule Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRule

Generic BackupRule Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRule

Associated Types

type Rep BackupRule :: Type -> Type #

Show BackupRule Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRule

NFData BackupRule Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRule

Methods

rnf :: BackupRule -> () #

Eq BackupRule Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRule

Hashable BackupRule Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRule

type Rep BackupRule Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRule

newBackupRule Source #

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.