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