Class CfnBackupVault.Builder

java.lang.Object
software.amazon.awscdk.services.backup.CfnBackupVault.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBackupVault>
Enclosing class:
CfnBackupVault

@Stability(Stable) public static final class CfnBackupVault.Builder extends Object implements software.amazon.jsii.Builder<CfnBackupVault>
A fluent builder for CfnBackupVault.
  • Method Details

    • create

      @Stability(Stable) public static CfnBackupVault.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnBackupVault.Builder.
    • backupVaultName

      @Stability(Stable) public CfnBackupVault.Builder backupVaultName(String backupVaultName)
      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.

      Parameters:
      backupVaultName - The name of a logical container where backups are stored. This parameter is required.
      Returns:
      this
    • accessPolicy

      @Stability(Stable) public CfnBackupVault.Builder accessPolicy(Object accessPolicy)
      A resource-based policy that is used to manage access permissions on the target backup vault.

      Parameters:
      accessPolicy - A resource-based policy that is used to manage access permissions on the target backup vault. This parameter is required.
      Returns:
      this
    • backupVaultTags

      @Stability(Stable) public CfnBackupVault.Builder backupVaultTags(IResolvable backupVaultTags)
      Metadata that you can assign to help organize the resources that you create.

      Each tag is a key-value pair.

      Parameters:
      backupVaultTags - Metadata that you can assign to help organize the resources that you create. This parameter is required.
      Returns:
      this
    • backupVaultTags

      @Stability(Stable) public CfnBackupVault.Builder backupVaultTags(Map<String,String> backupVaultTags)
      Metadata that you can assign to help organize the resources that you create.

      Each tag is a key-value pair.

      Parameters:
      backupVaultTags - Metadata that you can assign to help organize the resources that you create. This parameter is required.
      Returns:
      this
    • encryptionKeyArn

      @Stability(Stable) public CfnBackupVault.Builder encryptionKeyArn(String encryptionKeyArn)
      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

      Parameters:
      encryptionKeyArn - A server-side encryption key you can specify to encrypt your backups from services that support full AWS Backup management;. This parameter is required.
      Returns:
      this
    • lockConfiguration

      @Stability(Stable) public CfnBackupVault.Builder lockConfiguration(IResolvable lockConfiguration)
      Configuration for AWS Backup Vault Lock .

      Parameters:
      lockConfiguration - Configuration for AWS Backup Vault Lock . This parameter is required.
      Returns:
      this
    • lockConfiguration

      @Stability(Stable) public CfnBackupVault.Builder lockConfiguration(CfnBackupVault.LockConfigurationTypeProperty lockConfiguration)
      Configuration for AWS Backup Vault Lock .

      Parameters:
      lockConfiguration - Configuration for AWS Backup Vault Lock . This parameter is required.
      Returns:
      this
    • notifications

      @Stability(Stable) public CfnBackupVault.Builder notifications(IResolvable notifications)
      The SNS event notifications for the specified backup vault.

      Parameters:
      notifications - The SNS event notifications for the specified backup vault. This parameter is required.
      Returns:
      this
    • notifications

      @Stability(Stable) public CfnBackupVault.Builder notifications(CfnBackupVault.NotificationObjectTypeProperty notifications)
      The SNS event notifications for the specified backup vault.

      Parameters:
      notifications - The SNS event notifications for the specified backup vault. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnBackupVault build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnBackupVault>
      Returns:
      a newly built instance of CfnBackupVault.