@Stability(value=Experimental) public static final class ClientVpnEndpoint.Builder extends Object implements software.amazon.jsii.Builder<ClientVpnEndpoint>
ClientVpnEndpoint.| Modifier and Type | Method and Description |
|---|---|
ClientVpnEndpoint.Builder |
authorizeAllUsersToVpcCidr(Boolean authorizeAllUsersToVpcCidr)
(experimental) Whether to authorize all users to the VPC CIDR.
|
ClientVpnEndpoint |
build() |
ClientVpnEndpoint.Builder |
cidr(String cidr)
(experimental) The IPv4 address range, in CIDR notation, from which to assign client IP addresses.
|
ClientVpnEndpoint.Builder |
clientCertificateArn(String clientCertificateArn)
(experimental) The ARN of the client certificate for mutual authentication.
|
ClientVpnEndpoint.Builder |
clientConnectionHandler(IClientVpnConnectionHandler clientConnectionHandler)
(experimental) The AWS Lambda function used for connection authorization.
|
static ClientVpnEndpoint.Builder |
create(software.constructs.Construct scope,
String id) |
ClientVpnEndpoint.Builder |
description(String description)
(experimental) A brief description of the Client VPN endpoint.
|
ClientVpnEndpoint.Builder |
dnsServers(List<String> dnsServers)
(experimental) Information about the DNS servers to be used for DNS resolution.
|
ClientVpnEndpoint.Builder |
logging(Boolean logging)
(experimental) Whether to enable connections logging.
|
ClientVpnEndpoint.Builder |
logGroup(ILogGroup logGroup)
(experimental) A CloudWatch Logs log group for connection logging.
|
ClientVpnEndpoint.Builder |
logStream(ILogStream logStream)
(experimental) A CloudWatch Logs log stream for connection logging.
|
ClientVpnEndpoint.Builder |
port(VpnPort port)
(experimental) The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
|
ClientVpnEndpoint.Builder |
securityGroups(List<? extends ISecurityGroup> securityGroups)
(experimental) The security groups to apply to the target network.
|
ClientVpnEndpoint.Builder |
selfServicePortal(Boolean selfServicePortal)
(experimental) Specify whether to enable the self-service portal for the Client VPN endpoint.
|
ClientVpnEndpoint.Builder |
serverCertificateArn(String serverCertificateArn)
(experimental) The ARN of the server certificate.
|
ClientVpnEndpoint.Builder |
splitTunnel(Boolean splitTunnel)
(experimental) Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.
|
ClientVpnEndpoint.Builder |
transportProtocol(TransportProtocol transportProtocol)
(experimental) The transport protocol to be used by the VPN session.
|
ClientVpnEndpoint.Builder |
userBasedAuthentication(ClientVpnUserBasedAuthentication userBasedAuthentication)
(experimental) The type of user-based authentication to use.
|
ClientVpnEndpoint.Builder |
vpc(IVpc vpc)
(experimental) The VPC to connect to.
|
ClientVpnEndpoint.Builder |
vpcSubnets(SubnetSelection vpcSubnets)
(experimental) Subnets to associate to the client VPN endpoint.
|
@Stability(value=Experimental) public static ClientVpnEndpoint.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ClientVpnEndpoint.Builder.@Stability(value=Experimental) public ClientVpnEndpoint.Builder cidr(String cidr)
The address range cannot overlap with the local CIDR of the VPC in which the associated subnet is located, or the routes that you add manually.
Changing the address range will replace the Client VPN endpoint.
The CIDR block should be /22 or greater.
cidr - The IPv4 address range, in CIDR notation, from which to assign client IP addresses. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder serverCertificateArn(String serverCertificateArn)
serverCertificateArn - The ARN of the server certificate. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder authorizeAllUsersToVpcCidr(Boolean authorizeAllUsersToVpcCidr)
This automatically creates an authorization rule. Set this to false and
use addAuthorizationRule() to create your own rules instead.
Default: true
authorizeAllUsersToVpcCidr - Whether to authorize all users to the VPC CIDR. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder clientCertificateArn(String clientCertificateArn)
The certificate must be signed by a certificate authority (CA) and it must be provisioned in AWS Certificate Manager (ACM).
Default: - use user-based authentication
clientCertificateArn - The ARN of the client certificate for mutual authentication. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder clientConnectionHandler(IClientVpnConnectionHandler clientConnectionHandler)
The name of the Lambda function must begin with the AWSClientVPN- prefix
Default: - no connection handler
clientConnectionHandler - The AWS Lambda function used for connection authorization. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder description(String description)
Default: - no description
description - A brief description of the Client VPN endpoint. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder dnsServers(List<String> dnsServers)
A Client VPN endpoint can have up to two DNS servers.
Default: - use the DNS address configured on the device
dnsServers - Information about the DNS servers to be used for DNS resolution. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder logging(Boolean logging)
Default: true
logging - Whether to enable connections logging. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder logGroup(ILogGroup logGroup)
Default: - a new group is created
logGroup - A CloudWatch Logs log group for connection logging. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder logStream(ILogStream logStream)
Default: - a new stream is created
logStream - A CloudWatch Logs log stream for connection logging. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder port(VpnPort port)
Default: VpnPort.HTTPS
port - The port number to assign to the Client VPN endpoint for TCP and UDP traffic. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder securityGroups(List<? extends ISecurityGroup> securityGroups)
Default: - a new security group is created
securityGroups - The security groups to apply to the target network. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder selfServicePortal(Boolean selfServicePortal)
Default: true
selfServicePortal - Specify whether to enable the self-service portal for the Client VPN endpoint. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder splitTunnel(Boolean splitTunnel)
Default: false
splitTunnel - Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint. This parameter is required.thishttps://docs.aws.amazon.com/vpn/latest/clientvpn-admin/split-tunnel-vpn.html@Stability(value=Experimental) public ClientVpnEndpoint.Builder transportProtocol(TransportProtocol transportProtocol)
Default: TransportProtocol.UDP
transportProtocol - The transport protocol to be used by the VPN session. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder userBasedAuthentication(ClientVpnUserBasedAuthentication userBasedAuthentication)
Default: - use mutual authentication
userBasedAuthentication - The type of user-based authentication to use. This parameter is required.thishttps://docs.aws.amazon.com/vpn/latest/clientvpn-admin/client-authentication.html@Stability(value=Experimental) public ClientVpnEndpoint.Builder vpcSubnets(SubnetSelection vpcSubnets)
Default: - the VPC default strategy
vpcSubnets - Subnets to associate to the client VPN endpoint. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint.Builder vpc(IVpc vpc)
vpc - The VPC to connect to. This parameter is required.this@Stability(value=Experimental) public ClientVpnEndpoint build()
build in interface software.amazon.jsii.Builder<ClientVpnEndpoint>Copyright © 2021. All rights reserved.