# AclCidr

Either an IPv4 or an IPv6 CIDR.

Obtainable from: AclCidr.anyIpv4, AclCidr.anyIpv6, AclCidr.ipv4, AclCidr.ipv6

- Source: [`aws-ec2/lib/network-acl-types.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-ec2/lib/network-acl-types.ts#L6)

## 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 aclCidr = ec2.AclCidr.anyIpv4();
```

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

acl_cidr = ec2.AclCidr.any_ipv4()
```

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

AclCidr aclCidr = AclCidr.anyIpv4();
```

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 aclCidr = AclCidr.AnyIpv4();
```

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"

aclCidr := awscdk.Aws_ec2.AclCidr_AnyIpv4()
```

## Initializer

TypeScript:

```ts
new AclCidr()
```

Python:

```python
AclCidr()
```

Java:

```java
new AclCidr()
```

C# / .NET:

```csharp
new AclCidr()
```

Golang:

```go
NewAclCidr()
```

## Methods

- `anyIpv4(): AclCidr // chainable` (static) — The CIDR containing all IPv4 addresses (i.e., 0.0.0.0/0).

- `anyIpv6(): AclCidr // chainable` (static) — The CIDR containing all IPv6 addresses (i.e., ::/0).

- `ipv4(ipv4Cidr: string): AclCidr // chainable` (static) — An IP network range in CIDR notation (for example, 172.16.0.0/24).

- `ipv6(ipv6Cidr: string): AclCidr // chainable` (static) — An IPv6 network range in CIDR notation (for example, 2001:db8::/48).

- `toCidrConfig(): AclCidrConfig`
