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 Summary
Modifier and TypeMethodDescriptionaccessGroupId
(String accessGroupId) The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group.authorizeAllGroups
(Boolean authorizeAllGroups) Indicates whether to grant access to all clients.authorizeAllGroups
(IResolvable authorizeAllGroups) Indicates whether to grant access to all clients.build()
clientVpnEndpointId
(String clientVpnEndpointId) The ID of the Client VPN endpoint.description
(String description) A brief description of the authorization rule.targetNetworkCidr
(String targetNetworkCidr) The IPv4 address range, in CIDR notation, of the network for which access is being authorized.
-
Method Details
-
create
@Stability(Stable) public static CfnClientVpnAuthorizationRule.Builder create(Construct scope, String id) - Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group.Required if
AuthorizeAllGroups
isfalse
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 totrue
ifAccessGroupId
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 totrue
ifAccessGroupId
is not specified.- Parameters:
authorizeAllGroups
- Indicates whether to grant access to all clients. This parameter is required.- Returns:
this
-
description
A brief description of the authorization rule.- Parameters:
description
- A brief description of the authorization rule. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnClientVpnAuthorizationRule>
- Returns:
- a newly built instance of
CfnClientVpnAuthorizationRule
.
-