Skip to content

Commit fe0f676

Browse files
author
awstools
committed
feat(client-ec2): Documentation updates for Elastic Compute Cloud (EC2).
1 parent 6b013c1 commit fe0f676

File tree

10 files changed

+267
-96
lines changed

10 files changed

+267
-96
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ export interface AssociateNatGatewayAddressCommandOutput extends AssociateNatGat
4040
* <p>Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway. For more information,
4141
* see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html#nat-gateway-working-with">Work with NAT gateways</a> in the <i>Amazon VPC User Guide</i>.</p>
4242
* <p>By default, you can associate up to 2 Elastic IP addresses per public NAT gateway. You can increase the limit by requesting a quota adjustment. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/amazon-vpc-limits.html#vpc-limits-eips">Elastic IP address quotas</a> in the <i>Amazon VPC User Guide</i>.</p>
43+
* <important>
44+
* <p>When you associate an EIP or secondary EIPs with a public NAT gateway, the network border group of the EIPs must match the network border group of the Availability Zone (AZ) that the public NAT gateway is in. If it's not the same, the EIP will fail to associate. You can see the network border group for the subnet's AZ by viewing the details of the subnet. Similarly, you can view the network border group of an EIP by viewing the details of the EIP address. For more information about network border groups and EIPs, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#allocate-eip">Allocate an Elastic IP address</a> in the <i>Amazon VPC User Guide</i>.
45+
* </p>
46+
* </important>
4347
* @example
4448
* Use a bare-bones client and the command you need to make an API call.
4549
* ```javascript

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ export interface CreateNatGatewayCommandOutput extends CreateNatGatewayResult, _
4747
* running large workloads behind a small pool of allowlisted IPv4 addresses, preserving
4848
* private IPv4 addresses, and communicating between overlapping networks.</p>
4949
* <p>For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html">NAT gateways</a> in the <i>Amazon VPC User Guide</i>.</p>
50+
* <important>
51+
* <p>When you create a public NAT gateway and assign it an EIP or secondary EIPs, the network border group of the EIPs must match the network border group of the Availability Zone (AZ) that the public NAT gateway is in. If it's not the same, the NAT gateway will fail to launch. You can see the network border group for the subnet's AZ by viewing the details of the subnet. Similarly, you can view the network border group of an EIP by viewing the details of the EIP address. For more information about network border groups and EIPs, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-eips.html#allocate-eip">Allocate an Elastic IP address</a> in the <i>Amazon VPC User Guide</i>.
52+
* </p>
53+
* </important>
5054
* @example
5155
* Use a bare-bones client and the command you need to make an API call.
5256
* ```javascript

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface DeleteVpcCommandOutput extends __MetadataBearer {}
3737

3838
/**
3939
* @public
40-
* <p>Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.</p>
40+
* <p>Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on. When you delete the VPC, it deletes the VPC's default security group, network ACL, and route table.</p>
4141
* @example
4242
* Use a bare-bones client and the command you need to make an API call.
4343
* ```javascript

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ export interface DescribeNetworkInterfacesCommandOutput extends DescribeNetworkI
3838
/**
3939
* @public
4040
* <p>Describes one or more of your network interfaces.</p>
41+
* <p>If you have a large number of network interfaces, the operation fails unless
42+
* you use pagination or one of the following filters: <code>group-id</code>,
43+
* <code>mac-address</code>, <code>private-dns-name</code>, <code>private-ip-address</code>,
44+
* <code>private-dns-name</code>, <code>subnet-id</code>, or <code>vpc-id</code>.</p>
4145
* @example
4246
* Use a bare-bones client and the command you need to make an API call.
4347
* ```javascript

clients/client-ec2/src/models/models_0.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3051,8 +3051,6 @@ export interface AllocateAddressRequest {
30513051
* advertises IP addresses. Use this parameter to limit the IP address to this location. IP
30523052
* addresses cannot move between network border groups.</p>
30533053
* <p>Use <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeAvailabilityZones.html">DescribeAvailabilityZones</a> to view the network border groups.</p>
3054-
* <p>You cannot use a network border group with EC2 Classic. If you attempt this operation on EC2 Classic,
3055-
* you receive an <code>InvalidParameterCombination</code> error.</p>
30563054
*/
30573055
NetworkBorderGroup?: string;
30583056

@@ -7055,7 +7053,8 @@ export interface CancelConversionRequest {
70557053
export interface CancelExportTaskRequest {
70567054
/**
70577055
* @public
7058-
* <p>The ID of the export task. This is the ID returned by <code>CreateInstanceExportTask</code>.</p>
7056+
* <p>The ID of the export task. This is the ID returned by the
7057+
* <code>CreateInstanceExportTask</code> and <code>ExportImage</code> operations.</p>
70597058
*/
70607059
ExportTaskId: string | undefined;
70617060
}

clients/client-ec2/src/models/models_1.ts

Lines changed: 48 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,6 +2340,14 @@ export interface OnDemandOptionsRequest {
23402340
/**
23412341
* @public
23422342
* <p>The maximum amount per hour for On-Demand Instances that you're willing to pay.</p>
2343+
* <note>
2344+
* <p>If your fleet includes T instances that are configured as <code>unlimited</code>,
2345+
* and if their average CPU usage exceeds the baseline utilization, you will incur a charge
2346+
* for surplus credits. The <code>MaxTotalPrice</code> does not account for surplus
2347+
* credits, and, if you use surplus credits, your final cost might be higher than what you
2348+
* specified for <code>MaxTotalPrice</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits">Surplus credits can incur charges</a> in the <i>EC2 User
2349+
* Guide</i>.</p>
2350+
* </note>
23432351
*/
23442352
MaxTotalPrice?: string;
23452353
}
@@ -2560,6 +2568,14 @@ export interface SpotOptionsRequest {
25602568
* <important>
25612569
* <p>If you specify a maximum price, your Spot Instances will be interrupted more frequently than if you do not specify this parameter.</p>
25622570
* </important>
2571+
* <note>
2572+
* <p>If your fleet includes T instances that are configured as <code>unlimited</code>,
2573+
* and if their average CPU usage exceeds the baseline utilization, you will incur a charge
2574+
* for surplus credits. The <code>MaxTotalPrice</code> does not account for surplus
2575+
* credits, and, if you use surplus credits, your final cost might be higher than what you
2576+
* specified for <code>MaxTotalPrice</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits">Surplus credits can incur charges</a> in the <i>EC2 User
2577+
* Guide</i>.</p>
2578+
* </note>
25632579
*/
25642580
MaxTotalPrice?: string;
25652581
}
@@ -2772,7 +2788,7 @@ export interface CreateFleetRequest {
27722788
/**
27732789
* @public
27742790
* <p>The key-value pair for tagging the EC2 Fleet request on creation. For more information, see
2775-
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources">Tagging your resources</a>.</p>
2791+
* <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources">Tag your resources</a>.</p>
27762792
* <p>If the fleet type is <code>instant</code>, specify a resource type of <code>fleet</code>
27772793
* to tag the fleet or <code>instance</code> to tag the instances at launch.</p>
27782794
* <p>If the fleet type is <code>maintain</code> or <code>request</code>, specify a resource
@@ -6820,11 +6836,12 @@ export interface LaunchTemplateTagSpecificationRequest {
68206836
/**
68216837
* @public
68226838
* <p>The type of resource to tag.</p>
6823-
* <p>The <code>Valid Values</code> are all the resource types that can be tagged. However,
6824-
* when creating a launch template, you can specify tags for the following resource types
6839+
* <p>Valid Values lists all resource types for Amazon EC2 that can be tagged. When
6840+
* you create a launch template, you can specify tags for the following resource types
68256841
* only: <code>instance</code> | <code>volume</code> | <code>elastic-gpu</code> |
6826-
* <code>network-interface</code> | <code>spot-instances-request</code>
6827-
* </p>
6842+
* <code>network-interface</code> | <code>spot-instances-request</code>.
6843+
* If the instance does include the resource type that you specify, the instance
6844+
* launch fails. For example, not all instance types include an Elastic GPU.</p>
68286845
* <p>To tag a resource after it has been created, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html">CreateTags</a>.</p>
68296846
*/
68306847
ResourceType?: ResourceType | string;
@@ -7033,7 +7050,19 @@ export interface RequestLaunchTemplateData {
70337050

70347051
/**
70357052
* @public
7036-
* <p> The elastic inference accelerator for the instance. </p>
7053+
* <p>An elastic inference accelerator to associate with the instance. Elastic inference
7054+
* accelerators are a resource you can attach to your Amazon EC2 instances to accelerate
7055+
* your Deep Learning (DL) inference workloads.</p>
7056+
* <p>You cannot specify accelerators from different generations in the same request.</p>
7057+
* <note>
7058+
* <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon
7059+
* Elastic Inference (EI), and will help current customers migrate their workloads to
7060+
* options that offer better price and performance. After April 15, 2023, new customers
7061+
* will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker,
7062+
* Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during
7063+
* the past 30-day period are considered current customers and will be able to continue
7064+
* using the service.</p>
7065+
* </note>
70377066
*/
70387067
ElasticInferenceAccelerators?: LaunchTemplateElasticInferenceAccelerator[];
70397068

@@ -8250,7 +8279,19 @@ export interface ResponseLaunchTemplateData {
82508279

82518280
/**
82528281
* @public
8253-
* <p> The elastic inference accelerator for the instance. </p>
8282+
* <p>An elastic inference accelerator to associate with the instance. Elastic inference
8283+
* accelerators are a resource you can attach to your Amazon EC2 instances to accelerate
8284+
* your Deep Learning (DL) inference workloads.</p>
8285+
* <p>You cannot specify accelerators from different generations in the same request.</p>
8286+
* <note>
8287+
* <p>Starting April 15, 2023, Amazon Web Services will not onboard new customers to Amazon
8288+
* Elastic Inference (EI), and will help current customers migrate their workloads to
8289+
* options that offer better price and performance. After April 15, 2023, new customers
8290+
* will not be able to launch instances with Amazon EI accelerators in Amazon SageMaker,
8291+
* Amazon ECS, or Amazon EC2. However, customers who have used Amazon EI at least once during
8292+
* the past 30-day period are considered current customers and will be able to continue
8293+
* using the service.</p>
8294+
* </note>
82548295
*/
82558296
ElasticInferenceAccelerators?: LaunchTemplateElasticInferenceAcceleratorResponse[];
82568297

0 commit comments

Comments
 (0)