Class CfnClientVpnEndpoint
- All Implemented Interfaces:
IInspectable,IClientVpnEndpointRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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()))
.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 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 interfaceClient Route Enforcement is a feature of Client VPN that helps enforce administrator defined routes on devices connected through the VPN.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 interfaceSpecifies the tags to apply to the Client VPN endpoint.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ec2.IClientVpnEndpointRef
IClientVpnEndpointRef.Jsii$Default, IClientVpnEndpointRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnClientVpnEndpoint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnClientVpnEndpoint(software.amazon.jsii.JsiiObjectRef objRef) CfnClientVpnEndpoint(software.constructs.Construct scope, String id, CfnClientVpnEndpointProps props) Create a newAWS::EC2::ClientVpnEndpoint. -
Method Summary
Modifier and TypeMethodDescriptionstatic IClientVpnEndpointReffromClientVpnEndpointId(software.constructs.Construct scope, String id, String clientVpnEndpointId) Creates a new IClientVpnEndpointRef from a clientVpnEndpointId.Information 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.Client route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN.A reference to a ClientVpnEndpoint resource.Information about the client connection logging options.A brief description of the Client VPN endpoint.Indicates 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.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.voidClient route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN.voidClient route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN.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.voidIndicates whether the client VPN session is disconnected after the maximumsessionTimeoutHoursis reached.voidIndicates whether the client VPN session is disconnected after the maximumsessionTimeoutHoursis reached.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.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnClientVpnEndpointProps props) Create a newAWS::EC2::ClientVpnEndpoint.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromClientVpnEndpointId
@Stability(Stable) @NotNull public static IClientVpnEndpointRef fromClientVpnEndpointId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String clientVpnEndpointId) Creates a new IClientVpnEndpointRef from a clientVpnEndpointId.- Parameters:
scope- This parameter is required.id- This parameter is required.clientVpnEndpointId- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getClientVpnEndpointRef
A reference to a ClientVpnEndpoint resource.- Specified by:
getClientVpnEndpointRefin interfaceIClientVpnEndpointRef
-
getAuthenticationOptions
Information about the authentication method to be used to authenticate clients.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnClientVpnEndpoint.ClientAuthenticationRequestProperty> -
setAuthenticationOptions
Information about the authentication method to be used to authenticate clients. -
setAuthenticationOptions
Information about the authentication method to be used to authenticate clients. -
getConnectionLogOptions
Information about the client connection logging options.Returns union: either
IResolvableorCfnClientVpnEndpoint.ConnectionLogOptionsProperty -
setConnectionLogOptions
Information about the client connection logging options. -
setConnectionLogOptions
@Stability(Stable) public void setConnectionLogOptions(@NotNull CfnClientVpnEndpoint.ConnectionLogOptionsProperty value) Information about the client connection logging options. -
getServerCertificateArn
The ARN of the server certificate. -
setServerCertificateArn
The ARN of the server certificate. -
getClientCidrBlock
The IPv4 address range, in CIDR notation, from which to assign client IP addresses. -
setClientCidrBlock
The IPv4 address range, in CIDR notation, from which to assign client IP addresses. -
getClientConnectOptions
The options for managing connection authorization for new client connections.Returns union: either
IResolvableorCfnClientVpnEndpoint.ClientConnectOptionsProperty -
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.Returns union: either
IResolvableorCfnClientVpnEndpoint.ClientLoginBannerOptionsProperty -
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. -
getClientRouteEnforcementOptions
Client route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN.Returns union: either
IResolvableorCfnClientVpnEndpoint.ClientRouteEnforcementOptionsProperty -
setClientRouteEnforcementOptions
Client route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN. -
setClientRouteEnforcementOptions
@Stability(Stable) public void setClientRouteEnforcementOptions(@Nullable CfnClientVpnEndpoint.ClientRouteEnforcementOptionsProperty value) Client route enforcement is a feature of the Client VPN service that helps enforce administrator defined routes on devices connected through the VPN. -
getDescription
A brief description of the Client VPN endpoint. -
setDescription
A brief description of the Client VPN endpoint. -
getDisconnectOnSessionTimeout
Indicates whether the client VPN session is disconnected after the maximumsessionTimeoutHoursis reached.Returns union: either
BooleanorIResolvable -
setDisconnectOnSessionTimeout
Indicates whether the client VPN session is disconnected after the maximumsessionTimeoutHoursis reached. -
setDisconnectOnSessionTimeout
Indicates whether the client VPN session is disconnected after the maximumsessionTimeoutHoursis reached. -
getDnsServers
Information about the DNS servers to be used for DNS resolution. -
setDnsServers
Information about the DNS servers to be used for DNS resolution. -
getSecurityGroupIds
The IDs of one or more security groups to apply to the target network. -
setSecurityGroupIds
The IDs of one or more security groups to apply to the target network. -
getSelfServicePortal
Specify whether to enable the self-service portal for the Client VPN endpoint. -
setSelfServicePortal
Specify whether to enable the self-service portal for the Client VPN endpoint. -
getSessionTimeoutHours
The maximum VPN session duration time in hours. -
setSessionTimeoutHours
The maximum VPN session duration time in hours. -
getSplitTunnel
Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint.Returns union: either
BooleanorIResolvable -
setSplitTunnel
Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint. -
setSplitTunnel
Indicates whether split-tunnel is enabled on the AWS Client VPN endpoint. -
getTagSpecifications
The tags to apply to the Client VPN endpoint during creation.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnClientVpnEndpoint.TagSpecificationProperty> -
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. -
setTransportProtocol
The transport protocol to be used by the VPN session. -
getVpcId
The ID of the VPC to associate with the Client VPN endpoint. -
setVpcId
The ID of the VPC to associate with the Client VPN endpoint. -
getVpnPort
The port number to assign to the Client VPN endpoint for TCP and UDP traffic. -
setVpnPort
The port number to assign to the Client VPN endpoint for TCP and UDP traffic.
-