io.burkard.cdk.services.ec2.ClientVpnEndpointProps.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 ClientVpnEndpointProps {
def apply(
vpc: software.amazon.awscdk.services.ec2.IVpc,
logGroup: Option[software.amazon.awscdk.services.logs.ILogGroup] = None,
logging: Option[Boolean] = None,
cidr: Option[String] = None,
description: Option[String] = None,
transportProtocol: Option[software.amazon.awscdk.services.ec2.TransportProtocol] = None,
clientConnectionHandler: Option[software.amazon.awscdk.services.ec2.IClientVpnConnectionHandler] = None,
sessionTimeout: Option[software.amazon.awscdk.services.ec2.ClientVpnSessionTimeout] = None,
userBasedAuthentication: Option[software.amazon.awscdk.services.ec2.ClientVpnUserBasedAuthentication] = None,
vpcSubnets: Option[software.amazon.awscdk.services.ec2.SubnetSelection] = None,
port: Option[software.amazon.awscdk.services.ec2.VpnPort] = None,
logStream: Option[software.amazon.awscdk.services.logs.ILogStream] = None,
securityGroups: Option[List[_ <: software.amazon.awscdk.services.ec2.ISecurityGroup]] = None,
serverCertificateArn: Option[String] = None,
authorizeAllUsersToVpcCidr: Option[Boolean] = None,
selfServicePortal: Option[Boolean] = None,
splitTunnel: Option[Boolean] = None,
clientCertificateArn: Option[String] = None,
clientLoginBanner: Option[String] = None,
dnsServers: Option[List[String]] = None
): software.amazon.awscdk.services.ec2.ClientVpnEndpointProps =
(new software.amazon.awscdk.services.ec2.ClientVpnEndpointProps.Builder)
.vpc(vpc)
.logGroup(logGroup.orNull)
.logging(logging.map(Boolean.box).orNull)
.cidr(cidr.orNull)
.description(description.orNull)
.transportProtocol(transportProtocol.orNull)
.clientConnectionHandler(clientConnectionHandler.orNull)
.sessionTimeout(sessionTimeout.orNull)
.userBasedAuthentication(userBasedAuthentication.orNull)
.vpcSubnets(vpcSubnets.orNull)
.port(port.orNull)
.logStream(logStream.orNull)
.securityGroups(securityGroups.map(_.asJava).orNull)
.serverCertificateArn(serverCertificateArn.orNull)
.authorizeAllUsersToVpcCidr(authorizeAllUsersToVpcCidr.map(Boolean.box).orNull)
.selfServicePortal(selfServicePortal.map(Boolean.box).orNull)
.splitTunnel(splitTunnel.map(Boolean.box).orNull)
.clientCertificateArn(clientCertificateArn.orNull)
.clientLoginBanner(clientLoginBanner.orNull)
.dnsServers(dnsServers.map(_.asJava).orNull)
.build()
}