All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.backup.CfnBackupVault.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 CfnBackupVault {

  def apply(
    internalResourceId: String,
    backupVaultName: String,
    encryptionKeyArn: Option[String] = None,
    backupVaultTags: Option[Map[String, String]] = None,
    accessPolicy: Option[AnyRef] = None,
    lockConfiguration: Option[software.amazon.awscdk.services.backup.CfnBackupVault.LockConfigurationTypeProperty] = None,
    notifications: Option[software.amazon.awscdk.services.backup.CfnBackupVault.NotificationObjectTypeProperty] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.backup.CfnBackupVault =
    software.amazon.awscdk.services.backup.CfnBackupVault.Builder
      .create(stackCtx, internalResourceId)
      .backupVaultName(backupVaultName)
      .encryptionKeyArn(encryptionKeyArn.orNull)
      .backupVaultTags(backupVaultTags.map(_.asJava).orNull)
      .accessPolicy(accessPolicy.orNull)
      .lockConfiguration(lockConfiguration.orNull)
      .notifications(notifications.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy