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

io.burkard.cdk.services.autoscaling.LaunchTemplateOverrides.scala Maven / Gradle / Ivy

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

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

  def apply(
    instanceType: software.amazon.awscdk.services.ec2.InstanceType,
    launchTemplate: Option[software.amazon.awscdk.services.ec2.ILaunchTemplate] = None,
    weightedCapacity: Option[Number] = None
  ): software.amazon.awscdk.services.autoscaling.LaunchTemplateOverrides =
    (new software.amazon.awscdk.services.autoscaling.LaunchTemplateOverrides.Builder)
      .instanceType(instanceType)
      .launchTemplate(launchTemplate.orNull)
      .weightedCapacity(weightedCapacity.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy