awscli 1.36.34__py3-none-any.whl → 1.36.36__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of awscli might be problematic. Click here for more details.
- awscli/__init__.py +1 -1
- awscli/customizations/s3/subcommands.py +37 -3
- awscli/examples/ec2/associate-transit-gateway-multicast-domain.rst +1 -1
- awscli/examples/ec2/delete-verified-access-endpoint.rst +1 -1
- awscli/examples/ec2/describe-verified-access-endpoints.rst +2 -2
- awscli/examples/ec2/disable-address-transfer.rst +1 -1
- awscli/examples/ec2/disable-aws-network-performance-metric-subscription.rst +1 -1
- awscli/examples/ec2/disable-fast-launch.rst +2 -2
- awscli/examples/ec2/disable-image-block-public-access.rst +1 -1
- awscli/examples/ec2/disable-image-deprecation.rst +1 -1
- awscli/examples/ec2/disassociate-transit-gateway-multicast-domain.rst +1 -1
- awscli/examples/ec2/enable-address-transfer.rst +1 -1
- awscli/examples/ec2/enable-fast-launch.rst +2 -2
- awscli/examples/ec2/enable-image-deprecation.rst +3 -3
- awscli/examples/ec2/export-client-vpn-client-configuration.rst +43 -43
- awscli/examples/ec2/get-aws-network-performance-data.rst +1 -1
- awscli/examples/ec2/get-capacity-reservation-usage.rst +24 -24
- awscli/examples/ec2/get-coip-pool-usage.rst +1 -1
- awscli/examples/ec2/get-groups-for-capacity-reservation.rst +1 -1
- awscli/examples/ec2/get-network-insights-access-scope-analysis-findings.rst +60 -60
- awscli/examples/ec2/get-network-insights-access-scope-content.rst +35 -35
- awscli/examples/ec2/get-transit-gateway-multicast-domain-associations.rst +1 -1
- awscli/examples/ec2/get-transit-gateway-prefix-list-references.rst +28 -28
- awscli/examples/ec2/list-images-in-recycle-bin.rst +1 -1
- awscli/examples/ec2/list-snapshots-in-recycle-bin.rst +1 -1
- awscli/examples/ec2/modify-availability-zone-group.rst +1 -1
- awscli/examples/ec2/modify-capacity-reservation.rst +26 -24
- awscli/examples/ec2/modify-fleet.rst +1 -1
- awscli/examples/ec2/modify-hosts.rst +37 -35
- awscli/examples/ec2/modify-instance-capacity-reservation-attributes.rst +31 -29
- awscli/examples/ec2/modify-instance-maintenance-options.rst +2 -2
- awscli/examples/ec2/modify-instance-metadata-options.rst +5 -5
- awscli/examples/ec2/modify-instance-placement.rst +76 -80
- awscli/examples/ec2/modify-snapshot-tier.rst +3 -5
- awscli/examples/ec2/modify-transit-gateway-prefix-list-reference.rst +27 -27
- awscli/examples/ec2/modify-verified-access-endpoint.rst +2 -2
- awscli/examples/ec2/register-instance-event-notification-attributes.rst +2 -2
- awscli/examples/ec2/register-transit-gateway-multicast-group-members.rst +1 -1
- awscli/examples/ec2/register-transit-gateway-multicast-group-sources.rst +1 -1
- awscli/examples/ec2/restore-image-from-recycle-bin.rst +1 -1
- awscli/examples/ec2/restore-snapshot-from-recycle-bin.rst +1 -1
- awscli/examples/ec2/restore-snapshot-tier.rst +4 -4
- awscli/examples/ec2/search-transit-gateway-multicast-groups.rst +1 -1
- awscli/examples/ec2/start-network-insights-access-scope-analysis.rst +21 -21
- {awscli-1.36.34.dist-info → awscli-1.36.36.dist-info}/METADATA +2 -2
- {awscli-1.36.34.dist-info → awscli-1.36.36.dist-info}/RECORD +54 -83
- awscli/examples/iot1click-devices/claim-devices-by-claim-code.rst +0 -15
- awscli/examples/iot1click-devices/describe-device.rst +0 -27
- awscli/examples/iot1click-devices/finalize-device-claim.rst +0 -14
- awscli/examples/iot1click-devices/get-device-methods.rst +0 -30
- awscli/examples/iot1click-devices/initiate-device-claim.rst +0 -14
- awscli/examples/iot1click-devices/invoke-device-method.rst +0 -24
- awscli/examples/iot1click-devices/list-device-events.rst +0 -32
- awscli/examples/iot1click-devices/list-devices.rst +0 -26
- awscli/examples/iot1click-devices/list-tags-for-resource.rst +0 -17
- awscli/examples/iot1click-devices/tag-resource.rst +0 -20
- awscli/examples/iot1click-devices/unclaim-device.rst +0 -14
- awscli/examples/iot1click-devices/untag-resource.rst +0 -12
- awscli/examples/iot1click-devices/update-device-state.rst +0 -11
- awscli/examples/iot1click-projects/associate-device-with-placement.rst +0 -13
- awscli/examples/iot1click-projects/create-placement.rst +0 -12
- awscli/examples/iot1click-projects/create-project.rst +0 -27
- awscli/examples/iot1click-projects/delete-placement.rst +0 -11
- awscli/examples/iot1click-projects/delete-project.rst +0 -10
- awscli/examples/iot1click-projects/describe-placement.rst +0 -24
- awscli/examples/iot1click-projects/describe-project.rst +0 -32
- awscli/examples/iot1click-projects/disassociate-device-from-placement.rst +0 -12
- awscli/examples/iot1click-projects/get-devices-in-placement.rst +0 -17
- awscli/examples/iot1click-projects/list-placements.rst +0 -21
- awscli/examples/iot1click-projects/list-projects.rst +0 -21
- awscli/examples/iot1click-projects/list-tags-for-resource.rst +0 -17
- awscli/examples/iot1click-projects/tag-resource.rst +0 -20
- awscli/examples/iot1click-projects/untag-resource.rst +0 -11
- awscli/examples/iot1click-projects/update-placement.rst +0 -21
- awscli/examples/iot1click-projects/update-project.rst +0 -11
- {awscli-1.36.34.data → awscli-1.36.36.data}/scripts/aws +0 -0
- {awscli-1.36.34.data → awscli-1.36.36.data}/scripts/aws.cmd +0 -0
- {awscli-1.36.34.data → awscli-1.36.36.data}/scripts/aws_bash_completer +0 -0
- {awscli-1.36.34.data → awscli-1.36.36.data}/scripts/aws_completer +0 -0
- {awscli-1.36.34.data → awscli-1.36.36.data}/scripts/aws_zsh_completer.sh +0 -0
- {awscli-1.36.34.dist-info → awscli-1.36.36.dist-info}/LICENSE.txt +0 -0
- {awscli-1.36.34.dist-info → awscli-1.36.36.dist-info}/WHEEL +0 -0
- {awscli-1.36.34.dist-info → awscli-1.36.36.dist-info}/top_level.txt +0 -0
|
@@ -19,4 +19,4 @@ Output::
|
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
For more information about Recycle Bin
|
|
22
|
+
For more information about Recycle Bin, see `Recover deleted snapshots from the Recycle Bin <https://docs.aws.amazon.com/ebs/latest/userguide/recycle-bin-working-with-snaps.html>`__ in the *Amazon EBS User Guide*.
|
|
@@ -12,4 +12,4 @@ Output::
|
|
|
12
12
|
"Return": true
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
For more information, see `Regions and Zones <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html>`__ in the *Amazon
|
|
15
|
+
For more information, see `Regions and Zones <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
**Example 1: To change the number of instances reserved by an existing capacity reservation**
|
|
2
|
-
|
|
3
|
-
The following ``modify-capacity-reservation`` example changes the number of instances for which the capacity reservation reserves capacity. ::
|
|
4
|
-
|
|
5
|
-
aws ec2 modify-capacity-reservation \
|
|
6
|
-
--capacity-reservation-id cr-1234abcd56EXAMPLE \
|
|
7
|
-
--instance-count 5
|
|
8
|
-
|
|
9
|
-
Output::
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"Return": true
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
--
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
**Example 1: To change the number of instances reserved by an existing capacity reservation**
|
|
2
|
+
|
|
3
|
+
The following ``modify-capacity-reservation`` example changes the number of instances for which the capacity reservation reserves capacity. ::
|
|
4
|
+
|
|
5
|
+
aws ec2 modify-capacity-reservation \
|
|
6
|
+
--capacity-reservation-id cr-1234abcd56EXAMPLE \
|
|
7
|
+
--instance-count 5
|
|
8
|
+
|
|
9
|
+
Output::
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"Return": true
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
For more information, see `Modify a Capacity Reservation <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-modify.html>`__ in the *Amazon EC2 User Guide*.
|
|
16
|
+
|
|
17
|
+
**Example 2: To change the end date and time for an existing capacity reservation**
|
|
18
|
+
|
|
19
|
+
The following ``modify-capacity-reservation`` example modifies an existing capacity reservation to end at the specified date and time. ::
|
|
20
|
+
|
|
21
|
+
aws ec2 modify-capacity-reservation \
|
|
22
|
+
--capacity-reservation-id cr-1234abcd56EXAMPLE \
|
|
23
|
+
--end-date-type limited \
|
|
24
|
+
--end-date 2019-08-31T23:59:59Z
|
|
25
|
+
|
|
26
|
+
For more information, see `Modify a Capacity Reservation <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-modify.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -12,4 +12,4 @@ Output::
|
|
|
12
12
|
"Return": true
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
For more information, see `
|
|
15
|
+
For more information, see `Manage an EC2 Fleet <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/manage-ec2-fleet.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -1,35 +1,37 @@
|
|
|
1
|
-
**Example 1: To enable auto-placement for a Dedicated Host**
|
|
2
|
-
|
|
3
|
-
The following ``modify-hosts`` example enables auto-placement for a Dedicated Host so that it accepts any untargeted instance launches that match its instance type configuration. ::
|
|
4
|
-
|
|
5
|
-
aws ec2 modify-hosts \
|
|
6
|
-
--host-id h-06c2f189b4EXAMPLE \
|
|
7
|
-
--auto-placement on
|
|
8
|
-
|
|
9
|
-
Output::
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"Successful": [
|
|
13
|
-
"h-06c2f189b4EXAMPLE"
|
|
14
|
-
],
|
|
15
|
-
"Unsuccessful": []
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
**Example 1: To enable auto-placement for a Dedicated Host**
|
|
2
|
+
|
|
3
|
+
The following ``modify-hosts`` example enables auto-placement for a Dedicated Host so that it accepts any untargeted instance launches that match its instance type configuration. ::
|
|
4
|
+
|
|
5
|
+
aws ec2 modify-hosts \
|
|
6
|
+
--host-id h-06c2f189b4EXAMPLE \
|
|
7
|
+
--auto-placement on
|
|
8
|
+
|
|
9
|
+
Output::
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"Successful": [
|
|
13
|
+
"h-06c2f189b4EXAMPLE"
|
|
14
|
+
],
|
|
15
|
+
"Unsuccessful": []
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
For more information, see `Modify the auto-placement setting for a Dedicated Host <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/modify-host-auto-placement.html>`__ in the *Amazon EC2 User Guide*.
|
|
19
|
+
|
|
20
|
+
**Example 2: To enable host recovery for a Dedicated Host**
|
|
21
|
+
|
|
22
|
+
The following ``modify-hosts`` example enables host recovery for the specified Dedicated Host. ::
|
|
23
|
+
|
|
24
|
+
aws ec2 modify-hosts \
|
|
25
|
+
--host-id h-06c2f189b4EXAMPLE \
|
|
26
|
+
--host-recovery on
|
|
27
|
+
|
|
28
|
+
Output::
|
|
29
|
+
|
|
30
|
+
{
|
|
31
|
+
"Successful": [
|
|
32
|
+
"h-06c2f189b4EXAMPLE"
|
|
33
|
+
],
|
|
34
|
+
"Unsuccessful": []
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
For more information, see `Modify the auto-placement setting for a Dedicated Host <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/modify-host-auto-placement.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
**Example 1: To modify an instance's capacity reservation targeting settings**
|
|
2
|
-
|
|
3
|
-
The following ``modify-instance-capacity-reservation-attributes`` example modifies a stopped instance to target a specific capacity reservation. ::
|
|
4
|
-
|
|
5
|
-
aws ec2 modify-instance-capacity-reservation-attributes \
|
|
6
|
-
--instance-id i-EXAMPLE8765abcd4e \
|
|
7
|
-
--capacity-reservation-specification 'CapacityReservationTarget={CapacityReservationId= cr-1234abcd56EXAMPLE }'
|
|
8
|
-
|
|
9
|
-
Output::
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"Return": true
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
**Example 1: To modify an instance's capacity reservation targeting settings**
|
|
2
|
+
|
|
3
|
+
The following ``modify-instance-capacity-reservation-attributes`` example modifies a stopped instance to target a specific capacity reservation. ::
|
|
4
|
+
|
|
5
|
+
aws ec2 modify-instance-capacity-reservation-attributes \
|
|
6
|
+
--instance-id i-EXAMPLE8765abcd4e \
|
|
7
|
+
--capacity-reservation-specification 'CapacityReservationTarget={CapacityReservationId= cr-1234abcd56EXAMPLE }'
|
|
8
|
+
|
|
9
|
+
Output::
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"Return": true
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
For more information, see `Modify the Capacity Reservation settings of your instance <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-modify-instance.html>`__ in the *Amazon EC2 User Guide*.
|
|
16
|
+
|
|
17
|
+
**Example 2: To modify an instance's capacity reservation targeting settings**
|
|
18
|
+
|
|
19
|
+
The following ``modify-instance-capacity-reservation-attributes`` example modifies a stopped instance that targets the specified capacity reservation to launch in any capacity reservation that has matching attributes (instance type, platform, Availability Zone) and that has open instance matching criteria. ::
|
|
20
|
+
|
|
21
|
+
aws ec2 modify-instance-capacity-reservation-attributes \
|
|
22
|
+
--instance-id i-EXAMPLE8765abcd4e \
|
|
23
|
+
--capacity-reservation-specification 'CapacityReservationPreference=open'
|
|
24
|
+
|
|
25
|
+
Output::
|
|
26
|
+
|
|
27
|
+
{
|
|
28
|
+
"Return": true
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
For more information, see `Modify the Capacity Reservation settings of your instance <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-reservations-modify-instance.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -13,7 +13,7 @@ Output::
|
|
|
13
13
|
"AutoRecovery": "disabled"
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
For more information, see `
|
|
16
|
+
For more information, see `Configure simplified automatic recovery <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-configuration-recovery.html>`__ in the *Amazon EC2 User Guide*.
|
|
17
17
|
|
|
18
18
|
**Example 2: To set the recovery behavior of an instance to default**
|
|
19
19
|
|
|
@@ -30,4 +30,4 @@ Output::
|
|
|
30
30
|
"AutoRecovery": "default"
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
For more information, see `
|
|
33
|
+
For more information, see `Configure simplified automatic recovery <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-configuration-recovery.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -19,8 +19,8 @@ Output::
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
For more information, see `Instance metadata
|
|
23
|
-
|
|
22
|
+
For more information, see `Instance metadata <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html>`__ in the *Amazon EC2 User Guide*.
|
|
23
|
+
|
|
24
24
|
**Example 2: To disable instance metadata**
|
|
25
25
|
|
|
26
26
|
The following ``modify-instance-metadata-options`` example disables the use of all versions of instance metadata on the specified instance. ::
|
|
@@ -41,11 +41,11 @@ Output::
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
For more information, see `Instance metadata
|
|
44
|
+
For more information, see `Instance metadata <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html>`__ in the *Amazon EC2 User Guide*.
|
|
45
45
|
|
|
46
46
|
**Example 3: To enable instance metadata IPv6 endpoint for your instance**
|
|
47
47
|
|
|
48
|
-
The following ``modify-instance-metadata-options`` example shows you how to turn on the IPv6 endpoint for the instance metadata service. ::
|
|
48
|
+
The following ``modify-instance-metadata-options`` example shows you how to turn on the IPv6 endpoint for the instance metadata service. By default, the IPv6 endpoint is disabled. This is true even if you have launched an instance into an IPv6-only subnet. The IPv6 endpoint for IMDS is only accessible on instances built on the Nitro System. ::
|
|
49
49
|
|
|
50
50
|
aws ec2 modify-instance-metadata-options \
|
|
51
51
|
--instance-id i-1234567898abcdef0 \
|
|
@@ -65,4 +65,4 @@ Output::
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
For more information, see `Instance metadata <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -1,80 +1,76 @@
|
|
|
1
|
-
**Example 1: To remove an instance's affinity with a Dedicated Host**
|
|
2
|
-
|
|
3
|
-
The following ``modify-instance-placement`` example removes an instance's affinity with a Dedicated Host and enables it to launch on any available Dedicated Host in your account that supports its instance type. ::
|
|
4
|
-
|
|
5
|
-
aws ec2 modify-instance-placement \
|
|
6
|
-
--instance-id i-0e6ddf6187EXAMPLE \
|
|
7
|
-
--affinity default
|
|
8
|
-
|
|
9
|
-
Output::
|
|
10
|
-
|
|
11
|
-
{
|
|
12
|
-
"Return": true
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
**Example 2: To establish affinity between an instance and the specified Dedicated Host**
|
|
16
|
-
|
|
17
|
-
The following ``modify-instance-placement`` example establishes a launch relationship between an instance and a Dedicated Host. The instance is only able to run on the specified Dedicated Host. ::
|
|
18
|
-
|
|
19
|
-
aws ec2 modify-instance-placement \
|
|
20
|
-
--instance-id i-0e6ddf6187EXAMPLE \
|
|
21
|
-
--affinity host \
|
|
22
|
-
--host-id i-0e6ddf6187EXAMPLE
|
|
23
|
-
|
|
24
|
-
Output::
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
"Return": true
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"Return": true
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
For more information, see `Modifying Instance Tenancy and Affinity <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-dedicated-hosts-work.html#moving-instances-dedicated-hosts>`__ in the *Amazon Elastic Compute Cloud User Guide for Linux Instances*.
|
|
1
|
+
**Example 1: To remove an instance's affinity with a Dedicated Host**
|
|
2
|
+
|
|
3
|
+
The following ``modify-instance-placement`` example removes an instance's affinity with a Dedicated Host and enables it to launch on any available Dedicated Host in your account that supports its instance type. ::
|
|
4
|
+
|
|
5
|
+
aws ec2 modify-instance-placement \
|
|
6
|
+
--instance-id i-0e6ddf6187EXAMPLE \
|
|
7
|
+
--affinity default
|
|
8
|
+
|
|
9
|
+
Output::
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"Return": true
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
**Example 2: To establish affinity between an instance and the specified Dedicated Host**
|
|
16
|
+
|
|
17
|
+
The following ``modify-instance-placement`` example establishes a launch relationship between an instance and a Dedicated Host. The instance is only able to run on the specified Dedicated Host. ::
|
|
18
|
+
|
|
19
|
+
aws ec2 modify-instance-placement \
|
|
20
|
+
--instance-id i-0e6ddf6187EXAMPLE \
|
|
21
|
+
--affinity host \
|
|
22
|
+
--host-id i-0e6ddf6187EXAMPLE
|
|
23
|
+
|
|
24
|
+
Output::
|
|
25
|
+
|
|
26
|
+
{
|
|
27
|
+
"Return": true
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
**Example 3: To move an instance to a placement group**
|
|
31
|
+
|
|
32
|
+
The following ``modify-instance-placement`` example moves an instance to a placement group, stop the instance, modify the instance placement, and then restart the instance. ::
|
|
33
|
+
|
|
34
|
+
aws ec2 stop-instances \
|
|
35
|
+
--instance-ids i-0123a456700123456
|
|
36
|
+
|
|
37
|
+
aws ec2 modify-instance-placement \
|
|
38
|
+
--instance-id i-0123a456700123456 \
|
|
39
|
+
--group-name MySpreadGroup
|
|
40
|
+
|
|
41
|
+
aws ec2 start-instances \
|
|
42
|
+
--instance-ids i-0123a456700123456
|
|
43
|
+
|
|
44
|
+
**Example 4: To remove an instance from a placement group**
|
|
45
|
+
|
|
46
|
+
The following ``modify-instance-placement`` example removes an instance from a placement group by stopping the instance, modifying the instance placement, and then restarting the instance. The following example specifies an empty string ("") for the placement group name to indicate that the instance is not to be located in a placement group.
|
|
47
|
+
|
|
48
|
+
Stop the instance::
|
|
49
|
+
|
|
50
|
+
aws ec2 stop-instances \
|
|
51
|
+
--instance-ids i-0123a456700123456
|
|
52
|
+
|
|
53
|
+
Modify the placement (Windows Command Prompt)::
|
|
54
|
+
|
|
55
|
+
aws ec2 modify-instance-placement \
|
|
56
|
+
--instance-id i-0123a456700123456 \
|
|
57
|
+
--group-name ""
|
|
58
|
+
|
|
59
|
+
Modify the placement (Windows PowerShell, Linux, and macOS)::
|
|
60
|
+
|
|
61
|
+
aws ec2 modify-instance-placement `
|
|
62
|
+
--instance-id i-0123a456700123456 `
|
|
63
|
+
--group-name ''
|
|
64
|
+
|
|
65
|
+
Restart the instance::
|
|
66
|
+
|
|
67
|
+
aws ec2 start-instances \
|
|
68
|
+
--instance-ids i-0123a456700123456
|
|
69
|
+
|
|
70
|
+
Output::
|
|
71
|
+
|
|
72
|
+
{
|
|
73
|
+
"Return": true
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
For more information, see `Modify Dedicated Host tenancy and affinity <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/moving-instances-dedicated-hosts.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
**
|
|
1
|
+
**To archive a snapshot**
|
|
2
2
|
|
|
3
|
-
The following ``modify-snapshot-tier`` example archives the specified snapshot. ::
|
|
3
|
+
The following ``modify-snapshot-tier`` example archives the specified snapshot. The ``TieringStartTime`` response parameter indicates the date and time at which the archive process was started, in UTC time format (YYYY-MM-DDTHH:MM:SSZ). ::
|
|
4
4
|
|
|
5
5
|
aws ec2 modify-snapshot-tier \
|
|
6
6
|
--snapshot-id snap-01234567890abcedf \
|
|
@@ -13,6 +13,4 @@ Output::
|
|
|
13
13
|
"TieringStartTime": "2021-09-15T16:44:37.574Z"
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
For more information about snapshot archiving, see `Archive Amazon EBS snapshots <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-archive.html>`__ in the *Amazon EC2 User Guide*.
|
|
16
|
+
For more information about snapshot archiving, see `Archive Amazon EBS snapshots <https://docs.aws.amazon.com/ebs/latest/userguide/snapshot-archive.html>`__ in the *Amazon EBS User Guide*.
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
**To modify a reference to a prefix list**
|
|
2
|
-
|
|
3
|
-
The following ``modify-transit-gateway-prefix-list-reference`` example modifies the prefix list reference in the specified route table by changing the attachment to which traffic is routed. ::
|
|
4
|
-
|
|
5
|
-
aws ec2 modify-transit-gateway-prefix-list-reference \
|
|
6
|
-
--transit-gateway-route-table-id tgw-rtb-0123456789abcd123 \
|
|
7
|
-
--prefix-list-id pl-11111122222222333 \
|
|
8
|
-
--transit-gateway-attachment-id tgw-attach-aabbccddaabbccaab
|
|
9
|
-
|
|
10
|
-
Output::
|
|
11
|
-
|
|
12
|
-
{
|
|
13
|
-
"TransitGatewayPrefixListReference": {
|
|
14
|
-
"TransitGatewayRouteTableId": "tgw-rtb-0123456789abcd123",
|
|
15
|
-
"PrefixListId": "pl-11111122222222333",
|
|
16
|
-
"PrefixListOwnerId": "123456789012",
|
|
17
|
-
"State": "modifying",
|
|
18
|
-
"Blackhole": false,
|
|
19
|
-
"TransitGatewayAttachment": {
|
|
20
|
-
"TransitGatewayAttachmentId": "tgw-attach-aabbccddaabbccaab",
|
|
21
|
-
"ResourceType": "vpc",
|
|
22
|
-
"ResourceId": "vpc-112233445566aabbc"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
For more information, see `Prefix list references <https://docs.aws.amazon.com/vpc/latest/tgw/
|
|
1
|
+
**To modify a reference to a prefix list**
|
|
2
|
+
|
|
3
|
+
The following ``modify-transit-gateway-prefix-list-reference`` example modifies the prefix list reference in the specified route table by changing the attachment to which traffic is routed. ::
|
|
4
|
+
|
|
5
|
+
aws ec2 modify-transit-gateway-prefix-list-reference \
|
|
6
|
+
--transit-gateway-route-table-id tgw-rtb-0123456789abcd123 \
|
|
7
|
+
--prefix-list-id pl-11111122222222333 \
|
|
8
|
+
--transit-gateway-attachment-id tgw-attach-aabbccddaabbccaab
|
|
9
|
+
|
|
10
|
+
Output::
|
|
11
|
+
|
|
12
|
+
{
|
|
13
|
+
"TransitGatewayPrefixListReference": {
|
|
14
|
+
"TransitGatewayRouteTableId": "tgw-rtb-0123456789abcd123",
|
|
15
|
+
"PrefixListId": "pl-11111122222222333",
|
|
16
|
+
"PrefixListOwnerId": "123456789012",
|
|
17
|
+
"State": "modifying",
|
|
18
|
+
"Blackhole": false,
|
|
19
|
+
"TransitGatewayAttachment": {
|
|
20
|
+
"TransitGatewayAttachmentId": "tgw-attach-aabbccddaabbccaab",
|
|
21
|
+
"ResourceType": "vpc",
|
|
22
|
+
"ResourceId": "vpc-112233445566aabbc"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
For more information, see `Prefix list references <https://docs.aws.amazon.com/vpc/latest/tgw/create-prefix-list-reference.html>`__ in the *Transit Gateways Guide*.
|
|
@@ -4,7 +4,7 @@ The following ``modify-verified-access-endpoint`` example adds the specified des
|
|
|
4
4
|
|
|
5
5
|
aws ec2 modify-verified-access-endpoint \
|
|
6
6
|
--verified-access-endpoint-id vae-066fac616d4d546f2 \
|
|
7
|
-
--description
|
|
7
|
+
--description 'Testing Verified Access'
|
|
8
8
|
|
|
9
9
|
Output::
|
|
10
10
|
|
|
@@ -35,4 +35,4 @@ Output::
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
For more information, see `Verified Access endpoints <https://docs.aws.amazon.com/verified-access/latest/ug/
|
|
38
|
+
For more information, see `Verified Access endpoints <https://docs.aws.amazon.com/verified-access/latest/ug/verified-access-endpoints.html>`__ in the *AWS Verified Access User Guide*.
|
|
@@ -14,7 +14,7 @@ Output::
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
For more information, see `Scheduled events for your instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html>`__ in the *Amazon
|
|
17
|
+
For more information, see `Scheduled events for your instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html>`__ in the *Amazon EC2 User Guide*.
|
|
18
18
|
|
|
19
19
|
**Example 2: To include specific tags in event notifications**
|
|
20
20
|
|
|
@@ -35,4 +35,4 @@ Output::
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
For more information, see `Scheduled events for your instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html>`__ in the *Amazon
|
|
38
|
+
For more information, see `Scheduled events for your instances <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring-instances-status-check_sched.html>`__ in the *Amazon EC2 User Guide*.
|
|
@@ -19,4 +19,4 @@ Output::
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
For more information, see `
|
|
22
|
+
For more information, see `Multicast domains <https://docs.aws.amazon.com/vpc/latest/tgw/multicast-domains-about.html>`__ in the *Transit Gateways User Guide*.
|
|
@@ -19,4 +19,4 @@ Output::
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
For more information, see `
|
|
22
|
+
For more information, see `Multicast domains <https://docs.aws.amazon.com/vpc/latest/tgw/multicast-domains-about.html>`__ in the *Transit Gateways Guide*.
|
|
@@ -11,4 +11,4 @@ Output::
|
|
|
11
11
|
"Return": true
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
For more information, see `Recover AMIs from the Recycle Bin <https://docs.aws.amazon.com/
|
|
14
|
+
For more information, see `Recover deleted AMIs from the Recycle Bin <https://docs.aws.amazon.com/ebs/latest/userguide/recycle-bin-working-with-amis.html>`__ in the *Amazon EBS User Guide*.
|
|
@@ -7,4 +7,4 @@ The following ``restore-snapshot-from-recycle-bin`` example restores a snapshot
|
|
|
7
7
|
|
|
8
8
|
This command produces no output.
|
|
9
9
|
|
|
10
|
-
For more information about Recycle Bin
|
|
10
|
+
For more information about Recycle Bin, see `Recover deleted snapshots from the Recycle Bin <https://docs.aws.amazon.com/ebs/latest/userguide/recycle-bin-working-with-snaps.html>`__ in the *Amazon EBS User Guide*.
|
|
@@ -13,7 +13,7 @@ Output::
|
|
|
13
13
|
"IsPermanentRestore": true
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
For more information about snapshot archiving, see `Archive Amazon EBS snapshots <https://docs.aws.amazon.com/
|
|
16
|
+
For more information about snapshot archiving, see `Archive Amazon EBS snapshots <https://docs.aws.amazon.com/ebs/latest/userguide/snapshot-archive.html>`__ in the *Amazon EBS User Guide*.
|
|
17
17
|
|
|
18
18
|
**Example 2: To temporarily restore an archived snapshot**
|
|
19
19
|
|
|
@@ -31,7 +31,7 @@ Output::
|
|
|
31
31
|
"IsPermanentRestore": false
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
For more information about snapshot archiving, see `Archive Amazon EBS snapshots <https://docs.aws.amazon.com/
|
|
34
|
+
For more information about snapshot archiving, see `Archive Amazon EBS snapshots <https://docs.aws.amazon.com/ebs/latest/userguide/snapshot-archive.html>`__ in the *Amazon EBS User Guide*.
|
|
35
35
|
|
|
36
36
|
**Example 3: To modify the restore period**
|
|
37
37
|
|
|
@@ -49,7 +49,7 @@ Output::
|
|
|
49
49
|
"IsPermanentRestore": false
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
For more information about snapshot archiving, see `Archive Amazon EBS snapshots <https://docs.aws.amazon.com/
|
|
52
|
+
For more information about snapshot archiving, see `Archive Amazon EBS snapshots <https://docs.aws.amazon.com/ebs/latest/userguide/snapshot-archive.html>`__ in the *Amazon EBS User Guide*.
|
|
53
53
|
|
|
54
54
|
**Example 4: To modify the restore type**
|
|
55
55
|
|
|
@@ -66,4 +66,4 @@ Output::
|
|
|
66
66
|
"IsPermanentRestore": true
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
For more information about snapshot archiving, see `Archive Amazon EBS snapshots <https://docs.aws.amazon.com/
|
|
69
|
+
For more information about snapshot archiving, see `Archive Amazon EBS snapshots <https://docs.aws.amazon.com/ebs/latest/userguide/snapshot-archive.html>`__ in the *Amazon EBS User Guide*.
|
|
@@ -23,4 +23,4 @@ Output::
|
|
|
23
23
|
]
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
For more information, see `
|
|
26
|
+
For more information, see `Multicast on transit gateways <https://docs.aws.amazon.com/vpc/latest/tgw/tgw-multicast-overview.html>`__ in the *Transit Gateways Guide*.
|