@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-22T10:27:16.162Z") @Stability(value=Stable) public class CfnBackupVault extends CfnResource implements IInspectable
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
Example:
|
static interface |
CfnBackupVault.NotificationObjectTypeProperty
Example:
|
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()
`AWS::Backup::BackupVault.AccessPolicy`.
|
String |
getAttrBackupVaultArn() |
String |
getAttrBackupVaultName() |
String |
getBackupVaultName()
`AWS::Backup::BackupVault.BackupVaultName`.
|
Object |
getBackupVaultTags()
`AWS::Backup::BackupVault.BackupVaultTags`.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getEncryptionKeyArn()
`AWS::Backup::BackupVault.EncryptionKeyArn`.
|
Object |
getLockConfiguration()
`AWS::Backup::BackupVault.LockConfiguration`.
|
Object |
getNotifications()
`AWS::Backup::BackupVault.Notifications`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessPolicy(Object value)
`AWS::Backup::BackupVault.AccessPolicy`.
|
void |
setBackupVaultName(String value)
`AWS::Backup::BackupVault.BackupVaultName`.
|
void |
setBackupVaultTags(IResolvable value)
`AWS::Backup::BackupVault.BackupVaultTags`.
|
void |
setBackupVaultTags(Map<String,String> value)
`AWS::Backup::BackupVault.BackupVaultTags`.
|
void |
setEncryptionKeyArn(String value)
`AWS::Backup::BackupVault.EncryptionKeyArn`.
|
void |
setLockConfiguration(CfnBackupVault.LockConfigurationTypeProperty value)
`AWS::Backup::BackupVault.LockConfiguration`.
|
void |
setLockConfiguration(IResolvable value)
`AWS::Backup::BackupVault.LockConfiguration`.
|
void |
setNotifications(CfnBackupVault.NotificationObjectTypeProperty value)
`AWS::Backup::BackupVault.Notifications`.
|
void |
setNotifications(IResolvable value)
`AWS::Backup::BackupVault.Notifications`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, 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 Object getAccessPolicy()
@Stability(value=Stable)
public void setAccessPolicy(@NotNull
Object value)
@Stability(value=Stable) @NotNull public String getAttrBackupVaultArn()
@Stability(value=Stable) @NotNull public String getAttrBackupVaultName()
@Stability(value=Stable) @NotNull public String getBackupVaultName()
@Stability(value=Stable)
public void setBackupVaultName(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getBackupVaultTags()
@Stability(value=Stable)
public void setBackupVaultTags(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setBackupVaultTags(@Nullable
Map<String,String> value)
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getEncryptionKeyArn()
@Stability(value=Stable)
public void setEncryptionKeyArn(@Nullable
String value)
@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 © 2021. All rights reserved.