public static final class CfnClientVpnEndpoint.Builder
extends java.lang.Object
CfnClientVpnEndpoint
.Modifier and Type | Method and Description |
---|---|
CfnClientVpnEndpoint.Builder |
authenticationOptions(IResolvable authenticationOptions)
Information about the authentication method to be used to authenticate clients.
|
CfnClientVpnEndpoint.Builder |
authenticationOptions(java.util.List<? extends java.lang.Object> authenticationOptions)
Information about the authentication method to be used to authenticate clients.
|
CfnClientVpnEndpoint |
build() |
CfnClientVpnEndpoint.Builder |
clientCidrBlock(java.lang.String clientCidrBlock)
The IPv4 address range, in CIDR notation, from which to assign client IP addresses.
|
CfnClientVpnEndpoint.Builder |
clientConnectOptions(CfnClientVpnEndpoint.ClientConnectOptionsProperty clientConnectOptions)
The options for managing connection authorization for new client connections.
|
CfnClientVpnEndpoint.Builder |
clientConnectOptions(IResolvable clientConnectOptions)
The options for managing connection authorization for new client connections.
|
CfnClientVpnEndpoint.Builder |
clientLoginBannerOptions(CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty clientLoginBannerOptions)
Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.
|
CfnClientVpnEndpoint.Builder |
clientLoginBannerOptions(IResolvable clientLoginBannerOptions)
Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.
|
CfnClientVpnEndpoint.Builder |
connectionLogOptions(CfnClientVpnEndpoint.ConnectionLogOptionsProperty connectionLogOptions)
Information about the client connection logging options.
|
CfnClientVpnEndpoint.Builder |
connectionLogOptions(IResolvable connectionLogOptions)
Information about the client connection logging options.
|
static CfnClientVpnEndpoint.Builder |
create(Construct scope,
java.lang.String id) |
CfnClientVpnEndpoint.Builder |
description(java.lang.String description)
A brief description of the Client VPN endpoint.
|
CfnClientVpnEndpoint.Builder |
dnsServers(java.util.List<java.lang.String> dnsServers)
Information about the DNS servers to be used for DNS resolution.
|
CfnClientVpnEndpoint.Builder |
securityGroupIds(java.util.List<java.lang.String> securityGroupIds)
The IDs of one or more security groups to apply to the target network.
|
CfnClientVpnEndpoint.Builder |
selfServicePortal(java.lang.String selfServicePortal)
Specify whether to enable the self-service portal for the Client VPN endpoint.
|
CfnClientVpnEndpoint.Builder |
serverCertificateArn(java.lang.String serverCertificateArn)
The ARN of the server certificate.
|
CfnClientVpnEndpoint.Builder |
sessionTimeoutHours(java.lang.Number sessionTimeoutHours)
The maximum VPN session duration time in hours.
|
CfnClientVpnEndpoint.Builder |
splitTunnel(java.lang.Boolean splitTunnel)
Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.
|
CfnClientVpnEndpoint.Builder |
splitTunnel(IResolvable splitTunnel)
Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.
|
CfnClientVpnEndpoint.Builder |
tagSpecifications(IResolvable tagSpecifications)
The tags to apply to the Client VPN endpoint during creation.
|
CfnClientVpnEndpoint.Builder |
tagSpecifications(java.util.List<? extends java.lang.Object> tagSpecifications)
The tags to apply to the Client VPN endpoint during creation.
|
CfnClientVpnEndpoint.Builder |
transportProtocol(java.lang.String transportProtocol)
The transport protocol to be used by the VPN session.
|
CfnClientVpnEndpoint.Builder |
vpcId(java.lang.String vpcId)
The ID of the VPC to associate with the Client VPN endpoint.
|
CfnClientVpnEndpoint.Builder |
vpnPort(java.lang.Number vpnPort)
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
|
public static CfnClientVpnEndpoint.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnClientVpnEndpoint.CertificateAuthenticationRequestProperty.Builder
.public CfnClientVpnEndpoint.Builder authenticationOptions(IResolvable authenticationOptions)
authenticationOptions
- Information about the authentication method to be used to authenticate clients. This parameter is required.this
public CfnClientVpnEndpoint.Builder authenticationOptions(java.util.List<? extends java.lang.Object> authenticationOptions)
authenticationOptions
- Information about the authentication method to be used to authenticate clients. This parameter is required.this
public CfnClientVpnEndpoint.Builder clientCidrBlock(java.lang.String clientCidrBlock)
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. The address range cannot be changed after the Client VPN endpoint has been created. The CIDR block should be /22 or greater.
clientCidrBlock
- The IPv4 address range, in CIDR notation, from which to assign client IP addresses. This parameter is required.this
public CfnClientVpnEndpoint.Builder connectionLogOptions(IResolvable connectionLogOptions)
If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:
connectionLogOptions
- Information about the client connection logging options. This parameter is required.this
public CfnClientVpnEndpoint.Builder connectionLogOptions(CfnClientVpnEndpoint.ConnectionLogOptionsProperty connectionLogOptions)
If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:
connectionLogOptions
- Information about the client connection logging options. This parameter is required.this
public CfnClientVpnEndpoint.Builder serverCertificateArn(java.lang.String serverCertificateArn)
For more information, see the AWS Certificate Manager User Guide .
serverCertificateArn
- The ARN of the server certificate. This parameter is required.this
public CfnClientVpnEndpoint.Builder clientConnectOptions(IResolvable clientConnectOptions)
clientConnectOptions
- The options for managing connection authorization for new client connections. This parameter is required.this
public CfnClientVpnEndpoint.Builder clientConnectOptions(CfnClientVpnEndpoint.ClientConnectOptionsProperty clientConnectOptions)
clientConnectOptions
- The options for managing connection authorization for new client connections. This parameter is required.this
public CfnClientVpnEndpoint.Builder clientLoginBannerOptions(IResolvable clientLoginBannerOptions)
clientLoginBannerOptions
- Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established. This parameter is required.this
public CfnClientVpnEndpoint.Builder clientLoginBannerOptions(CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty clientLoginBannerOptions)
clientLoginBannerOptions
- Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established. This parameter is required.this
public CfnClientVpnEndpoint.Builder description(java.lang.String description)
description
- A brief description of the Client VPN endpoint. This parameter is required.this
public CfnClientVpnEndpoint.Builder dnsServers(java.util.List<java.lang.String> dnsServers)
A Client VPN endpoint can have up to two DNS servers. If no DNS server is specified, the DNS address configured on the device is used for the DNS server.
dnsServers
- Information about the DNS servers to be used for DNS resolution. This parameter is required.this
public CfnClientVpnEndpoint.Builder securityGroupIds(java.util.List<java.lang.String> securityGroupIds)
You must also specify the ID of the VPC that contains the security groups.
securityGroupIds
- The IDs of one or more security groups to apply to the target network. This parameter is required.this
public CfnClientVpnEndpoint.Builder selfServicePortal(java.lang.String selfServicePortal)
Default Value: enabled
selfServicePortal
- Specify whether to enable the self-service portal for the Client VPN endpoint. This parameter is required.this
public CfnClientVpnEndpoint.Builder sessionTimeoutHours(java.lang.Number sessionTimeoutHours)
Valid values: 8 | 10 | 12 | 24
Default value: 24
sessionTimeoutHours
- The maximum VPN session duration time in hours. This parameter is required.this
public CfnClientVpnEndpoint.Builder splitTunnel(java.lang.Boolean splitTunnel)
By default, split-tunnel on a VPN endpoint is disabled.
For information about split-tunnel VPN endpoints, see Split-tunnel AWS Client VPN endpoint in the AWS Client VPN Administrator Guide .
splitTunnel
- Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint. This parameter is required.this
public CfnClientVpnEndpoint.Builder splitTunnel(IResolvable splitTunnel)
By default, split-tunnel on a VPN endpoint is disabled.
For information about split-tunnel VPN endpoints, see Split-tunnel AWS Client VPN endpoint in the AWS Client VPN Administrator Guide .
splitTunnel
- Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint. This parameter is required.this
public CfnClientVpnEndpoint.Builder tagSpecifications(IResolvable tagSpecifications)
tagSpecifications
- The tags to apply to the Client VPN endpoint during creation. This parameter is required.this
public CfnClientVpnEndpoint.Builder tagSpecifications(java.util.List<? extends java.lang.Object> tagSpecifications)
tagSpecifications
- The tags to apply to the Client VPN endpoint during creation. This parameter is required.this
public CfnClientVpnEndpoint.Builder transportProtocol(java.lang.String transportProtocol)
Default value: udp
transportProtocol
- The transport protocol to be used by the VPN session. This parameter is required.this
public CfnClientVpnEndpoint.Builder vpcId(java.lang.String vpcId)
If no security group IDs are specified in the request, the default security group for the VPC is applied.
vpcId
- The ID of the VPC to associate with the Client VPN endpoint. This parameter is required.this
public CfnClientVpnEndpoint.Builder vpnPort(java.lang.Number vpnPort)
Valid Values: 443
| 1194
Default Value: 443
vpnPort
- The port number to assign to the Client VPN endpoint for TCP and UDP traffic. This parameter is required.this
public CfnClientVpnEndpoint build()