io.burkard.cdk.services.backup.BackupVault.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.backup
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object BackupVault {
def apply(
internalResourceId: String,
notificationTopic: Option[software.amazon.awscdk.services.sns.ITopic] = None,
notificationEvents: Option[List[_ <: software.amazon.awscdk.services.backup.BackupVaultEvents]] = None,
backupVaultName: Option[String] = None,
blockRecoveryPointDeletion: Option[Boolean] = None,
accessPolicy: Option[software.amazon.awscdk.services.iam.PolicyDocument] = None,
lockConfiguration: Option[software.amazon.awscdk.services.backup.LockConfiguration] = None,
encryptionKey: Option[software.amazon.awscdk.services.kms.IKey] = None,
removalPolicy: Option[software.amazon.awscdk.RemovalPolicy] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.backup.BackupVault =
software.amazon.awscdk.services.backup.BackupVault.Builder
.create(stackCtx, internalResourceId)
.notificationTopic(notificationTopic.orNull)
.notificationEvents(notificationEvents.map(_.asJava).orNull)
.backupVaultName(backupVaultName.orNull)
.blockRecoveryPointDeletion(blockRecoveryPointDeletion.map(Boolean.box).orNull)
.accessPolicy(accessPolicy.orNull)
.lockConfiguration(lockConfiguration.orNull)
.encryptionKey(encryptionKey.orNull)
.removalPolicy(removalPolicy.orNull)
.build()
}