io.burkard.cdk.services.globalaccelerator.RawEndpoint.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.globalaccelerator
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object RawEndpoint {
def apply(
endpointId: String,
region: Option[String] = None,
preserveClientIp: Option[Boolean] = None,
weight: Option[Number] = None
): software.amazon.awscdk.services.globalaccelerator.RawEndpoint =
software.amazon.awscdk.services.globalaccelerator.RawEndpoint.Builder
.create()
.endpointId(endpointId)
.region(region.orNull)
.preserveClientIp(preserveClientIp.map(Boolean.box).orNull)
.weight(weight.orNull)
.build()
}