AWS ec2 documentation change
Summary
Added PowerShell V5 examples for Get-EC2Volume cmdlet including volume filtering by status and full volume listing
Security assessment
The changes demonstrate volume querying operations but do not contain security-related content or address vulnerabilities. The encrypted property is shown in output but not discussed as a security feature.
Diff
diff --git a/ec2/latest/devguide/example_ec2_DescribeVolumes_section.md b/ec2/latest/devguide/example_ec2_DescribeVolumes_section.md index 2ae9cefb4..07661e599 100644 --- a//ec2/latest/devguide/example_ec2_DescribeVolumes_section.md +++ b//ec2/latest/devguide/example_ec2_DescribeVolumes_section.md @@ -187,0 +188,59 @@ PowerShell + + + + +**Tools for PowerShell V5** + + +**Example 1: This example describes the specified EBS volume.** + + + Get-EC2Volume -VolumeId vol-12345678 + + +**Output:** + + + Attachments : {} + AvailabilityZone : us-west-2c + CreateTime : 7/17/2015 4:35:19 PM + Encrypted : False + Iops : 90 + KmsKeyId : + Size : 30 + SnapshotId : snap-12345678 + State : in-use + Tags : {} + VolumeId : vol-12345678 + VolumeType : standard + +**Example 2: This example describes your EBS volumes that have the status 'available'.** + + + Get-EC2Volume -Filter @{ Name="status"; Values="available" } + + +**Output:** + + + Attachments : {} + AvailabilityZone : us-west-2c + CreateTime : 12/21/2015 2:31:29 PM + Encrypted : False + Iops : 60 + KmsKeyId : + Size : 20 + SnapshotId : snap-12345678 + State : available + Tags : {} + VolumeId : vol-12345678 + VolumeType : gp2 + ... + +**Example 3: This example describes all your EBS volumes.** + + + Get-EC2Volume + + + * For API details, see [DescribeVolumes](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_.