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

io.burkard.cdk.services.globalaccelerator.endpoints.ApplicationLoadBalancerEndpoint.scala Maven / Gradle / Ivy

The newest version!
package io.burkard.cdk.services.globalaccelerator.endpoints

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

  def apply(
    loadBalancer: software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationLoadBalancer,
    preserveClientIp: Option[Boolean] = None,
    weight: Option[Number] = None
  ): software.amazon.awscdk.services.globalaccelerator.endpoints.ApplicationLoadBalancerEndpoint =
    software.amazon.awscdk.services.globalaccelerator.endpoints.ApplicationLoadBalancerEndpoint.Builder
      .create(loadBalancer)
      .preserveClientIp(preserveClientIp.map(Boolean.box).orNull)
      .weight(weight.orNull)
      .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy