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. import aws_cdk.aws_ec2 as ec2 acl_cidr = ec2.AclCidr.any_ipv4()
Methods
-
abstract
to_cidr_config
()¶ - Return type
Static Methods
-
classmethod
any_ipv4
()¶ The CIDR containing all IPv4 addresses (i.e., 0.0.0.0/0).
- Return type
-
classmethod
ipv4
(ipv4_cidr)¶ An IP network range in CIDR notation (for example, 172.16.0.0/24).
- Parameters
ipv4_cidr (
str
) –- Return type