io.burkard.cdk.services.eks.CfnFargateProfileProps.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 CfnFargateProfileProps {
def apply(
podExecutionRoleArn: String,
selectors: List[_],
clusterName: String,
subnets: Option[List[String]] = None,
tags: Option[List[_ <: software.amazon.awscdk.CfnTag]] = None,
fargateProfileName: Option[String] = None
): software.amazon.awscdk.services.eks.CfnFargateProfileProps =
(new software.amazon.awscdk.services.eks.CfnFargateProfileProps.Builder)
.podExecutionRoleArn(podExecutionRoleArn)
.selectors(selectors.asJava)
.clusterName(clusterName)
.subnets(subnets.map(_.asJava).orNull)
.tags(tags.map(_.asJava).orNull)
.fargateProfileName(fargateProfileName.orNull)
.build()
}