@aws-sdk/client-ec2 3.703.0 → 3.709.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +207 -65
  3. package/dist-es/EC2.js +2 -0
  4. package/dist-es/commands/ModifyInstanceNetworkPerformanceOptionsCommand.js +22 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/models_1.js +5 -14
  7. package/dist-es/models/models_2.js +14 -0
  8. package/dist-es/models/models_3.js +0 -6
  9. package/dist-es/models/models_4.js +11 -21
  10. package/dist-es/models/models_5.js +21 -0
  11. package/dist-es/models/models_6.js +0 -15
  12. package/dist-es/models/models_7.js +15 -0
  13. package/dist-es/protocols/Aws_ec2.js +114 -0
  14. package/dist-types/EC2.d.ts +7 -0
  15. package/dist-types/EC2Client.d.ts +3 -2
  16. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +3 -0
  17. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +6 -0
  18. package/dist-types/commands/CreateLocalGatewayRouteTableVpcAssociationCommand.d.ts +2 -1
  19. package/dist-types/commands/CreateManagedPrefixListCommand.d.ts +1 -2
  20. package/dist-types/commands/DeleteClientVpnRouteCommand.d.ts +2 -1
  21. package/dist-types/commands/DeleteCoipCidrCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeFleetInstancesCommand.d.ts +2 -1
  23. package/dist-types/commands/DescribeFleetsCommand.d.ts +1 -2
  24. package/dist-types/commands/DescribeInstanceTopologyCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +3 -0
  26. package/dist-types/commands/DescribeInstancesCommand.d.ts +3 -0
  27. package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +3 -0
  28. package/dist-types/commands/EnableAllowedImagesSettingsCommand.d.ts +2 -1
  29. package/dist-types/commands/EnableAwsNetworkPerformanceMetricSubscriptionCommand.d.ts +1 -1
  30. package/dist-types/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
  31. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +3 -0
  32. package/dist-types/commands/ModifyInstanceMaintenanceOptionsCommand.d.ts +1 -1
  33. package/dist-types/commands/ModifyInstanceNetworkPerformanceOptionsCommand.d.ts +75 -0
  34. package/dist-types/commands/RunInstancesCommand.d.ts +6 -0
  35. package/dist-types/commands/UnmonitorInstancesCommand.d.ts +1 -1
  36. package/dist-types/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.d.ts +1 -1
  37. package/dist-types/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.d.ts +1 -1
  38. package/dist-types/commands/WithdrawByoipCidrCommand.d.ts +1 -2
  39. package/dist-types/commands/index.d.ts +1 -0
  40. package/dist-types/models/models_1.d.ts +69 -81
  41. package/dist-types/models/models_2.d.ts +82 -48
  42. package/dist-types/models/models_3.d.ts +48 -107
  43. package/dist-types/models/models_4.d.ts +157 -83
  44. package/dist-types/models/models_5.d.ts +70 -76
  45. package/dist-types/models/models_6.d.ts +77 -81
  46. package/dist-types/models/models_7.d.ts +168 -158
  47. package/dist-types/models/models_8.d.ts +158 -1
  48. package/dist-types/protocols/Aws_ec2.d.ts +9 -0
  49. package/dist-types/ts3.4/EC2.d.ts +23 -0
  50. package/dist-types/ts3.4/EC2Client.d.ts +6 -0
  51. package/dist-types/ts3.4/commands/CreateLocalGatewayRouteTableVpcAssociationCommand.d.ts +2 -4
  52. package/dist-types/ts3.4/commands/CreateManagedPrefixListCommand.d.ts +4 -2
  53. package/dist-types/ts3.4/commands/DeleteClientVpnRouteCommand.d.ts +2 -4
  54. package/dist-types/ts3.4/commands/DeleteCoipCidrCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/DescribeFleetInstancesCommand.d.ts +2 -4
  56. package/dist-types/ts3.4/commands/DescribeFleetsCommand.d.ts +4 -2
  57. package/dist-types/ts3.4/commands/EnableAllowedImagesSettingsCommand.d.ts +2 -4
  58. package/dist-types/ts3.4/commands/EnableAwsNetworkPerformanceMetricSubscriptionCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/EnableEbsEncryptionByDefaultCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/ModifyInstanceMaintenanceOptionsCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/ModifyInstanceNetworkPerformanceOptionsCommand.d.ts +51 -0
  62. package/dist-types/ts3.4/commands/UnmonitorInstancesCommand.d.ts +1 -1
  63. package/dist-types/ts3.4/commands/UpdateSecurityGroupRuleDescriptionsEgressCommand.d.ts +1 -1
  64. package/dist-types/ts3.4/commands/UpdateSecurityGroupRuleDescriptionsIngressCommand.d.ts +1 -1
  65. package/dist-types/ts3.4/commands/WithdrawByoipCidrCommand.d.ts +4 -2
  66. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  67. package/dist-types/ts3.4/models/models_1.d.ts +19 -31
  68. package/dist-types/ts3.4/models/models_2.d.ts +32 -14
  69. package/dist-types/ts3.4/models/models_3.d.ts +12 -21
  70. package/dist-types/ts3.4/models/models_4.d.ts +34 -33
  71. package/dist-types/ts3.4/models/models_5.d.ts +32 -23
  72. package/dist-types/ts3.4/models/models_6.d.ts +20 -31
  73. package/dist-types/ts3.4/models/models_7.d.ts +46 -38
  74. package/dist-types/ts3.4/models/models_8.d.ts +37 -1
  75. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +12 -0
  76. package/package.json +37 -37
@@ -41,6 +41,7 @@ import {
41
41
  CreditSpecificationRequest,
42
42
  ElasticGpuSpecification,
43
43
  HostnameType,
44
+ InstanceBandwidthWeighting,
44
45
  InstanceInterruptionBehavior,
45
46
  InstanceIpv6Address,
46
47
  Ipam,
@@ -144,13 +145,40 @@ import {
144
145
  } from "./models_5";
145
146
  import {
146
147
  CapacityReservationSpecification,
147
- DefaultInstanceMetadataEndpointState,
148
- DefaultInstanceMetadataTagsState,
149
148
  IpamResourceCidr,
150
- MetadataDefaultHttpTokensState,
151
149
  OperationType,
152
150
  Purchase,
153
151
  } from "./models_6";
152
+ export interface ModifyInstanceMaintenanceOptionsRequest {
153
+ InstanceId: string | undefined;
154
+ AutoRecovery?: InstanceAutoRecoveryState | undefined;
155
+ DryRun?: boolean | undefined;
156
+ }
157
+ export interface ModifyInstanceMaintenanceOptionsResult {
158
+ InstanceId?: string | undefined;
159
+ AutoRecovery?: InstanceAutoRecoveryState | undefined;
160
+ }
161
+ export declare const DefaultInstanceMetadataEndpointState: {
162
+ readonly disabled: "disabled";
163
+ readonly enabled: "enabled";
164
+ readonly no_preference: "no-preference";
165
+ };
166
+ export type DefaultInstanceMetadataEndpointState =
167
+ (typeof DefaultInstanceMetadataEndpointState)[keyof typeof DefaultInstanceMetadataEndpointState];
168
+ export declare const MetadataDefaultHttpTokensState: {
169
+ readonly no_preference: "no-preference";
170
+ readonly optional: "optional";
171
+ readonly required: "required";
172
+ };
173
+ export type MetadataDefaultHttpTokensState =
174
+ (typeof MetadataDefaultHttpTokensState)[keyof typeof MetadataDefaultHttpTokensState];
175
+ export declare const DefaultInstanceMetadataTagsState: {
176
+ readonly disabled: "disabled";
177
+ readonly enabled: "enabled";
178
+ readonly no_preference: "no-preference";
179
+ };
180
+ export type DefaultInstanceMetadataTagsState =
181
+ (typeof DefaultInstanceMetadataTagsState)[keyof typeof DefaultInstanceMetadataTagsState];
154
182
  export interface ModifyInstanceMetadataDefaultsRequest {
155
183
  HttpTokens?: MetadataDefaultHttpTokensState | undefined;
156
184
  HttpPutResponseHopLimit?: number | undefined;
@@ -174,6 +202,15 @@ export interface ModifyInstanceMetadataOptionsResult {
174
202
  InstanceId?: string | undefined;
175
203
  InstanceMetadataOptions?: InstanceMetadataOptionsResponse | undefined;
176
204
  }
205
+ export interface ModifyInstanceNetworkPerformanceRequest {
206
+ InstanceId: string | undefined;
207
+ BandwidthWeighting: InstanceBandwidthWeighting | undefined;
208
+ DryRun?: boolean | undefined;
209
+ }
210
+ export interface ModifyInstanceNetworkPerformanceResult {
211
+ InstanceId?: string | undefined;
212
+ BandwidthWeighting?: InstanceBandwidthWeighting | undefined;
213
+ }
177
214
  export declare const HostTenancy: {
178
215
  readonly dedicated: "dedicated";
179
216
  readonly default: "default";
@@ -1546,6 +1583,9 @@ export interface InstanceMetadataOptionsRequest {
1546
1583
  HttpProtocolIpv6?: InstanceMetadataProtocolState | undefined;
1547
1584
  InstanceMetadataTags?: InstanceMetadataTagsState | undefined;
1548
1585
  }
1586
+ export interface InstanceNetworkPerformanceOptionsRequest {
1587
+ BandwidthWeighting?: InstanceBandwidthWeighting | undefined;
1588
+ }
1549
1589
  export interface PrivateDnsNameOptionsRequest {
1550
1590
  HostnameType?: HostnameType | undefined;
1551
1591
  EnableResourceNameDnsARecord?: boolean | undefined;
@@ -1586,6 +1626,9 @@ export interface RunInstancesRequest {
1586
1626
  MaintenanceOptions?: InstanceMaintenanceOptionsRequest | undefined;
1587
1627
  DisableApiStop?: boolean | undefined;
1588
1628
  EnablePrimaryIpv6?: boolean | undefined;
1629
+ NetworkPerformanceOptions?:
1630
+ | InstanceNetworkPerformanceOptionsRequest
1631
+ | undefined;
1589
1632
  Operator?: OperatorRequest | undefined;
1590
1633
  DryRun?: boolean | undefined;
1591
1634
  DisableApiTermination?: boolean | undefined;
@@ -1842,41 +1885,6 @@ export interface UnlockSnapshotRequest {
1842
1885
  export interface UnlockSnapshotResult {
1843
1886
  SnapshotId?: string | undefined;
1844
1887
  }
1845
- export interface UnmonitorInstancesRequest {
1846
- InstanceIds: string[] | undefined;
1847
- DryRun?: boolean | undefined;
1848
- }
1849
- export interface UnmonitorInstancesResult {
1850
- InstanceMonitorings?: InstanceMonitoring[] | undefined;
1851
- }
1852
- export interface SecurityGroupRuleDescription {
1853
- SecurityGroupRuleId?: string | undefined;
1854
- Description?: string | undefined;
1855
- }
1856
- export interface UpdateSecurityGroupRuleDescriptionsEgressRequest {
1857
- DryRun?: boolean | undefined;
1858
- GroupId?: string | undefined;
1859
- GroupName?: string | undefined;
1860
- IpPermissions?: IpPermission[] | undefined;
1861
- SecurityGroupRuleDescriptions?: SecurityGroupRuleDescription[] | undefined;
1862
- }
1863
- export interface UpdateSecurityGroupRuleDescriptionsEgressResult {
1864
- Return?: boolean | undefined;
1865
- }
1866
- export interface UpdateSecurityGroupRuleDescriptionsIngressRequest {
1867
- DryRun?: boolean | undefined;
1868
- GroupId?: string | undefined;
1869
- GroupName?: string | undefined;
1870
- IpPermissions?: IpPermission[] | undefined;
1871
- SecurityGroupRuleDescriptions?: SecurityGroupRuleDescription[] | undefined;
1872
- }
1873
- export interface UpdateSecurityGroupRuleDescriptionsIngressResult {
1874
- Return?: boolean | undefined;
1875
- }
1876
- export interface WithdrawByoipCidrRequest {
1877
- Cidr: string | undefined;
1878
- DryRun?: boolean | undefined;
1879
- }
1880
1888
  export declare const ModifyVerifiedAccessNativeApplicationOidcOptionsFilterSensitiveLog: (
1881
1889
  obj: ModifyVerifiedAccessNativeApplicationOidcOptions
1882
1890
  ) => any;
@@ -1,4 +1,40 @@
1
- import { ByoipCidr } from "./models_0";
1
+ import { ByoipCidr, IpPermission } from "./models_0";
2
+ import { InstanceMonitoring } from "./models_7";
3
+ export interface UnmonitorInstancesRequest {
4
+ InstanceIds: string[] | undefined;
5
+ DryRun?: boolean | undefined;
6
+ }
7
+ export interface UnmonitorInstancesResult {
8
+ InstanceMonitorings?: InstanceMonitoring[] | undefined;
9
+ }
10
+ export interface SecurityGroupRuleDescription {
11
+ SecurityGroupRuleId?: string | undefined;
12
+ Description?: string | undefined;
13
+ }
14
+ export interface UpdateSecurityGroupRuleDescriptionsEgressRequest {
15
+ DryRun?: boolean | undefined;
16
+ GroupId?: string | undefined;
17
+ GroupName?: string | undefined;
18
+ IpPermissions?: IpPermission[] | undefined;
19
+ SecurityGroupRuleDescriptions?: SecurityGroupRuleDescription[] | undefined;
20
+ }
21
+ export interface UpdateSecurityGroupRuleDescriptionsEgressResult {
22
+ Return?: boolean | undefined;
23
+ }
24
+ export interface UpdateSecurityGroupRuleDescriptionsIngressRequest {
25
+ DryRun?: boolean | undefined;
26
+ GroupId?: string | undefined;
27
+ GroupName?: string | undefined;
28
+ IpPermissions?: IpPermission[] | undefined;
29
+ SecurityGroupRuleDescriptions?: SecurityGroupRuleDescription[] | undefined;
30
+ }
31
+ export interface UpdateSecurityGroupRuleDescriptionsIngressResult {
32
+ Return?: boolean | undefined;
33
+ }
34
+ export interface WithdrawByoipCidrRequest {
35
+ Cidr: string | undefined;
36
+ DryRun?: boolean | undefined;
37
+ }
2
38
  export interface WithdrawByoipCidrResult {
3
39
  ByoipCidr?: ByoipCidr | undefined;
4
40
  }
@@ -2147,6 +2147,10 @@ import {
2147
2147
  ModifyInstanceMetadataOptionsCommandInput,
2148
2148
  ModifyInstanceMetadataOptionsCommandOutput,
2149
2149
  } from "../commands/ModifyInstanceMetadataOptionsCommand";
2150
+ import {
2151
+ ModifyInstanceNetworkPerformanceOptionsCommandInput,
2152
+ ModifyInstanceNetworkPerformanceOptionsCommandOutput,
2153
+ } from "../commands/ModifyInstanceNetworkPerformanceOptionsCommand";
2150
2154
  import {
2151
2155
  ModifyInstancePlacementCommandInput,
2152
2156
  ModifyInstancePlacementCommandOutput,
@@ -4775,6 +4779,10 @@ export declare const se_ModifyInstanceMetadataOptionsCommand: (
4775
4779
  input: ModifyInstanceMetadataOptionsCommandInput,
4776
4780
  context: __SerdeContext
4777
4781
  ) => Promise<__HttpRequest>;
4782
+ export declare const se_ModifyInstanceNetworkPerformanceOptionsCommand: (
4783
+ input: ModifyInstanceNetworkPerformanceOptionsCommandInput,
4784
+ context: __SerdeContext
4785
+ ) => Promise<__HttpRequest>;
4778
4786
  export declare const se_ModifyInstancePlacementCommand: (
4779
4787
  input: ModifyInstancePlacementCommandInput,
4780
4788
  context: __SerdeContext
@@ -7403,6 +7411,10 @@ export declare const de_ModifyInstanceMetadataOptionsCommand: (
7403
7411
  output: __HttpResponse,
7404
7412
  context: __SerdeContext
7405
7413
  ) => Promise<ModifyInstanceMetadataOptionsCommandOutput>;
7414
+ export declare const de_ModifyInstanceNetworkPerformanceOptionsCommand: (
7415
+ output: __HttpResponse,
7416
+ context: __SerdeContext
7417
+ ) => Promise<ModifyInstanceNetworkPerformanceOptionsCommandOutput>;
7406
7418
  export declare const de_ModifyInstancePlacementCommand: (
7407
7419
  output: __HttpResponse,
7408
7420
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2",
3
3
  "description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
4
- "version": "3.703.0",
4
+ "version": "3.709.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ec2",
@@ -20,46 +20,46 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.699.0",
24
- "@aws-sdk/client-sts": "3.699.0",
25
- "@aws-sdk/core": "3.696.0",
26
- "@aws-sdk/credential-provider-node": "3.699.0",
27
- "@aws-sdk/middleware-host-header": "3.696.0",
28
- "@aws-sdk/middleware-logger": "3.696.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.696.0",
30
- "@aws-sdk/middleware-sdk-ec2": "3.696.0",
31
- "@aws-sdk/middleware-user-agent": "3.696.0",
32
- "@aws-sdk/region-config-resolver": "3.696.0",
33
- "@aws-sdk/types": "3.696.0",
34
- "@aws-sdk/util-endpoints": "3.696.0",
35
- "@aws-sdk/util-user-agent-browser": "3.696.0",
36
- "@aws-sdk/util-user-agent-node": "3.696.0",
37
- "@smithy/config-resolver": "^3.0.12",
38
- "@smithy/core": "^2.5.3",
39
- "@smithy/fetch-http-handler": "^4.1.1",
40
- "@smithy/hash-node": "^3.0.10",
41
- "@smithy/invalid-dependency": "^3.0.10",
42
- "@smithy/middleware-content-length": "^3.0.12",
43
- "@smithy/middleware-endpoint": "^3.2.3",
44
- "@smithy/middleware-retry": "^3.0.27",
45
- "@smithy/middleware-serde": "^3.0.10",
46
- "@smithy/middleware-stack": "^3.0.10",
47
- "@smithy/node-config-provider": "^3.1.11",
48
- "@smithy/node-http-handler": "^3.3.1",
49
- "@smithy/protocol-http": "^4.1.7",
50
- "@smithy/smithy-client": "^3.4.4",
51
- "@smithy/types": "^3.7.1",
52
- "@smithy/url-parser": "^3.0.10",
23
+ "@aws-sdk/client-sso-oidc": "3.709.0",
24
+ "@aws-sdk/client-sts": "3.709.0",
25
+ "@aws-sdk/core": "3.709.0",
26
+ "@aws-sdk/credential-provider-node": "3.709.0",
27
+ "@aws-sdk/middleware-host-header": "3.709.0",
28
+ "@aws-sdk/middleware-logger": "3.709.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.709.0",
30
+ "@aws-sdk/middleware-sdk-ec2": "3.709.0",
31
+ "@aws-sdk/middleware-user-agent": "3.709.0",
32
+ "@aws-sdk/region-config-resolver": "3.709.0",
33
+ "@aws-sdk/types": "3.709.0",
34
+ "@aws-sdk/util-endpoints": "3.709.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.709.0",
36
+ "@aws-sdk/util-user-agent-node": "3.709.0",
37
+ "@smithy/config-resolver": "^3.0.13",
38
+ "@smithy/core": "^2.5.5",
39
+ "@smithy/fetch-http-handler": "^4.1.2",
40
+ "@smithy/hash-node": "^3.0.11",
41
+ "@smithy/invalid-dependency": "^3.0.11",
42
+ "@smithy/middleware-content-length": "^3.0.13",
43
+ "@smithy/middleware-endpoint": "^3.2.5",
44
+ "@smithy/middleware-retry": "^3.0.30",
45
+ "@smithy/middleware-serde": "^3.0.11",
46
+ "@smithy/middleware-stack": "^3.0.11",
47
+ "@smithy/node-config-provider": "^3.1.12",
48
+ "@smithy/node-http-handler": "^3.3.2",
49
+ "@smithy/protocol-http": "^4.1.8",
50
+ "@smithy/smithy-client": "^3.5.0",
51
+ "@smithy/types": "^3.7.2",
52
+ "@smithy/url-parser": "^3.0.11",
53
53
  "@smithy/util-base64": "^3.0.0",
54
54
  "@smithy/util-body-length-browser": "^3.0.0",
55
55
  "@smithy/util-body-length-node": "^3.0.0",
56
- "@smithy/util-defaults-mode-browser": "^3.0.27",
57
- "@smithy/util-defaults-mode-node": "^3.0.27",
58
- "@smithy/util-endpoints": "^2.1.6",
59
- "@smithy/util-middleware": "^3.0.10",
60
- "@smithy/util-retry": "^3.0.10",
56
+ "@smithy/util-defaults-mode-browser": "^3.0.30",
57
+ "@smithy/util-defaults-mode-node": "^3.0.30",
58
+ "@smithy/util-endpoints": "^2.1.7",
59
+ "@smithy/util-middleware": "^3.0.11",
60
+ "@smithy/util-retry": "^3.0.11",
61
61
  "@smithy/util-utf8": "^3.0.0",
62
- "@smithy/util-waiter": "^3.1.9",
62
+ "@smithy/util-waiter": "^3.2.0",
63
63
  "@types/uuid": "^9.0.1",
64
64
  "tslib": "^2.6.2",
65
65
  "uuid": "^9.0.1"