AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 examples for Get-EC2VpnGateway including gateway lookup and state filtering

Security assessment

Basic documentation for querying VPN gateway status. No security-related content or issues mentioned.

Diff

diff --git a/code-library/latest/ug/ec2_example_ec2_DescribeVpnGateways_section.md b/code-library/latest/ug/ec2_example_ec2_DescribeVpnGateways_section.md
index 2d6cf6a1c..19895ed87 100644
--- a//code-library/latest/ug/ec2_example_ec2_DescribeVpnGateways_section.md
+++ b//code-library/latest/ug/ec2_example_ec2_DescribeVpnGateways_section.md
@@ -104,0 +105,40 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example describes the specified virtual private gateway.**
+    
+    
+    Get-EC2VpnGateway -VpnGatewayId vgw-1a2b3c4d
+    
+
+**Output:**
+    
+    
+    AvailabilityZone :
+    State            : available
+    Tags             : {}
+    Type             : ipsec.1
+    VpcAttachments   : {vpc-12345678}
+    VpnGatewayId     : vgw-1a2b3c4d
+
+**Example 2: This example describes any virtual private gateway whose state is either pending or available.**
+    
+    
+    $filter = New-Object Amazon.EC2.Model.Filter
+    $filter.Name = "state"
+    $filter.Values = @( "pending", "available" )
+    
+    Get-EC2VpnGateway -Filter $filter
+    
+
+**Example 3: This example describes all your virtual private gateways.**
+    
+    
+    Get-EC2VpnGateway
+    
+
+  * For API details, see [DescribeVpnGateways](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+