@Stability(value=Stable)
public static interface CfnBackupPlan.BackupRuleResourceTypeProperty
extends software.amazon.jsii.JsiiSerializable
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 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 Object |
getCopyActions()
An array of CopyAction objects, which contains the details of the copy operation.
|
default Object |
getEnableContinuousBackup()
Enables continuous backup and point-in-time restores (PITR).
|
default Object |
getLifecycle()
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.
|
default Object |
getRecoveryPointTags()
To help organize your resources, you can assign your own metadata to the resources that you create.
|
String |
getRuleName()
A display name for a backup rule.
|
default String |
getScheduleExpression()
A CRON expression specifying when AWS Backup initiates a backup job.
|
default 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.
|
String |
getTargetBackupVault()
The name of a logical container where backups are stored.
|
@Stability(value=Stable) @NotNull String getRuleName()
@Stability(value=Stable) @NotNull 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.
@Stability(value=Stable) @Nullable default Number getCompletionWindowMinutes()
@Stability(value=Stable) @Nullable default Object getCopyActions()
@Stability(value=Stable) @Nullable default Object getEnableContinuousBackup()
@Stability(value=Stable) @Nullable default Object getLifecycle()
AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
@Stability(value=Stable) @Nullable default Object getRecoveryPointTags()
Each tag is a key-value pair.
@Stability(value=Stable) @Nullable default String getScheduleExpression()
@Stability(value=Stable) @Nullable default Number getStartWindowMinutes()
@Stability(value=Stable) static CfnBackupPlan.BackupRuleResourceTypeProperty.Builder builder()
Copyright © 2022. All rights reserved.