Skip to content

Commit d130b87

Browse files
author
awstools
committed
feat(client-ec2): This release adds AvailabilityZoneId support for CreateVolume, DescribeVolume, LaunchTemplates, RunInstances, DescribeInstances, CreateDefaultSubnet, SpotInstances, and CreateDefaultSubnet APIs.
1 parent 7c04a4b commit d130b87

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+429
-67
lines changed

clients/client-ec2/src/EC2.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5208,6 +5208,7 @@ export interface EC2 {
52085208
/**
52095209
* @see {@link CreateDefaultSubnetCommand}
52105210
*/
5211+
createDefaultSubnet(): Promise<CreateDefaultSubnetCommandOutput>;
52115212
createDefaultSubnet(
52125213
args: CreateDefaultSubnetCommandInput,
52135214
options?: __HttpHandlerOptions
@@ -6400,6 +6401,7 @@ export interface EC2 {
64006401
/**
64016402
* @see {@link CreateVolumeCommand}
64026403
*/
6404+
createVolume(): Promise<CreateVolumeCommandOutput>;
64036405
createVolume(args: CreateVolumeCommandInput, options?: __HttpHandlerOptions): Promise<CreateVolumeCommandOutput>;
64046406
createVolume(args: CreateVolumeCommandInput, cb: (err: any, data?: CreateVolumeCommandOutput) => void): void;
64056407
createVolume(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export interface AdvertiseByoipCidrCommandOutput extends AdvertiseByoipCidrResul
3838
* location and start advertising it through Amazon Web Services.</p>
3939
* <p>It can take a few minutes before traffic to the specified addresses starts routing to Amazon Web Services
4040
* because of BGP propagation delays.</p>
41+
* <p>To stop advertising the BYOIP CIDR, use <a>WithdrawByoipCidr</a>.</p>
4142
* @example
4243
* Use a bare-bones client and the command you need to make an API call.
4344
* ```javascript

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ export interface CreateDefaultSubnetCommandOutput extends CreateDefaultSubnetRes
3939
* // const { EC2Client, CreateDefaultSubnetCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
4040
* const client = new EC2Client(config);
4141
* const input = { // CreateDefaultSubnetRequest
42-
* AvailabilityZone: "STRING_VALUE", // required
42+
* AvailabilityZone: "STRING_VALUE",
4343
* DryRun: true || false,
4444
* Ipv6Native: true || false,
45+
* AvailabilityZoneId: "STRING_VALUE",
4546
* };
4647
* const command = new CreateDefaultSubnetCommand(input);
4748
* const response = await client.send(command);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
8484
* WeightedCapacity: Number("double"),
8585
* Priority: Number("double"),
8686
* Placement: { // Placement
87+
* AvailabilityZoneId: "STRING_VALUE",
8788
* Affinity: "STRING_VALUE",
8889
* GroupName: "STRING_VALUE",
8990
* PartitionNumber: Number("int"),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ export interface CreateLaunchTemplateCommandOutput extends CreateLaunchTemplateR
141141
* },
142142
* Placement: { // LaunchTemplatePlacementRequest
143143
* AvailabilityZone: "STRING_VALUE",
144+
* AvailabilityZoneId: "STRING_VALUE",
144145
* Affinity: "STRING_VALUE",
145146
* GroupName: "STRING_VALUE",
146147
* HostId: "STRING_VALUE",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
147147
* },
148148
* Placement: { // LaunchTemplatePlacementRequest
149149
* AvailabilityZone: "STRING_VALUE",
150+
* AvailabilityZoneId: "STRING_VALUE",
150151
* Affinity: "STRING_VALUE",
151152
* GroupName: "STRING_VALUE",
152153
* HostId: "STRING_VALUE",
@@ -427,6 +428,7 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
427428
* // },
428429
* // Placement: { // LaunchTemplatePlacement
429430
* // AvailabilityZone: "STRING_VALUE",
431+
* // AvailabilityZoneId: "STRING_VALUE",
430432
* // Affinity: "STRING_VALUE",
431433
* // GroupName: "STRING_VALUE",
432434
* // HostId: "STRING_VALUE",

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export interface CreateVolumeCommandOutput extends Volume, __MetadataBearer {}
4646
* // const { EC2Client, CreateVolumeCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
4747
* const client = new EC2Client(config);
4848
* const input = { // CreateVolumeRequest
49-
* AvailabilityZone: "STRING_VALUE", // required
49+
* AvailabilityZone: "STRING_VALUE",
50+
* AvailabilityZoneId: "STRING_VALUE",
5051
* Encrypted: true || false,
5152
* Iops: Number("int"),
5253
* KmsKeyId: "STRING_VALUE",
@@ -77,6 +78,7 @@ export interface CreateVolumeCommandOutput extends Volume, __MetadataBearer {}
7778
* const command = new CreateVolumeCommand(input);
7879
* const response = await client.send(command);
7980
* // { // Volume
81+
* // AvailabilityZoneId: "STRING_VALUE",
8082
* // OutpostArn: "STRING_VALUE",
8183
* // Iops: Number("int"),
8284
* // Tags: [ // TagList

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ export interface CreateVpcEndpointServiceConfigurationCommandOutput
101101
* // ServiceId: "STRING_VALUE",
102102
* // ServiceName: "STRING_VALUE",
103103
* // ServiceState: "Pending" || "Available" || "Deleting" || "Deleted" || "Failed",
104-
* // AvailabilityZones: [ // ValueStringList
104+
* // AvailabilityZoneIds: [ // ValueStringList
105+
* // "STRING_VALUE",
106+
* // ],
107+
* // AvailabilityZones: [
105108
* // "STRING_VALUE",
106109
* // ],
107110
* // AcceptanceRequired: true || false,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export interface DeprovisionByoipCidrCommandOutput extends DeprovisionByoipCidrR
3030
/**
3131
* <p>Releases the specified address range that you provisioned for use with your Amazon Web Services resources
3232
* through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.</p>
33-
* <p>Before you can release an address range, you must stop advertising it and you must not
34-
* have any IP addresses allocated from its address range.</p>
33+
* <p>Before you can release an address range, you must stop advertising it using <a>WithdrawByoipCidr</a> and you must not have any IP addresses allocated from its
34+
* address range.</p>
3535
* @example
3636
* Use a bare-bones client and the command you need to make an API call.
3737
* ```javascript

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ export interface DescribeByoipCidrsCommandInput extends DescribeByoipCidrsReques
2828
export interface DescribeByoipCidrsCommandOutput extends DescribeByoipCidrsResult, __MetadataBearer {}
2929

3030
/**
31-
* <p>Describes the IP address ranges that were provisioned for use with Amazon Web Services resources
32-
* through through bring your own IP addresses (BYOIP).</p>
31+
* <p>Describes the IP address ranges that were specified in calls to <a>ProvisionByoipCidr</a>.</p>
32+
* <p>To describe the address pools that were created when you provisioned the address
33+
* ranges, use <a>DescribePublicIpv4Pools</a> or <a>DescribeIpv6Pools</a>.</p>
3334
* @example
3435
* Use a bare-bones client and the command you need to make an API call.
3536
* ```javascript

0 commit comments

Comments
 (0)