io.burkard.cdk.services.ec2.CfnEC2FleetProps.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 CfnEC2FleetProps {
def apply(
launchTemplateConfigs: List[_],
targetCapacitySpecification: software.amazon.awscdk.services.ec2.CfnEC2Fleet.TargetCapacitySpecificationRequestProperty,
tagSpecifications: Option[List[_]] = None,
validUntil: Option[String] = None,
context: Option[String] = None,
validFrom: Option[String] = None,
spotOptions: Option[software.amazon.awscdk.services.ec2.CfnEC2Fleet.SpotOptionsRequestProperty] = None,
excessCapacityTerminationPolicy: Option[String] = None,
onDemandOptions: Option[software.amazon.awscdk.services.ec2.CfnEC2Fleet.OnDemandOptionsRequestProperty] = None,
replaceUnhealthyInstances: Option[Boolean] = None,
`type`: Option[String] = None,
terminateInstancesWithExpiration: Option[Boolean] = None
): software.amazon.awscdk.services.ec2.CfnEC2FleetProps =
(new software.amazon.awscdk.services.ec2.CfnEC2FleetProps.Builder)
.launchTemplateConfigs(launchTemplateConfigs.asJava)
.targetCapacitySpecification(targetCapacitySpecification)
.tagSpecifications(tagSpecifications.map(_.asJava).orNull)
.validUntil(validUntil.orNull)
.context(context.orNull)
.validFrom(validFrom.orNull)
.spotOptions(spotOptions.orNull)
.excessCapacityTerminationPolicy(excessCapacityTerminationPolicy.orNull)
.onDemandOptions(onDemandOptions.orNull)
.replaceUnhealthyInstances(replaceUnhealthyInstances.map(Boolean.box).orNull)
.`type`(`type`.orNull)
.terminateInstancesWithExpiration(terminateInstancesWithExpiration.map(Boolean.box).orNull)
.build()
}