public static interface CfnBackupPlan.BackupRuleResourceTypeProperty
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.backup.*; BackupRuleResourceTypeProperty backupRuleResourceTypeProperty = BackupRuleResourceTypeProperty.builder() .ruleName("ruleName") .targetBackupVault("targetBackupVault") // the properties below are optional .completionWindowMinutes(123) .copyActions(List.of(CopyActionResourceTypeProperty.builder() .destinationBackupVaultArn("destinationBackupVaultArn") // the properties below are optional .lifecycle(LifecycleResourceTypeProperty.builder() .deleteAfterDays(123) .moveToColdStorageAfterDays(123) .build()) .build())) .enableContinuousBackup(false) .lifecycle(LifecycleResourceTypeProperty.builder() .deleteAfterDays(123) .moveToColdStorageAfterDays(123) .build()) .recoveryPointTags(Map.of( "recoveryPointTagsKey", "recoveryPointTags")) .scheduleExpression("scheduleExpression") .startWindowMinutes(123) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnBackupPlan.BackupRuleResourceTypeProperty.Builder
A builder for
CfnBackupPlan.BackupRuleResourceTypeProperty |
static class |
CfnBackupPlan.BackupRuleResourceTypeProperty.Jsii$Proxy
An implementation for
CfnBackupPlan.BackupRuleResourceTypeProperty |
Modifier and Type | Method and Description |
---|---|
static CfnBackupPlan.BackupRuleResourceTypeProperty.Builder |
builder() |
default java.lang.Number |
getCompletionWindowMinutes()
A value in minutes after a backup job is successfully started before it must be completed or it is canceled by AWS Backup .
|
default java.lang.Object |
getCopyActions()
An array of CopyAction objects, which contains the details of the copy operation.
|
default java.lang.Object |
getEnableContinuousBackup()
Enables continuous backup and point-in-time restores (PITR).
|
default java.lang.Object |
getLifecycle()
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.
|
default java.lang.Object |
getRecoveryPointTags()
To help organize your resources, you can assign your own metadata to the resources that you create.
|
java.lang.String |
getRuleName()
A display name for a backup rule.
|
default java.lang.String |
getScheduleExpression()
A CRON expression specifying when AWS Backup initiates a backup job.
|
default java.lang.Number |
getStartWindowMinutes()
An optional value that specifies a period of time in minutes after a backup is scheduled before a job is canceled if it doesn't start successfully.
|
java.lang.String |
getTargetBackupVault()
The name of a logical container where backups are stored.
|
java.lang.String getRuleName()
java.lang.String getTargetBackupVault()
Backup vaults are identified by names that are unique to the account used to create them and the AWS Region where they are created. They consist of letters, numbers, and hyphens.
default java.lang.Number getCompletionWindowMinutes()
default java.lang.Object getCopyActions()
default java.lang.Object getEnableContinuousBackup()
default java.lang.Object getLifecycle()
AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
default java.lang.Object getRecoveryPointTags()
Each tag is a key-value pair.
default java.lang.String getScheduleExpression()
default java.lang.Number getStartWindowMinutes()
If this value is included, it must be at least 60 minutes to avoid errors.
static CfnBackupPlan.BackupRuleResourceTypeProperty.Builder builder()