io.burkard.cdk.services.ec2.LookupMachineImageProps.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 LookupMachineImageProps {
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.LookupMachineImageProps =
(new software.amazon.awscdk.services.ec2.LookupMachineImageProps.Builder)
.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()
}