@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.859Z") @Stability(value=Stable) public class CfnBackupVault extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnBackupVault.Builder
A fluent builder for
CfnBackupVault. |
static interface |
CfnBackupVault.LockConfigurationTypeProperty
The `LockConfigurationType` property type specifies configuration for [AWS Backup Vault Lock](https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html) .
|
static interface |
CfnBackupVault.NotificationObjectTypeProperty
Specifies an object containing SNS event notification properties for the target backup vault.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnBackupVault(software.constructs.Construct scope,
String id,
CfnBackupVaultProps props)
Create a new `AWS::Backup::BackupVault`.
|
protected |
CfnBackupVault(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnBackupVault(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAccessPolicy()
A resource-based policy that is used to manage access permissions on the target backup vault.
|
String |
getAttrBackupVaultArn()
An Amazon Resource Name (ARN) that uniquely identifies a backup vault;
|
String |
getAttrBackupVaultName()
The name of a logical container where backups are stored.
|
String |
getBackupVaultName()
The name of a logical container where backups are stored.
|
Object |
getBackupVaultTags()
Metadata that you can assign to help organize the resources that you create.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getEncryptionKeyArn()
A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management;
|
Object |
getLockConfiguration()
Configuration for [AWS Backup Vault Lock](https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html) .
|
Object |
getNotifications()
The SNS event notifications for the specified backup vault.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessPolicy(Object value)
A resource-based policy that is used to manage access permissions on the target backup vault.
|
void |
setBackupVaultName(String value)
The name of a logical container where backups are stored.
|
void |
setBackupVaultTags(IResolvable value)
Metadata that you can assign to help organize the resources that you create.
|
void |
setBackupVaultTags(Map<String,String> value)
Metadata that you can assign to help organize the resources that you create.
|
void |
setEncryptionKeyArn(String value)
A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management;
|
void |
setLockConfiguration(CfnBackupVault.LockConfigurationTypeProperty value)
Configuration for [AWS Backup Vault Lock](https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html) .
|
void |
setLockConfiguration(IResolvable value)
Configuration for [AWS Backup Vault Lock](https://docs.aws.amazon.com/aws-backup/latest/devguide/vault-lock.html) .
|
void |
setNotifications(CfnBackupVault.NotificationObjectTypeProperty value)
The SNS event notifications for the specified backup vault.
|
void |
setNotifications(IResolvable value)
The SNS event notifications for the specified backup vault.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnBackupVault(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnBackupVault(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnBackupVault(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnBackupVaultProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrBackupVaultArn()
for example, arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault .
@Stability(value=Stable) @NotNull public String getAttrBackupVaultName()
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.
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getAccessPolicy()
@Stability(value=Stable)
public void setAccessPolicy(@NotNull
Object value)
@Stability(value=Stable) @NotNull public String getBackupVaultName()
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.
@Stability(value=Stable)
public void setBackupVaultName(@NotNull
String value)
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.
@Stability(value=Stable) @Nullable public Object getBackupVaultTags()
Each tag is a key-value pair.
@Stability(value=Stable)
public void setBackupVaultTags(@Nullable
IResolvable value)
Each tag is a key-value pair.
@Stability(value=Stable)
public void setBackupVaultTags(@Nullable
Map<String,String> value)
Each tag is a key-value pair.
@Stability(value=Stable) @Nullable public String getEncryptionKeyArn()
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
@Stability(value=Stable)
public void setEncryptionKeyArn(@Nullable
String value)
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
@Stability(value=Stable) @Nullable public Object getLockConfiguration()
@Stability(value=Stable)
public void setLockConfiguration(@Nullable
CfnBackupVault.LockConfigurationTypeProperty value)
@Stability(value=Stable)
public void setLockConfiguration(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getNotifications()
@Stability(value=Stable)
public void setNotifications(@Nullable
CfnBackupVault.NotificationObjectTypeProperty value)
@Stability(value=Stable)
public void setNotifications(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.