io.burkard.cdk.services.ec2.InterfaceVpcEndpoint.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 InterfaceVpcEndpoint {
def apply(
internalResourceId: String,
vpc: software.amazon.awscdk.services.ec2.IVpc,
subnets: Option[software.amazon.awscdk.services.ec2.SubnetSelection] = None,
lookupSupportedAzs: Option[Boolean] = None,
open: Option[Boolean] = None,
service: Option[software.amazon.awscdk.services.ec2.IInterfaceVpcEndpointService] = None,
privateDnsEnabled: Option[Boolean] = None,
securityGroups: Option[List[_ <: software.amazon.awscdk.services.ec2.ISecurityGroup]] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.ec2.InterfaceVpcEndpoint =
software.amazon.awscdk.services.ec2.InterfaceVpcEndpoint.Builder
.create(stackCtx, internalResourceId)
.vpc(vpc)
.subnets(subnets.orNull)
.lookupSupportedAzs(lookupSupportedAzs.map(Boolean.box).orNull)
.open(open.map(Boolean.box).orNull)
.service(service.orNull)
.privateDnsEnabled(privateDnsEnabled.map(Boolean.box).orNull)
.securityGroups(securityGroups.map(_.asJava).orNull)
.build()
}