@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.127Z") @Stability(value=Stable) public class CfnClientVpnAuthorizationRule extends CfnResource implements IInspectable
Specifies an ingress authorization rule to add to a Client VPN endpoint. Ingress authorization rules act as firewall rules that grant access to networks. You must configure ingress authorization rules to enable clients to access resources in AWS or on-premises networks.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnClientVpnAuthorizationRule cfnClientVpnAuthorizationRule = CfnClientVpnAuthorizationRule.Builder.create(this, "MyCfnClientVpnAuthorizationRule")
.clientVpnEndpointId("clientVpnEndpointId")
.targetNetworkCidr("targetNetworkCidr")
// the properties below are optional
.accessGroupId("accessGroupId")
.authorizeAllGroups(false)
.description("description")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnClientVpnAuthorizationRule.Builder
A fluent builder for
CfnClientVpnAuthorizationRule. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnClientVpnAuthorizationRule(software.constructs.Construct scope,
String id,
CfnClientVpnAuthorizationRuleProps props)
Create a new `AWS::EC2::ClientVpnAuthorizationRule`.
|
protected |
CfnClientVpnAuthorizationRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnClientVpnAuthorizationRule(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessGroupId()
The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group.
|
Object |
getAuthorizeAllGroups()
Indicates whether to grant access to all clients.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getClientVpnEndpointId()
The ID of the Client VPN endpoint.
|
String |
getDescription()
A brief description of the authorization rule.
|
String |
getTargetNetworkCidr()
The IPv4 address range, in CIDR notation, of the network for which access is being authorized.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessGroupId(String value)
The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group.
|
void |
setAuthorizeAllGroups(Boolean value)
Indicates whether to grant access to all clients.
|
void |
setAuthorizeAllGroups(IResolvable value)
Indicates whether to grant access to all clients.
|
void |
setClientVpnEndpointId(String value)
The ID of the Client VPN endpoint.
|
void |
setDescription(String value)
A brief description of the authorization rule.
|
void |
setTargetNetworkCidr(String value)
The IPv4 address range, in CIDR notation, of the network for which access is being authorized.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnClientVpnAuthorizationRule(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnClientVpnAuthorizationRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnClientVpnAuthorizationRule(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnClientVpnAuthorizationRuleProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getClientVpnEndpointId()
@Stability(value=Stable)
public void setClientVpnEndpointId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getTargetNetworkCidr()
@Stability(value=Stable)
public void setTargetNetworkCidr(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getAccessGroupId()
Required if AuthorizeAllGroups is false or not specified.
@Stability(value=Stable)
public void setAccessGroupId(@Nullable
String value)
Required if AuthorizeAllGroups is false or not specified.
@Stability(value=Stable) @Nullable public Object getAuthorizeAllGroups()
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.
@Stability(value=Stable)
public void setAuthorizeAllGroups(@Nullable
Boolean value)
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.
@Stability(value=Stable)
public void setAuthorizeAllGroups(@Nullable
IResolvable value)
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.
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
Copyright © 2022. All rights reserved.