Interface CfnBackupPlan.BackupPlanResourceTypeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBackupPlan.BackupPlanResourceTypeProperty.Jsii$Proxy
- Enclosing class:
CfnBackupPlan
@Stability(Stable)
public static interface CfnBackupPlan.BackupPlanResourceTypeProperty
extends software.amazon.jsii.JsiiSerializable
Specifies an object containing properties used to create a backup plan.
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.*;
Object backupOptions;
BackupPlanResourceTypeProperty backupPlanResourceTypeProperty = BackupPlanResourceTypeProperty.builder()
.backupPlanName("backupPlanName")
.backupPlanRule(List.of(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()))
// the properties below are optional
.advancedBackupSettings(List.of(AdvancedBackupSettingResourceTypeProperty.builder()
.backupOptions(backupOptions)
.resourceType("resourceType")
.build()))
.scanSettings(List.of(ScanSettingResourceTypeProperty.builder()
.malwareScanner("malwareScanner")
.resourceTypes(List.of("resourceTypes"))
.scannerRoleArn("scannerRoleArn")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnBackupPlan.BackupPlanResourceTypePropertystatic final classAn implementation forCfnBackupPlan.BackupPlanResourceTypeProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA list of backup options for each resource type.The display name of a backup plan.An array ofBackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources.default ObjectReturns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnBackupPlan.ScanSettingResourceTypeProperty>Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBackupPlanName
The display name of a backup plan.- See Also:
-
getBackupPlanRule
An array ofBackupRuleobjects, each of which specifies a scheduled task that is used to back up a selection of resources.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBackupPlan.BackupRuleResourceTypeProperty>- See Also:
-
getAdvancedBackupSettings
A list of backup options for each resource type.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBackupPlan.AdvancedBackupSettingResourceTypeProperty>- See Also:
-
getScanSettings
Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnBackupPlan.ScanSettingResourceTypeProperty>- See Also:
-
builder
-