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