BackupRuleResourceTypeProperty Struct
Specifies an object containing properties used to schedule a task to back up a selection of resources.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';
const backupRuleResourceTypeProperty: backup.CfnBackupPlan.BackupRuleResourceTypeProperty = {
ruleName: 'ruleName',
targetBackupVault: 'targetBackupVault',
// the properties below are optional
completionWindowMinutes: 123,
copyActions: [{
destinationBackupVaultArn: 'destinationBackupVaultArn',
// the properties below are optional
lifecycle: {
deleteAfterDays: 123,
moveToColdStorageAfterDays: 123,
optInToArchiveForSupportedResources: false,
},
}],
enableContinuousBackup: false,
indexActions: [{
resourceTypes: ['resourceTypes'],
}],
lifecycle: {
deleteAfterDays: 123,
moveToColdStorageAfterDays: 123,
optInToArchiveForSupportedResources: false,
},
recoveryPointTags: {
recoveryPointTagsKey: 'recoveryPointTags',
},
scanActions: [{
malwareScanner: 'malwareScanner',
scanMode: 'scanMode',
}],
scheduleExpression: 'scheduleExpression',
scheduleExpressionTimezone: 'scheduleExpressionTimezone',
startWindowMinutes: 123,
targetLogicallyAirGappedBackupVaultArn: 'targetLogicallyAirGappedBackupVaultArn',
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_backup as backup
backup_rule_resource_type_property = backup.CfnBackupPlan.BackupRuleResourceTypeProperty(
rule_name="ruleName",
target_backup_vault="targetBackupVault",
# the properties below are optional
completion_window_minutes=123,
copy_actions=[backup.CfnBackupPlan.CopyActionResourceTypeProperty(
destination_backup_vault_arn="destinationBackupVaultArn",
# the properties below are optional
lifecycle=backup.CfnBackupPlan.LifecycleResourceTypeProperty(
delete_after_days=123,
move_to_cold_storage_after_days=123,
opt_in_to_archive_for_supported_resources=False
)
)],
enable_continuous_backup=False,
index_actions=[backup.CfnBackupPlan.IndexActionsResourceTypeProperty(
resource_types=["resourceTypes"]
)],
lifecycle=backup.CfnBackupPlan.LifecycleResourceTypeProperty(
delete_after_days=123,
move_to_cold_storage_after_days=123,
opt_in_to_archive_for_supported_resources=False
),
recovery_point_tags={
"recovery_point_tags_key": "recoveryPointTags"
},
scan_actions=[backup.CfnBackupPlan.ScanActionResourceTypeProperty(
malware_scanner="malwareScanner",
scan_mode="scanMode"
)],
schedule_expression="scheduleExpression",
schedule_expression_timezone="scheduleExpressionTimezone",
start_window_minutes=123,
target_logically_air_gapped_backup_vault_arn="targetLogicallyAirGappedBackupVaultArn"
)
// 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"))
.scanActions(List.of(ScanActionResourceTypeProperty.builder()
.malwareScanner("malwareScanner")
.scanMode("scanMode")
.build()))
.scheduleExpression("scheduleExpression")
.scheduleExpressionTimezone("scheduleExpressionTimezone")
.startWindowMinutes(123)
.targetLogicallyAirGappedBackupVaultArn("targetLogicallyAirGappedBackupVaultArn")
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Backup;
var backupRuleResourceTypeProperty = new BackupRuleResourceTypeProperty {
RuleName = "ruleName",
TargetBackupVault = "targetBackupVault",
// the properties below are optional
CompletionWindowMinutes = 123,
CopyActions = new [] { new CopyActionResourceTypeProperty {
DestinationBackupVaultArn = "destinationBackupVaultArn",
// the properties below are optional
Lifecycle = new LifecycleResourceTypeProperty {
DeleteAfterDays = 123,
MoveToColdStorageAfterDays = 123,
OptInToArchiveForSupportedResources = false
}
} },
EnableContinuousBackup = false,
IndexActions = new [] { new IndexActionsResourceTypeProperty {
ResourceTypes = new [] { "resourceTypes" }
} },
Lifecycle = new LifecycleResourceTypeProperty {
DeleteAfterDays = 123,
MoveToColdStorageAfterDays = 123,
OptInToArchiveForSupportedResources = false
},
RecoveryPointTags = new Dictionary<string, string> {
{ "recoveryPointTagsKey", "recoveryPointTags" }
},
ScanActions = new [] { new ScanActionResourceTypeProperty {
MalwareScanner = "malwareScanner",
ScanMode = "scanMode"
} },
ScheduleExpression = "scheduleExpression",
ScheduleExpressionTimezone = "scheduleExpressionTimezone",
StartWindowMinutes = 123,
TargetLogicallyAirGappedBackupVaultArn = "targetLogicallyAirGappedBackupVaultArn"
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
backupRuleResourceTypeProperty := &BackupRuleResourceTypeProperty{
RuleName: jsii.String("ruleName"),
TargetBackupVault: jsii.String("targetBackupVault"),
// the properties below are optional
CompletionWindowMinutes: jsii.Number(123),
CopyActions: []interface{}{
&CopyActionResourceTypeProperty{
DestinationBackupVaultArn: jsii.String("destinationBackupVaultArn"),
// the properties below are optional
Lifecycle: &LifecycleResourceTypeProperty{
DeleteAfterDays: jsii.Number(123),
MoveToColdStorageAfterDays: jsii.Number(123),
OptInToArchiveForSupportedResources: jsii.Boolean(false),
},
},
},
EnableContinuousBackup: jsii.Boolean(false),
IndexActions: []interface{}{
&IndexActionsResourceTypeProperty{
ResourceTypes: []*string{
jsii.String("resourceTypes"),
},
},
},
Lifecycle: &LifecycleResourceTypeProperty{
DeleteAfterDays: jsii.Number(123),
MoveToColdStorageAfterDays: jsii.Number(123),
OptInToArchiveForSupportedResources: jsii.Boolean(false),
},
RecoveryPointTags: map[string]*string{
"recoveryPointTagsKey": jsii.String("recoveryPointTags"),
},
ScanActions: []interface{}{
&ScanActionResourceTypeProperty{
MalwareScanner: jsii.String("malwareScanner"),
ScanMode: jsii.String("scanMode"),
},
},
ScheduleExpression: jsii.String("scheduleExpression"),
ScheduleExpressionTimezone: jsii.String("scheduleExpressionTimezone"),
StartWindowMinutes: jsii.Number(123),
TargetLogicallyAirGappedBackupVaultArn: jsii.String("targetLogicallyAirGappedBackupVaultArn"),
}
Properties
completionWindowMinutesoptionalnumbercompletion_window_minutesoptionalint | floatcompletionWindowMinutesoptionalNumberCompletionWindowMinutesoptionaldoubleCompletionWindowMinutesoptional*float64 #copyActionsoptionalIResolvable | IResolvable | CfnBackupPlan.copy_actionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CopyActionResourceTypeProperty]]]copyActionsoptionalIResolvableCopyActionsoptionalIResolvableCopyActionsoptionalinterface{} #enableContinuousBackupoptionalboolean | IResolvableenable_continuous_backupoptionaltyping.Union[bool, IResolvable]enableContinuousBackupoptionalBooleanEnableContinuousBackupoptionalboolEnableContinuousBackupoptionalinterface{} #indexActionsoptionalIResolvable | IResolvable | CfnBackupPlan.index_actionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IndexActionsResourceTypeProperty]]]indexActionsoptionalIResolvableIndexActionsoptionalIResolvableIndexActionsoptionalinterface{} #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)
lifecycleoptionalIResolvable | CfnBackupPlan.lifecycleoptionaltyping.Union[IResolvable, LifecycleResourceTypeProperty]lifecycleoptionalIResolvableLifecycleoptionalIResolvableLifecycleoptionalinterface{} #AWS Backup transitions and expires backups automatically according to the lifecycle that you define.
recoveryPointTagsoptionalIResolvable | { [key: string]: string }recovery_point_tagsoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]recoveryPointTagsoptionalIResolvableRecoveryPointTagsoptionalIResolvableRecoveryPointTagsoptionalinterface{} #scanActionsoptionalIResolvable | IResolvable | CfnBackupPlan.scan_actionsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ScanActionResourceTypeProperty]]]scanActionsoptionalIResolvableScanActionsoptionalIResolvableScanActionsoptionalinterface{} #scheduleExpressionoptionalstringschedule_expressionoptionalstrscheduleExpressionoptionalStringScheduleExpressionoptionalstringScheduleExpressionoptional*string #scheduleExpressionTimezoneoptionalstringschedule_expression_timezoneoptionalstrscheduleExpressionTimezoneoptionalStringScheduleExpressionTimezoneoptionalstringScheduleExpressionTimezoneoptional*string #By default, ScheduleExpressions are in UTC. You can modify this to a specified timezone.
startWindowMinutesoptionalnumberstart_window_minutesoptionalint | floatstartWindowMinutesoptionalNumberStartWindowMinutesoptionaldoubleStartWindowMinutesoptional*float64 #If this value is included, it must be at least 60 minutes to avoid errors.
targetBackupVaultstringtarget_backup_vaultstrtargetBackupVaultStringTargetBackupVaultstringTargetBackupVault*string required #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.
targetLogicallyAirGappedBackupVaultArnoptionalstringtarget_logically_air_gapped_backup_vault_arnoptionalstrtargetLogicallyAirGappedBackupVaultArnoptionalStringTargetLogicallyAirGappedBackupVaultArnoptionalstringTargetLogicallyAirGappedBackupVaultArnoptional*string #notes
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.