CfnRestoreTestingPlanProps Struct
Properties for defining a CfnRestoreTestingPlan.
| 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 cfnRestoreTestingPlanProps: backup.CfnRestoreTestingPlanProps = {
recoveryPointSelection: {
algorithm: 'algorithm',
includeVaults: ['includeVaults'],
recoveryPointTypes: ['recoveryPointTypes'],
// the properties below are optional
excludeVaults: ['excludeVaults'],
selectionWindowDays: 123,
},
restoreTestingPlanName: 'restoreTestingPlanName',
scheduleExpression: 'scheduleExpression',
// the properties below are optional
scheduleExpressionTimezone: 'scheduleExpressionTimezone',
startWindowHours: 123,
tags: [{
key: 'key',
value: 'value',
}],
};
from aws_cdk import CfnTag
# 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
cfn_restore_testing_plan_props = backup.CfnRestoreTestingPlanProps(
recovery_point_selection=backup.CfnRestoreTestingPlan.RestoreTestingRecoveryPointSelectionProperty(
algorithm="algorithm",
include_vaults=["includeVaults"],
recovery_point_types=["recoveryPointTypes"],
# the properties below are optional
exclude_vaults=["excludeVaults"],
selection_window_days=123
),
restore_testing_plan_name="restoreTestingPlanName",
schedule_expression="scheduleExpression",
# the properties below are optional
schedule_expression_timezone="scheduleExpressionTimezone",
start_window_hours=123,
tags=[CfnTag(
key="key",
value="value"
)]
)
// 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.*;
CfnRestoreTestingPlanProps cfnRestoreTestingPlanProps = CfnRestoreTestingPlanProps.builder()
.recoveryPointSelection(RestoreTestingRecoveryPointSelectionProperty.builder()
.algorithm("algorithm")
.includeVaults(List.of("includeVaults"))
.recoveryPointTypes(List.of("recoveryPointTypes"))
// the properties below are optional
.excludeVaults(List.of("excludeVaults"))
.selectionWindowDays(123)
.build())
.restoreTestingPlanName("restoreTestingPlanName")
.scheduleExpression("scheduleExpression")
// the properties below are optional
.scheduleExpressionTimezone("scheduleExpressionTimezone")
.startWindowHours(123)
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.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 cfnRestoreTestingPlanProps = new CfnRestoreTestingPlanProps {
RecoveryPointSelection = new RestoreTestingRecoveryPointSelectionProperty {
Algorithm = "algorithm",
IncludeVaults = new [] { "includeVaults" },
RecoveryPointTypes = new [] { "recoveryPointTypes" },
// the properties below are optional
ExcludeVaults = new [] { "excludeVaults" },
SelectionWindowDays = 123
},
RestoreTestingPlanName = "restoreTestingPlanName",
ScheduleExpression = "scheduleExpression",
// the properties below are optional
ScheduleExpressionTimezone = "scheduleExpressionTimezone",
StartWindowHours = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
// 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"
cfnRestoreTestingPlanProps := &CfnRestoreTestingPlanProps{
RecoveryPointSelection: &RestoreTestingRecoveryPointSelectionProperty{
Algorithm: jsii.String("algorithm"),
IncludeVaults: []*string{
jsii.String("includeVaults"),
},
RecoveryPointTypes: []*string{
jsii.String("recoveryPointTypes"),
},
// the properties below are optional
ExcludeVaults: []*string{
jsii.String("excludeVaults"),
},
SelectionWindowDays: jsii.Number(123),
},
RestoreTestingPlanName: jsii.String("restoreTestingPlanName"),
ScheduleExpression: jsii.String("scheduleExpression"),
// the properties below are optional
ScheduleExpressionTimezone: jsii.String("scheduleExpressionTimezone"),
StartWindowHours: jsii.Number(123),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
recoveryPointSelectionIResolvable | CfnRestoreTestingPlan.recovery_point_selectiontyping.Union[IResolvable, RestoreTestingRecoveryPointSelectionProperty]recoveryPointSelectionIResolvableRecoveryPointSelectionIResolvableRecoveryPointSelectioninterface{} required #restoreTestingPlanNamestringrestore_testing_plan_namestrrestoreTestingPlanNameStringRestoreTestingPlanNamestringRestoreTestingPlanName*string required #This cannot be changed after creation, and it must consist of only alphanumeric characters and underscores.
scheduleExpressionstringschedule_expressionstrscheduleExpressionStringScheduleExpressionstringScheduleExpression*string required #When no CRON expression is provided, AWS Backup will use the default expression cron(0 5 ? * * *) .
scheduleExpressionTimezoneoptionalstringschedule_expression_timezoneoptionalstrscheduleExpressionTimezoneoptionalStringScheduleExpressionTimezoneoptionalstringScheduleExpressionTimezoneoptional*string #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.
startWindowHoursoptionalnumberstart_window_hoursoptionalint | floatstartWindowHoursoptionalNumberStartWindowHoursoptionaldoubleStartWindowHoursoptional*float64 #A value in hours after a restore test is scheduled before a job will be canceled if it doesn't start successfully. This value is optional. If this value is included, this parameter has a maximum value of 168 hours (one week).
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #A tag is a key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters,numbers, spaces, and the following characters: + - = . _ : /.