Interface IClientVpnEndpointProps
Properties for a client VPN endpoint.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IClientVpnEndpointProps : IClientVpnEndpointOptions
Syntax (vb)
Public Interface IClientVpnEndpointProps
Inherits IClientVpnEndpointOptions
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.AWS.Logs;
IClientVpnConnectionHandler clientVpnConnectionHandler;
ClientVpnUserBasedAuthentication clientVpnUserBasedAuthentication;
LogGroup logGroup;
LogStream logStream;
SecurityGroup securityGroup;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
var clientVpnEndpointProps = new ClientVpnEndpointProps {
Cidr = "cidr",
ServerCertificateArn = "serverCertificateArn",
Vpc = vpc,
// the properties below are optional
AuthorizeAllUsersToVpcCidr = false,
ClientCertificateArn = "clientCertificateArn",
ClientConnectionHandler = clientVpnConnectionHandler,
ClientLoginBanner = "clientLoginBanner",
Description = "description",
DnsServers = new [] { "dnsServers" },
Logging = false,
LogGroup = logGroup,
LogStream = logStream,
Port = VpnPort.HTTPS,
SecurityGroups = new [] { securityGroup },
SelfServicePortal = false,
SessionTimeout = ClientVpnSessionTimeout.EIGHT_HOURS,
SplitTunnel = false,
TransportProtocol = TransportProtocol.TCP,
UserBasedAuthentication = clientVpnUserBasedAuthentication,
VpcSubnets = new SubnetSelection {
AvailabilityZones = new [] { "availabilityZones" },
OnePerAz = false,
SubnetFilters = new [] { subnetFilter },
SubnetGroupName = "subnetGroupName",
Subnets = new [] { subnet },
SubnetType = SubnetType.PRIVATE_ISOLATED
}
};
Synopsis
Properties
Vpc | The VPC to connect to. |