---
name: "VM::EC2::VPC::NetworkAcl::Association"
section: "3pm"
platform: "linux"
package: "libvm-ec2-perl"
version: "1.28-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/VM::EC2::VPC::NetworkAcl::Association"
---

# VM::EC2::VPC::NetworkAcl::Association(3pm)

The association between a network acl and a subnet

## NAME

VM::EC2::VPC::NetworkAcl::Association - The association between a network acl and a subnet

## SYNOPSIS

```
 use VM::EC2;
 my $ec2      = VM::EC2->new(...);
 my $acl      = $ec2->describe_network_acls(-network_acl_id=>'acl-12345678');
 my @assoc    = $acl->associations;
 foreach my $a (@assoc) {
     print $a->networkAclAssociationId,"\n",
           $a->networkAclId,"\n",
           $a->subnetId,"\n";
 }
```

## DESCRIPTION

This object represents an Amazon EC2 VPC network ACL association

## METHODS

These object methods are supported:

```
 networkAclAssociationId -- An identifier representing the
                            association between a network ACL
                            and a subnet.
 networkAclId            -- The ID of the network ACL in the
                            association.
 subnetId                -- The ID of the subnet in the association.
```

The following convenience methods are supported:

```
 network_acl             -- A VM::EC2::VPC::NetworkAcl object
 subnet                  -- A VM::EC2::VPC::Subnet object
```

The object also supports the **tags()** method described in VM::EC2::Generic:

## STRING OVERLOADING

When used in a string context, this object will interpolate the subnetId.

## SEE ALSO

VM::EC2 VM::EC2::Generic VM::EC2::Tag VM::EC2::VPC VM::EC2::VPC::NetworkAcl VM::EC2::VPC::Subnet

## AUTHOR

Lance Kinley \<lkinley@loyaltymethods.com\>.

Copyright (c) 2012 Loyalty Methods, Inc.

This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0.  Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.
