Class BackupVault
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.backup.BackupVault
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IBackupVault,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:49.605Z")
@Stability(Stable)
public class BackupVault
extends Resource
implements IBackupVault
A backup vault.
Example:
IBackupVault importedVault = BackupVault.fromBackupVaultName(this, "Vault", "myVaultName");
Role role = Role.Builder.create(this, "Access Role").assumedBy(new ServicePrincipal("lambda.amazonaws.com")).build();
importedVault.grant(role, "backup:StartBackupJob");
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.backup.IBackupVault
IBackupVault.Jsii$Default, IBackupVault.Jsii$ProxyNested 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.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBackupVault(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBackupVault(software.amazon.jsii.JsiiObjectRef objRef) BackupVault(software.constructs.Construct scope, String id) BackupVault(software.constructs.Construct scope, String id, BackupVaultProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToAccessPolicy(PolicyStatement statement) Adds a statement to the vault access policy.voidAdds a statement to the vault access policy that prevents anyone from deleting a recovery point.static IBackupVaultfromBackupVaultArn(software.constructs.Construct scope, String id, String backupVaultArn) Import an existing backup vault by arn.static IBackupVaultfromBackupVaultName(software.constructs.Construct scope, String id, String backupVaultName) Import an existing backup vault by name.The ARN of the backup vault.The name of a logical container where backups are stored.grant(IGrantable grantee, @NotNull String... actions) Grant the actions defined in actions to the given grantee on this Backup Vault resource.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods 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.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
BackupVault
protected BackupVault(software.amazon.jsii.JsiiObjectRef objRef) -
BackupVault
protected BackupVault(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
BackupVault
@Stability(Stable) public BackupVault(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable BackupVaultProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
BackupVault
@Stability(Stable) public BackupVault(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromBackupVaultArn
@Stability(Stable) @NotNull public static IBackupVault fromBackupVaultArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String backupVaultArn) Import an existing backup vault by arn.- Parameters:
scope- This parameter is required.id- This parameter is required.backupVaultArn- This parameter is required.
-
fromBackupVaultName
@Stability(Stable) @NotNull public static IBackupVault fromBackupVaultName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String backupVaultName) Import an existing backup vault by name.- Parameters:
scope- This parameter is required.id- This parameter is required.backupVaultName- This parameter is required.
-
addToAccessPolicy
Adds a statement to the vault access policy.- Parameters:
statement- This parameter is required.
-
blockRecoveryPointDeletion
@Stability(Stable) public void blockRecoveryPointDeletion()Adds a statement to the vault access policy that prevents anyone from deleting a recovery point. -
grant
@Stability(Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions) Grant the actions defined in actions to the given grantee on this Backup Vault resource.- Specified by:
grantin interfaceIBackupVault- Parameters:
grantee- Principal to grant right to. This parameter is required.actions- The actions to grant. This parameter is required.
-
getBackupVaultArn
The ARN of the backup vault.- Specified by:
getBackupVaultArnin interfaceIBackupVault
-
getBackupVaultName
The name of a logical container where backups are stored.- Specified by:
getBackupVaultNamein interfaceIBackupVault
-