Class ClientVpnAuthorizationRule.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.ClientVpnAuthorizationRule.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ClientVpnAuthorizationRule>
Enclosing class:
ClientVpnAuthorizationRule

@Stability(Stable) public static final class ClientVpnAuthorizationRule.Builder extends Object implements software.amazon.jsii.Builder<ClientVpnAuthorizationRule>
A fluent builder for ClientVpnAuthorizationRule.
  • Method Details

    • create

      @Stability(Stable) public static ClientVpnAuthorizationRule.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of ClientVpnAuthorizationRule.Builder.
    • cidr

      @Stability(Stable) public ClientVpnAuthorizationRule.Builder cidr(String cidr)
      The IPv4 address range, in CIDR notation, of the network for which access is being authorized.

      Parameters:
      cidr - The IPv4 address range, in CIDR notation, of the network for which access is being authorized. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public ClientVpnAuthorizationRule.Builder description(String description)
      A brief description of the authorization rule.

      Default: - no description

      Parameters:
      description - A brief description of the authorization rule. This parameter is required.
      Returns:
      this
    • groupId

      @Stability(Stable) public ClientVpnAuthorizationRule.Builder groupId(String groupId)
      The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group.

      Default: - authorize all groups

      Parameters:
      groupId - The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group. This parameter is required.
      Returns:
      this
    • clientVpnEndoint

      @Stability(Deprecated) @Deprecated public ClientVpnAuthorizationRule.Builder clientVpnEndoint(IClientVpnEndpoint clientVpnEndoint)
      Deprecated.
      Use clientVpnEndpoint instead
      (deprecated) The client VPN endpoint to which to add the rule.

      Default: clientVpnEndpoint is required

      Parameters:
      clientVpnEndoint - The client VPN endpoint to which to add the rule. This parameter is required.
      Returns:
      this
    • clientVpnEndpoint

      @Stability(Stable) public ClientVpnAuthorizationRule.Builder clientVpnEndpoint(IClientVpnEndpoint clientVpnEndpoint)
      The client VPN endpoint to which to add the rule.

      Default: clientVpnEndpoint is required

      Parameters:
      clientVpnEndpoint - The client VPN endpoint to which to add the rule. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public ClientVpnAuthorizationRule build()
      Specified by:
      build in interface software.amazon.jsii.Builder<ClientVpnAuthorizationRule>
      Returns:
      a newly built instance of ClientVpnAuthorizationRule.