io.burkard.cdk.services.ec2.LookupMachineImage.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ec2
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object LookupMachineImage {
def apply(
name: String,
userData: Option[software.amazon.awscdk.services.ec2.UserData] = None,
owners: Option[List[String]] = None,
filters: Option[Map[String, _ <: List[String]]] = None,
windows: Option[Boolean] = None
): software.amazon.awscdk.services.ec2.LookupMachineImage =
software.amazon.awscdk.services.ec2.LookupMachineImage.Builder
.create()
.name(name)
.userData(userData.orNull)
.owners(owners.map(_.asJava).orNull)
.filters(filters.map(_.mapValues(_.asJava).toMap.asJava).orNull)
.windows(windows.map(Boolean.box).orNull)
.build()
}