# CfnClientVpnAuthorizationRuleProps

Properties for defining a `CfnClientVpnAuthorizationRule`.

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

- Source: Generated at build time

## 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';
const cfnClientVpnAuthorizationRuleProps: ec2.CfnClientVpnAuthorizationRuleProps = {
  clientVpnEndpointId: 'clientVpnEndpointId',
  targetNetworkCidr: 'targetNetworkCidr',

  // the properties below are optional
  accessGroupId: 'accessGroupId',
  authorizeAllGroups: false,
  description: 'description',
};
```

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

cfn_client_vpn_authorization_rule_props = ec2.CfnClientVpnAuthorizationRuleProps(
    client_vpn_endpoint_id="clientVpnEndpointId",
    target_network_cidr="targetNetworkCidr",

    # the properties below are optional
    access_group_id="accessGroupId",
    authorize_all_groups=False,
    description="description"
)
```

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.*;

CfnClientVpnAuthorizationRuleProps cfnClientVpnAuthorizationRuleProps = CfnClientVpnAuthorizationRuleProps.builder()
        .clientVpnEndpointId("clientVpnEndpointId")
        .targetNetworkCidr("targetNetworkCidr")

        // the properties below are optional
        .accessGroupId("accessGroupId")
        .authorizeAllGroups(false)
        .description("description")
        .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;

var cfnClientVpnAuthorizationRuleProps = new CfnClientVpnAuthorizationRuleProps {
    ClientVpnEndpointId = "clientVpnEndpointId",
    TargetNetworkCidr = "targetNetworkCidr",

    // the properties below are optional
    AccessGroupId = "accessGroupId",
    AuthorizeAllGroups = false,
    Description = "description"
};
```

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"

cfnClientVpnAuthorizationRuleProps := &CfnClientVpnAuthorizationRuleProps{
	ClientVpnEndpointId: jsii.String("clientVpnEndpointId"),
	TargetNetworkCidr: jsii.String("targetNetworkCidr"),

	// the properties below are optional
	AccessGroupId: jsii.String("accessGroupId"),
	AuthorizeAllGroups: jsii.Boolean(false),
	Description: jsii.String("description"),
}
```

## Properties

- `accessGroupId`: string — The ID of the group to grant access to, for example, the Active Directory group or identity provider (IdP) group.

  Required if `AuthorizeAllGroups` is `false` or not specified.

- `authorizeAllGroups`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — 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 to `true` if `AccessGroupId` is not specified.

- `clientVpnEndpointId`: string (required) — The ID of the Client VPN endpoint.

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

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