io.burkard.cdk.services.lambda.CodeImageConfig.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 CodeImageConfig {
def apply(
imageUri: String,
cmd: Option[List[String]] = None,
entrypoint: Option[List[String]] = None,
workingDirectory: Option[String] = None
): software.amazon.awscdk.services.lambda.CodeImageConfig =
(new software.amazon.awscdk.services.lambda.CodeImageConfig.Builder)
.imageUri(imageUri)
.cmd(cmd.map(_.asJava).orNull)
.entrypoint(entrypoint.map(_.asJava).orNull)
.workingDirectory(workingDirectory.orNull)
.build()
}