CfnClientVpnEndpointProps Struct
Properties for defining a CfnClientVpnEndpoint.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnClientVpnEndpointProps: ec2.CfnClientVpnEndpointProps = {
authenticationOptions: [{
type: 'type',
// the properties below are optional
activeDirectory: {
directoryId: 'directoryId',
},
federatedAuthentication: {
samlProviderArn: 'samlProviderArn',
// the properties below are optional
selfServiceSamlProviderArn: 'selfServiceSamlProviderArn',
},
mutualAuthentication: {
clientRootCertificateChainArn: 'clientRootCertificateChainArn',
},
}],
connectionLogOptions: {
enabled: false,
// the properties below are optional
cloudwatchLogGroup: 'cloudwatchLogGroup',
cloudwatchLogStream: 'cloudwatchLogStream',
includeAuthorizationPolicyContext: false,
},
serverCertificateArn: 'serverCertificateArn',
// the properties below are optional
authorizationPolicy: {
policyDocument: 'policyDocument',
// the properties below are optional
description: 'description',
shadowMode: 'shadowMode',
},
clientCidrBlock: 'clientCidrBlock',
clientConnectOptions: {
enabled: false,
// the properties below are optional
lambdaFunctionArn: 'lambdaFunctionArn',
},
clientLoginBannerOptions: {
enabled: false,
// the properties below are optional
bannerText: 'bannerText',
},
clientRouteEnforcementOptions: {
enforced: false,
},
description: 'description',
devicePostureOptions: {
enabled: false,
trustProviders: [{
tenantId: 'tenantId',
trustProviderType: 'trustProviderType',
// the properties below are optional
publicSigningKeyUrl: 'publicSigningKeyUrl',
}],
},
disconnectOnSessionTimeout: false,
dnsServers: ['dnsServers'],
endpointIpAddressType: 'endpointIpAddressType',
securityGroupIds: ['securityGroupIds'],
selfServicePortal: 'selfServicePortal',
sessionTimeoutHours: 123,
splitTunnel: false,
tagSpecifications: [{
resourceType: 'resourceType',
tags: [{
key: 'key',
value: 'value',
}],
}],
trafficIpAddressType: 'trafficIpAddressType',
transitGatewayConfiguration: {
transitGatewayId: 'transitGatewayId',
// the properties below are optional
availabilityZoneIds: ['availabilityZoneIds'],
availabilityZones: ['availabilityZones'],
},
transportProtocol: 'transportProtocol',
vpcId: 'vpcId',
vpnPort: 123,
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
cfn_client_vpn_endpoint_props = ec2.CfnClientVpnEndpointProps(
authentication_options=[ec2.CfnClientVpnEndpoint.ClientAuthenticationRequestProperty(
type="type",
# the properties below are optional
active_directory=ec2.CfnClientVpnEndpoint.DirectoryServiceAuthenticationRequestProperty(
directory_id="directoryId"
),
federated_authentication=ec2.CfnClientVpnEndpoint.FederatedAuthenticationRequestProperty(
saml_provider_arn="samlProviderArn",
# the properties below are optional
self_service_saml_provider_arn="selfServiceSamlProviderArn"
),
mutual_authentication=ec2.CfnClientVpnEndpoint.CertificateAuthenticationRequestProperty(
client_root_certificate_chain_arn="clientRootCertificateChainArn"
)
)],
connection_log_options=ec2.CfnClientVpnEndpoint.ConnectionLogOptionsProperty(
enabled=False,
# the properties below are optional
cloudwatch_log_group="cloudwatchLogGroup",
cloudwatch_log_stream="cloudwatchLogStream",
include_authorization_policy_context=False
),
server_certificate_arn="serverCertificateArn",
# the properties below are optional
authorization_policy=ec2.CfnClientVpnEndpoint.AuthorizationPolicyProperty(
policy_document="policyDocument",
# the properties below are optional
description="description",
shadow_mode="shadowMode"
),
client_cidr_block="clientCidrBlock",
client_connect_options=ec2.CfnClientVpnEndpoint.ClientConnectOptionsProperty(
enabled=False,
# the properties below are optional
lambda_function_arn="lambdaFunctionArn"
),
client_login_banner_options=ec2.CfnClientVpnEndpoint.ClientLoginBannerOptionsProperty(
enabled=False,
# the properties below are optional
banner_text="bannerText"
),
client_route_enforcement_options=ec2.CfnClientVpnEndpoint.ClientRouteEnforcementOptionsProperty(
enforced=False
),
description="description",
device_posture_options=ec2.CfnClientVpnEndpoint.DevicePostureOptionsProperty(
enabled=False,
trust_providers=[ec2.CfnClientVpnEndpoint.DevicePostureTrustProviderProperty(
tenant_id="tenantId",
trust_provider_type="trustProviderType",
# the properties below are optional
public_signing_key_url="publicSigningKeyUrl"
)]
),
disconnect_on_session_timeout=False,
dns_servers=["dnsServers"],
endpoint_ip_address_type="endpointIpAddressType",
security_group_ids=["securityGroupIds"],
self_service_portal="selfServicePortal",
session_timeout_hours=123,
split_tunnel=False,
tag_specifications=[ec2.CfnClientVpnEndpoint.TagSpecificationProperty(
resource_type="resourceType",
tags=[CfnTag(
key="key",
value="value"
)]
)],
traffic_ip_address_type="trafficIpAddressType",
transit_gateway_configuration=ec2.CfnClientVpnEndpoint.TransitGatewayConfigurationProperty(
transit_gateway_id="transitGatewayId",
# the properties below are optional
availability_zone_ids=["availabilityZoneIds"],
availability_zones=["availabilityZones"]
),
transport_protocol="transportProtocol",
vpc_id="vpcId",
vpn_port=123
)
// 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")
.includeAuthorizationPolicyContext(false)
.build())
.serverCertificateArn("serverCertificateArn")
// the properties below are optional
.authorizationPolicy(AuthorizationPolicyProperty.builder()
.policyDocument("policyDocument")
// the properties below are optional
.description("description")
.shadowMode("shadowMode")
.build())
.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")
.devicePostureOptions(DevicePostureOptionsProperty.builder()
.enabled(false)
.trustProviders(List.of(DevicePostureTrustProviderProperty.builder()
.tenantId("tenantId")
.trustProviderType("trustProviderType")
// the properties below are optional
.publicSigningKeyUrl("publicSigningKeyUrl")
.build()))
.build())
.disconnectOnSessionTimeout(false)
.dnsServers(List.of("dnsServers"))
.endpointIpAddressType("endpointIpAddressType")
.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()))
.trafficIpAddressType("trafficIpAddressType")
.transitGatewayConfiguration(TransitGatewayConfigurationProperty.builder()
.transitGatewayId("transitGatewayId")
// the properties below are optional
.availabilityZoneIds(List.of("availabilityZoneIds"))
.availabilityZones(List.of("availabilityZones"))
.build())
.transportProtocol("transportProtocol")
.vpcId("vpcId")
.vpnPort(123)
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnClientVpnEndpointProps = new CfnClientVpnEndpointProps {
AuthenticationOptions = new [] { new ClientAuthenticationRequestProperty {
Type = "type",
// the properties below are optional
ActiveDirectory = new DirectoryServiceAuthenticationRequestProperty {
DirectoryId = "directoryId"
},
FederatedAuthentication = new FederatedAuthenticationRequestProperty {
SamlProviderArn = "samlProviderArn",
// the properties below are optional
SelfServiceSamlProviderArn = "selfServiceSamlProviderArn"
},
MutualAuthentication = new CertificateAuthenticationRequestProperty {
ClientRootCertificateChainArn = "clientRootCertificateChainArn"
}
} },
ConnectionLogOptions = new ConnectionLogOptionsProperty {
Enabled = false,
// the properties below are optional
CloudwatchLogGroup = "cloudwatchLogGroup",
CloudwatchLogStream = "cloudwatchLogStream",
IncludeAuthorizationPolicyContext = false
},
ServerCertificateArn = "serverCertificateArn",
// the properties below are optional
AuthorizationPolicy = new AuthorizationPolicyProperty {
PolicyDocument = "policyDocument",
// the properties below are optional
Description = "description",
ShadowMode = "shadowMode"
},
ClientCidrBlock = "clientCidrBlock",
ClientConnectOptions = new ClientConnectOptionsProperty {
Enabled = false,
// the properties below are optional
LambdaFunctionArn = "lambdaFunctionArn"
},
ClientLoginBannerOptions = new ClientLoginBannerOptionsProperty {
Enabled = false,
// the properties below are optional
BannerText = "bannerText"
},
ClientRouteEnforcementOptions = new ClientRouteEnforcementOptionsProperty {
Enforced = false
},
Description = "description",
DevicePostureOptions = new DevicePostureOptionsProperty {
Enabled = false,
TrustProviders = new [] { new DevicePostureTrustProviderProperty {
TenantId = "tenantId",
TrustProviderType = "trustProviderType",
// the properties below are optional
PublicSigningKeyUrl = "publicSigningKeyUrl"
} }
},
DisconnectOnSessionTimeout = false,
DnsServers = new [] { "dnsServers" },
EndpointIpAddressType = "endpointIpAddressType",
SecurityGroupIds = new [] { "securityGroupIds" },
SelfServicePortal = "selfServicePortal",
SessionTimeoutHours = 123,
SplitTunnel = false,
TagSpecifications = new [] { new TagSpecificationProperty {
ResourceType = "resourceType",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
} },
TrafficIpAddressType = "trafficIpAddressType",
TransitGatewayConfiguration = new TransitGatewayConfigurationProperty {
TransitGatewayId = "transitGatewayId",
// the properties below are optional
AvailabilityZoneIds = new [] { "availabilityZoneIds" },
AvailabilityZones = new [] { "availabilityZones" }
},
TransportProtocol = "transportProtocol",
VpcId = "vpcId",
VpnPort = 123
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnClientVpnEndpointProps := &CfnClientVpnEndpointProps{
AuthenticationOptions: []interface{}{
&ClientAuthenticationRequestProperty{
Type: jsii.String("type"),
// the properties below are optional
ActiveDirectory: &DirectoryServiceAuthenticationRequestProperty{
DirectoryId: jsii.String("directoryId"),
},
FederatedAuthentication: &FederatedAuthenticationRequestProperty{
SamlProviderArn: jsii.String("samlProviderArn"),
// the properties below are optional
SelfServiceSamlProviderArn: jsii.String("selfServiceSamlProviderArn"),
},
MutualAuthentication: &CertificateAuthenticationRequestProperty{
ClientRootCertificateChainArn: jsii.String("clientRootCertificateChainArn"),
},
},
},
ConnectionLogOptions: &ConnectionLogOptionsProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
CloudwatchLogGroup: jsii.String("cloudwatchLogGroup"),
CloudwatchLogStream: jsii.String("cloudwatchLogStream"),
IncludeAuthorizationPolicyContext: jsii.Boolean(false),
},
ServerCertificateArn: jsii.String("serverCertificateArn"),
// the properties below are optional
AuthorizationPolicy: &AuthorizationPolicyProperty{
PolicyDocument: jsii.String("policyDocument"),
// the properties below are optional
Description: jsii.String("description"),
ShadowMode: jsii.String("shadowMode"),
},
ClientCidrBlock: jsii.String("clientCidrBlock"),
ClientConnectOptions: &ClientConnectOptionsProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
LambdaFunctionArn: jsii.String("lambdaFunctionArn"),
},
ClientLoginBannerOptions: &ClientLoginBannerOptionsProperty{
Enabled: jsii.Boolean(false),
// the properties below are optional
BannerText: jsii.String("bannerText"),
},
ClientRouteEnforcementOptions: &ClientRouteEnforcementOptionsProperty{
Enforced: jsii.Boolean(false),
},
Description: jsii.String("description"),
DevicePostureOptions: &DevicePostureOptionsProperty{
Enabled: jsii.Boolean(false),
TrustProviders: []interface{}{
&DevicePostureTrustProviderProperty{
TenantId: jsii.String("tenantId"),
TrustProviderType: jsii.String("trustProviderType"),
// the properties below are optional
PublicSigningKeyUrl: jsii.String("publicSigningKeyUrl"),
},
},
},
DisconnectOnSessionTimeout: jsii.Boolean(false),
DnsServers: []*string{
jsii.String("dnsServers"),
},
EndpointIpAddressType: jsii.String("endpointIpAddressType"),
SecurityGroupIds: []*string{
jsii.String("securityGroupIds"),
},
SelfServicePortal: jsii.String("selfServicePortal"),
SessionTimeoutHours: jsii.Number(123),
SplitTunnel: jsii.Boolean(false),
TagSpecifications: []interface{}{
&TagSpecificationProperty{
ResourceType: jsii.String("resourceType"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
},
},
TrafficIpAddressType: jsii.String("trafficIpAddressType"),
TransitGatewayConfiguration: &TransitGatewayConfigurationProperty{
TransitGatewayId: jsii.String("transitGatewayId"),
// the properties below are optional
AvailabilityZoneIds: []*string{
jsii.String("availabilityZoneIds"),
},
AvailabilityZones: []*string{
jsii.String("availabilityZones"),
},
},
TransportProtocol: jsii.String("transportProtocol"),
VpcId: jsii.String("vpcId"),
VpnPort: jsii.Number(123),
}
Properties
authenticationOptionsIResolvable | IResolvable | CfnClientVpnEndpoint.authentication_optionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, ClientAuthenticationRequestProperty]]]authenticationOptionsIResolvableAuthenticationOptionsIResolvableAuthenticationOptionsinterface{} required #authorizationPolicyoptionalIResolvable | CfnClientVpnEndpoint.authorization_policyoptionaltyping.Union[IResolvable, AuthorizationPolicyProperty]authorizationPolicyoptionalIResolvableAuthorizationPolicyoptionalIResolvableAuthorizationPolicyoptionalinterface{} #clientCidrBlockoptionalstringclient_cidr_blockoptionalstrclientCidrBlockoptionalStringClientCidrBlockoptionalstringClientCidrBlockoptional*string #notes
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.
clientConnectOptionsoptionalIResolvable | CfnClientVpnEndpoint.client_connect_optionsoptionaltyping.Union[IResolvable, ClientConnectOptionsProperty]clientConnectOptionsoptionalIResolvableClientConnectOptionsoptionalIResolvableClientConnectOptionsoptionalinterface{} #clientLoginBannerOptionsoptionalIResolvable | CfnClientVpnEndpoint.client_login_banner_optionsoptionaltyping.Union[IResolvable, ClientLoginBannerOptionsProperty]clientLoginBannerOptionsoptionalIResolvableClientLoginBannerOptionsoptionalIResolvableClientLoginBannerOptionsoptionalinterface{} #clientRouteEnforcementOptionsoptionalIResolvable | CfnClientVpnEndpoint.client_route_enforcement_optionsoptionaltyping.Union[IResolvable, ClientRouteEnforcementOptionsProperty]clientRouteEnforcementOptionsoptionalIResolvableClientRouteEnforcementOptionsoptionalIResolvableClientRouteEnforcementOptionsoptionalinterface{} #notes
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.
connectionLogOptionsIResolvable | CfnClientVpnEndpoint.connection_log_optionstyping.Union[IResolvable, ConnectionLogOptionsProperty]connectionLogOptionsIResolvableConnectionLogOptionsIResolvableConnectionLogOptionsinterface{} required #notes
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
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #devicePostureOptionsoptionalIResolvable | CfnClientVpnEndpoint.device_posture_optionsoptionaltyping.Union[IResolvable, DevicePostureOptionsProperty]devicePostureOptionsoptionalIResolvableDevicePostureOptionsoptionalIResolvableDevicePostureOptionsoptionalinterface{} #disconnectOnSessionTimeoutoptionalboolean | IResolvabledisconnect_on_session_timeoutoptionaltyping.Union[bool, IResolvable]disconnectOnSessionTimeoutoptionalBooleanDisconnectOnSessionTimeoutoptionalboolDisconnectOnSessionTimeoutoptionalinterface{} #If true , users are prompted to reconnect client VPN. If false , client VPN attempts to reconnect automatically. The default value is true .
dnsServersoptionalstring[]dns_serversoptionaltyping.List[str]dnsServersoptionalList<String>DnsServersoptionalstring[]DnsServersoptional*[]*string #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.
endpointIpAddressTypeoptionalstringendpoint_ip_address_typeoptionalstrendpointIpAddressTypeoptionalStringEndpointIpAddressTypeoptionalstringEndpointIpAddressTypeoptional*string #Possible values are ipv4 for IPv4 addressing only, ipv6 for IPv6 addressing only, or dual-stack for both IPv4 and IPv6 addressing.
securityGroupIdsoptionalstring[]security_group_idsoptionaltyping.List[str]securityGroupIdsoptionalList<String>SecurityGroupIdsoptionalstring[]SecurityGroupIdsoptional*[]*string #You must also specify the ID of the VPC that contains the security groups.
selfServicePortaloptionalstringself_service_portaloptionalstrselfServicePortaloptionalStringSelfServicePortaloptionalstringSelfServicePortaloptional*string #Default Value: enabled
serverCertificateArnstringserver_certificate_arnstrserverCertificateArnStringServerCertificateArnstringServerCertificateArn*string required #For more information, see the Certificate Manager User Guide .
sessionTimeoutHoursoptionalnumbersession_timeout_hoursoptionalint | floatsessionTimeoutHoursoptionalNumberSessionTimeoutHoursoptionaldoubleSessionTimeoutHoursoptional*float64 #Valid values: 8 | 10 | 12 | 24
Default value: 24
splitTunneloptionalboolean | IResolvablesplit_tunneloptionaltyping.Union[bool, IResolvable]splitTunneloptionalBooleanSplitTunneloptionalboolSplitTunneloptionalinterface{} #notes
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 .
tagSpecificationsoptionalIResolvable | IResolvable | CfnClientVpnEndpoint.tag_specificationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TagSpecificationProperty]]]tagSpecificationsoptionalIResolvableTagSpecificationsoptionalIResolvableTagSpecificationsoptionalinterface{} #trafficIpAddressTypeoptionalstringtraffic_ip_address_typeoptionalstrtrafficIpAddressTypeoptionalStringTrafficIpAddressTypeoptionalstringTrafficIpAddressTypeoptional*string #Possible values are either ipv4 for IPv4 addressing only, ipv6 for IPv6 addressing only, or dual-stack for both IPv4 and IPv6 addressing.
transitGatewayConfigurationoptionalIResolvable | CfnClientVpnEndpoint.transit_gateway_configurationoptionaltyping.Union[IResolvable, TransitGatewayConfigurationProperty]transitGatewayConfigurationoptionalIResolvableTransitGatewayConfigurationoptionalIResolvableTransitGatewayConfigurationoptionalinterface{} #transportProtocoloptionalstringtransport_protocoloptionalstrtransportProtocoloptionalStringTransportProtocoloptionalstringTransportProtocoloptional*string #Default value: udp
If no security group IDs are specified in the request, the default security group for the VPC is applied.
vpnPortoptionalnumbervpn_portoptionalint | floatvpnPortoptionalNumberVpnPortoptionaldoubleVpnPortoptional*float64 #Valid Values: 443 | 1194
Default Value: 443