io.burkard.cdk.services.lambda.LayerVersion.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 LayerVersion {
def apply(
internalResourceId: String,
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
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.lambda.LayerVersion =
software.amazon.awscdk.services.lambda.LayerVersion.Builder
.create(stackCtx, internalResourceId)
.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()
}