SubnetNetworkAclAssociationProps

class aws_cdk.aws_ec2.SubnetNetworkAclAssociationProps(*, network_acl, subnet, subnet_network_acl_association_name=None)

Bases: object

Properties to create a SubnetNetworkAclAssociation.

Parameters:
  • network_acl (INetworkAcl) – The Network ACL this association is defined for.

  • subnet (ISubnet) – ID of the Subnet.

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

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

# network_acl: ec2.NetworkAcl
# subnet: ec2.Subnet

subnet_network_acl_association_props = ec2.SubnetNetworkAclAssociationProps(
    network_acl=network_acl,
    subnet=subnet,

    # the properties below are optional
    subnet_network_acl_association_name="subnetNetworkAclAssociationName"
)

Attributes

network_acl

The Network ACL this association is defined for.

Attribute:

true

subnet

ID of the Subnet.

Attribute:

true

subnet_network_acl_association_name

The name of the SubnetNetworkAclAssociation.

It is not recommended to use an explicit name.

Default:

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