Interface CfnBackupPlan.BackupRuleResourceTypeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBackupPlan.BackupRuleResourceTypeProperty.Jsii$Proxy
- Enclosing class:
CfnBackupPlan
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)
.indexActions(List.of(IndexActionsResourceTypeProperty.builder()
.resourceTypes(List.of("resourceTypes"))
.build()))
.lifecycle(LifecycleResourceTypeProperty.builder()
.deleteAfterDays(123)
.moveToColdStorageAfterDays(123)
.optInToArchiveForSupportedResources(false)
.build())
.recoveryPointTags(Map.of(
"recoveryPointTagsKey", "recoveryPointTags"))
.scheduleExpression("scheduleExpression")
.scheduleExpressionTimezone("scheduleExpressionTimezone")
.startWindowMinutes(123)
.targetLogicallyAirGappedBackupVaultArn("targetLogicallyAirGappedBackupVaultArn")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBackupPlan.BackupRuleResourceTypePropertystatic final classAn implementation forCfnBackupPlan.BackupRuleResourceTypeProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberA value in minutes after a backup job is successfully started before it must be completed or it is canceled by AWS Backup .default ObjectAn array of CopyAction objects, which contains the details of the copy operation.default ObjectEnables continuous backup and point-in-time restores (PITR).default ObjectThere can up to one IndexAction in each BackupRule, as each backup can have 0 or 1 backup index associated with it.default ObjectThe lifecycle defines when a protected resource is transitioned to cold storage and when it expires.default ObjectThe tags to assign to the resources.A display name for a backup rule.default StringA CRON expression specifying when AWS Backup initiates a backup job.default StringThis is the timezone in which the schedule expression is set.default NumberAn 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.default StringThe ARN of a logically air-gapped vault.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.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBackupPlan.CopyActionResourceTypeProperty>- See Also:
-
getEnableContinuousBackup
Enables continuous backup and point-in-time restores (PITR).Returns union: either
BooleanorIResolvable- See Also:
-
getIndexActions
There can up to one IndexAction in each BackupRule, as each backup can have 0 or 1 backup index associated with it.Within the array is ResourceTypes. Only 1 resource type will be accepted for each BackupRule. Valid values:
EBSfor Amazon Elastic Block StoreS3for Amazon Simple Storage Service (Amazon S3)
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBackupPlan.IndexActionsResourceTypeProperty>- 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.
Returns union: either
IResolvableorCfnBackupPlan.LifecycleResourceTypeProperty- See Also:
-
getRecoveryPointTags
The tags to assign to the resources.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- 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:
-
getTargetLogicallyAirGappedBackupVaultArn
The ARN of a logically air-gapped vault.ARN must be in the same account and Region. If provided, supported fully managed resources back up directly to logically air-gapped vault, while other supported resources create a temporary (billable) snapshot in backup vault, then copy it to logically air-gapped vault. Unsupported resources only back up to the specified backup vault.
- See Also:
-
builder
-