io.burkard.cdk.services.ecs.patterns.NetworkLoadBalancedFargateServiceProps.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 NetworkLoadBalancedFargateServiceProps {
def apply(
minHealthyPercent: Option[Number] = None,
recordType: Option[software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedServiceRecordType] = None,
memoryLimitMiB: Option[Number] = None,
healthCheckGracePeriod: Option[software.amazon.awscdk.Duration] = None,
platformVersion: Option[software.amazon.awscdk.services.ecs.FargatePlatformVersion] = None,
desiredCount: Option[Number] = None,
serviceName: Option[String] = None,
enableExecuteCommand: Option[Boolean] = None,
domainZone: Option[software.amazon.awscdk.services.route53.IHostedZone] = None,
domainName: Option[String] = None,
maxHealthyPercent: Option[Number] = None,
circuitBreaker: Option[software.amazon.awscdk.services.ecs.DeploymentCircuitBreaker] = 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,
loadBalancer: Option[software.amazon.awscdk.services.elasticloadbalancingv2.INetworkLoadBalancer] = None,
taskImageOptions: Option[software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedTaskImageOptions] = None,
taskSubnets: Option[software.amazon.awscdk.services.ec2.SubnetSelection] = None,
taskDefinition: Option[software.amazon.awscdk.services.ecs.FargateTaskDefinition] = None,
deploymentController: Option[software.amazon.awscdk.services.ecs.DeploymentController] = None,
vpc: Option[software.amazon.awscdk.services.ec2.IVpc] = None,
publicLoadBalancer: Option[Boolean] = None,
listenerPort: Option[Number] = None,
cloudMapOptions: Option[software.amazon.awscdk.services.ecs.CloudMapOptions] = None,
capacityProviderStrategies: Option[List[_ <: software.amazon.awscdk.services.ecs.CapacityProviderStrategy]] = None
): software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedFargateServiceProps =
(new software.amazon.awscdk.services.ecs.patterns.NetworkLoadBalancedFargateServiceProps.Builder)
.minHealthyPercent(minHealthyPercent.orNull)
.recordType(recordType.orNull)
.memoryLimitMiB(memoryLimitMiB.orNull)
.healthCheckGracePeriod(healthCheckGracePeriod.orNull)
.platformVersion(platformVersion.orNull)
.desiredCount(desiredCount.orNull)
.serviceName(serviceName.orNull)
.enableExecuteCommand(enableExecuteCommand.map(Boolean.box).orNull)
.domainZone(domainZone.orNull)
.domainName(domainName.orNull)
.maxHealthyPercent(maxHealthyPercent.orNull)
.circuitBreaker(circuitBreaker.orNull)
.cluster(cluster.orNull)
.assignPublicIp(assignPublicIp.map(Boolean.box).orNull)
.propagateTags(propagateTags.orNull)
.enableEcsManagedTags(enableEcsManagedTags.map(Boolean.box).orNull)
.cpu(cpu.orNull)
.loadBalancer(loadBalancer.orNull)
.taskImageOptions(taskImageOptions.orNull)
.taskSubnets(taskSubnets.orNull)
.taskDefinition(taskDefinition.orNull)
.deploymentController(deploymentController.orNull)
.vpc(vpc.orNull)
.publicLoadBalancer(publicLoadBalancer.map(Boolean.box).orNull)
.listenerPort(listenerPort.orNull)
.cloudMapOptions(cloudMapOptions.orNull)
.capacityProviderStrategies(capacityProviderStrategies.map(_.asJava).orNull)
.build()
}