Skip to content

Commit 2f49c14

Browse files
author
awstools
committed
feat(client-ec2): This release includes a new API for modifying instance network-performance-options after launch.
1 parent a4233c3 commit 2f49c14

37 files changed

+1539
-780
lines changed

clients/client-ec2/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4493,6 +4493,14 @@ ModifyInstanceMetadataOptions
44934493

44944494
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/ModifyInstanceMetadataOptionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyInstanceMetadataOptionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyInstanceMetadataOptionsCommandOutput/)
44954495

4496+
</details>
4497+
<details>
4498+
<summary>
4499+
ModifyInstanceNetworkPerformanceOptions
4500+
</summary>
4501+
4502+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2/command/ModifyInstanceNetworkPerformanceOptionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyInstanceNetworkPerformanceOptionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2/Interface/ModifyInstanceNetworkPerformanceOptionsCommandOutput/)
4503+
44964504
</details>
44974505
<details>
44984506
<summary>

clients/client-ec2/src/EC2.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2618,6 +2618,11 @@ import {
26182618
ModifyInstanceMetadataOptionsCommandInput,
26192619
ModifyInstanceMetadataOptionsCommandOutput,
26202620
} from "./commands/ModifyInstanceMetadataOptionsCommand";
2621+
import {
2622+
ModifyInstanceNetworkPerformanceOptionsCommand,
2623+
ModifyInstanceNetworkPerformanceOptionsCommandInput,
2624+
ModifyInstanceNetworkPerformanceOptionsCommandOutput,
2625+
} from "./commands/ModifyInstanceNetworkPerformanceOptionsCommand";
26212626
import {
26222627
ModifyInstancePlacementCommand,
26232628
ModifyInstancePlacementCommandInput,
@@ -3758,6 +3763,7 @@ const commands = {
37583763
ModifyInstanceMaintenanceOptionsCommand,
37593764
ModifyInstanceMetadataDefaultsCommand,
37603765
ModifyInstanceMetadataOptionsCommand,
3766+
ModifyInstanceNetworkPerformanceOptionsCommand,
37613767
ModifyInstancePlacementCommand,
37623768
ModifyIpamCommand,
37633769
ModifyIpamPoolCommand,
@@ -12882,6 +12888,23 @@ export interface EC2 {
1288212888
cb: (err: any, data?: ModifyInstanceMetadataOptionsCommandOutput) => void
1288312889
): void;
1288412890

12891+
/**
12892+
* @see {@link ModifyInstanceNetworkPerformanceOptionsCommand}
12893+
*/
12894+
modifyInstanceNetworkPerformanceOptions(
12895+
args: ModifyInstanceNetworkPerformanceOptionsCommandInput,
12896+
options?: __HttpHandlerOptions
12897+
): Promise<ModifyInstanceNetworkPerformanceOptionsCommandOutput>;
12898+
modifyInstanceNetworkPerformanceOptions(
12899+
args: ModifyInstanceNetworkPerformanceOptionsCommandInput,
12900+
cb: (err: any, data?: ModifyInstanceNetworkPerformanceOptionsCommandOutput) => void
12901+
): void;
12902+
modifyInstanceNetworkPerformanceOptions(
12903+
args: ModifyInstanceNetworkPerformanceOptionsCommandInput,
12904+
options: __HttpHandlerOptions,
12905+
cb: (err: any, data?: ModifyInstanceNetworkPerformanceOptionsCommandOutput) => void
12906+
): void;
12907+
1288512908
/**
1288612909
* @see {@link ModifyInstancePlacementCommand}
1288712910
*/

clients/client-ec2/src/EC2Client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,10 @@ import {
18881888
ModifyInstanceMetadataOptionsCommandInput,
18891889
ModifyInstanceMetadataOptionsCommandOutput,
18901890
} from "./commands/ModifyInstanceMetadataOptionsCommand";
1891+
import {
1892+
ModifyInstanceNetworkPerformanceOptionsCommandInput,
1893+
ModifyInstanceNetworkPerformanceOptionsCommandOutput,
1894+
} from "./commands/ModifyInstanceNetworkPerformanceOptionsCommand";
18911895
import {
18921896
ModifyInstancePlacementCommandInput,
18931897
ModifyInstancePlacementCommandOutput,
@@ -2848,6 +2852,7 @@ export type ServiceInputTypes =
28482852
| ModifyInstanceMaintenanceOptionsCommandInput
28492853
| ModifyInstanceMetadataDefaultsCommandInput
28502854
| ModifyInstanceMetadataOptionsCommandInput
2855+
| ModifyInstanceNetworkPerformanceOptionsCommandInput
28512856
| ModifyInstancePlacementCommandInput
28522857
| ModifyIpamCommandInput
28532858
| ModifyIpamPoolCommandInput
@@ -3510,6 +3515,7 @@ export type ServiceOutputTypes =
35103515
| ModifyInstanceMaintenanceOptionsCommandOutput
35113516
| ModifyInstanceMetadataDefaultsCommandOutput
35123517
| ModifyInstanceMetadataOptionsCommandOutput
3518+
| ModifyInstanceNetworkPerformanceOptionsCommandOutput
35133519
| ModifyInstancePlacementCommandOutput
35143520
| ModifyIpamCommandOutput
35153521
| ModifyIpamPoolCommandOutput

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,9 @@ export interface CreateLaunchTemplateCommandOutput extends CreateLaunchTemplateR
313313
* Operator: { // OperatorRequest
314314
* Principal: "STRING_VALUE",
315315
* },
316+
* NetworkPerformanceOptions: { // LaunchTemplateNetworkPerformanceOptionsRequest
317+
* BandwidthWeighting: "default" || "vpc-1" || "ebs-1",
318+
* },
316319
* },
317320
* Operator: {
318321
* Principal: "STRING_VALUE",

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,9 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
316316
* Operator: { // OperatorRequest
317317
* Principal: "STRING_VALUE",
318318
* },
319+
* NetworkPerformanceOptions: { // LaunchTemplateNetworkPerformanceOptionsRequest
320+
* BandwidthWeighting: "default" || "vpc-1" || "ebs-1",
321+
* },
319322
* },
320323
* ResolveAlias: true || false,
321324
* };
@@ -593,6 +596,9 @@ export interface CreateLaunchTemplateVersionCommandOutput extends CreateLaunchTe
593596
* // Managed: true || false,
594597
* // Principal: "STRING_VALUE",
595598
* // },
599+
* // NetworkPerformanceOptions: { // LaunchTemplateNetworkPerformanceOptions
600+
* // BandwidthWeighting: "default" || "vpc-1" || "ebs-1",
601+
* // },
596602
* // },
597603
* // Operator: {
598604
* // Managed: true || false,

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import {
10-
CreateLocalGatewayRouteTableVpcAssociationRequest,
11-
CreateLocalGatewayRouteTableVpcAssociationResult,
12-
} from "../models/models_1";
9+
import { CreateLocalGatewayRouteTableVpcAssociationRequest } from "../models/models_1";
10+
import { CreateLocalGatewayRouteTableVpcAssociationResult } from "../models/models_2";
1311
import {
1412
de_CreateLocalGatewayRouteTableVpcAssociationCommand,
1513
se_CreateLocalGatewayRouteTableVpcAssociationCommand,

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { CreateManagedPrefixListRequest } from "../models/models_1";
10-
import { CreateManagedPrefixListResult } from "../models/models_2";
9+
import { CreateManagedPrefixListRequest, CreateManagedPrefixListResult } from "../models/models_2";
1110
import { de_CreateManagedPrefixListCommand, se_CreateManagedPrefixListCommand } from "../protocols/Aws_ec2";
1211

1312
/**

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DeleteClientVpnRouteRequest, DeleteClientVpnRouteResult } from "../models/models_2";
9+
import { DeleteClientVpnRouteRequest } from "../models/models_2";
10+
import { DeleteClientVpnRouteResult } from "../models/models_3";
1011
import { de_DeleteClientVpnRouteCommand, se_DeleteClientVpnRouteCommand } from "../protocols/Aws_ec2";
1112

1213
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DeleteCoipCidrRequest, DeleteCoipCidrResult } from "../models/models_2";
9+
import { DeleteCoipCidrRequest, DeleteCoipCidrResult } from "../models/models_3";
1010
import { de_DeleteCoipCidrCommand, se_DeleteCoipCidrCommand } from "../protocols/Aws_ec2";
1111

1212
/**

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DescribeFleetInstancesRequest, DescribeFleetInstancesResult } from "../models/models_3";
9+
import { DescribeFleetInstancesRequest } from "../models/models_3";
10+
import { DescribeFleetInstancesResult } from "../models/models_4";
1011
import { de_DescribeFleetInstancesCommand, se_DescribeFleetInstancesCommand } from "../protocols/Aws_ec2";
1112

1213
/**

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { DescribeFleetsRequest } from "../models/models_3";
10-
import { DescribeFleetsResult } from "../models/models_4";
9+
import { DescribeFleetsRequest, DescribeFleetsResult } from "../models/models_4";
1110
import { de_DescribeFleetsCommand, se_DescribeFleetsCommand } from "../protocols/Aws_ec2";
1211

1312
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface DescribeInstanceTopologyCommandOutput extends DescribeInstanceT
6363
* <p>
6464
* <code>p3dn.24xlarge</code> | <code>p4d.24xlarge</code> |
6565
* <code>p4de.24xlarge</code> | <code>p5.48xlarge</code> |
66-
* <code>p5e.48xlarge</code>
66+
* <code>p5e.48xlarge</code> | <code>p5en.48xlarge</code>
6767
* </p>
6868
* </li>
6969
* <li>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ export interface DescribeInstanceTypesCommandOutput extends DescribeInstanceType
145145
* // },
146146
* // EncryptionInTransitSupported: true || false,
147147
* // EnaSrdSupported: true || false,
148+
* // BandwidthWeightings: [ // BandwidthWeightingTypeList
149+
* // "default" || "vpc-1" || "ebs-1",
150+
* // ],
148151
* // },
149152
* // GpuInfo: { // GpuInfo
150153
* // Gpus: [ // GpuDeviceInfoList

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ export interface DescribeInstancesCommandOutput extends DescribeInstancesResult,
281281
* // AutoRecovery: "disabled" || "default",
282282
* // },
283283
* // CurrentInstanceBootMode: "legacy-bios" || "uefi",
284+
* // NetworkPerformanceOptions: { // InstanceNetworkPerformanceOptions
285+
* // BandwidthWeighting: "default" || "vpc-1" || "ebs-1",
286+
* // },
284287
* // Operator: "<OperatorResponse>",
285288
* // InstanceId: "STRING_VALUE",
286289
* // ImageId: "STRING_VALUE",

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ export interface DescribeLaunchTemplateVersionsCommandOutput
343343
* // Managed: true || false,
344344
* // Principal: "STRING_VALUE",
345345
* // },
346+
* // NetworkPerformanceOptions: { // LaunchTemplateNetworkPerformanceOptions
347+
* // BandwidthWeighting: "default" || "vpc-1" || "ebs-1",
348+
* // },
346349
* // },
347350
* // Operator: {
348351
* // Managed: true || false,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { EnableAllowedImagesSettingsRequest, EnableAllowedImagesSettingsResult } from "../models/models_5";
9+
import { EnableAllowedImagesSettingsRequest } from "../models/models_5";
10+
import { EnableAllowedImagesSettingsResult } from "../models/models_6";
1011
import { de_EnableAllowedImagesSettingsCommand, se_EnableAllowedImagesSettingsCommand } from "../protocols/Aws_ec2";
1112

1213
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { commonParams } from "../endpoint/EndpointParameters";
99
import {
1010
EnableAwsNetworkPerformanceMetricSubscriptionRequest,
1111
EnableAwsNetworkPerformanceMetricSubscriptionResult,
12-
} from "../models/models_5";
12+
} from "../models/models_6";
1313
import {
1414
de_EnableAwsNetworkPerformanceMetricSubscriptionCommand,
1515
se_EnableAwsNetworkPerformanceMetricSubscriptionCommand,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { EnableEbsEncryptionByDefaultRequest, EnableEbsEncryptionByDefaultResult } from "../models/models_5";
9+
import { EnableEbsEncryptionByDefaultRequest, EnableEbsEncryptionByDefaultResult } from "../models/models_6";
1010
import { de_EnableEbsEncryptionByDefaultCommand, se_EnableEbsEncryptionByDefaultCommand } from "../protocols/Aws_ec2";
1111

1212
/**

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ export interface GetLaunchTemplateDataCommandOutput extends GetLaunchTemplateDat
315315
* // Managed: true || false,
316316
* // Principal: "STRING_VALUE",
317317
* // },
318+
* // NetworkPerformanceOptions: { // LaunchTemplateNetworkPerformanceOptions
319+
* // BandwidthWeighting: "default" || "vpc-1" || "ebs-1",
320+
* // },
318321
* // },
319322
* // };
320323
*

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { ModifyInstanceMaintenanceOptionsRequest, ModifyInstanceMaintenanceOptionsResult } from "../models/models_6";
9+
import { ModifyInstanceMaintenanceOptionsRequest, ModifyInstanceMaintenanceOptionsResult } from "../models/models_7";
1010
import {
1111
de_ModifyInstanceMaintenanceOptionsCommand,
1212
se_ModifyInstanceMaintenanceOptionsCommand,
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
// smithy-typescript generated code
2+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
3+
import { getSerdePlugin } from "@smithy/middleware-serde";
4+
import { Command as $Command } from "@smithy/smithy-client";
5+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
6+
7+
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
8+
import { commonParams } from "../endpoint/EndpointParameters";
9+
import { ModifyInstanceNetworkPerformanceRequest, ModifyInstanceNetworkPerformanceResult } from "../models/models_7";
10+
import {
11+
de_ModifyInstanceNetworkPerformanceOptionsCommand,
12+
se_ModifyInstanceNetworkPerformanceOptionsCommand,
13+
} from "../protocols/Aws_ec2";
14+
15+
/**
16+
* @public
17+
*/
18+
export type { __MetadataBearer };
19+
export { $Command };
20+
/**
21+
* @public
22+
*
23+
* The input for {@link ModifyInstanceNetworkPerformanceOptionsCommand}.
24+
*/
25+
export interface ModifyInstanceNetworkPerformanceOptionsCommandInput extends ModifyInstanceNetworkPerformanceRequest {}
26+
/**
27+
* @public
28+
*
29+
* The output of {@link ModifyInstanceNetworkPerformanceOptionsCommand}.
30+
*/
31+
export interface ModifyInstanceNetworkPerformanceOptionsCommandOutput
32+
extends ModifyInstanceNetworkPerformanceResult,
33+
__MetadataBearer {}
34+
35+
/**
36+
* <p>Change the configuration of the network performance options for an existing
37+
* instance.</p>
38+
* @example
39+
* Use a bare-bones client and the command you need to make an API call.
40+
* ```javascript
41+
* import { EC2Client, ModifyInstanceNetworkPerformanceOptionsCommand } from "@aws-sdk/client-ec2"; // ES Modules import
42+
* // const { EC2Client, ModifyInstanceNetworkPerformanceOptionsCommand } = require("@aws-sdk/client-ec2"); // CommonJS import
43+
* const client = new EC2Client(config);
44+
* const input = { // ModifyInstanceNetworkPerformanceRequest
45+
* InstanceId: "STRING_VALUE", // required
46+
* BandwidthWeighting: "default" || "vpc-1" || "ebs-1", // required
47+
* DryRun: true || false,
48+
* };
49+
* const command = new ModifyInstanceNetworkPerformanceOptionsCommand(input);
50+
* const response = await client.send(command);
51+
* // { // ModifyInstanceNetworkPerformanceResult
52+
* // InstanceId: "STRING_VALUE",
53+
* // BandwidthWeighting: "default" || "vpc-1" || "ebs-1",
54+
* // };
55+
*
56+
* ```
57+
*
58+
* @param ModifyInstanceNetworkPerformanceOptionsCommandInput - {@link ModifyInstanceNetworkPerformanceOptionsCommandInput}
59+
* @returns {@link ModifyInstanceNetworkPerformanceOptionsCommandOutput}
60+
* @see {@link ModifyInstanceNetworkPerformanceOptionsCommandInput} for command's `input` shape.
61+
* @see {@link ModifyInstanceNetworkPerformanceOptionsCommandOutput} for command's `response` shape.
62+
* @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape.
63+
*
64+
* @throws {@link EC2ServiceException}
65+
* <p>Base exception class for all service exceptions from EC2 service.</p>
66+
*
67+
* @public
68+
*/
69+
export class ModifyInstanceNetworkPerformanceOptionsCommand extends $Command
70+
.classBuilder<
71+
ModifyInstanceNetworkPerformanceOptionsCommandInput,
72+
ModifyInstanceNetworkPerformanceOptionsCommandOutput,
73+
EC2ClientResolvedConfig,
74+
ServiceInputTypes,
75+
ServiceOutputTypes
76+
>()
77+
.ep(commonParams)
78+
.m(function (this: any, Command: any, cs: any, config: EC2ClientResolvedConfig, o: any) {
79+
return [
80+
getSerdePlugin(config, this.serialize, this.deserialize),
81+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
82+
];
83+
})
84+
.s("AmazonEC2", "ModifyInstanceNetworkPerformanceOptions", {})
85+
.n("EC2Client", "ModifyInstanceNetworkPerformanceOptionsCommand")
86+
.f(void 0, void 0)
87+
.ser(se_ModifyInstanceNetworkPerformanceOptionsCommand)
88+
.de(de_ModifyInstanceNetworkPerformanceOptionsCommand)
89+
.build() {
90+
/** @internal type navigation helper, not in runtime. */
91+
protected declare static __types: {
92+
api: {
93+
input: ModifyInstanceNetworkPerformanceRequest;
94+
output: ModifyInstanceNetworkPerformanceResult;
95+
};
96+
sdk: {
97+
input: ModifyInstanceNetworkPerformanceOptionsCommandInput;
98+
output: ModifyInstanceNetworkPerformanceOptionsCommandOutput;
99+
};
100+
};
101+
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ export interface RunInstancesCommandOutput extends Reservation, __MetadataBearer
221221
* },
222222
* DisableApiStop: true || false,
223223
* EnablePrimaryIpv6: true || false,
224+
* NetworkPerformanceOptions: { // InstanceNetworkPerformanceOptionsRequest
225+
* BandwidthWeighting: "default" || "vpc-1" || "ebs-1",
226+
* },
224227
* Operator: { // OperatorRequest
225228
* Principal: "STRING_VALUE",
226229
* },
@@ -494,6 +497,9 @@ export interface RunInstancesCommandOutput extends Reservation, __MetadataBearer
494497
* // AutoRecovery: "disabled" || "default",
495498
* // },
496499
* // CurrentInstanceBootMode: "legacy-bios" || "uefi",
500+
* // NetworkPerformanceOptions: { // InstanceNetworkPerformanceOptions
501+
* // BandwidthWeighting: "default" || "vpc-1" || "ebs-1",
502+
* // },
497503
* // Operator: "<OperatorResponse>",
498504
* // InstanceId: "STRING_VALUE",
499505
* // ImageId: "STRING_VALUE",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { UnmonitorInstancesRequest, UnmonitorInstancesResult } from "../models/models_7";
9+
import { UnmonitorInstancesRequest, UnmonitorInstancesResult } from "../models/models_8";
1010
import { de_UnmonitorInstancesCommand, se_UnmonitorInstancesCommand } from "../protocols/Aws_ec2";
1111

1212
/**

0 commit comments

Comments
 (0)