All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.burkard.cdk.services.ecs.EcsTarget.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.ecs

@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object EcsTarget {

  def apply(
    containerName: String,
    newTargetGroupId: String,
    listener: software.amazon.awscdk.services.ecs.ListenerConfig,
    containerPort: Option[Number] = None,
    protocol: Option[software.amazon.awscdk.services.ecs.Protocol] = None
  ): software.amazon.awscdk.services.ecs.EcsTarget =
    (new software.amazon.awscdk.services.ecs.EcsTarget.Builder)
      .containerName(containerName)
      .newTargetGroupId(newTargetGroupId)
      .listener(listener)
      .containerPort(containerPort.orNull)
      .protocol(protocol.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy