io.burkard.cdk.services.lambda.CfnLayerVersion.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 CfnLayerVersion {
def apply(
internalResourceId: String,
content: software.amazon.awscdk.services.lambda.CfnLayerVersion.ContentProperty,
description: Option[String] = None,
compatibleArchitectures: Option[List[String]] = None,
compatibleRuntimes: Option[List[String]] = None,
licenseInfo: Option[String] = None,
layerName: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.lambda.CfnLayerVersion =
software.amazon.awscdk.services.lambda.CfnLayerVersion.Builder
.create(stackCtx, internalResourceId)
.content(content)
.description(description.orNull)
.compatibleArchitectures(compatibleArchitectures.map(_.asJava).orNull)
.compatibleRuntimes(compatibleRuntimes.map(_.asJava).orNull)
.licenseInfo(licenseInfo.orNull)
.layerName(layerName.orNull)
.build()
}