Skip to content

Commit cefd9f2

Browse files
author
awstools
committed
feat(client-ec2): This release allows you to create and register AMIs while maintaining their underlying EBS snapshots within Local Zones.
1 parent adc36eb commit cefd9f2

26 files changed

+347
-223
lines changed

clients/client-ec2/src/commands/CancelCapacityReservationCommand.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export interface CancelCapacityReservationCommandInput extends CancelCapacityRes
2828
export interface CancelCapacityReservationCommandOutput extends CancelCapacityReservationResult, __MetadataBearer {}
2929

3030
/**
31-
* <p>Cancels the specified Capacity Reservation, releases the reserved capacity, and changes
32-
* the Capacity Reservation's state to <code>cancelled</code>.</p>
31+
* <p>Cancels the specified Capacity Reservation, releases the reserved capacity, and
32+
* changes the Capacity Reservation's state to <code>cancelled</code>.</p>
3333
* <p>You can cancel a Capacity Reservation that is in the following states:</p>
3434
* <ul>
3535
* <li>
@@ -40,18 +40,21 @@ export interface CancelCapacityReservationCommandOutput extends CancelCapacityRe
4040
* <li>
4141
* <p>
4242
* <code>active</code> and there is no commitment duration or the commitment
43-
* duration has elapsed. You can't cancel a future-dated Capacity Reservation during the commitment duration.</p>
43+
* duration has elapsed. You can't cancel a future-dated Capacity Reservation
44+
* during the commitment duration.</p>
4445
* </li>
4546
* </ul>
4647
* <note>
4748
* <p>You can't modify or cancel a Capacity Block. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-blocks.html">Capacity Blocks for ML</a>.</p>
4849
* </note>
49-
* <p>If a future-dated Capacity Reservation enters the <code>delayed</code> state, the commitment
50-
* duration is waived, and you can cancel it as soon as it enters the <code>active</code> state.</p>
51-
* <p>Instances running in the reserved capacity continue running until you stop them. Stopped
52-
* instances that target the Capacity Reservation can no longer launch. Modify these instances to either
53-
* target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation
54-
* that has matching attributes and sufficient capacity.</p>
50+
* <p>If a future-dated Capacity Reservation enters the <code>delayed</code> state, the
51+
* commitment duration is waived, and you can cancel it as soon as it enters the
52+
* <code>active</code> state.</p>
53+
* <p>Instances running in the reserved capacity continue running until you stop them.
54+
* Stopped instances that target the Capacity Reservation can no longer launch. Modify
55+
* these instances to either target a different Capacity Reservation, launch On-Demand
56+
* Instance capacity, or run in any open Capacity Reservation that has matching attributes
57+
* and sufficient capacity.</p>
5558
* @example
5659
* Use a bare-bones client and the command you need to make an API call.
5760
* ```javascript

clients/client-ec2/src/commands/CreateCapacityReservationCommand.ts

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,29 @@ export interface CreateCapacityReservationCommandInput extends CreateCapacityRes
2828
export interface CreateCapacityReservationCommandOutput extends CreateCapacityReservationResult, __MetadataBearer {}
2929

3030
/**
31-
* <p>Creates a new Capacity Reservation with the specified attributes. Capacity Reservations enable
32-
* you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any
33-
* duration.</p>
34-
* <p>You can create a Capacity Reservation at any time, and you can choose when it starts. You can create a
35-
* Capacity Reservation for immediate use or you can request a Capacity Reservation for a future date.</p>
36-
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html">
37-
* Reserve compute capacity with On-Demand Capacity Reservations</a> in the <i>Amazon EC2 User Guide</i>.</p>
31+
* <p>Creates a new Capacity Reservation with the specified attributes. Capacity
32+
* Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific
33+
* Availability Zone for any duration.</p>
34+
* <p>You can create a Capacity Reservation at any time, and you can choose when it starts.
35+
* You can create a Capacity Reservation for immediate use or you can request a Capacity
36+
* Reservation for a future date.</p>
37+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-reservations.html"> Reserve compute
38+
* capacity with On-Demand Capacity Reservations</a> in the
39+
* <i>Amazon EC2 User Guide</i>.</p>
3840
* <p>Your request to create a Capacity Reservation could fail if:</p>
3941
* <ul>
4042
* <li>
41-
* <p>Amazon EC2 does not have sufficient capacity. In this case, try again at a later
42-
* time, try in a different Availability Zone, or request a smaller Capacity Reservation. If
43-
* your workload is flexible across instance types and sizes, try with different instance
44-
* attributes.</p>
43+
* <p>Amazon EC2 does not have sufficient capacity. In this case, try again
44+
* at a later time, try in a different Availability Zone, or request a smaller
45+
* Capacity Reservation. If your workload is flexible across instance types and
46+
* sizes, try with different instance attributes.</p>
4547
* </li>
4648
* <li>
47-
* <p>The requested quantity exceeds your On-Demand Instance quota. In this case, increase your
48-
* On-Demand Instance quota for the requested instance type and try again. For more information,
49-
* see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html">
50-
* Amazon EC2 Service Quotas</a> in the <i>Amazon EC2 User Guide</i>.</p>
49+
* <p>The requested quantity exceeds your On-Demand Instance quota. In this case,
50+
* increase your On-Demand Instance quota for the requested instance type and try
51+
* again. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-resource-limits.html">
52+
* Amazon EC2 Service Quotas</a> in the
53+
* <i>Amazon EC2 User Guide</i>.</p>
5154
* </li>
5255
* </ul>
5356
* @example

clients/client-ec2/src/commands/CreateImageCommand.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ export interface CreateImageCommandOutput extends CreateImageResult, __MetadataB
3434
* to the root device volume, the new AMI contains block device mapping information for those
3535
* volumes. When you launch an instance from this new AMI, the instance automatically launches
3636
* with those additional volumes.</p>
37+
* <p>The location of the source instance determines where you can create the snapshots of the
38+
* AMI:</p>
39+
* <ul>
40+
* <li>
41+
* <p>If the source instance is in a Region, you must create the snapshots in the same
42+
* Region as the instance.</p>
43+
* </li>
44+
* <li>
45+
* <p>If the source instance is in a Local Zone, you can create the snapshots in the same
46+
* Local Zone or in its parent Region.</p>
47+
* </li>
48+
* </ul>
3749
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html">Create an Amazon EBS-backed AMI</a> in
3850
* the <i>Amazon Elastic Compute Cloud User Guide</i>.</p>
3951
* @example
@@ -54,6 +66,7 @@ export interface CreateImageCommandOutput extends CreateImageResult, __MetadataB
5466
* ],
5567
* },
5668
* ],
69+
* SnapshotLocation: "regional" || "local",
5770
* DryRun: true || false,
5871
* InstanceId: "STRING_VALUE", // required
5972
* Name: "STRING_VALUE", // required
@@ -70,8 +83,10 @@ export interface CreateImageCommandOutput extends CreateImageResult, __MetadataB
7083
* KmsKeyId: "STRING_VALUE",
7184
* Throughput: Number("int"),
7285
* OutpostArn: "STRING_VALUE",
86+
* AvailabilityZone: "STRING_VALUE",
7387
* Encrypted: true || false,
7488
* VolumeInitializationRate: Number("int"),
89+
* AvailabilityZoneId: "STRING_VALUE",
7590
* },
7691
* NoDevice: "STRING_VALUE",
7792
* DeviceName: "STRING_VALUE",

clients/client-ec2/src/commands/CreateInstanceConnectEndpointCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export interface CreateInstanceConnectEndpointCommandOutput
3232
/**
3333
* <p>Creates an EC2 Instance Connect Endpoint.</p>
3434
* <p>An EC2 Instance Connect Endpoint allows you to connect to an instance, without
35-
* requiring the instance to have a public IPv4 address. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect-Endpoint.html">Connect to your instances without requiring a public IPv4 address using EC2
36-
* Instance Connect Endpoint</a> in the <i>Amazon EC2 User Guide</i>.</p>
35+
* requiring the instance to have a public IPv4 address. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Connect-using-EC2-Instance-Connect-Endpoint.html">Connect to your instances using EC2 Instance Connect Endpoint</a> in the
36+
* <i>Amazon EC2 User Guide</i>.</p>
3737
* @example
3838
* Use a bare-bones client and the command you need to make an API call.
3939
* ```javascript

clients/client-ec2/src/commands/DescribeCapacityBlockExtensionOfferingsCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export interface DescribeCapacityBlockExtensionOfferingsCommandOutput
3737
__MetadataBearer {}
3838

3939
/**
40-
* <p>Describes Capacity Block extension offerings available for purchase in the Amazon Web Services Region
41-
* that you're currently using.</p>
40+
* <p>Describes Capacity Block extension offerings available for purchase in the Amazon Web Services
41+
* Region that you're currently using.</p>
4242
* @example
4343
* Use a bare-bones client and the command you need to make an API call.
4444
* ```javascript

clients/client-ec2/src/commands/DescribeCapacityBlockOfferingsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface DescribeCapacityBlockOfferingsCommandOutput
3636
* <p>Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you're currently using. With Capacity Blocks, you purchase a
3737
* specific instance type for a period of time.</p>
3838
* <p>To search for an available Capacity Block offering, you specify a reservation duration
39-
* and instance count.</p>
39+
* and instance count.</p>
4040
* @example
4141
* Use a bare-bones client and the command you need to make an API call.
4242
* ```javascript

clients/client-ec2/src/commands/DescribeImageAttributeCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ export interface DescribeImageAttributeCommandOutput extends ImageAttribute, __M
9494
* // KmsKeyId: "STRING_VALUE",
9595
* // Throughput: Number("int"),
9696
* // OutpostArn: "STRING_VALUE",
97+
* // AvailabilityZone: "STRING_VALUE",
9798
* // Encrypted: true || false,
9899
* // VolumeInitializationRate: Number("int"),
100+
* // AvailabilityZoneId: "STRING_VALUE",
99101
* // },
100102
* // NoDevice: "STRING_VALUE",
101103
* // DeviceName: "STRING_VALUE",

clients/client-ec2/src/commands/DescribeImagesCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,10 @@ export interface DescribeImagesCommandOutput extends DescribeImagesResult, __Met
104104
* // KmsKeyId: "STRING_VALUE",
105105
* // Throughput: Number("int"),
106106
* // OutpostArn: "STRING_VALUE",
107+
* // AvailabilityZone: "STRING_VALUE",
107108
* // Encrypted: true || false,
108109
* // VolumeInitializationRate: Number("int"),
110+
* // AvailabilityZoneId: "STRING_VALUE",
109111
* // },
110112
* // NoDevice: "STRING_VALUE",
111113
* // DeviceName: "STRING_VALUE",

clients/client-ec2/src/commands/DescribeSpotFleetRequestsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ export interface DescribeSpotFleetRequestsCommandOutput extends DescribeSpotFlee
8585
* // KmsKeyId: "STRING_VALUE",
8686
* // Throughput: Number("int"),
8787
* // OutpostArn: "STRING_VALUE",
88+
* // AvailabilityZone: "STRING_VALUE",
8889
* // Encrypted: true || false,
8990
* // VolumeInitializationRate: Number("int"),
91+
* // AvailabilityZoneId: "STRING_VALUE",
9092
* // },
9193
* // NoDevice: "STRING_VALUE",
9294
* // DeviceName: "STRING_VALUE",

clients/client-ec2/src/commands/DescribeSpotInstanceRequestsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ export interface DescribeSpotInstanceRequestsCommandOutput
101101
* // KmsKeyId: "STRING_VALUE",
102102
* // Throughput: Number("int"),
103103
* // OutpostArn: "STRING_VALUE",
104+
* // AvailabilityZone: "STRING_VALUE",
104105
* // Encrypted: true || false,
105106
* // VolumeInitializationRate: Number("int"),
107+
* // AvailabilityZoneId: "STRING_VALUE",
106108
* // },
107109
* // NoDevice: "STRING_VALUE",
108110
* // DeviceName: "STRING_VALUE",

0 commit comments

Comments
 (0)