Class CfnBackupVault
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Backup::BackupVault.
Creates a logical container where backups are stored. 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();
-
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.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnBackupVault(Construct scope, String id, CfnBackupVaultProps props) Create a newAWS::Backup::BackupVault.protectedCfnBackupVault(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnBackupVault(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA 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.Metadata that you can assign to help organize the resources that you create.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) Metadata that you can assign to help organize the resources that you create.voidsetBackupVaultTags(IResolvable value) Metadata that you can assign to help organize the resources that you create.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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnBackupVaultProps props) Create a newAWS::Backup::BackupVault.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
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. -
getBackupVaultName
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
-
setBackupVaultName
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 AWS Region where they are created. They consist of lowercase letters, numbers, and hyphens.
-
getBackupVaultTags
Metadata that you can assign to help organize the resources that you create.Each tag is a key-value pair.
-
setBackupVaultTags
Metadata that you can assign to help organize the resources that you create.Each tag is a key-value pair.
-
setBackupVaultTags
Metadata that you can assign to help organize the resources that you create.Each tag is a key-value pair.
-
getEncryptionKeyArn
A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management;for example,
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. If you specify a key, you must specify its ARN, not its alias. If you do not specify a key, AWS Backup creates a KMS key for you by default.To learn which AWS Backup services support full AWS Backup management and how AWS Backup handles encryption for backups from services that do not yet support full AWS Backup , see Encryption for backups in AWS Backup
-
setEncryptionKeyArn
A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management;for example,
arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab. If you specify a key, you must specify its ARN, not its alias. If you do not specify a key, AWS Backup creates a KMS key for you by default.To learn which AWS Backup services support full AWS Backup management and how AWS Backup handles encryption for backups from services that do not yet support full AWS Backup , see Encryption for backups in AWS Backup
-
getLockConfiguration
Configuration for AWS Backup Vault Lock . -
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. -
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.
-