Changes which network ACL a subnet is associated with. By default when you create a subnet, it’s automatically associated with the default network ACL. For more information about network ACLs, go to Network ACLs in the Amazon Virtual Private Cloud User Guide.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The ID representing the current association between the original network ACL and the subnet. |
|
|
Required |
The ID of the new ACL to associate with the subnet. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Replace an existing Network Access Control List (ACL) association.
$ec2 = new AmazonEC2(); $response = $ec2->replace_network_acl_association('rtbassoc-babe3ed3', 'acl-4abf3f23'); var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (8 lines) | View on GitHub