Class CfnClientVpnEndpoint
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::EC2::ClientVpnEndpoint
.
Specifies a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.
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.*; CfnClientVpnEndpoint cfnClientVpnEndpoint = CfnClientVpnEndpoint.Builder.create(this, "MyCfnClientVpnEndpoint") .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())) .clientCidrBlock("clientCidrBlock") .connectionLogOptions(ConnectionLogOptionsProperty.builder() .enabled(false) // the properties below are optional .cloudwatchLogGroup("cloudwatchLogGroup") .cloudwatchLogStream("cloudwatchLogStream") .build()) .serverCertificateArn("serverCertificateArn") // the properties below are optional .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()) .description("description") .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();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnClientVpnEndpoint
.static interface
Information about the client certificate to be used for authentication.static interface
Describes the authentication method to be used by a Client VPN endpoint.static interface
Indicates whether client connect options are enabled.static interface
Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.static interface
Describes the client connection logging options for the Client VPN endpoint.static interface
Describes the Active Directory to be used for client authentication.static interface
The IAM SAML identity provider used for federated authentication.static interface
The tags to apply to a resource when the resource is being created.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnClientVpnEndpoint
(Construct scope, String id, CfnClientVpnEndpointProps props) Create a newAWS::EC2::ClientVpnEndpoint
.protected
CfnClientVpnEndpoint
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnClientVpnEndpoint
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionInformation about the authentication method to be used to authenticate clients.The IPv4 address range, in CIDR notation, from which to assign client IP addresses.The options for managing connection authorization for new client connections.Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.Information about the client connection logging options.A brief description of the Client VPN endpoint.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.Specify whether to enable the self-service portal for the Client VPN endpoint.The ARN of the server certificate.The maximum VPN session duration time in hours.Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.The tags to apply to the Client VPN endpoint during creation.The transport protocol to be used by the VPN session.getVpcId()
The ID of the VPC to associate with the Client VPN endpoint.The port number to assign to the Client VPN endpoint for TCP and UDP traffic.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAuthenticationOptions
(List<Object> value) Information about the authentication method to be used to authenticate clients.void
Information about the authentication method to be used to authenticate clients.void
setClientCidrBlock
(String value) The IPv4 address range, in CIDR notation, from which to assign client IP addresses.void
The options for managing connection authorization for new client connections.void
The options for managing connection authorization for new client connections.void
Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.void
Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.void
Information about the client connection logging options.void
Information about the client connection logging options.void
setDescription
(String value) A brief description of the Client VPN endpoint.void
setDnsServers
(List<String> value) Information about the DNS servers to be used for DNS resolution.void
setSecurityGroupIds
(List<String> value) The IDs of one or more security groups to apply to the target network.void
setSelfServicePortal
(String value) Specify whether to enable the self-service portal for the Client VPN endpoint.void
setServerCertificateArn
(String value) The ARN of the server certificate.void
setSessionTimeoutHours
(Number value) The maximum VPN session duration time in hours.void
setSplitTunnel
(Boolean value) Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.void
setSplitTunnel
(IResolvable value) Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.void
setTagSpecifications
(List<Object> value) The tags to apply to the Client VPN endpoint during creation.void
setTagSpecifications
(IResolvable value) The tags to apply to the Client VPN endpoint during creation.void
setTransportProtocol
(String value) The transport protocol to be used by the VPN session.void
The ID of the VPC to associate with the Client VPN endpoint.void
setVpnPort
(Number value) The port number to assign to the Client VPN endpoint for TCP and UDP traffic.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnClientVpnEndpoint
protected CfnClientVpnEndpoint(software.amazon.jsii.JsiiObjectRef objRef) -
CfnClientVpnEndpoint
protected CfnClientVpnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnClientVpnEndpoint
@Stability(Stable) public CfnClientVpnEndpoint(@NotNull Construct scope, @NotNull String id, @NotNull CfnClientVpnEndpointProps props) Create a newAWS::EC2::ClientVpnEndpoint
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getAuthenticationOptions
Information about the authentication method to be used to authenticate clients. -
setAuthenticationOptions
Information about the authentication method to be used to authenticate clients. -
setAuthenticationOptions
Information about the authentication method to be used to authenticate clients. -
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.
-
setClientCidrBlock
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.
-
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
-
setConnectionLogOptions
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
-
setConnectionLogOptions
@Stability(Stable) public void setConnectionLogOptions(@NotNull CfnClientVpnEndpoint.ConnectionLogOptionsProperty value) 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
-
getServerCertificateArn
The ARN of the server certificate.For more information, see the AWS Certificate Manager User Guide .
-
setServerCertificateArn
The ARN of the server certificate.For more information, see the AWS Certificate Manager User Guide .
-
getClientConnectOptions
The options for managing connection authorization for new client connections. -
setClientConnectOptions
The options for managing connection authorization for new client connections. -
setClientConnectOptions
@Stability(Stable) public void setClientConnectOptions(@Nullable CfnClientVpnEndpoint.ClientConnectOptionsProperty value) The options for managing connection authorization for new client connections. -
getClientLoginBannerOptions
Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established. -
setClientLoginBannerOptions
Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established. -
setClientLoginBannerOptions
@Stability(Stable) public void setClientLoginBannerOptions(@Nullable CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty value) Options for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established. -
getDescription
A brief description of the Client VPN endpoint. -
setDescription
A brief description of the Client VPN endpoint. -
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.
-
setDnsServers
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.
-
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.
-
setSecurityGroupIds
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.
-
getSelfServicePortal
Specify whether to enable the self-service portal for the Client VPN endpoint.Default Value:
enabled
-
setSelfServicePortal
Specify whether to enable the self-service portal for the Client VPN endpoint.Default Value:
enabled
-
getSessionTimeoutHours
The maximum VPN session duration time in hours.Valid values:
8 | 10 | 12 | 24
Default value:
24
-
setSessionTimeoutHours
The maximum VPN session duration time in hours.Valid values:
8 | 10 | 12 | 24
Default value:
24
-
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 .
-
setSplitTunnel
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 .
-
setSplitTunnel
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 .
-
getTagSpecifications
The tags to apply to the Client VPN endpoint during creation. -
setTagSpecifications
The tags to apply to the Client VPN endpoint during creation. -
setTagSpecifications
The tags to apply to the Client VPN endpoint during creation. -
getTransportProtocol
The transport protocol to be used by the VPN session.Default value:
udp
-
setTransportProtocol
The transport protocol to be used by the VPN session.Default value:
udp
-
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.
-
setVpcId
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.
-
getVpnPort
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.Valid Values:
443
|1194
Default Value:
443
-
setVpnPort
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.Valid Values:
443
|1194
Default Value:
443
-