io.burkard.cdk.services.globalaccelerator.endpoints.InstanceEndpoint.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 InstanceEndpoint {
def apply(
instance: software.amazon.awscdk.services.ec2.IInstance,
preserveClientIp: Option[Boolean] = None,
weight: Option[Number] = None
): software.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpoint =
software.amazon.awscdk.services.globalaccelerator.endpoints.InstanceEndpoint.Builder
.create(instance)
.preserveClientIp(preserveClientIp.map(Boolean.box).orNull)
.weight(weight.orNull)
.build()
}