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 Summary
Modifier and TypeMethodDescriptionbuild()
The IPv4 address range, in CIDR notation, of the network for which access is being authorized.clientVpnEndoint
(IClientVpnEndpoint clientVpnEndoint) Deprecated.clientVpnEndpoint
(IClientVpnEndpoint clientVpnEndpoint) The client VPN endpoint to which to add the rule.description
(String description) A brief description of the authorization rule.The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group.
-
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
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
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
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.UseclientVpnEndpoint
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ClientVpnAuthorizationRule>
- Returns:
- a newly built instance of
ClientVpnAuthorizationRule
.
-
clientVpnEndpoint
instead