# ClientVpnAuthorizationRuleProps

Properties for a ClientVpnAuthorizationRule.

Extends: [ClientVpnAuthorizationRuleOptions](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ClientVpnAuthorizationRuleOptions.html)
Used as props by: [ClientVpnAuthorizationRule](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ClientVpnAuthorizationRule.html)

- Source: [`aws-ec2/lib/client-vpn-authorization-rule.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ec2/lib/client-vpn-authorization-rule.ts#L38)
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `cidr`: string (required) — The IPv4 address range, in CIDR notation, of the network for which access is being authorized.

- `clientVpnEndpoint`: [IClientVpnEndpointRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_ec2.IClientVpnEndpointRef.html) — The client VPN endpoint to which to add the rule.

  **Default:** clientVpnEndpoint is required

- `description`: string — A brief description of the authorization rule.

  **Default:** no description

- `groupId`: 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
