AclCidr

class aws_cdk.aws_ec2.AclCidr

Bases: object

Either an IPv4 or an IPv6 CIDR.

ExampleMetadata:

fixture=_generated

Example:

# 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()

Methods

abstract to_cidr_config()
Return type:

AclCidrConfig

Static Methods

classmethod any_ipv4()

The CIDR containing all IPv4 addresses (i.e., 0.0.0.0/0).

Return type:

AclCidr

classmethod any_ipv6()

The CIDR containing all IPv6 addresses (i.e., ::/0).

Return type:

AclCidr

classmethod ipv4(ipv4_cidr)

An IP network range in CIDR notation (for example, 172.16.0.0/24).

Parameters:

ipv4_cidr (str) –

Return type:

AclCidr

classmethod ipv6(ipv6_cidr)

An IPv6 network range in CIDR notation (for example, 2001:db8::/48).

Parameters:

ipv6_cidr (str) –

Return type:

AclCidr