Class ClientVpnUserBasedAuthentication

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.ClientVpnUserBasedAuthentication
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.272Z") @Stability(Stable) public abstract class ClientVpnUserBasedAuthentication extends software.amazon.jsii.JsiiObject
User-based authentication for a client VPN endpoint.

Example:

 ClientVpnEndpoint endpoint = vpc.addClientVpnEndpoint("Endpoint", ClientVpnEndpointOptions.builder()
         .cidr("10.100.0.0/16")
         .serverCertificateArn("arn:aws:acm:us-east-1:123456789012:certificate/server-certificate-id")
         .userBasedAuthentication(ClientVpnUserBasedAuthentication.federated(samlProvider))
         .authorizeAllUsersToVpcCidr(false)
         .build());
 endpoint.addAuthorizationRule("Rule", ClientVpnAuthorizationRuleOptions.builder()
         .cidr("10.0.10.0/32")
         .groupId("group-id")
         .build());
 
  • Constructor Details

    • ClientVpnUserBasedAuthentication

      protected ClientVpnUserBasedAuthentication(software.amazon.jsii.JsiiObjectRef objRef)
    • ClientVpnUserBasedAuthentication

      protected ClientVpnUserBasedAuthentication(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • ClientVpnUserBasedAuthentication

      @Stability(Stable) protected ClientVpnUserBasedAuthentication()
  • Method Details

    • activeDirectory

      @Stability(Stable) @NotNull public static ClientVpnUserBasedAuthentication activeDirectory(@NotNull String directoryId)
      Active Directory authentication.

      Parameters:
      directoryId - This parameter is required.
    • federated

      @Stability(Stable) @NotNull public static ClientVpnUserBasedAuthentication federated(@NotNull ISamlProvider samlProvider, @Nullable ISamlProvider selfServiceSamlProvider)
      Federated authentication.

      Parameters:
      samlProvider - This parameter is required.
      selfServiceSamlProvider -
    • federated

      @Stability(Stable) @NotNull public static ClientVpnUserBasedAuthentication federated(@NotNull ISamlProvider samlProvider)
      Federated authentication.

      Parameters:
      samlProvider - This parameter is required.
    • render

      @Stability(Stable) @NotNull public abstract Object render()
      Renders the user based authentication.