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.
from aws_cdk import 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

Return type

INetworkAcl

subnet

ID of the Subnet.

Attribute

true

Return type

ISubnet

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.

Return type

Optional[str]