Class CfnBackupPlan.BackupPlanResourceTypeProperty
Specifies an object containing properties used to create a backup plan.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnBackupPlan.BackupPlanResourceTypeProperty : CfnBackupPlan.IBackupPlanResourceTypeProperty
Syntax (vb)
Public Class CfnBackupPlan.BackupPlanResourceTypeProperty Implements CfnBackupPlan.IBackupPlanResourceTypeProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 backupOptions;
var backupPlanResourceTypeProperty = new BackupPlanResourceTypeProperty {
BackupPlanName = "backupPlanName",
BackupPlanRule = new [] { 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"
} },
// the properties below are optional
AdvancedBackupSettings = new [] { new AdvancedBackupSettingResourceTypeProperty {
BackupOptions = backupOptions,
ResourceType = "resourceType"
} },
ScanSettings = new [] { new ScanSettingResourceTypeProperty {
MalwareScanner = "malwareScanner",
ResourceTypes = new [] { "resourceTypes" },
ScannerRoleArn = "scannerRoleArn"
} }
};
Synopsis
Constructors
| BackupPlanResourceTypeProperty() | Specifies an object containing properties used to create a backup plan. |
Properties
| AdvancedBackupSettings | A list of backup options for each resource type. |
| BackupPlanName | The display name of a backup plan. |
| BackupPlanRule | An array of |
| ScanSettings | Specifies an object containing properties used to create a backup plan. |
Constructors
BackupPlanResourceTypeProperty()
Specifies an object containing properties used to create a backup plan.
public BackupPlanResourceTypeProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 backupOptions;
var backupPlanResourceTypeProperty = new BackupPlanResourceTypeProperty {
BackupPlanName = "backupPlanName",
BackupPlanRule = new [] { 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"
} },
// the properties below are optional
AdvancedBackupSettings = new [] { new AdvancedBackupSettingResourceTypeProperty {
BackupOptions = backupOptions,
ResourceType = "resourceType"
} },
ScanSettings = new [] { new ScanSettingResourceTypeProperty {
MalwareScanner = "malwareScanner",
ResourceTypes = new [] { "resourceTypes" },
ScannerRoleArn = "scannerRoleArn"
} }
};
Properties
AdvancedBackupSettings
A list of backup options for each resource type.
public object? AdvancedBackupSettings { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnBackupPlan.IAdvancedBackupSettingResourceTypeProperty)[]
BackupPlanName
The display name of a backup plan.
public string BackupPlanName { get; set; }
Property Value
Remarks
BackupPlanRule
An array of BackupRule objects, each of which specifies a scheduled task that is used to back up a selection of resources.
public object BackupPlanRule { get; set; }
Property Value
Remarks
ScanSettings
Specifies an object containing properties used to create a backup plan.
public object? ScanSettings { get; set; }