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.BackupRuleInput

Description

 
Synopsis

Documentation

data BackupRuleInput Source #

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

See: newBackupRuleInput smart constructor.

Constructors

BackupRuleInput' 

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 will transition and expire 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))

    To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair.

  • scheduleExpression :: Maybe Text

    A CRON expression in UTC specifying when Backup initiates a backup job.

  • 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
ToJSON BackupRuleInput Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRuleInput

Generic BackupRuleInput Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRuleInput

Associated Types

type Rep BackupRuleInput :: Type -> Type #

Show BackupRuleInput Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRuleInput

NFData BackupRuleInput Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRuleInput

Methods

rnf :: BackupRuleInput -> () #

Eq BackupRuleInput Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRuleInput

Hashable BackupRuleInput Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRuleInput

type Rep BackupRuleInput Source # 
Instance details

Defined in Amazonka.Backup.Types.BackupRuleInput

type Rep BackupRuleInput = D1 ('MetaData "BackupRuleInput" "Amazonka.Backup.Types.BackupRuleInput" "amazonka-backup-2.0-LovIt41tphM6jvgQJhTyRf" 'False) (C1 ('MetaCons "BackupRuleInput'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "completionWindowMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "copyActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CopyAction]))) :*: (S1 ('MetaSel ('Just "enableContinuousBackup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "lifecycle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Lifecycle)))) :*: ((S1 ('MetaSel ('Just "recoveryPointTags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive (HashMap Text Text)))) :*: S1 ('MetaSel ('Just "scheduleExpression") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "startWindowMinutes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Integer)) :*: (S1 ('MetaSel ('Just "ruleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "targetBackupVaultName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newBackupRuleInput Source #

Create a value of BackupRuleInput 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:BackupRuleInput', backupRuleInput_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:BackupRuleInput', backupRuleInput_copyActions - An array of CopyAction objects, which contains the details of the copy operation.

$sel:enableContinuousBackup:BackupRuleInput', backupRuleInput_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.

BackupRuleInput, backupRuleInput_lifecycle - The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup will transition and expire 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:BackupRuleInput', backupRuleInput_recoveryPointTags - To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair.

$sel:scheduleExpression:BackupRuleInput', backupRuleInput_scheduleExpression - A CRON expression in UTC specifying when Backup initiates a backup job.

$sel:startWindowMinutes:BackupRuleInput', backupRuleInput_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:BackupRuleInput', backupRuleInput_ruleName - A display name for a backup rule. Must contain 1 to 50 alphanumeric or '-_.' characters.

$sel:targetBackupVaultName:BackupRuleInput', backupRuleInput_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.

backupRuleInput_completionWindowMinutes :: Lens' BackupRuleInput (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.

backupRuleInput_copyActions :: Lens' BackupRuleInput (Maybe [CopyAction]) Source #

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

backupRuleInput_enableContinuousBackup :: Lens' BackupRuleInput (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.

backupRuleInput_lifecycle :: Lens' BackupRuleInput (Maybe Lifecycle) Source #

The lifecycle defines when a protected resource is transitioned to cold storage and when it expires. Backup will transition and expire 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.

backupRuleInput_recoveryPointTags :: Lens' BackupRuleInput (Maybe (HashMap Text Text)) Source #

To help organize your resources, you can assign your own metadata to the resources that you create. Each tag is a key-value pair.

backupRuleInput_scheduleExpression :: Lens' BackupRuleInput (Maybe Text) Source #

A CRON expression in UTC specifying when Backup initiates a backup job.

backupRuleInput_startWindowMinutes :: Lens' BackupRuleInput (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.

backupRuleInput_ruleName :: Lens' BackupRuleInput Text Source #

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

backupRuleInput_targetBackupVaultName :: Lens' BackupRuleInput 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.