io.burkard.cdk.services.lambda.LayerVersionProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.lambda
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object LayerVersionProps {
def apply(
code: software.amazon.awscdk.services.lambda.Code,
description: Option[String] = None,
compatibleArchitectures: Option[List[_ <: software.amazon.awscdk.services.lambda.Architecture]] = None,
compatibleRuntimes: Option[List[_ <: software.amazon.awscdk.services.lambda.Runtime]] = None,
license: Option[String] = None,
layerVersionName: Option[String] = None,
removalPolicy: Option[software.amazon.awscdk.RemovalPolicy] = None
): software.amazon.awscdk.services.lambda.LayerVersionProps =
(new software.amazon.awscdk.services.lambda.LayerVersionProps.Builder)
.code(code)
.description(description.orNull)
.compatibleArchitectures(compatibleArchitectures.map(_.asJava).orNull)
.compatibleRuntimes(compatibleRuntimes.map(_.asJava).orNull)
.license(license.orNull)
.layerVersionName(layerVersionName.orNull)
.removalPolicy(removalPolicy.orNull)
.build()
}