Class CfnClientVpnAuthorizationRule.Builder

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

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

    • create

      @Stability(Stable) public static CfnClientVpnAuthorizationRule.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnClientVpnAuthorizationRule.Builder.
    • clientVpnEndpointId

      @Stability(Stable) public CfnClientVpnAuthorizationRule.Builder clientVpnEndpointId(String clientVpnEndpointId)
      The ID of the Client VPN endpoint.

      Parameters:
      clientVpnEndpointId - The ID of the Client VPN endpoint. This parameter is required.
      Returns:
      this
    • targetNetworkCidr

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

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

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

      Required if AuthorizeAllGroups is false or not specified.

      Parameters:
      accessGroupId - 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
    • authorizeAllGroups

      @Stability(Stable) public CfnClientVpnAuthorizationRule.Builder authorizeAllGroups(Boolean authorizeAllGroups)
      Indicates whether to grant access to all clients.

      Specify true to grant all clients who successfully establish a VPN connection access to the network. Must be set to true if AccessGroupId is not specified.

      Parameters:
      authorizeAllGroups - Indicates whether to grant access to all clients. This parameter is required.
      Returns:
      this
    • authorizeAllGroups

      @Stability(Stable) public CfnClientVpnAuthorizationRule.Builder authorizeAllGroups(IResolvable authorizeAllGroups)
      Indicates whether to grant access to all clients.

      Specify true to grant all clients who successfully establish a VPN connection access to the network. Must be set to true if AccessGroupId is not specified.

      Parameters:
      authorizeAllGroups - Indicates whether to grant access to all clients. This parameter is required.
      Returns:
      this
    • description

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

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

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