Skip to content
v2.278.0

ClientVpnAuthorizationRuleProps Struct ​

Properties for a ClientVpnAuthorizationRule.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_ec2 as interfaces_ec2 } from 'aws-cdk-lib/interfaces';

declare const clientVpnEndpointRef: interfaces_ec2.IClientVpnEndpointRef;
const clientVpnAuthorizationRuleProps: ec2.ClientVpnAuthorizationRuleProps = {
  cidr: 'cidr',

  // the properties below are optional
  clientVpnEndpoint: clientVpnEndpointRef,
  description: 'description',
  groupId: 'groupId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
from aws_cdk.interfaces import aws_ec2 as interfaces_ec2

# client_vpn_endpoint_ref: interfaces_ec2.IClientVpnEndpointRef

client_vpn_authorization_rule_props = ec2.ClientVpnAuthorizationRuleProps(
    cidr="cidr",

    # the properties below are optional
    client_vpn_endpoint=client_vpn_endpoint_ref,
    description="description",
    group_id="groupId"
)
java
// 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.*;
import software.amazon.awscdk.interfaces.ec2.*;

IClientVpnEndpointRef clientVpnEndpointRef;

ClientVpnAuthorizationRuleProps clientVpnAuthorizationRuleProps = ClientVpnAuthorizationRuleProps.builder()
        .cidr("cidr")

        // the properties below are optional
        .clientVpnEndpoint(clientVpnEndpointRef)
        .description("description")
        .groupId("groupId")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.Interfaces.EC2;

IClientVpnEndpointRef clientVpnEndpointRef;

var clientVpnAuthorizationRuleProps = new ClientVpnAuthorizationRuleProps {
    Cidr = "cidr",

    // the properties below are optional
    ClientVpnEndpoint = clientVpnEndpointRef,
    Description = "description",
    GroupId = "groupId"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

var clientVpnEndpointRef IClientVpnEndpointRef

clientVpnAuthorizationRuleProps := &ClientVpnAuthorizationRuleProps{
	Cidr: jsii.String("cidr"),

	// the properties below are optional
	ClientVpnEndpoint: clientVpnEndpointRef,
	Description: jsii.String("description"),
	GroupId: jsii.String("groupId"),
}

Properties ​

cidrstringcidrstrcidrStringCidrstringCidr*string required #
The IPv4 address range, in CIDR notation, of the network for which access is being authorized.
clientVpnEndpointoptionalIClientVpnEndpointRefclient_vpn_endpointoptionalIClientVpnEndpointRefclientVpnEndpointoptionalIClientVpnEndpointRefClientVpnEndpointoptionalIClientVpnEndpointRefClientVpnEndpointoptionalIClientVpnEndpointRef #
The client VPN endpoint to which to add the rule.

Default: clientVpnEndpoint is required

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A brief description of the authorization rule.

Default: no description

groupIdoptionalstringgroup_idoptionalstrgroupIdoptionalStringGroupIdoptionalstringGroupIdoptional*string #
The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group.

Default: authorize all groups