io.burkard.cdk.services.appconfig.CfnDeploymentStrategy.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.appconfig
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnDeploymentStrategy {
def apply(
internalResourceId: String,
name: String,
replicateTo: String,
growthFactor: Number,
deploymentDurationInMinutes: Number,
description: Option[String] = None,
tags: Option[List[_ <: software.amazon.awscdk.services.appconfig.CfnDeploymentStrategy.TagsProperty]] = None,
growthType: Option[String] = None,
finalBakeTimeInMinutes: Option[Number] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.appconfig.CfnDeploymentStrategy =
software.amazon.awscdk.services.appconfig.CfnDeploymentStrategy.Builder
.create(stackCtx, internalResourceId)
.name(name)
.replicateTo(replicateTo)
.growthFactor(growthFactor)
.deploymentDurationInMinutes(deploymentDurationInMinutes)
.description(description.orNull)
.tags(tags.map(_.asJava).orNull)
.growthType(growthType.orNull)
.finalBakeTimeInMinutes(finalBakeTimeInMinutes.orNull)
.build()
}