Interface CfnBackupPlan.BackupRuleResourceTypeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBackupPlan.BackupRuleResourceTypeProperty.Jsii$Proxy
- Enclosing class:
CfnBackupPlan
@Stability(Stable)
public static interface CfnBackupPlan.BackupRuleResourceTypeProperty
extends software.amazon.jsii.JsiiSerializable
Specifies an object containing properties used to schedule a task to back up a selection of resources.
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) .optInToArchiveForSupportedResources(false) .build()) .build())) .enableContinuousBackup(false) .lifecycle(LifecycleResourceTypeProperty.builder() .deleteAfterDays(123) .moveToColdStorageAfterDays(123) .optInToArchiveForSupportedResources(false) .build()) .recoveryPointTags(Map.of( "recoveryPointTagsKey", "recoveryPointTags")) .scheduleExpression("scheduleExpression") .scheduleExpressionTimezone("scheduleExpressionTimezone") .startWindowMinutes(123) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnBackupPlan.BackupRuleResourceTypeProperty
static final class
An implementation forCfnBackupPlan.BackupRuleResourceTypeProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Number
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
An array of CopyAction objects, which contains the details of the copy operation.default Object
Enables continuous backup and point-in-time restores (PITR).default Object
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.default Object
The tags to assign to the resources.A display name for a backup rule.default String
A CRON expression specifying when AWS Backup initiates a backup job.default String
This is the timezone in which the schedule expression is set.default Number
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.The name of a logical container where backups are stored.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRuleName
A display name for a backup rule.- See Also:
-
getTargetBackupVault
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 AWS Region where they are created. They consist of letters, numbers, and hyphens.
- See Also:
-
getCompletionWindowMinutes
A value in minutes after a backup job is successfully started before it must be completed or it is canceled by AWS Backup .- See Also:
-
getCopyActions
An array of CopyAction objects, which contains the details of the copy operation.- See Also:
-
getEnableContinuousBackup
Enables continuous backup and point-in-time restores (PITR).- See Also:
-
getLifecycle
The lifecycle defines when a protected resource is transitioned to cold storage and when it expires.AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
- See Also:
-
getRecoveryPointTags
The tags to assign to the resources.- See Also:
-
getScheduleExpression
A CRON expression specifying when AWS Backup initiates a backup job.- See Also:
-
getScheduleExpressionTimezone
This is the timezone in which the schedule expression is set.By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
- See Also:
-
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.If this value is included, it must be at least 60 minutes to avoid errors.
- See Also:
-
builder
-