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