Skip to content

Commit c7ea904

Browse files
author
awstools
committed
feat(client-ec2): EC2 - Adding support for AvailabilityZoneId
1 parent bf0301e commit c7ea904

18 files changed

+225
-13
lines changed

clients/client-ec2/src/EC2.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4198,6 +4198,7 @@ export interface EC2 {
41984198
/**
41994199
* @see {@link AllocateHostsCommand}
42004200
*/
4201+
allocateHosts(): Promise<AllocateHostsCommandOutput>;
42014202
allocateHosts(args: AllocateHostsCommandInput, options?: __HttpHandlerOptions): Promise<AllocateHostsCommandOutput>;
42024203
allocateHosts(args: AllocateHostsCommandInput, cb: (err: any, data?: AllocateHostsCommandOutput) => void): void;
42034204
allocateHosts(

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,12 @@ export interface AllocateHostsCommandOutput extends AllocateHostsResult, __Metad
5656
* AssetIds: [ // AssetIdList
5757
* "STRING_VALUE",
5858
* ],
59+
* AvailabilityZoneId: "STRING_VALUE",
5960
* AutoPlacement: "on" || "off",
6061
* ClientToken: "STRING_VALUE",
6162
* InstanceType: "STRING_VALUE",
6263
* Quantity: Number("int"),
63-
* AvailabilityZone: "STRING_VALUE", // required
64+
* AvailabilityZone: "STRING_VALUE",
6465
* };
6566
* const command = new AllocateHostsCommand(input);
6667
* const response = await client.send(command);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export interface DescribeCapacityReservationBillingRequestsCommandOutput
7979
* // InstanceType: "STRING_VALUE",
8080
* // AvailabilityZone: "STRING_VALUE",
8181
* // Tenancy: "default" || "dedicated",
82+
* // AvailabilityZoneId: "STRING_VALUE",
8283
* // },
8384
* // },
8485
* // ],

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ export interface DescribeInstanceStatusCommandOutput extends DescribeInstanceSta
5757
* lifecycle</a> in the <i>Amazon EC2 User Guide</i>.</p>
5858
* </li>
5959
* </ul>
60+
* <p>The Amazon EC2 API follows an eventual consistency model. This means that the result of an
61+
* API command you run that creates or modifies resources might not be immediately
62+
* available to all subsequent commands you run. For guidance on how to manage eventual
63+
* consistency, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/eventual-consistency.html">Eventual consistency in the
64+
* Amazon EC2 API</a> in the <i>Amazon EC2 Developer
65+
* Guide</i>.</p>
6066
* <note>
6167
* <p>The order of the elements in the response, including those within nested
6268
* structures, might vary. Applications should not assume the elements appear in a

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ export interface DescribeInstancesCommandOutput extends DescribeInstancesResult,
4444
* not specify any instance IDs at all, the call fails. If you describe instances and
4545
* specify only instance IDs that are in an unaffected zone, the call works
4646
* normally.</p>
47+
* <p>The Amazon EC2 API follows an eventual consistency model. This means that the result of an
48+
* API command you run that creates or modifies resources might not be immediately
49+
* available to all subsequent commands you run. For guidance on how to manage eventual
50+
* consistency, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/eventual-consistency.html">Eventual consistency in the
51+
* Amazon EC2 API</a> in the <i>Amazon EC2 Developer
52+
* Guide</i>.</p>
4753
* <important>
4854
* <p>We strongly recommend using only paginated requests. Unpaginated requests are
4955
* susceptible to throttling and timeouts.</p>

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ export interface DescribeNetworkInsightsAnalysesCommandOutput
254254
* // AvailabilityZones: [
255255
* // "STRING_VALUE",
256256
* // ],
257+
* // AvailabilityZoneIds: [
258+
* // "STRING_VALUE",
259+
* // ],
257260
* // Cidrs: [
258261
* // "STRING_VALUE",
259262
* // ],
@@ -274,6 +277,7 @@ export interface DescribeNetworkInsightsAnalysesCommandOutput
274277
* // LoadBalancerTarget: { // AnalysisLoadBalancerTarget
275278
* // Address: "STRING_VALUE",
276279
* // AvailabilityZone: "STRING_VALUE",
280+
* // AvailabilityZoneId: "STRING_VALUE",
277281
* // Instance: "<AnalysisComponent>",
278282
* // Port: Number("int"),
279283
* // },
@@ -509,6 +513,7 @@ export interface DescribeNetworkInsightsAnalysesCommandOutput
509513
* // Addresses: "<IpAddressList>",
510514
* // AttachedTo: "<AnalysisComponent>",
511515
* // AvailabilityZones: "<ValueStringList>",
516+
* // AvailabilityZoneIds: "<ValueStringList>",
512517
* // Cidrs: "<ValueStringList>",
513518
* // Component: "<AnalysisComponent>",
514519
* // CustomerGateway: "<AnalysisComponent>",
@@ -527,6 +532,7 @@ export interface DescribeNetworkInsightsAnalysesCommandOutput
527532
* // LoadBalancerTarget: {
528533
* // Address: "STRING_VALUE",
529534
* // AvailabilityZone: "STRING_VALUE",
535+
* // AvailabilityZoneId: "STRING_VALUE",
530536
* // Instance: "<AnalysisComponent>",
531537
* // Port: Number("int"),
532538
* // },
@@ -659,6 +665,7 @@ export interface DescribeNetworkInsightsAnalysesCommandOutput
659665
* // Addresses: "<IpAddressList>",
660666
* // AttachedTo: "<AnalysisComponent>",
661667
* // AvailabilityZones: "<ValueStringList>",
668+
* // AvailabilityZoneIds: "<ValueStringList>",
662669
* // Cidrs: "<ValueStringList>",
663670
* // Component: "<AnalysisComponent>",
664671
* // CustomerGateway: "<AnalysisComponent>",
@@ -677,6 +684,7 @@ export interface DescribeNetworkInsightsAnalysesCommandOutput
677684
* // LoadBalancerTarget: {
678685
* // Address: "STRING_VALUE",
679686
* // AvailabilityZone: "STRING_VALUE",
687+
* // AvailabilityZoneId: "STRING_VALUE",
680688
* // Instance: "<AnalysisComponent>",
681689
* // Port: Number("int"),
682690
* // },

0 commit comments

Comments
 (0)