NetworkAclProps

class aws_cdk.aws_ec2.NetworkAclProps(*, vpc, network_acl_name=None, subnet_selection=None)

Bases: object

__init__(*, vpc, network_acl_name=None, subnet_selection=None)

Properties to create NetworkAcl.

Parameters
  • vpc (IVpc) – The VPC in which to create the NetworkACL.

  • network_acl_name (Optional[str]) – The name of the NetworkAcl. It is not recommended to use an explicit name. Default: If you don’t specify a networkAclName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.

  • subnet_selection (Optional[SubnetSelection]) – Subnets in the given VPC to associate the ACL with. More subnets can always be added later by calling associateWithSubnets(). Default: - No subnets associated

stability :stability: experimental

Attributes

network_acl_name

The name of the NetworkAcl.

It is not recommended to use an explicit name.

default :default:

If you don’t specify a networkAclName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.

stability :stability: experimental

Return type

Optional[str]

subnet_selection

Subnets in the given VPC to associate the ACL with.

More subnets can always be added later by calling associateWithSubnets().

default :default: - No subnets associated

stability :stability: experimental

Return type

Optional[SubnetSelection]

vpc

The VPC in which to create the NetworkACL.

stability :stability: experimental

Return type

IVpc