io.burkard.cdk.services.eks.NodegroupOptions.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.eks
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object NodegroupOptions {
def apply(
subnets: Option[software.amazon.awscdk.services.ec2.SubnetSelection] = None,
diskSize: Option[Number] = None,
desiredSize: Option[Number] = None,
tags: Option[Map[String, String]] = None,
forceUpdate: Option[Boolean] = None,
nodeRole: Option[software.amazon.awscdk.services.iam.IRole] = None,
taints: Option[List[_ <: software.amazon.awscdk.services.eks.TaintSpec]] = None,
instanceTypes: Option[List[_ <: software.amazon.awscdk.services.ec2.InstanceType]] = None,
labels: Option[Map[String, String]] = None,
launchTemplateSpec: Option[software.amazon.awscdk.services.eks.LaunchTemplateSpec] = None,
amiType: Option[software.amazon.awscdk.services.eks.NodegroupAmiType] = None,
releaseVersion: Option[String] = None,
capacityType: Option[software.amazon.awscdk.services.eks.CapacityType] = None,
maxSize: Option[Number] = None,
remoteAccess: Option[software.amazon.awscdk.services.eks.NodegroupRemoteAccess] = None,
minSize: Option[Number] = None,
nodegroupName: Option[String] = None
): software.amazon.awscdk.services.eks.NodegroupOptions =
(new software.amazon.awscdk.services.eks.NodegroupOptions.Builder)
.subnets(subnets.orNull)
.diskSize(diskSize.orNull)
.desiredSize(desiredSize.orNull)
.tags(tags.map(_.asJava).orNull)
.forceUpdate(forceUpdate.map(Boolean.box).orNull)
.nodeRole(nodeRole.orNull)
.taints(taints.map(_.asJava).orNull)
.instanceTypes(instanceTypes.map(_.asJava).orNull)
.labels(labels.map(_.asJava).orNull)
.launchTemplateSpec(launchTemplateSpec.orNull)
.amiType(amiType.orNull)
.releaseVersion(releaseVersion.orNull)
.capacityType(capacityType.orNull)
.maxSize(maxSize.orNull)
.remoteAccess(remoteAccess.orNull)
.minSize(minSize.orNull)
.nodegroupName(nodegroupName.orNull)
.build()
}