io.burkard.cdk.services.ec2.InterfaceVpcEndpointOptions.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.ec2
import scala.collection.JavaConverters._
@scala.annotation.nowarn("cat=deprecation")
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object InterfaceVpcEndpointOptions {
def apply(
service: software.amazon.awscdk.services.ec2.IInterfaceVpcEndpointService,
subnets: Option[software.amazon.awscdk.services.ec2.SubnetSelection] = None,
lookupSupportedAzs: Option[Boolean] = None,
open: Option[Boolean] = None,
privateDnsEnabled: Option[Boolean] = None,
securityGroups: Option[List[_ <: software.amazon.awscdk.services.ec2.ISecurityGroup]] = None
): software.amazon.awscdk.services.ec2.InterfaceVpcEndpointOptions =
(new software.amazon.awscdk.services.ec2.InterfaceVpcEndpointOptions.Builder)
.service(service)
.subnets(subnets.orNull)
.lookupSupportedAzs(lookupSupportedAzs.map(Boolean.box).orNull)
.open(open.map(Boolean.box).orNull)
.privateDnsEnabled(privateDnsEnabled.map(Boolean.box).orNull)
.securityGroups(securityGroups.map(_.asJava).orNull)
.build()
}