io.burkard.cdk.services.ecs.cfnService.LoadBalancerProperty.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ecs.cfnService
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object LoadBalancerProperty {
def apply(
containerPort: Number,
loadBalancerName: Option[String] = None,
targetGroupArn: Option[String] = None,
containerName: Option[String] = None
): software.amazon.awscdk.services.ecs.CfnService.LoadBalancerProperty =
(new software.amazon.awscdk.services.ecs.CfnService.LoadBalancerProperty.Builder)
.containerPort(containerPort)
.loadBalancerName(loadBalancerName.orNull)
.targetGroupArn(targetGroupArn.orNull)
.containerName(containerName.orNull)
.build()
}