Class CfnBackupVault
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggableV2,IBackupVaultRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
A CreateBackupVault request includes a name, optionally one or more resource tags, an encryption key, and a request ID.
Do not include sensitive data, such as passport numbers, in the name of a backup vault.
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 accessPolicy;
CfnBackupVault cfnBackupVault = CfnBackupVault.Builder.create(this, "MyCfnBackupVault")
.backupVaultName("backupVaultName")
// the properties below are optional
.accessPolicy(accessPolicy)
.backupVaultTags(Map.of(
"backupVaultTagsKey", "backupVaultTags"))
.encryptionKeyArn("encryptionKeyArn")
.lockConfiguration(LockConfigurationTypeProperty.builder()
.minRetentionDays(123)
// the properties below are optional
.changeableForDays(123)
.maxRetentionDays(123)
.build())
.notifications(NotificationObjectTypeProperty.builder()
.backupVaultEvents(List.of("backupVaultEvents"))
.snsTopicArn("snsTopicArn")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnBackupVault.static interfaceTheLockConfigurationTypeproperty type specifies configuration for AWS Backup Vault Lock .static interfaceSpecifies an object containing SNS event notification properties for the target backup vault.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.backup.IBackupVaultRef
IBackupVaultRef.Jsii$Default, IBackupVaultRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnBackupVault(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnBackupVault(software.amazon.jsii.JsiiObjectRef objRef) CfnBackupVault(software.constructs.Construct scope, String id, CfnBackupVaultProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IBackupVaultReffromBackupVaultArn(software.constructs.Construct scope, String id, String arn) Creates a new IBackupVaultRef from an ARN.static IBackupVaultReffromBackupVaultName(software.constructs.Construct scope, String id, String backupVaultName) Creates a new IBackupVaultRef from a backupVaultName.A resource-based policy that is used to manage access permissions on the target backup vault.An Amazon Resource Name (ARN) that uniquely identifies a backup vault;The name of a logical container where backups are stored.The name of a logical container where backups are stored.A reference to a BackupVault resource.The tags to assign to the backup vault.Tag Manager which manages the tags for this resource.A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management;Configuration for AWS Backup Vault Lock .The SNS event notifications for the specified backup vault.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccessPolicy(Object value) A resource-based policy that is used to manage access permissions on the target backup vault.voidsetBackupVaultName(String value) The name of a logical container where backups are stored.voidsetBackupVaultTags(Map<String, String> value) The tags to assign to the backup vault.voidsetEncryptionKeyArn(String value) A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management;voidsetLockConfiguration(IResolvable value) Configuration for AWS Backup Vault Lock .voidConfiguration for AWS Backup Vault Lock .voidsetNotifications(IResolvable value) The SNS event notifications for the specified backup vault.voidThe SNS event notifications for the specified backup vault.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods 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
-
CfnBackupVault
protected CfnBackupVault(software.amazon.jsii.JsiiObjectRef objRef) -
CfnBackupVault
protected CfnBackupVault(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnBackupVault
@Stability(Stable) public CfnBackupVault(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnBackupVaultProps 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
-
fromBackupVaultArn
@Stability(Stable) @NotNull public static IBackupVaultRef fromBackupVaultArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IBackupVaultRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromBackupVaultName
@Stability(Stable) @NotNull public static IBackupVaultRef fromBackupVaultName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String backupVaultName) Creates a new IBackupVaultRef from a backupVaultName.- Parameters:
scope- This parameter is required.id- This parameter is required.backupVaultName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrBackupVaultArn
An Amazon Resource Name (ARN) that uniquely identifies a backup vault;for example,
arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault. -
getAttrBackupVaultName
The name of a logical container where backups are stored.Backup vaults are identified by names that are unique to the account used to create them and the Region where they are created. They consist of lowercase and uppercase letters, numbers, and hyphens.
-
getBackupVaultRef
A reference to a BackupVault resource.- Specified by:
getBackupVaultRefin interfaceIBackupVaultRef
-
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getBackupVaultName
The name of a logical container where backups are stored. -
setBackupVaultName
The name of a logical container where backups are stored. -
getAccessPolicy
A resource-based policy that is used to manage access permissions on the target backup vault. -
setAccessPolicy
A resource-based policy that is used to manage access permissions on the target backup vault. -
getBackupVaultTags
The tags to assign to the backup vault. -
setBackupVaultTags
The tags to assign to the backup vault. -
getEncryptionKeyArn
A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management; -
setEncryptionKeyArn
A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management; -
getLockConfiguration
Configuration for AWS Backup Vault Lock .Returns union: either
IResolvableorCfnBackupVault.LockConfigurationTypeProperty -
setLockConfiguration
Configuration for AWS Backup Vault Lock . -
setLockConfiguration
@Stability(Stable) public void setLockConfiguration(@Nullable CfnBackupVault.LockConfigurationTypeProperty value) Configuration for AWS Backup Vault Lock . -
getNotifications
The SNS event notifications for the specified backup vault.Returns union: either
IResolvableorCfnBackupVault.NotificationObjectTypeProperty -
setNotifications
The SNS event notifications for the specified backup vault. -
setNotifications
@Stability(Stable) public void setNotifications(@Nullable CfnBackupVault.NotificationObjectTypeProperty value) The SNS event notifications for the specified backup vault.
-