Interface CfnClientVpnEndpointProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnClientVpnEndpointProps.Jsii$Proxy
CfnClientVpnEndpoint.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnClientVpnEndpointProps cfnClientVpnEndpointProps = CfnClientVpnEndpointProps.builder()
.authenticationOptions(List.of(ClientAuthenticationRequestProperty.builder()
.type("type")
// the properties below are optional
.activeDirectory(DirectoryServiceAuthenticationRequestProperty.builder()
.directoryId("directoryId")
.build())
.federatedAuthentication(FederatedAuthenticationRequestProperty.builder()
.samlProviderArn("samlProviderArn")
// the properties below are optional
.selfServiceSamlProviderArn("selfServiceSamlProviderArn")
.build())
.mutualAuthentication(CertificateAuthenticationRequestProperty.builder()
.clientRootCertificateChainArn("clientRootCertificateChainArn")
.build())
.build()))
.connectionLogOptions(ConnectionLogOptionsProperty.builder()
.enabled(false)
// the properties below are optional
.cloudwatchLogGroup("cloudwatchLogGroup")
.cloudwatchLogStream("cloudwatchLogStream")
.build())
.serverCertificateArn("serverCertificateArn")
// the properties below are optional
.clientCidrBlock("clientCidrBlock")
.clientConnectOptions(ClientConnectOptionsProperty.builder()
.enabled(false)
// the properties below are optional
.lambdaFunctionArn("lambdaFunctionArn")
.build())
.clientLoginBannerOptions(ClientLoginBannerOptionsProperty.builder()
.enabled(false)
// the properties below are optional
.bannerText("bannerText")
.build())
.clientRouteEnforcementOptions(ClientRouteEnforcementOptionsProperty.builder()
.enforced(false)
.build())
.description("description")
.disconnectOnSessionTimeout(false)
.dnsServers(List.of("dnsServers"))
.securityGroupIds(List.of("securityGroupIds"))
.selfServicePortal("selfServicePortal")
.sessionTimeoutHours(123)
.splitTunnel(false)
.tagSpecifications(List.of(TagSpecificationProperty.builder()
.resourceType("resourceType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.transportProtocol("transportProtocol")
.vpcId("vpcId")
.vpnPort(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnClientVpnEndpointPropsstatic final classAn implementation forCfnClientVpnEndpointProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Information about the authentication method to be used to authenticate clients.default StringThe IPv4 address range, in CIDR notation, from which to assign client IP addresses.default ObjectThe options for managing connection authorization for new client connections.default ObjectOptions for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.default ObjectClient route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN.Information about the client connection logging options.default StringA brief description of the Client VPN endpoint.default ObjectIndicates whether the client VPN session is disconnected after the maximumsessionTimeoutHoursis reached.Information about the DNS servers to be used for DNS resolution.The IDs of one or more security groups to apply to the target network.default StringSpecify whether to enable the self-service portal for the Client VPN endpoint.The ARN of the server certificate.default NumberThe maximum VPN session duration time in hours.default ObjectIndicates whether split-tunnel is enabled on the AWS Client VPN endpoint.default ObjectThe tags to apply to the Client VPN endpoint during creation.default StringThe transport protocol to be used by the VPN session.default StringgetVpcId()The ID of the VPC to associate with the Client VPN endpoint.default NumberThe port number to assign to the Client VPN endpoint for TCP and UDP traffic.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthenticationOptions
Information about the authentication method to be used to authenticate clients.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnClientVpnEndpoint.ClientAuthenticationRequestProperty>- See Also:
-
getConnectionLogOptions
Information about the client connection logging options.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 union: either
IResolvableorCfnClientVpnEndpoint.ConnectionLogOptionsProperty- See Also:
-
getServerCertificateArn
The ARN of the server certificate.For more information, see the Certificate Manager User Guide .
- See Also:
-
getClientCidrBlock
The IPv4 address range, in CIDR notation, from which to assign client IP addresses.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.
- See Also:
-
getClientConnectOptions
The options for managing connection authorization for new client connections.Returns union: either
IResolvableorCfnClientVpnEndpoint.ClientConnectOptionsProperty- See Also:
-
getClientLoginBannerOptions
Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.Returns union: either
IResolvableorCfnClientVpnEndpoint.ClientLoginBannerOptionsProperty- See Also:
-
getClientRouteEnforcementOptions
Client route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN.T his feature helps improve your security posture by ensuring that network traffic originating from a connected client is not inadvertently sent outside the VPN tunnel.
Client route enforcement works by monitoring the route table of a connected device for routing policy changes to the VPN connection. If the feature detects any VPN routing policy modifications, it will automatically force an update to the route table, reverting it back to the expected route configurations.
Returns union: either
IResolvableorCfnClientVpnEndpoint.ClientRouteEnforcementOptionsProperty- See Also:
-
getDescription
A brief description of the Client VPN endpoint.- See Also:
-
getDisconnectOnSessionTimeout
Indicates whether the client VPN session is disconnected after the maximumsessionTimeoutHoursis reached.If
true, users are prompted to reconnect client VPN. Iffalse, client VPN attempts to reconnect automatically. The default value istrue.Returns union: either
BooleanorIResolvable- See Also:
-
getDnsServers
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.
- See Also:
-
getSecurityGroupIds
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.
- See Also:
-
getSelfServicePortal
Specify whether to enable the self-service portal for the Client VPN endpoint.Default Value:
enabled- See Also:
-
getSessionTimeoutHours
The maximum VPN session duration time in hours.Valid values:
8 | 10 | 12 | 24Default value:
24- See Also:
-
getSplitTunnel
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 union: either
BooleanorIResolvable- See Also:
-
getTagSpecifications
The tags to apply to the Client VPN endpoint during creation.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnClientVpnEndpoint.TagSpecificationProperty>- See Also:
-
getTransportProtocol
The transport protocol to be used by the VPN session.Default value:
udp- See Also:
-
getVpcId
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.
- See Also:
-
getVpnPort
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.Valid Values:
443|1194Default Value:
443- See Also:
-
builder
- Returns:
- a
CfnClientVpnEndpointProps.BuilderofCfnClientVpnEndpointProps
-