io.burkard.cdk.services.ecs.patterns.NetworkMultipleTargetGroupsFargateServiceProps.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ecs.patterns
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object NetworkMultipleTargetGroupsFargateServiceProps {
def apply(
memoryLimitMiB: Option[Number] = None,
healthCheckGracePeriod: Option[software.amazon.awscdk.Duration] = None,
platformVersion: Option[software.amazon.awscdk.services.ecs.FargatePlatformVersion] = None,
desiredCount: Option[Number] = None,
targetGroups: Option[List[_ <: software.amazon.awscdk.services.ecs.patterns.NetworkTargetProps]] = None,
serviceName: Option[String] = None,
enableExecuteCommand: Option[Boolean] = None,
loadBalancers: Option[List[_ <: software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancerProps]] = None,
cluster: Option[software.amazon.awscdk.services.ecs.ICluster] = None,
assignPublicIp: Option[Boolean] = None,
propagateTags: Option[software.amazon.awscdk.services.ecs.PropagatedTagSource] = None,
enableEcsManagedTags: Option[Boolean] = None,
cpu: Option[Number] = None,
taskImageOptions: Option[software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedTaskImageProps] = None,
taskDefinition: Option[software.amazon.awscdk.services.ecs.FargateTaskDefinition] = None,
vpc: Option[software.amazon.awscdk.services.ec2.IVpc] = None,
cloudMapOptions: Option[software.amazon.awscdk.services.ecs.CloudMapOptions] = None
): software.amazon.awscdk.services.ecs.patterns.NetworkMultipleTargetGroupsFargateServiceProps =
(new software.amazon.awscdk.services.ecs.patterns.NetworkMultipleTargetGroupsFargateServiceProps.Builder)
.memoryLimitMiB(memoryLimitMiB.orNull)
.healthCheckGracePeriod(healthCheckGracePeriod.orNull)
.platformVersion(platformVersion.orNull)
.desiredCount(desiredCount.orNull)
.targetGroups(targetGroups.map(_.asJava).orNull)
.serviceName(serviceName.orNull)
.enableExecuteCommand(enableExecuteCommand.map(Boolean.box).orNull)
.loadBalancers(loadBalancers.map(_.asJava).orNull)
.cluster(cluster.orNull)
.assignPublicIp(assignPublicIp.map(Boolean.box).orNull)
.propagateTags(propagateTags.orNull)
.enableEcsManagedTags(enableEcsManagedTags.map(Boolean.box).orNull)
.cpu(cpu.orNull)
.taskImageOptions(taskImageOptions.orNull)
.taskDefinition(taskDefinition.orNull)
.vpc(vpc.orNull)
.cloudMapOptions(cloudMapOptions.orNull)
.build()
}