io.burkard.cdk.services.ecs.CfnTaskSetProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ecs
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object CfnTaskSetProps {
def apply(
service: String,
cluster: String,
taskDefinition: String,
externalId: Option[String] = None,
platformVersion: Option[String] = None,
networkConfiguration: Option[software.amazon.awscdk.services.ecs.CfnTaskSet.NetworkConfigurationProperty] = None,
scale: Option[software.amazon.awscdk.services.ecs.CfnTaskSet.ScaleProperty] = None,
launchType: Option[String] = None,
loadBalancers: Option[List[_]] = None,
serviceRegistries: Option[List[_]] = None
): software.amazon.awscdk.services.ecs.CfnTaskSetProps =
(new software.amazon.awscdk.services.ecs.CfnTaskSetProps.Builder)
.service(service)
.cluster(cluster)
.taskDefinition(taskDefinition)
.externalId(externalId.orNull)
.platformVersion(platformVersion.orNull)
.networkConfiguration(networkConfiguration.orNull)
.scale(scale.orNull)
.launchType(launchType.orNull)
.loadBalancers(loadBalancers.map(_.asJava).orNull)
.serviceRegistries(serviceRegistries.map(_.asJava).orNull)
.build()
}