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
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnClientVpnEndpoint.static interfaceInformation about the client certificate to be used for authentication.static interfaceDescribes the authentication method to be used by a Client VPN endpoint.static interfaceIndicates whether client connect options are enabled.static interfaceOptions for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.static interfaceDescribes the client connection logging options for the Client VPN endpoint.static interfaceDescribes the Active Directory to be used for client authentication.static interfaceThe IAM SAML identity provider used for federated authentication.static interfaceThe 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.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnClientVpnEndpoint(Construct scope, String id, CfnClientVpnEndpointProps props) Create a newAWS::EC2::ClientVpnEndpoint.protectedCfnClientVpnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnClientVpnEndpoint(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.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAuthenticationOptions(List<Object> value) Information about the authentication method to be used to authenticate clients.voidInformation about the authentication method to be used to authenticate clients.voidsetClientCidrBlock(String value) The IPv4 address range, in CIDR notation, from which to assign client IP addresses.voidThe options for managing connection authorization for new client connections.voidThe options for managing connection authorization for new client connections.voidOptions for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.voidOptions for enabling a customizable text banner that will be displayed on AWS provided clients when a VPN session is established.voidInformation about the client connection logging options.voidInformation about the client connection logging options.voidsetDescription(String value) A brief description of the Client VPN endpoint.voidsetDnsServers(List<String> value) Information about the DNS servers to be used for DNS resolution.voidsetSecurityGroupIds(List<String> value) The IDs of one or more security groups to apply to the target network.voidsetSelfServicePortal(String value) Specify whether to enable the self-service portal for the Client VPN endpoint.voidsetServerCertificateArn(String value) The ARN of the server certificate.voidsetSessionTimeoutHours(Number value) The maximum VPN session duration time in hours.voidsetSplitTunnel(Boolean value) Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.voidsetSplitTunnel(IResolvable value) Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.voidsetTagSpecifications(List<Object> value) The tags to apply to the Client VPN endpoint during creation.voidsetTagSpecifications(IResolvable value) The tags to apply to the Client VPN endpoint during creation.voidsetTransportProtocol(String value) The transport protocol to be used by the VPN session.voidThe ID of the VPC to associate with the Client VPN endpoint.voidsetVpnPort(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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin 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 | 24Default value:
24 -
setSessionTimeoutHours
The maximum VPN session duration time in hours.Valid values:
8 | 10 | 12 | 24Default 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|1194Default Value:
443 -
setVpnPort
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.Valid Values:
443|1194Default Value:
443
-