AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/ec2_example_ec2_ReplaceNetworkAclAssociation_section.md

Summary

Added PowerShell V5 example for associating network ACLs with subnets

Security assessment

Network ACL management is security-related but example shows normal configuration

Diff

diff --git a/code-library/latest/ug/ec2_example_ec2_ReplaceNetworkAclAssociation_section.md b/code-library/latest/ug/ec2_example_ec2_ReplaceNetworkAclAssociation_section.md
index 83b6a0cdb..c6588008b 100644
--- a//code-library/latest/ug/ec2_example_ec2_ReplaceNetworkAclAssociation_section.md
+++ b//code-library/latest/ug/ec2_example_ec2_ReplaceNetworkAclAssociation_section.md
@@ -60,0 +61,19 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example associates the specified network ACL with the subnet for the specified network ACL association.**
+    
+    
+    Set-EC2NetworkAclAssociation -NetworkAclId acl-12345678 -AssociationId aclassoc-1a2b3c4d
+    
+
+**Output:**
+    
+    
+    aclassoc-87654321
+
+  * For API details, see [ReplaceNetworkAclAssociation](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+