Class ClientVpnUserBasedAuthentication
User-based authentication for a client VPN endpoint.
Inheritance
System.Object
ClientVpnUserBasedAuthentication
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public abstract class ClientVpnUserBasedAuthentication : DeputyBase
Syntax (vb)
Public MustInherit Class ClientVpnUserBasedAuthentication
Inherits DeputyBase
Remarks
ExampleMetadata: fixture=client-vpn infused
Examples
var endpoint = vpc.AddClientVpnEndpoint("Endpoint", new ClientVpnEndpointOptions {
Cidr = "10.100.0.0/16",
ServerCertificateArn = "arn:aws:acm:us-east-1:123456789012:certificate/server-certificate-id",
UserBasedAuthentication = ClientVpnUserBasedAuthentication.Federated(samlProvider),
AuthorizeAllUsersToVpcCidr = false
});
endpoint.AddAuthorizationRule("Rule", new ClientVpnAuthorizationRuleOptions {
Cidr = "10.0.10.0/32",
GroupId = "group-id"
});
Synopsis
Constructors
ClientVpnUserBasedAuthentication() | |
ClientVpnUserBasedAuthentication(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ClientVpnUserBasedAuthentication(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
ActiveDirectory(String) | Active Directory authentication. |
Federated(ISamlProvider, ISamlProvider) | Federated authentication. |
Render() | Renders the user based authentication. |
Constructors
ClientVpnUserBasedAuthentication()
protected ClientVpnUserBasedAuthentication()
ClientVpnUserBasedAuthentication(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ClientVpnUserBasedAuthentication(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ClientVpnUserBasedAuthentication(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ClientVpnUserBasedAuthentication(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
ActiveDirectory(String)
Active Directory authentication.
public static ClientVpnUserBasedAuthentication ActiveDirectory(string directoryId)
Parameters
- directoryId System.String
Returns
ClientVpnUserBasedAuthentication
Federated(ISamlProvider, ISamlProvider)
Federated authentication.
public static ClientVpnUserBasedAuthentication Federated(ISamlProvider samlProvider, ISamlProvider selfServiceSamlProvider = null)
Parameters
- samlProvider ISamlProvider
- selfServiceSamlProvider ISamlProvider
Returns
ClientVpnUserBasedAuthentication
Render()
Renders the user based authentication.
public abstract object Render()
Returns
System.Object