Class CfnClientVpnEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnClientVpnEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClientVpnEndpointProps>
- Enclosing interface:
CfnClientVpnEndpointProps
@Stability(Stable)
public static final class CfnClientVpnEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClientVpnEndpointProps>
A builder for
CfnClientVpnEndpointProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationOptions
(List<? extends Object> authenticationOptions) Sets the value ofCfnClientVpnEndpointProps.getAuthenticationOptions()
authenticationOptions
(IResolvable authenticationOptions) Sets the value ofCfnClientVpnEndpointProps.getAuthenticationOptions()
build()
Builds the configured instance.clientCidrBlock
(String clientCidrBlock) Sets the value ofCfnClientVpnEndpointProps.getClientCidrBlock()
clientConnectOptions
(IResolvable clientConnectOptions) Sets the value ofCfnClientVpnEndpointProps.getClientConnectOptions()
clientConnectOptions
(CfnClientVpnEndpoint.ClientConnectOptionsProperty clientConnectOptions) Sets the value ofCfnClientVpnEndpointProps.getClientConnectOptions()
clientLoginBannerOptions
(IResolvable clientLoginBannerOptions) Sets the value ofCfnClientVpnEndpointProps.getClientLoginBannerOptions()
clientLoginBannerOptions
(CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty clientLoginBannerOptions) Sets the value ofCfnClientVpnEndpointProps.getClientLoginBannerOptions()
connectionLogOptions
(IResolvable connectionLogOptions) Sets the value ofCfnClientVpnEndpointProps.getConnectionLogOptions()
connectionLogOptions
(CfnClientVpnEndpoint.ConnectionLogOptionsProperty connectionLogOptions) Sets the value ofCfnClientVpnEndpointProps.getConnectionLogOptions()
description
(String description) Sets the value ofCfnClientVpnEndpointProps.getDescription()
dnsServers
(List<String> dnsServers) Sets the value ofCfnClientVpnEndpointProps.getDnsServers()
securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnClientVpnEndpointProps.getSecurityGroupIds()
selfServicePortal
(String selfServicePortal) Sets the value ofCfnClientVpnEndpointProps.getSelfServicePortal()
serverCertificateArn
(String serverCertificateArn) Sets the value ofCfnClientVpnEndpointProps.getServerCertificateArn()
sessionTimeoutHours
(Number sessionTimeoutHours) Sets the value ofCfnClientVpnEndpointProps.getSessionTimeoutHours()
splitTunnel
(Boolean splitTunnel) Sets the value ofCfnClientVpnEndpointProps.getSplitTunnel()
splitTunnel
(IResolvable splitTunnel) Sets the value ofCfnClientVpnEndpointProps.getSplitTunnel()
tagSpecifications
(List<? extends Object> tagSpecifications) Sets the value ofCfnClientVpnEndpointProps.getTagSpecifications()
tagSpecifications
(IResolvable tagSpecifications) Sets the value ofCfnClientVpnEndpointProps.getTagSpecifications()
transportProtocol
(String transportProtocol) Sets the value ofCfnClientVpnEndpointProps.getTransportProtocol()
Sets the value ofCfnClientVpnEndpointProps.getVpcId()
Sets the value ofCfnClientVpnEndpointProps.getVpnPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authenticationOptions
@Stability(Stable) public CfnClientVpnEndpointProps.Builder authenticationOptions(IResolvable authenticationOptions) Sets the value ofCfnClientVpnEndpointProps.getAuthenticationOptions()
- Parameters:
authenticationOptions
- Information about the authentication method to be used to authenticate clients. This parameter is required.- Returns:
this
-
authenticationOptions
@Stability(Stable) public CfnClientVpnEndpointProps.Builder authenticationOptions(List<? extends Object> authenticationOptions) Sets the value ofCfnClientVpnEndpointProps.getAuthenticationOptions()
- Parameters:
authenticationOptions
- Information about the authentication method to be used to authenticate clients. This parameter is required.- Returns:
this
-
clientCidrBlock
Sets the value ofCfnClientVpnEndpointProps.getClientCidrBlock()
- Parameters:
clientCidrBlock
- The IPv4 address range, in CIDR notation, from which to assign client IP addresses. This parameter is required. 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. Client CIDR range must have a size of at least /22 and must not be greater than /12.- Returns:
this
-
connectionLogOptions
@Stability(Stable) public CfnClientVpnEndpointProps.Builder connectionLogOptions(IResolvable connectionLogOptions) Sets the value ofCfnClientVpnEndpointProps.getConnectionLogOptions()
- Parameters:
connectionLogOptions
- Information about the client connection logging options. This parameter is required. If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:- Client connection requests
- Client connection results (successful and unsuccessful)
- Reasons for unsuccessful client connection requests
- Client connection termination time
- Returns:
this
-
connectionLogOptions
@Stability(Stable) public CfnClientVpnEndpointProps.Builder connectionLogOptions(CfnClientVpnEndpoint.ConnectionLogOptionsProperty connectionLogOptions) Sets the value ofCfnClientVpnEndpointProps.getConnectionLogOptions()
- Parameters:
connectionLogOptions
- Information about the client connection logging options. This parameter is required. If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. The following information is logged:- Client connection requests
- Client connection results (successful and unsuccessful)
- Reasons for unsuccessful client connection requests
- Client connection termination time
- Returns:
this
-
serverCertificateArn
@Stability(Stable) public CfnClientVpnEndpointProps.Builder serverCertificateArn(String serverCertificateArn) Sets the value ofCfnClientVpnEndpointProps.getServerCertificateArn()
- Parameters:
serverCertificateArn
- The ARN of the server certificate. This parameter is required. For more information, see the AWS Certificate Manager User Guide .- Returns:
this
-
clientConnectOptions
@Stability(Stable) public CfnClientVpnEndpointProps.Builder clientConnectOptions(IResolvable clientConnectOptions) Sets the value ofCfnClientVpnEndpointProps.getClientConnectOptions()
- Parameters:
clientConnectOptions
- The options for managing connection authorization for new client connections.- Returns:
this
-
clientConnectOptions
@Stability(Stable) public CfnClientVpnEndpointProps.Builder clientConnectOptions(CfnClientVpnEndpoint.ClientConnectOptionsProperty clientConnectOptions) Sets the value ofCfnClientVpnEndpointProps.getClientConnectOptions()
- Parameters:
clientConnectOptions
- The options for managing connection authorization for new client connections.- Returns:
this
-
clientLoginBannerOptions
@Stability(Stable) public CfnClientVpnEndpointProps.Builder clientLoginBannerOptions(IResolvable clientLoginBannerOptions) Sets the value ofCfnClientVpnEndpointProps.getClientLoginBannerOptions()
- Parameters:
clientLoginBannerOptions
- Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.- Returns:
this
-
clientLoginBannerOptions
@Stability(Stable) public CfnClientVpnEndpointProps.Builder clientLoginBannerOptions(CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty clientLoginBannerOptions) Sets the value ofCfnClientVpnEndpointProps.getClientLoginBannerOptions()
- Parameters:
clientLoginBannerOptions
- Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.- Returns:
this
-
description
Sets the value ofCfnClientVpnEndpointProps.getDescription()
- Parameters:
description
- A brief description of the Client VPN endpoint.- Returns:
this
-
dnsServers
Sets the value ofCfnClientVpnEndpointProps.getDnsServers()
- Parameters:
dnsServers
- Information about the DNS servers to be used for DNS resolution. 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.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnClientVpnEndpointProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnClientVpnEndpointProps.getSecurityGroupIds()
- Parameters:
securityGroupIds
- The IDs of one or more security groups to apply to the target network. You must also specify the ID of the VPC that contains the security groups.- Returns:
this
-
selfServicePortal
@Stability(Stable) public CfnClientVpnEndpointProps.Builder selfServicePortal(String selfServicePortal) Sets the value ofCfnClientVpnEndpointProps.getSelfServicePortal()
- Parameters:
selfServicePortal
- Specify whether to enable the self-service portal for the Client VPN endpoint. Default Value:enabled
- Returns:
this
-
sessionTimeoutHours
@Stability(Stable) public CfnClientVpnEndpointProps.Builder sessionTimeoutHours(Number sessionTimeoutHours) Sets the value ofCfnClientVpnEndpointProps.getSessionTimeoutHours()
- Parameters:
sessionTimeoutHours
- The maximum VPN session duration time in hours. Valid values:8 | 10 | 12 | 24
Default value:
24
- Returns:
this
-
splitTunnel
Sets the value ofCfnClientVpnEndpointProps.getSplitTunnel()
- Parameters:
splitTunnel
- Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint. 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 .
- Returns:
this
-
splitTunnel
Sets the value ofCfnClientVpnEndpointProps.getSplitTunnel()
- Parameters:
splitTunnel
- Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint. 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 .
- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnClientVpnEndpointProps.Builder tagSpecifications(IResolvable tagSpecifications) Sets the value ofCfnClientVpnEndpointProps.getTagSpecifications()
- Parameters:
tagSpecifications
- The tags to apply to the Client VPN endpoint during creation.- Returns:
this
-
tagSpecifications
@Stability(Stable) public CfnClientVpnEndpointProps.Builder tagSpecifications(List<? extends Object> tagSpecifications) Sets the value ofCfnClientVpnEndpointProps.getTagSpecifications()
- Parameters:
tagSpecifications
- The tags to apply to the Client VPN endpoint during creation.- Returns:
this
-
transportProtocol
@Stability(Stable) public CfnClientVpnEndpointProps.Builder transportProtocol(String transportProtocol) Sets the value ofCfnClientVpnEndpointProps.getTransportProtocol()
- Parameters:
transportProtocol
- The transport protocol to be used by the VPN session. Default value:udp
- Returns:
this
-
vpcId
Sets the value ofCfnClientVpnEndpointProps.getVpcId()
- Parameters:
vpcId
- The ID of the VPC to associate with the Client VPN endpoint. If no security group IDs are specified in the request, the default security group for the VPC is applied.- Returns:
this
-
vpnPort
Sets the value ofCfnClientVpnEndpointProps.getVpnPort()
- Parameters:
vpnPort
- The port number to assign to the Client VPN endpoint for TCP and UDP traffic. Valid Values:443
|1194
Default Value:
443
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnClientVpnEndpointProps>
- Returns:
- a new instance of
CfnClientVpnEndpointProps
- Throws:
NullPointerException
- if any required attribute was not provided
-