AWS Security ChangesHomeSearch

AWS ec2 documentation change

Service: ec2 · 2025-06-28 · Documentation low

File: ec2/latest/devguide/example_ec2_DescribeVpnGateways_section.md

Summary

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

Security assessment

The changes provide usage examples for querying VPN gateways but do not discuss security features or indicate resolution of security issues.

Diff

diff --git a/ec2/latest/devguide/example_ec2_DescribeVpnGateways_section.md b/ec2/latest/devguide/example_ec2_DescribeVpnGateways_section.md
index f597ddb59..7e55d2371 100644
--- a//ec2/latest/devguide/example_ec2_DescribeVpnGateways_section.md
+++ b//ec2/latest/devguide/example_ec2_DescribeVpnGateways_section.md
@@ -98,0 +99,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)_.