AWS ec2 documentation change
Summary
Added PowerShell V5 examples for DescribeCustomerGateways with filtering and output details
Security assessment
Provides examples for querying VPN customer gateways but does not address security weaknesses or document security features. Focuses on general API usage.
Diff
diff --git a/ec2/latest/devguide/example_ec2_DescribeCustomerGateways_section.md b/ec2/latest/devguide/example_ec2_DescribeCustomerGateways_section.md index 6a74b0592..9665b599f 100644 --- a//ec2/latest/devguide/example_ec2_DescribeCustomerGateways_section.md +++ b//ec2/latest/devguide/example_ec2_DescribeCustomerGateways_section.md @@ -119,0 +120,40 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example describes the specified customer gateway.** + + + Get-EC2CustomerGateway -CustomerGatewayId cgw-1a2b3c4d + + +**Output:** + + + BgpAsn : 65534 + CustomerGatewayId : cgw-1a2b3c4d + IpAddress : 203.0.113.12 + State : available + Tags : {} + Type : ipsec.1 + +**Example 2: This example describes any customer gateway whose state is either pending or available.** + + + $filter = New-Object Amazon.EC2.Model.Filter + $filter.Name = "state" + $filter.Values = @( "pending", "available" ) + + Get-EC2CustomerGateway -Filter $filter + + +**Example 3: This example describes all your customer gateways.** + + + Get-EC2CustomerGateway + + + * For API details, see [DescribeCustomerGateways](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +