@aws-sdk/client-ec2 3.627.0 → 3.631.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 (59) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +238 -69
  3. package/dist-es/EC2.js +4 -0
  4. package/dist-es/commands/CreateCapacityReservationBySplittingCommand.js +24 -0
  5. package/dist-es/commands/ModifyVpnTunnelCertificateCommand.js +1 -1
  6. package/dist-es/commands/MoveCapacityReservationInstancesCommand.js +24 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/models/models_0.js +0 -3
  9. package/dist-es/models/models_1.js +3 -5
  10. package/dist-es/models/models_2.js +5 -0
  11. package/dist-es/models/models_3.js +0 -13
  12. package/dist-es/models/models_4.js +13 -4
  13. package/dist-es/models/models_5.js +4 -4
  14. package/dist-es/models/models_6.js +4 -8
  15. package/dist-es/models/models_7.js +8 -0
  16. package/dist-es/protocols/Aws_ec2.js +139 -8
  17. package/dist-types/EC2.d.ts +14 -0
  18. package/dist-types/EC2Client.d.ts +4 -2
  19. package/dist-types/commands/CreateCapacityReservationBySplittingCommand.d.ts +148 -0
  20. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +1 -2
  21. package/dist-types/commands/CreateNetworkInterfaceCommand.d.ts +1 -2
  22. package/dist-types/commands/DeleteLaunchTemplateVersionsCommand.d.ts +2 -1
  23. package/dist-types/commands/DeleteLocalGatewayRouteCommand.d.ts +1 -2
  24. package/dist-types/commands/DescribeAddressTransfersCommand.d.ts +1 -1
  25. package/dist-types/commands/GetInstanceMetadataDefaultsCommand.d.ts +2 -1
  26. package/dist-types/commands/ModifyCapacityReservationCommand.d.ts +5 -5
  27. package/dist-types/commands/ModifyVpnTunnelCertificateCommand.d.ts +2 -1
  28. package/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +157 -0
  29. package/dist-types/commands/index.d.ts +2 -0
  30. package/dist-types/models/models_0.d.ts +63 -99
  31. package/dist-types/models/models_1.d.ts +99 -150
  32. package/dist-types/models/models_2.d.ts +153 -49
  33. package/dist-types/models/models_3.d.ts +48 -32
  34. package/dist-types/models/models_4.d.ts +34 -52
  35. package/dist-types/models/models_5.d.ts +48 -23
  36. package/dist-types/models/models_6.d.ts +35 -237
  37. package/dist-types/models/models_7.d.ts +299 -4
  38. package/dist-types/protocols/Aws_ec2.d.ts +18 -0
  39. package/dist-types/ts3.4/EC2.d.ts +40 -0
  40. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  41. package/dist-types/ts3.4/commands/CreateCapacityReservationBySplittingCommand.d.ts +40 -0
  42. package/dist-types/ts3.4/commands/CreateCapacityReservationFleetCommand.d.ts +4 -2
  43. package/dist-types/ts3.4/commands/CreateNetworkInterfaceCommand.d.ts +4 -2
  44. package/dist-types/ts3.4/commands/DeleteLaunchTemplateVersionsCommand.d.ts +2 -4
  45. package/dist-types/ts3.4/commands/DeleteLocalGatewayRouteCommand.d.ts +4 -2
  46. package/dist-types/ts3.4/commands/GetInstanceMetadataDefaultsCommand.d.ts +2 -4
  47. package/dist-types/ts3.4/commands/ModifyVpnTunnelCertificateCommand.d.ts +2 -4
  48. package/dist-types/ts3.4/commands/MoveCapacityReservationInstancesCommand.d.ts +40 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  50. package/dist-types/ts3.4/models/models_0.d.ts +12 -18
  51. package/dist-types/ts3.4/models/models_1.d.ts +19 -28
  52. package/dist-types/ts3.4/models/models_2.d.ts +32 -10
  53. package/dist-types/ts3.4/models/models_3.d.ts +13 -17
  54. package/dist-types/ts3.4/models/models_4.d.ts +16 -12
  55. package/dist-types/ts3.4/models/models_5.d.ts +10 -10
  56. package/dist-types/ts3.4/models/models_6.d.ts +12 -40
  57. package/dist-types/ts3.4/models/models_7.d.ts +53 -5
  58. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
  59. package/package.json +7 -7
package/dist-es/EC2.js CHANGED
@@ -54,6 +54,7 @@ import { ConfirmProductInstanceCommand, } from "./commands/ConfirmProductInstanc
54
54
  import { CopyFpgaImageCommand, } from "./commands/CopyFpgaImageCommand";
55
55
  import { CopyImageCommand } from "./commands/CopyImageCommand";
56
56
  import { CopySnapshotCommand, } from "./commands/CopySnapshotCommand";
57
+ import { CreateCapacityReservationBySplittingCommand, } from "./commands/CreateCapacityReservationBySplittingCommand";
57
58
  import { CreateCapacityReservationCommand, } from "./commands/CreateCapacityReservationCommand";
58
59
  import { CreateCapacityReservationFleetCommand, } from "./commands/CreateCapacityReservationFleetCommand";
59
60
  import { CreateCarrierGatewayCommand, } from "./commands/CreateCarrierGatewayCommand";
@@ -557,6 +558,7 @@ import { ModifyVpnTunnelOptionsCommand, } from "./commands/ModifyVpnTunnelOption
557
558
  import { MonitorInstancesCommand, } from "./commands/MonitorInstancesCommand";
558
559
  import { MoveAddressToVpcCommand, } from "./commands/MoveAddressToVpcCommand";
559
560
  import { MoveByoipCidrToIpamCommand, } from "./commands/MoveByoipCidrToIpamCommand";
561
+ import { MoveCapacityReservationInstancesCommand, } from "./commands/MoveCapacityReservationInstancesCommand";
560
562
  import { ProvisionByoipCidrCommand, } from "./commands/ProvisionByoipCidrCommand";
561
563
  import { ProvisionIpamByoasnCommand, } from "./commands/ProvisionIpamByoasnCommand";
562
564
  import { ProvisionIpamPoolCidrCommand, } from "./commands/ProvisionIpamPoolCidrCommand";
@@ -682,6 +684,7 @@ const commands = {
682
684
  CopyImageCommand,
683
685
  CopySnapshotCommand,
684
686
  CreateCapacityReservationCommand,
687
+ CreateCapacityReservationBySplittingCommand,
685
688
  CreateCapacityReservationFleetCommand,
686
689
  CreateCarrierGatewayCommand,
687
690
  CreateClientVpnEndpointCommand,
@@ -1184,6 +1187,7 @@ const commands = {
1184
1187
  MonitorInstancesCommand,
1185
1188
  MoveAddressToVpcCommand,
1186
1189
  MoveByoipCidrToIpamCommand,
1190
+ MoveCapacityReservationInstancesCommand,
1187
1191
  ProvisionByoipCidrCommand,
1188
1192
  ProvisionIpamByoasnCommand,
1189
1193
  ProvisionIpamPoolCidrCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateCapacityReservationBySplittingCommand, se_CreateCapacityReservationBySplittingCommand, } from "../protocols/Aws_ec2";
6
+ export { $Command };
7
+ export class CreateCapacityReservationBySplittingCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonEC2", "CreateCapacityReservationBySplitting", {})
19
+ .n("EC2Client", "CreateCapacityReservationBySplittingCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateCapacityReservationBySplittingCommand)
22
+ .de(de_CreateCapacityReservationBySplittingCommand)
23
+ .build() {
24
+ }
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { ModifyVpnTunnelCertificateResultFilterSensitiveLog, } from "../models/models_6";
5
+ import { ModifyVpnTunnelCertificateResultFilterSensitiveLog, } from "../models/models_7";
6
6
  import { de_ModifyVpnTunnelCertificateCommand, se_ModifyVpnTunnelCertificateCommand } from "../protocols/Aws_ec2";
7
7
  export { $Command };
8
8
  export class ModifyVpnTunnelCertificateCommand extends $Command
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_MoveCapacityReservationInstancesCommand, se_MoveCapacityReservationInstancesCommand, } from "../protocols/Aws_ec2";
6
+ export { $Command };
7
+ export class MoveCapacityReservationInstancesCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AmazonEC2", "MoveCapacityReservationInstances", {})
19
+ .n("EC2Client", "MoveCapacityReservationInstancesCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_MoveCapacityReservationInstancesCommand)
22
+ .de(de_MoveCapacityReservationInstancesCommand)
23
+ .build() {
24
+ }
@@ -53,6 +53,7 @@ export * from "./ConfirmProductInstanceCommand";
53
53
  export * from "./CopyFpgaImageCommand";
54
54
  export * from "./CopyImageCommand";
55
55
  export * from "./CopySnapshotCommand";
56
+ export * from "./CreateCapacityReservationBySplittingCommand";
56
57
  export * from "./CreateCapacityReservationCommand";
57
58
  export * from "./CreateCapacityReservationFleetCommand";
58
59
  export * from "./CreateCarrierGatewayCommand";
@@ -556,6 +557,7 @@ export * from "./ModifyVpnTunnelOptionsCommand";
556
557
  export * from "./MonitorInstancesCommand";
557
558
  export * from "./MoveAddressToVpcCommand";
558
559
  export * from "./MoveByoipCidrToIpamCommand";
560
+ export * from "./MoveCapacityReservationInstancesCommand";
559
561
  export * from "./ProvisionByoipCidrCommand";
560
562
  export * from "./ProvisionIpamByoasnCommand";
561
563
  export * from "./ProvisionIpamPoolCidrCommand";
@@ -1335,9 +1335,6 @@ export const _InstanceType = {
1335
1335
  z1d_metal: "z1d.metal",
1336
1336
  z1d_xlarge: "z1d.xlarge",
1337
1337
  };
1338
- export const FleetCapacityReservationTenancy = {
1339
- default: "default",
1340
- };
1341
1338
  export const OidcOptionsFilterSensitiveLog = (obj) => ({
1342
1339
  ...obj,
1343
1340
  ...(obj.ClientSecret && { ClientSecret: SENSITIVE_STRING }),
@@ -1,4 +1,7 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
+ export const FleetCapacityReservationTenancy = {
3
+ default: "default",
4
+ };
2
5
  export const CarrierGatewayState = {
3
6
  available: "available",
4
7
  deleted: "deleted",
@@ -372,11 +375,6 @@ export const RuleAction = {
372
375
  allow: "allow",
373
376
  deny: "deny",
374
377
  };
375
- export const NetworkInterfaceCreationType = {
376
- branch: "branch",
377
- efa: "efa",
378
- trunk: "trunk",
379
- };
380
378
  export const KeyPairFilterSensitiveLog = (obj) => ({
381
379
  ...obj,
382
380
  ...(obj.KeyMaterial && { KeyMaterial: SENSITIVE_STRING }),
@@ -1,5 +1,10 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0";
3
+ export const NetworkInterfaceCreationType = {
4
+ branch: "branch",
5
+ efa: "efa",
6
+ trunk: "trunk",
7
+ };
3
8
  export const NetworkInterfaceType = {
4
9
  api_gateway_managed: "api_gateway_managed",
5
10
  aws_codestar_connections_managed: "aws_codestar_connections_managed",
@@ -184,19 +184,6 @@ export const DeviceType = {
184
184
  ebs: "ebs",
185
185
  instance_store: "instance-store",
186
186
  };
187
- export const ImageState = {
188
- available: "available",
189
- deregistered: "deregistered",
190
- disabled: "disabled",
191
- error: "error",
192
- failed: "failed",
193
- invalid: "invalid",
194
- pending: "pending",
195
- transient: "transient",
196
- };
197
- export const TpmSupportValues = {
198
- v2_0: "v2.0",
199
- };
200
187
  export const DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog = (obj) => ({
201
188
  ...obj,
202
189
  ...(obj.VerifiedAccessTrustProvider && {
@@ -1,5 +1,18 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { LaunchTemplateVersionFilterSensitiveLog, } from "./models_1";
3
+ export const ImageState = {
4
+ available: "available",
5
+ deregistered: "deregistered",
6
+ disabled: "disabled",
7
+ error: "error",
8
+ failed: "failed",
9
+ invalid: "invalid",
10
+ pending: "pending",
11
+ transient: "transient",
12
+ };
13
+ export const TpmSupportValues = {
14
+ v2_0: "v2.0",
15
+ };
3
16
  export const VirtualizationType = {
4
17
  hvm: "hvm",
5
18
  paravirtual: "paravirtual",
@@ -263,10 +276,6 @@ export const OnDemandAllocationStrategy = {
263
276
  LOWEST_PRICE: "lowestPrice",
264
277
  PRIORITIZED: "prioritized",
265
278
  };
266
- export const ReplacementStrategy = {
267
- LAUNCH: "launch",
268
- LAUNCH_BEFORE_TERMINATE: "launch-before-terminate",
269
- };
270
279
  export const SnapshotDetailFilterSensitiveLog = (obj) => ({
271
280
  ...obj,
272
281
  ...(obj.Url && { Url: SENSITIVE_STRING }),
@@ -2,6 +2,10 @@ import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0";
3
3
  import { VpnConnectionFilterSensitiveLog, } from "./models_2";
4
4
  import { SpotFleetLaunchSpecificationFilterSensitiveLog, } from "./models_4";
5
+ export const ReplacementStrategy = {
6
+ LAUNCH: "launch",
7
+ LAUNCH_BEFORE_TERMINATE: "launch-before-terminate",
8
+ };
5
9
  export const SpotInstanceState = {
6
10
  active: "active",
7
11
  cancelled: "cancelled",
@@ -71,10 +75,6 @@ export const PartitionLoadFrequency = {
71
75
  NONE: "none",
72
76
  WEEKLY: "weekly",
73
77
  };
74
- export const EkPubKeyFormat = {
75
- der: "der",
76
- tpmt: "tpmt",
77
- };
78
78
  export const SpotFleetRequestConfigDataFilterSensitiveLog = (obj) => ({
79
79
  ...obj,
80
80
  ...(obj.LaunchSpecifications && {
@@ -4,6 +4,10 @@ import { ResponseLaunchTemplateDataFilterSensitiveLog, } from "./models_1";
4
4
  import { VpnConnectionFilterSensitiveLog, } from "./models_2";
5
5
  import { ConversionTaskFilterSensitiveLog, } from "./models_3";
6
6
  import { SnapshotDetailFilterSensitiveLog, SnapshotTaskDetailFilterSensitiveLog, } from "./models_4";
7
+ export const EkPubKeyFormat = {
8
+ der: "der",
9
+ tpmt: "tpmt",
10
+ };
7
11
  export const EkPubKeyType = {
8
12
  ECC_SEC_P384: "ecc-sec-p384",
9
13
  RSA_2048: "rsa-2048",
@@ -234,11 +238,3 @@ export const ModifyVpnConnectionOptionsResultFilterSensitiveLog = (obj) => ({
234
238
  ...obj,
235
239
  ...(obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }),
236
240
  });
237
- export const ModifyVpnTunnelCertificateResultFilterSensitiveLog = (obj) => ({
238
- ...obj,
239
- ...(obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }),
240
- });
241
- export const ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog = (obj) => ({
242
- ...obj,
243
- ...(obj.PreSharedKey && { PreSharedKey: SENSITIVE_STRING }),
244
- });
@@ -35,6 +35,14 @@ export const MembershipType = {
35
35
  igmp: "igmp",
36
36
  static: "static",
37
37
  };
38
+ export const ModifyVpnTunnelCertificateResultFilterSensitiveLog = (obj) => ({
39
+ ...obj,
40
+ ...(obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }),
41
+ });
42
+ export const ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog = (obj) => ({
43
+ ...obj,
44
+ ...(obj.PreSharedKey && { PreSharedKey: SENSITIVE_STRING }),
45
+ });
38
46
  export const ModifyVpnTunnelOptionsRequestFilterSensitiveLog = (obj) => ({
39
47
  ...obj,
40
48
  ...(obj.TunnelOptions && { TunnelOptions: SENSITIVE_STRING }),
@@ -563,6 +563,16 @@ export const se_CreateCapacityReservationCommand = async (input, context) => {
563
563
  });
564
564
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
565
565
  };
566
+ export const se_CreateCapacityReservationBySplittingCommand = async (input, context) => {
567
+ const headers = SHARED_HEADERS;
568
+ let body;
569
+ body = buildFormUrlencodedString({
570
+ ...se_CreateCapacityReservationBySplittingRequest(input, context),
571
+ [_A]: _CCRBS,
572
+ [_V]: _,
573
+ });
574
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
575
+ };
566
576
  export const se_CreateCapacityReservationFleetCommand = async (input, context) => {
567
577
  const headers = SHARED_HEADERS;
568
578
  let body;
@@ -5583,6 +5593,16 @@ export const se_MoveByoipCidrToIpamCommand = async (input, context) => {
5583
5593
  });
5584
5594
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
5585
5595
  };
5596
+ export const se_MoveCapacityReservationInstancesCommand = async (input, context) => {
5597
+ const headers = SHARED_HEADERS;
5598
+ let body;
5599
+ body = buildFormUrlencodedString({
5600
+ ...se_MoveCapacityReservationInstancesRequest(input, context),
5601
+ [_A]: _MCRI,
5602
+ [_V]: _,
5603
+ });
5604
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
5605
+ };
5586
5606
  export const se_ProvisionByoipCidrCommand = async (input, context) => {
5587
5607
  const headers = SHARED_HEADERS;
5588
5608
  let body;
@@ -6969,6 +6989,19 @@ export const de_CreateCapacityReservationCommand = async (output, context) => {
6969
6989
  };
6970
6990
  return response;
6971
6991
  };
6992
+ export const de_CreateCapacityReservationBySplittingCommand = async (output, context) => {
6993
+ if (output.statusCode >= 300) {
6994
+ return de_CommandError(output, context);
6995
+ }
6996
+ const data = await parseBody(output.body, context);
6997
+ let contents = {};
6998
+ contents = de_CreateCapacityReservationBySplittingResult(data, context);
6999
+ const response = {
7000
+ $metadata: deserializeMetadata(output),
7001
+ ...contents,
7002
+ };
7003
+ return response;
7004
+ };
6972
7005
  export const de_CreateCapacityReservationFleetCommand = async (output, context) => {
6973
7006
  if (output.statusCode >= 300) {
6974
7007
  return de_CommandError(output, context);
@@ -13375,6 +13408,19 @@ export const de_MoveByoipCidrToIpamCommand = async (output, context) => {
13375
13408
  };
13376
13409
  return response;
13377
13410
  };
13411
+ export const de_MoveCapacityReservationInstancesCommand = async (output, context) => {
13412
+ if (output.statusCode >= 300) {
13413
+ return de_CommandError(output, context);
13414
+ }
13415
+ const data = await parseBody(output.body, context);
13416
+ let contents = {};
13417
+ contents = de_MoveCapacityReservationInstancesResult(data, context);
13418
+ const response = {
13419
+ $metadata: deserializeMetadata(output),
13420
+ ...contents,
13421
+ };
13422
+ return response;
13423
+ };
13378
13424
  export const de_ProvisionByoipCidrCommand = async (output, context) => {
13379
13425
  if (output.statusCode >= 300) {
13380
13426
  return de_CommandError(output, context);
@@ -16076,6 +16122,32 @@ const se_CpuOptionsRequest = (input, context) => {
16076
16122
  }
16077
16123
  return entries;
16078
16124
  };
16125
+ const se_CreateCapacityReservationBySplittingRequest = (input, context) => {
16126
+ const entries = {};
16127
+ if (input[_DRr] != null) {
16128
+ entries[_DRr] = input[_DRr];
16129
+ }
16130
+ if (input[_CTl] === undefined) {
16131
+ input[_CTl] = generateIdempotencyToken();
16132
+ }
16133
+ if (input[_CTl] != null) {
16134
+ entries[_CTl] = input[_CTl];
16135
+ }
16136
+ if (input[_SCRI] != null) {
16137
+ entries[_SCRI] = input[_SCRI];
16138
+ }
16139
+ if (input[_IC] != null) {
16140
+ entries[_IC] = input[_IC];
16141
+ }
16142
+ if (input[_TS] != null) {
16143
+ const memberEntries = se_TagSpecificationList(input[_TS], context);
16144
+ Object.entries(memberEntries).forEach(([key, value]) => {
16145
+ const loc = `TagSpecification.${key.substring(key.indexOf(".") + 1)}`;
16146
+ entries[loc] = value;
16147
+ });
16148
+ }
16149
+ return entries;
16150
+ };
16079
16151
  const se_CreateCapacityReservationFleetRequest = (input, context) => {
16080
16152
  const entries = {};
16081
16153
  if (input[_AS] != null) {
@@ -19526,8 +19598,8 @@ const se_DeleteSpotDatafeedSubscriptionRequest = (input, context) => {
19526
19598
  };
19527
19599
  const se_DeleteSubnetCidrReservationRequest = (input, context) => {
19528
19600
  const entries = {};
19529
- if (input[_SCRI] != null) {
19530
- entries[_SCRI] = input[_SCRI];
19601
+ if (input[_SCRIu] != null) {
19602
+ entries[_SCRIu] = input[_SCRIu];
19531
19603
  }
19532
19604
  if (input[_DRr] != null) {
19533
19605
  entries[_DRr] = input[_DRr];
@@ -28611,6 +28683,9 @@ const se_ModifyCapacityReservationRequest = (input, context) => {
28611
28683
  if (input[_AId] != null) {
28612
28684
  entries[_AId] = input[_AId];
28613
28685
  }
28686
+ if (input[_IMC] != null) {
28687
+ entries[_IMC] = input[_IMC];
28688
+ }
28614
28689
  return entries;
28615
28690
  };
28616
28691
  const se_ModifyClientVpnEndpointRequest = (input, context) => {
@@ -30668,6 +30743,28 @@ const se_MoveByoipCidrToIpamRequest = (input, context) => {
30668
30743
  }
30669
30744
  return entries;
30670
30745
  };
30746
+ const se_MoveCapacityReservationInstancesRequest = (input, context) => {
30747
+ const entries = {};
30748
+ if (input[_DRr] != null) {
30749
+ entries[_DRr] = input[_DRr];
30750
+ }
30751
+ if (input[_CTl] === undefined) {
30752
+ input[_CTl] = generateIdempotencyToken();
30753
+ }
30754
+ if (input[_CTl] != null) {
30755
+ entries[_CTl] = input[_CTl];
30756
+ }
30757
+ if (input[_SCRI] != null) {
30758
+ entries[_SCRI] = input[_SCRI];
30759
+ }
30760
+ if (input[_DCRI] != null) {
30761
+ entries[_DCRI] = input[_DCRI];
30762
+ }
30763
+ if (input[_IC] != null) {
30764
+ entries[_IC] = input[_IC];
30765
+ }
30766
+ return entries;
30767
+ };
30671
30768
  const se_NatGatewayIdStringList = (input, context) => {
30672
30769
  const entries = {};
30673
30770
  let counter = 1;
@@ -38061,6 +38158,19 @@ const de_CpuOptions = (output, context) => {
38061
38158
  }
38062
38159
  return contents;
38063
38160
  };
38161
+ const de_CreateCapacityReservationBySplittingResult = (output, context) => {
38162
+ const contents = {};
38163
+ if (output[_sCR] != null) {
38164
+ contents[_SCR] = de_CapacityReservation(output[_sCR], context);
38165
+ }
38166
+ if (output[_dCR] != null) {
38167
+ contents[_DCRe] = de_CapacityReservation(output[_dCR], context);
38168
+ }
38169
+ if (output[_iC] != null) {
38170
+ contents[_IC] = __strictParseInt32(output[_iC]);
38171
+ }
38172
+ return contents;
38173
+ };
38064
38174
  const de_CreateCapacityReservationFleetResult = (output, context) => {
38065
38175
  const contents = {};
38066
38176
  if (output[_cRFI] != null) {
@@ -38566,8 +38676,8 @@ const de_CreateStoreImageTaskResult = (output, context) => {
38566
38676
  };
38567
38677
  const de_CreateSubnetCidrReservationResult = (output, context) => {
38568
38678
  const contents = {};
38569
- if (output[_sCR] != null) {
38570
- contents[_SCR] = de_SubnetCidrReservation(output[_sCR], context);
38679
+ if (output[_sCRu] != null) {
38680
+ contents[_SCRu] = de_SubnetCidrReservation(output[_sCRu], context);
38571
38681
  }
38572
38682
  return contents;
38573
38683
  };
@@ -49287,6 +49397,19 @@ const de_MoveByoipCidrToIpamResult = (output, context) => {
49287
49397
  }
49288
49398
  return contents;
49289
49399
  };
49400
+ const de_MoveCapacityReservationInstancesResult = (output, context) => {
49401
+ const contents = {};
49402
+ if (output[_sCR] != null) {
49403
+ contents[_SCR] = de_CapacityReservation(output[_sCR], context);
49404
+ }
49405
+ if (output[_dCR] != null) {
49406
+ contents[_DCRe] = de_CapacityReservation(output[_dCR], context);
49407
+ }
49408
+ if (output[_iC] != null) {
49409
+ contents[_IC] = __strictParseInt32(output[_iC]);
49410
+ }
49411
+ return contents;
49412
+ };
49290
49413
  const de_MovingAddressStatus = (output, context) => {
49291
49414
  const contents = {};
49292
49415
  if (output[_mSo] != null) {
@@ -53719,7 +53842,7 @@ const de_SubnetCidrBlockState = (output, context) => {
53719
53842
  const de_SubnetCidrReservation = (output, context) => {
53720
53843
  const contents = {};
53721
53844
  if (output[_sCRI] != null) {
53722
- contents[_SCRI] = __expectString(output[_sCRI]);
53845
+ contents[_SCRIu] = __expectString(output[_sCRI]);
53723
53846
  }
53724
53847
  if (output[_sIu] != null) {
53725
53848
  contents[_SIub] = __expectString(output[_sIu]);
@@ -57244,6 +57367,7 @@ const _CCGr = "CreateCustomerGateway";
57244
57367
  const _CCO = "ClientConnectOptions";
57245
57368
  const _CCP = "CreateCoipPool";
57246
57369
  const _CCR = "CancelCapacityReservation";
57370
+ const _CCRBS = "CreateCapacityReservationBySplitting";
57247
57371
  const _CCRF = "CancelCapacityReservationFleets";
57248
57372
  const _CCRFE = "CancelCapacityReservationFleetError";
57249
57373
  const _CCRFr = "CreateCapacityReservationFleet";
@@ -57512,6 +57636,8 @@ const _DCP = "DeleteCoipPool";
57512
57636
  const _DCPe = "DescribeCoipPools";
57513
57637
  const _DCR = "DescribeCapacityReservations";
57514
57638
  const _DCRF = "DescribeCapacityReservationFleets";
57639
+ const _DCRI = "DestinationCapacityReservationId";
57640
+ const _DCRe = "DestinationCapacityReservation";
57515
57641
  const _DCT = "DescribeConversionTasks";
57516
57642
  const _DCVAR = "DescribeClientVpnAuthorizationRules";
57517
57643
  const _DCVC = "DescribeClientVpnConnections";
@@ -58477,6 +58603,7 @@ const _MC = "MaxCount";
58477
58603
  const _MCOIOL = "MapCustomerOwnedIpOnLaunch";
58478
58604
  const _MCR = "ModifyCapacityReservation";
58479
58605
  const _MCRF = "ModifyCapacityReservationFleet";
58606
+ const _MCRI = "MoveCapacityReservationInstances";
58480
58607
  const _MCVE = "ModifyClientVpnEndpoint";
58481
58608
  const _MCi = "MinCount";
58482
58609
  const _MCis = "MissingComponent";
@@ -59064,8 +59191,10 @@ const _SC = "SubnetConfigurations";
59064
59191
  const _SCA = "ServerCertificateArn";
59065
59192
  const _SCAE = "SerialConsoleAccessEnabled";
59066
59193
  const _SCB = "SourceCidrBlock";
59067
- const _SCR = "SubnetCidrReservation";
59068
- const _SCRI = "SubnetCidrReservationId";
59194
+ const _SCR = "SourceCapacityReservation";
59195
+ const _SCRI = "SourceCapacityReservationId";
59196
+ const _SCRIu = "SubnetCidrReservationId";
59197
+ const _SCRu = "SubnetCidrReservation";
59069
59198
  const _SCSIG = "SustainedClockSpeedInGhz";
59070
59199
  const _SCc = "ScopeCount";
59071
59200
  const _SCe = "ServiceConfiguration";
@@ -59844,6 +59973,7 @@ const _dC = "destinationCidr";
59844
59973
  const _dCA = "domainCertificateArn";
59845
59974
  const _dCAR = "deliverCrossAccountRole";
59846
59975
  const _dCB = "destinationCidrBlock";
59976
+ const _dCR = "destinationCapacityReservation";
59847
59977
  const _dCS = "dhcpConfigurationSet";
59848
59978
  const _dCe = "defaultCores";
59849
59979
  const _dEKI = "dataEncryptionKeyId";
@@ -60789,8 +60919,9 @@ const _sC = "serviceConfiguration";
60789
60919
  const _sCA = "serverCertificateArn";
60790
60920
  const _sCAE = "serialConsoleAccessEnabled";
60791
60921
  const _sCB = "sourceCidrBlock";
60792
- const _sCR = "subnetCidrReservation";
60922
+ const _sCR = "sourceCapacityReservation";
60793
60923
  const _sCRI = "subnetCidrReservationId";
60924
+ const _sCRu = "subnetCidrReservation";
60794
60925
  const _sCS = "serviceConfigurationSet";
60795
60926
  const _sCSIG = "sustainedClockSpeedInGhz";
60796
60927
  const _sCc = "scopeCount";
@@ -54,6 +54,7 @@ import { ConfirmProductInstanceCommandInput, ConfirmProductInstanceCommandOutput
54
54
  import { CopyFpgaImageCommandInput, CopyFpgaImageCommandOutput } from "./commands/CopyFpgaImageCommand";
55
55
  import { CopyImageCommandInput, CopyImageCommandOutput } from "./commands/CopyImageCommand";
56
56
  import { CopySnapshotCommandInput, CopySnapshotCommandOutput } from "./commands/CopySnapshotCommand";
57
+ import { CreateCapacityReservationBySplittingCommandInput, CreateCapacityReservationBySplittingCommandOutput } from "./commands/CreateCapacityReservationBySplittingCommand";
57
58
  import { CreateCapacityReservationCommandInput, CreateCapacityReservationCommandOutput } from "./commands/CreateCapacityReservationCommand";
58
59
  import { CreateCapacityReservationFleetCommandInput, CreateCapacityReservationFleetCommandOutput } from "./commands/CreateCapacityReservationFleetCommand";
59
60
  import { CreateCarrierGatewayCommandInput, CreateCarrierGatewayCommandOutput } from "./commands/CreateCarrierGatewayCommand";
@@ -557,6 +558,7 @@ import { ModifyVpnTunnelOptionsCommandInput, ModifyVpnTunnelOptionsCommandOutput
557
558
  import { MonitorInstancesCommandInput, MonitorInstancesCommandOutput } from "./commands/MonitorInstancesCommand";
558
559
  import { MoveAddressToVpcCommandInput, MoveAddressToVpcCommandOutput } from "./commands/MoveAddressToVpcCommand";
559
560
  import { MoveByoipCidrToIpamCommandInput, MoveByoipCidrToIpamCommandOutput } from "./commands/MoveByoipCidrToIpamCommand";
561
+ import { MoveCapacityReservationInstancesCommandInput, MoveCapacityReservationInstancesCommandOutput } from "./commands/MoveCapacityReservationInstancesCommand";
560
562
  import { ProvisionByoipCidrCommandInput, ProvisionByoipCidrCommandOutput } from "./commands/ProvisionByoipCidrCommand";
561
563
  import { ProvisionIpamByoasnCommandInput, ProvisionIpamByoasnCommandOutput } from "./commands/ProvisionIpamByoasnCommand";
562
564
  import { ProvisionIpamPoolCidrCommandInput, ProvisionIpamPoolCidrCommandOutput } from "./commands/ProvisionIpamPoolCidrCommand";
@@ -967,6 +969,12 @@ export interface EC2 {
967
969
  createCapacityReservation(args: CreateCapacityReservationCommandInput, options?: __HttpHandlerOptions): Promise<CreateCapacityReservationCommandOutput>;
968
970
  createCapacityReservation(args: CreateCapacityReservationCommandInput, cb: (err: any, data?: CreateCapacityReservationCommandOutput) => void): void;
969
971
  createCapacityReservation(args: CreateCapacityReservationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCapacityReservationCommandOutput) => void): void;
972
+ /**
973
+ * @see {@link CreateCapacityReservationBySplittingCommand}
974
+ */
975
+ createCapacityReservationBySplitting(args: CreateCapacityReservationBySplittingCommandInput, options?: __HttpHandlerOptions): Promise<CreateCapacityReservationBySplittingCommandOutput>;
976
+ createCapacityReservationBySplitting(args: CreateCapacityReservationBySplittingCommandInput, cb: (err: any, data?: CreateCapacityReservationBySplittingCommandOutput) => void): void;
977
+ createCapacityReservationBySplitting(args: CreateCapacityReservationBySplittingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateCapacityReservationBySplittingCommandOutput) => void): void;
970
978
  /**
971
979
  * @see {@link CreateCapacityReservationFleetCommand}
972
980
  */
@@ -4154,6 +4162,12 @@ export interface EC2 {
4154
4162
  moveByoipCidrToIpam(args: MoveByoipCidrToIpamCommandInput, options?: __HttpHandlerOptions): Promise<MoveByoipCidrToIpamCommandOutput>;
4155
4163
  moveByoipCidrToIpam(args: MoveByoipCidrToIpamCommandInput, cb: (err: any, data?: MoveByoipCidrToIpamCommandOutput) => void): void;
4156
4164
  moveByoipCidrToIpam(args: MoveByoipCidrToIpamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: MoveByoipCidrToIpamCommandOutput) => void): void;
4165
+ /**
4166
+ * @see {@link MoveCapacityReservationInstancesCommand}
4167
+ */
4168
+ moveCapacityReservationInstances(args: MoveCapacityReservationInstancesCommandInput, options?: __HttpHandlerOptions): Promise<MoveCapacityReservationInstancesCommandOutput>;
4169
+ moveCapacityReservationInstances(args: MoveCapacityReservationInstancesCommandInput, cb: (err: any, data?: MoveCapacityReservationInstancesCommandOutput) => void): void;
4170
+ moveCapacityReservationInstances(args: MoveCapacityReservationInstancesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: MoveCapacityReservationInstancesCommandOutput) => void): void;
4157
4171
  /**
4158
4172
  * @see {@link ProvisionByoipCidrCommand}
4159
4173
  */