All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.ec2.AmazonLinuxImage.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.ec2

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object AmazonLinuxImage {

  def apply(
    kernel: Option[software.amazon.awscdk.services.ec2.AmazonLinuxKernel] = None,
    virtualization: Option[software.amazon.awscdk.services.ec2.AmazonLinuxVirt] = None,
    cachedInContext: Option[Boolean] = None,
    generation: Option[software.amazon.awscdk.services.ec2.AmazonLinuxGeneration] = None,
    userData: Option[software.amazon.awscdk.services.ec2.UserData] = None,
    edition: Option[software.amazon.awscdk.services.ec2.AmazonLinuxEdition] = None,
    cpuType: Option[software.amazon.awscdk.services.ec2.AmazonLinuxCpuType] = None,
    storage: Option[software.amazon.awscdk.services.ec2.AmazonLinuxStorage] = None
  ): software.amazon.awscdk.services.ec2.AmazonLinuxImage =
    software.amazon.awscdk.services.ec2.AmazonLinuxImage.Builder
      .create()
      .kernel(kernel.orNull)
      .virtualization(virtualization.orNull)
      .cachedInContext(cachedInContext.map(Boolean.box).orNull)
      .generation(generation.orNull)
      .userData(userData.orNull)
      .edition(edition.orNull)
      .cpuType(cpuType.orNull)
      .storage(storage.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy