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

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

  def apply(
    internalResourceId: String,
    backupPlanName: Option[String] = None,
    backupVault: Option[software.amazon.awscdk.services.backup.IBackupVault] = None,
    backupPlanRules: Option[List[_ <: software.amazon.awscdk.services.backup.BackupPlanRule]] = None,
    windowsVss: Option[Boolean] = None
  )(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.backup.BackupPlan =
    software.amazon.awscdk.services.backup.BackupPlan.Builder
      .create(stackCtx, internalResourceId)
      .backupPlanName(backupPlanName.orNull)
      .backupVault(backupVault.orNull)
      .backupPlanRules(backupPlanRules.map(_.asJava).orNull)
      .windowsVss(windowsVss.map(Boolean.box).orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy