AWS Security ChangesHomeSearch

AWS powershell documentation change

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

File: powershell/v5/userguide/powershell_ec2_code_examples.md

Summary

Updated documentation references from AWS Tools for PowerShell V4 to V5 across all code examples and API links

Security assessment

The changes are version updates from V4 to V5 in documentation references and API links. There is no evidence of addressing security vulnerabilities or adding security-related content. This appears to be a routine documentation version update.

Diff

diff --git a/powershell/v5/userguide/powershell_ec2_code_examples.md b/powershell/v5/userguide/powershell_ec2_code_examples.md
index 9ac68c131..914abd917 100644
--- a//powershell/v5/userguide/powershell_ec2_code_examples.md
+++ b//powershell/v5/userguide/powershell_ec2_code_examples.md
@@ -13 +13 @@ For information about breaking changes and migrating your applications, see the
-# Amazon EC2 examples using Tools for PowerShell V4
+# Amazon EC2 examples using Tools for PowerShell V5
@@ -15 +15 @@ For information about breaking changes and migrating your applications, see the
-The following code examples show you how to perform actions and implement common scenarios by using the AWS Tools for PowerShell V4 with Amazon EC2.
+The following code examples show you how to perform actions and implement common scenarios by using the AWS Tools for PowerShell V5 with Amazon EC2.
@@ -32 +32 @@ The following code example shows how to use `Add-EC2CapacityReservation`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -60 +60 @@ The following code example shows how to use `Add-EC2CapacityReservation`.
-  * For API details, see [CreateCapacityReservation](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [CreateCapacityReservation](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -67 +67 @@ The following code example shows how to use `Add-EC2InternetGateway`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -83 +83 @@ The following code example shows how to use `Add-EC2InternetGateway`.
-  * For API details, see [AttachInternetGateway](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [AttachInternetGateway](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -90 +90 @@ The following code example shows how to use `Add-EC2NetworkInterface`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -104 +104 @@ The following code example shows how to use `Add-EC2NetworkInterface`.
-  * For API details, see [AttachNetworkInterface](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [AttachNetworkInterface](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -111 +111 @@ The following code example shows how to use `Add-EC2Volume`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -130 +130 @@ The following code example shows how to use `Add-EC2Volume`.
-  * For API details, see [AttachVolume](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [AttachVolume](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -137 +137 @@ The following code example shows how to use `Add-EC2VpnGateway`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -153 +153 @@ The following code example shows how to use `Add-EC2VpnGateway`.
-  * For API details, see [AttachVpnGateway](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [AttachVpnGateway](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -160 +160 @@ The following code example shows how to use `Approve-EC2VpcPeeringConnection`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -179 +179 @@ The following code example shows how to use `Approve-EC2VpcPeeringConnection`.
-  * For API details, see [AcceptVpcPeeringConnection](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [AcceptVpcPeeringConnection](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -186 +186 @@ The following code example shows how to use `Confirm-EC2ProductInstance`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -195 +195 @@ The following code example shows how to use `Confirm-EC2ProductInstance`.
-  * For API details, see [ConfirmProductInstance](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ConfirmProductInstance](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -202 +202 @@ The following code example shows how to use `Copy-EC2Image`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -216 +216 @@ The following code example shows how to use `Copy-EC2Image`.
-  * For API details, see [CopyImage](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [CopyImage](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -223 +223 @@ The following code example shows how to use `Copy-EC2Snapshot`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -239 +239 @@ The following code example shows how to use `Copy-EC2Snapshot`.
-  * For API details, see [CopySnapshot](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [CopySnapshot](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -246 +246 @@ The following code example shows how to use `Deny-EC2VpcPeeringConnection`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -255 +255 @@ The following code example shows how to use `Deny-EC2VpcPeeringConnection`.
-  * For API details, see [RejectVpcPeeringConnection](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [RejectVpcPeeringConnection](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -262 +262 @@ The following code example shows how to use `Disable-EC2VgwRoutePropagation`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -271 +271 @@ The following code example shows how to use `Disable-EC2VgwRoutePropagation`.
-  * For API details, see [DisableVgwRoutePropagation](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [DisableVgwRoutePropagation](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -278 +278 @@ The following code example shows how to use `Disable-EC2VpcClassicLink`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -287 +287 @@ The following code example shows how to use `Disable-EC2VpcClassicLink`.
-  * For API details, see [DisableVpcClassicLink](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [DisableVpcClassicLink](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -294 +294 @@ The following code example shows how to use `Disable-EC2VpcClassicLinkDnsSupport
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -303 +303 @@ The following code example shows how to use `Disable-EC2VpcClassicLinkDnsSupport
-  * For API details, see [DisableVpcClassicLinkDnsSupport](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [DisableVpcClassicLinkDnsSupport](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -310 +310 @@ The following code example shows how to use `Dismount-EC2InternetGateway`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -319 +319 @@ The following code example shows how to use `Dismount-EC2InternetGateway`.
-  * For API details, see [DetachInternetGateway](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [DetachInternetGateway](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -326 +326 @@ The following code example shows how to use `Dismount-EC2NetworkInterface`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -335 +335 @@ The following code example shows how to use `Dismount-EC2NetworkInterface`.
-  * For API details, see [DetachNetworkInterface](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [DetachNetworkInterface](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -342 +342 @@ The following code example shows how to use `Dismount-EC2Volume`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -367 +367 @@ The following code example shows how to use `Dismount-EC2Volume`.
-  * For API details, see [DetachVolume](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [DetachVolume](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -374 +374 @@ The following code example shows how to use `Dismount-EC2VpnGateway`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -383 +383 @@ The following code example shows how to use `Dismount-EC2VpnGateway`.
-  * For API details, see [DetachVpnGateway](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [DetachVpnGateway](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -390 +390 @@ The following code example shows how to use `Edit-EC2CapacityReservation`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -404 +404 @@ The following code example shows how to use `Edit-EC2CapacityReservation`.
-  * For API details, see [ModifyCapacityReservation](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifyCapacityReservation](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -411 +411 @@ The following code example shows how to use `Edit-EC2Host`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -427 +427 @@ The following code example shows how to use `Edit-EC2Host`.
-  * For API details, see [ModifyHosts](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifyHosts](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -434 +434 @@ The following code example shows how to use `Edit-EC2IdFormat`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -449 +449 @@ The following code example shows how to use `Edit-EC2IdFormat`.
-  * For API details, see [ModifyIdFormat](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifyIdFormat](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -456 +456 @@ The following code example shows how to use `Edit-EC2ImageAttribute`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -489 +489 @@ The following code example shows how to use `Edit-EC2ImageAttribute`.
-  * For API details, see [ModifyImageAttribute](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifyImageAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -496 +496 @@ The following code example shows how to use `Edit-EC2InstanceAttribute`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -541 +541 @@ The following code example shows how to use `Edit-EC2InstanceAttribute`.
-  * For API details, see [ModifyInstanceAttribute](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifyInstanceAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -548 +548 @@ The following code example shows how to use `Edit-EC2InstanceCreditSpecification
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -560 +560 @@ The following code example shows how to use `Edit-EC2InstanceCreditSpecification
-  * For API details, see [ModifyInstanceCreditSpecification](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifyInstanceCreditSpecification](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -567 +567 @@ The following code example shows how to use `Edit-EC2NetworkInterfaceAttribute`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -594 +594 @@ The following code example shows how to use `Edit-EC2NetworkInterfaceAttribute`.
-  * For API details, see [ModifyNetworkInterfaceAttribute](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifyNetworkInterfaceAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -601 +601 @@ The following code example shows how to use `Edit-EC2ReservedInstance`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -617 +617 @@ The following code example shows how to use `Edit-EC2ReservedInstance`.
-  * For API details, see [ModifyReservedInstances](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifyReservedInstances](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -624 +624 @@ The following code example shows how to use `Edit-EC2SnapshotAttribute`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -633 +633 @@ The following code example shows how to use `Edit-EC2SnapshotAttribute`.
-  * For API details, see [ModifySnapshotAttribute](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifySnapshotAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -640 +640 @@ The following code example shows how to use `Edit-EC2SpotFleetRequest`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -654 +654 @@ The following code example shows how to use `Edit-EC2SpotFleetRequest`.
-  * For API details, see [ModifySpotFleetRequest](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifySpotFleetRequest](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -661 +661 @@ The following code example shows how to use `Edit-EC2SubnetAttribute`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -676 +676 @@ The following code example shows how to use `Edit-EC2SubnetAttribute`.
-  * For API details, see [ModifySubnetAttribute](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifySubnetAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -683 +683 @@ The following code example shows how to use `Edit-EC2VolumeAttribute`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -692 +692 @@ The following code example shows how to use `Edit-EC2VolumeAttribute`.
-  * For API details, see [ModifyVolumeAttribute](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifyVolumeAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -699 +699 @@ The following code example shows how to use `Edit-EC2VpcAttribute`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -726 +726 @@ The following code example shows how to use `Edit-EC2VpcAttribute`.
-  * For API details, see [ModifyVpcAttribute](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [ModifyVpcAttribute](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -733 +733 @@ The following code example shows how to use `Enable-EC2VgwRoutePropagation`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -742 +742 @@ The following code example shows how to use `Enable-EC2VgwRoutePropagation`.
-  * For API details, see [EnableVgwRoutePropagation](https://docs.aws.amazon.com/powershell/v4/reference) in _AWS Tools for PowerShell Cmdlet Reference (V4)_. 
+  * For API details, see [EnableVgwRoutePropagation](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
@@ -749 +749 @@ The following code example shows how to use `Enable-EC2VolumeIO`.
-**Tools for PowerShell V4**
+**Tools for PowerShell V5**
@@ -758 +758 @@ The following code example shows how to use `Enable-EC2VolumeIO`.