Class CfnBackupPlan
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.backup.CfnBackupPlan
- All Implemented Interfaces:
IInspectable
,ITaggableV2
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:12:53.573Z")
@Stability(Stable)
public class CfnBackupPlan
extends CfnResource
implements IInspectable, ITaggableV2
Contains an optional backup plan display name and an array of
BackupRule
objects, each of which specifies a backup rule.
Each rule in a backup plan is a separate scheduled task and can back up a different selection of AWS resources.
For a sample AWS CloudFormation template, see the AWS Backup Developer Guide .
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; CfnBackupPlan cfnBackupPlan = CfnBackupPlan.Builder.create(this, "MyCfnBackupPlan") .backupPlan(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) .lifecycle(LifecycleResourceTypeProperty.builder() .deleteAfterDays(123) .moveToColdStorageAfterDays(123) .optInToArchiveForSupportedResources(false) .build()) .recoveryPointTags(Map.of( "recoveryPointTagsKey", "recoveryPointTags")) .scheduleExpression("scheduleExpression") .scheduleExpressionTimezone("scheduleExpressionTimezone") .startWindowMinutes(123) .build())) // the properties below are optional .advancedBackupSettings(List.of(AdvancedBackupSettingResourceTypeProperty.builder() .backupOptions(backupOptions) .resourceType("resourceType") .build())) .build()) // the properties below are optional .backupPlanTags(Map.of( "backupPlanTagsKey", "backupPlanTags")) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Specifies an object containing resource type and backup options.static interface
Specifies an object containing properties used to create a backup plan.static interface
Specifies an object containing properties used to schedule a task to back up a selection of resources.static final class
A fluent builder forCfnBackupPlan
.static interface
Copies backups created by a backup rule to another vault.static interface
Specifies an object containing an array ofTransition
objects that determine how long in days before a recovery point transitions to cold storage or is deleted.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnBackupPlan
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnBackupPlan
(software.amazon.jsii.JsiiObjectRef objRef) CfnBackupPlan
(software.constructs.Construct scope, String id, CfnBackupPlanProps props) -
Method Summary
Modifier and TypeMethodDescriptionAn Amazon Resource Name (ARN) that uniquely identifies a backup plan;Uniquely identifies a backup plan.Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long.Uniquely identifies the backup plan to be associated with the selection of resources.The tags to assign to the backup plan.Tag Manager which manages the tags for this resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setBackupPlan
(IResolvable value) Uniquely identifies the backup plan to be associated with the selection of resources.void
Uniquely identifies the backup plan to be associated with the selection of resources.void
setBackupPlanTags
(Map<String, String> value) The tags to assign to the backup plan.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnBackupPlan
protected CfnBackupPlan(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBackupPlan
protected CfnBackupPlan(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBackupPlan
@Stability(Stable) public CfnBackupPlan(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnBackupPlanProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrBackupPlanArn
An Amazon Resource Name (ARN) that uniquely identifies a backup plan;for example,
arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50
. -
getAttrBackupPlanId
Uniquely identifies a backup plan. -
getAttrVersionId
Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long.Version Ids cannot be edited.
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getBackupPlan
Uniquely identifies the backup plan to be associated with the selection of resources. -
setBackupPlan
Uniquely identifies the backup plan to be associated with the selection of resources. -
setBackupPlan
@Stability(Stable) public void setBackupPlan(@NotNull CfnBackupPlan.BackupPlanResourceTypeProperty value) Uniquely identifies the backup plan to be associated with the selection of resources. -
getBackupPlanTags
The tags to assign to the backup plan. -
setBackupPlanTags
The tags to assign to the backup plan.
-