io.burkard.cdk.services.appmesh.VirtualRouter.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.appmesh
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object VirtualRouter {
def apply(
internalResourceId: String,
mesh: software.amazon.awscdk.services.appmesh.IMesh,
listeners: Option[List[_ <: software.amazon.awscdk.services.appmesh.VirtualRouterListener]] = None,
virtualRouterName: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.appmesh.VirtualRouter =
software.amazon.awscdk.services.appmesh.VirtualRouter.Builder
.create(stackCtx, internalResourceId)
.mesh(mesh)
.listeners(listeners.map(_.asJava).orNull)
.virtualRouterName(virtualRouterName.orNull)
.build()
}