CfnBackupVaultProps
Struct External
Properties for defining a CfnBackupVault.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';
declare const accessPolicy: any;
const cfnBackupVaultProps: backup.CfnBackupVaultProps = {
backupVaultName: 'backupVaultName',
// the properties below are optional
accessPolicy: accessPolicy,
backupVaultTags: {
backupVaultTagsKey: 'backupVaultTags',
},
encryptionKeyArn: 'encryptionKeyArn',
lockConfiguration: {
minRetentionDays: 123,
// the properties below are optional
changeableForDays: 123,
maxRetentionDays: 123,
},
notifications: {
backupVaultEvents: ['backupVaultEvents'],
snsTopicArn: 'snsTopicArn',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_backup as backup
# access_policy: Any
cfn_backup_vault_props = backup.CfnBackupVaultProps(
backup_vault_name="backupVaultName",
# the properties below are optional
access_policy=access_policy,
backup_vault_tags={
"backup_vault_tags_key": "backupVaultTags"
},
encryption_key_arn="encryptionKeyArn",
lock_configuration=backup.CfnBackupVault.LockConfigurationTypeProperty(
min_retention_days=123,
# the properties below are optional
changeable_for_days=123,
max_retention_days=123
),
notifications=backup.CfnBackupVault.NotificationObjectTypeProperty(
backup_vault_events=["backupVaultEvents"],
sns_topic_arn="snsTopicArn"
)
)
java
// 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;
CfnBackupVaultProps cfnBackupVaultProps = CfnBackupVaultProps.builder()
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 accessPolicy;
var cfnBackupVaultProps = new CfnBackupVaultProps {
BackupVaultName = "backupVaultName",
// the properties below are optional
AccessPolicy = accessPolicy,
BackupVaultTags = new Dictionary<string, string> {
{ "backupVaultTagsKey", "backupVaultTags" }
},
EncryptionKeyArn = "encryptionKeyArn",
LockConfiguration = new LockConfigurationTypeProperty {
MinRetentionDays = 123,
// the properties below are optional
ChangeableForDays = 123,
MaxRetentionDays = 123
},
Notifications = new NotificationObjectTypeProperty {
BackupVaultEvents = new [] { "backupVaultEvents" },
SnsTopicArn = "snsTopicArn"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var accessPolicy interface{}
cfnBackupVaultProps := &CfnBackupVaultProps{
BackupVaultName: jsii.String("backupVaultName"),
// the properties below are optional
AccessPolicy: accessPolicy,
BackupVaultTags: map[string]*string{
"backupVaultTagsKey": jsii.String("backupVaultTags"),
},
EncryptionKeyArn: jsii.String("encryptionKeyArn"),
LockConfiguration: &LockConfigurationTypeProperty{
MinRetentionDays: jsii.Number(123),
// the properties below are optional
ChangeableForDays: jsii.Number(123),
MaxRetentionDays: jsii.Number(123),
},
Notifications: &NotificationObjectTypeProperty{
BackupVaultEvents: []*string{
jsii.String("backupVaultEvents"),
},
SnsTopicArn: jsii.String("snsTopicArn"),
},
}
Properties
accessPolicyoptionalanyaccess_policyoptionalAnyaccessPolicyoptionalObjectAccessPolicyoptionalobjectAccessPolicyoptionalinterface{} #A resource-based policy that is used to manage access permissions on the target backup vault.
backupVaultNamestringbackup_vault_namestrbackupVaultNameStringBackupVaultNamestringBackupVaultName*string required #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.
backupVaultTagsoptional{ [key: string]: string }backup_vault_tagsoptionaltyping.Mapping[str, str]backupVaultTagsoptionalMap<String, String>BackupVaultTagsoptionalIDictionary<string, string>BackupVaultTagsoptional*map[string]*string #The tags to assign to the backup vault.
encryptionKeyArnoptionalstring | IKeyRefencryption_key_arnoptionaltyping.Union[str, IKeyRef]encryptionKeyArnoptionalStringEncryptionKeyArnoptionalstringEncryptionKeyArnoptionalinterface{} #A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management;
notes
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
lockConfigurationoptionalIResolvable | CfnBackupVault.lock_configurationoptionaltyping.Union[IResolvable, LockConfigurationTypeProperty]lockConfigurationoptionalIResolvableLockConfigurationoptionalIResolvableLockConfigurationoptionalinterface{} #Configuration for AWS Backup Vault Lock .
notificationsoptionalIResolvable | CfnBackupVault.notificationsoptionaltyping.Union[IResolvable, NotificationObjectTypeProperty]notificationsoptionalIResolvableNotificationsoptionalIResolvableNotificationsoptionalinterface{} #The SNS event notifications for the specified backup vault.