@aws-sdk/client-ec2 3.47.2 → 3.51.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 (150) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/EC2.js +75 -0
  3. package/dist-cjs/commands/DescribeFastLaunchImagesCommand.js +36 -0
  4. package/dist-cjs/commands/DescribeReservedInstancesCommand.js +2 -1
  5. package/dist-cjs/commands/DescribeReservedInstancesListingsCommand.js +3 -3
  6. package/dist-cjs/commands/DescribeReservedInstancesModificationsCommand.js +1 -2
  7. package/dist-cjs/commands/DisableFastLaunchCommand.js +36 -0
  8. package/dist-cjs/commands/EnableFastLaunchCommand.js +36 -0
  9. package/dist-cjs/commands/GetInstanceTypesFromInstanceRequirementsCommand.js +2 -1
  10. package/dist-cjs/commands/GetIpamAddressHistoryCommand.js +3 -3
  11. package/dist-cjs/commands/GetIpamPoolAllocationsCommand.js +3 -3
  12. package/dist-cjs/commands/GetIpamPoolCidrsCommand.js +3 -3
  13. package/dist-cjs/commands/GetIpamResourceCidrsCommand.js +1 -2
  14. package/dist-cjs/commands/ListImagesInRecycleBinCommand.js +36 -0
  15. package/dist-cjs/commands/ResetInstanceAttributeCommand.js +2 -2
  16. package/dist-cjs/commands/ResetNetworkInterfaceAttributeCommand.js +2 -2
  17. package/dist-cjs/commands/ResetSnapshotAttributeCommand.js +2 -2
  18. package/dist-cjs/commands/RestoreAddressToClassicCommand.js +3 -3
  19. package/dist-cjs/commands/RestoreImageFromRecycleBinCommand.js +36 -0
  20. package/dist-cjs/commands/RestoreManagedPrefixListVersionCommand.js +3 -3
  21. package/dist-cjs/commands/RestoreSnapshotFromRecycleBinCommand.js +3 -3
  22. package/dist-cjs/commands/RestoreSnapshotTierCommand.js +3 -3
  23. package/dist-cjs/commands/RevokeClientVpnIngressCommand.js +3 -3
  24. package/dist-cjs/commands/RevokeSecurityGroupEgressCommand.js +3 -3
  25. package/dist-cjs/commands/RevokeSecurityGroupIngressCommand.js +3 -3
  26. package/dist-cjs/commands/index.js +5 -0
  27. package/dist-cjs/models/models_0.js +14 -7
  28. package/dist-cjs/models/models_1.js +11 -6
  29. package/dist-cjs/models/models_2.js +7 -13
  30. package/dist-cjs/models/models_3.js +61 -53
  31. package/dist-cjs/models/models_4.js +89 -101
  32. package/dist-cjs/models/models_5.js +119 -114
  33. package/dist-cjs/models/models_6.js +122 -2
  34. package/dist-cjs/pagination/DescribeFastLaunchImagesPaginator.js +35 -0
  35. package/dist-cjs/pagination/ListImagesInRecycleBinPaginator.js +35 -0
  36. package/dist-cjs/pagination/index.js +2 -0
  37. package/dist-cjs/protocols/Aws_ec2.js +695 -17
  38. package/dist-es/EC2.js +75 -0
  39. package/dist-es/commands/DescribeFastLaunchImagesCommand.js +39 -0
  40. package/dist-es/commands/DescribeReservedInstancesCommand.js +2 -1
  41. package/dist-es/commands/DescribeReservedInstancesListingsCommand.js +1 -1
  42. package/dist-es/commands/DescribeReservedInstancesModificationsCommand.js +1 -2
  43. package/dist-es/commands/DisableFastLaunchCommand.js +39 -0
  44. package/dist-es/commands/EnableFastLaunchCommand.js +39 -0
  45. package/dist-es/commands/GetInstanceTypesFromInstanceRequirementsCommand.js +2 -1
  46. package/dist-es/commands/GetIpamAddressHistoryCommand.js +1 -1
  47. package/dist-es/commands/GetIpamPoolAllocationsCommand.js +1 -1
  48. package/dist-es/commands/GetIpamPoolCidrsCommand.js +1 -1
  49. package/dist-es/commands/GetIpamResourceCidrsCommand.js +1 -2
  50. package/dist-es/commands/ListImagesInRecycleBinCommand.js +39 -0
  51. package/dist-es/commands/ResetInstanceAttributeCommand.js +1 -1
  52. package/dist-es/commands/ResetNetworkInterfaceAttributeCommand.js +1 -1
  53. package/dist-es/commands/ResetSnapshotAttributeCommand.js +1 -1
  54. package/dist-es/commands/RestoreAddressToClassicCommand.js +1 -1
  55. package/dist-es/commands/RestoreImageFromRecycleBinCommand.js +39 -0
  56. package/dist-es/commands/RestoreManagedPrefixListVersionCommand.js +1 -1
  57. package/dist-es/commands/RestoreSnapshotFromRecycleBinCommand.js +1 -1
  58. package/dist-es/commands/RestoreSnapshotTierCommand.js +1 -1
  59. package/dist-es/commands/RevokeClientVpnIngressCommand.js +1 -1
  60. package/dist-es/commands/RevokeSecurityGroupEgressCommand.js +1 -1
  61. package/dist-es/commands/RevokeSecurityGroupIngressCommand.js +1 -1
  62. package/dist-es/commands/index.js +5 -0
  63. package/dist-es/models/models_0.js +10 -5
  64. package/dist-es/models/models_1.js +5 -0
  65. package/dist-es/models/models_2.js +4 -8
  66. package/dist-es/models/models_3.js +41 -33
  67. package/dist-es/models/models_4.js +57 -75
  68. package/dist-es/models/models_5.js +87 -72
  69. package/dist-es/models/models_6.js +80 -0
  70. package/dist-es/pagination/DescribeFastLaunchImagesPaginator.js +74 -0
  71. package/dist-es/pagination/ListImagesInRecycleBinPaginator.js +74 -0
  72. package/dist-es/pagination/index.js +2 -0
  73. package/dist-es/protocols/Aws_ec2.js +1734 -1028
  74. package/dist-types/EC2.d.ts +68 -4
  75. package/dist-types/EC2Client.d.ts +7 -2
  76. package/dist-types/commands/CreateImageCommand.d.ts +6 -0
  77. package/dist-types/commands/DeregisterImageCommand.d.ts +12 -4
  78. package/dist-types/commands/DescribeFastLaunchImagesCommand.d.ts +35 -0
  79. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +2 -1
  80. package/dist-types/commands/DescribeReservedInstancesListingsCommand.d.ts +1 -1
  81. package/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -2
  82. package/dist-types/commands/DisableFastLaunchCommand.d.ts +40 -0
  83. package/dist-types/commands/EnableFastLaunchCommand.d.ts +43 -0
  84. package/dist-types/commands/GetInstanceTypesFromInstanceRequirementsCommand.d.ts +2 -1
  85. package/dist-types/commands/GetIpamAddressHistoryCommand.d.ts +1 -1
  86. package/dist-types/commands/GetIpamPoolAllocationsCommand.d.ts +1 -1
  87. package/dist-types/commands/GetIpamPoolCidrsCommand.d.ts +1 -1
  88. package/dist-types/commands/GetIpamResourceCidrsCommand.d.ts +1 -2
  89. package/dist-types/commands/ListImagesInRecycleBinCommand.d.ts +37 -0
  90. package/dist-types/commands/ResetInstanceAttributeCommand.d.ts +1 -1
  91. package/dist-types/commands/ResetNetworkInterfaceAttributeCommand.d.ts +1 -1
  92. package/dist-types/commands/ResetSnapshotAttributeCommand.d.ts +1 -1
  93. package/dist-types/commands/RestoreAddressToClassicCommand.d.ts +1 -1
  94. package/dist-types/commands/RestoreImageFromRecycleBinCommand.d.ts +35 -0
  95. package/dist-types/commands/RestoreManagedPrefixListVersionCommand.d.ts +1 -1
  96. package/dist-types/commands/RestoreSnapshotFromRecycleBinCommand.d.ts +1 -1
  97. package/dist-types/commands/RestoreSnapshotTierCommand.d.ts +1 -1
  98. package/dist-types/commands/RevokeClientVpnIngressCommand.d.ts +1 -1
  99. package/dist-types/commands/RevokeSecurityGroupEgressCommand.d.ts +1 -1
  100. package/dist-types/commands/RevokeSecurityGroupIngressCommand.d.ts +1 -1
  101. package/dist-types/commands/index.d.ts +5 -0
  102. package/dist-types/models/models_0.d.ts +53 -11
  103. package/dist-types/models/models_1.d.ts +11 -8
  104. package/dist-types/models/models_2.d.ts +43 -71
  105. package/dist-types/models/models_3.d.ts +240 -298
  106. package/dist-types/models/models_4.d.ts +500 -334
  107. package/dist-types/models/models_5.d.ts +451 -522
  108. package/dist-types/models/models_6.d.ts +520 -5
  109. package/dist-types/pagination/DescribeFastLaunchImagesPaginator.d.ts +4 -0
  110. package/dist-types/pagination/ListImagesInRecycleBinPaginator.d.ts +4 -0
  111. package/dist-types/pagination/index.d.ts +2 -0
  112. package/dist-types/protocols/Aws_ec2.d.ts +15 -0
  113. package/dist-types/ts3.4/EC2.d.ts +25 -0
  114. package/dist-types/ts3.4/EC2Client.d.ts +7 -2
  115. package/dist-types/ts3.4/commands/DescribeFastLaunchImagesCommand.d.ts +17 -0
  116. package/dist-types/ts3.4/commands/DescribeReservedInstancesCommand.d.ts +2 -1
  117. package/dist-types/ts3.4/commands/DescribeReservedInstancesListingsCommand.d.ts +1 -1
  118. package/dist-types/ts3.4/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -2
  119. package/dist-types/ts3.4/commands/DisableFastLaunchCommand.d.ts +17 -0
  120. package/dist-types/ts3.4/commands/EnableFastLaunchCommand.d.ts +17 -0
  121. package/dist-types/ts3.4/commands/GetInstanceTypesFromInstanceRequirementsCommand.d.ts +2 -1
  122. package/dist-types/ts3.4/commands/GetIpamAddressHistoryCommand.d.ts +1 -1
  123. package/dist-types/ts3.4/commands/GetIpamPoolAllocationsCommand.d.ts +1 -1
  124. package/dist-types/ts3.4/commands/GetIpamPoolCidrsCommand.d.ts +1 -1
  125. package/dist-types/ts3.4/commands/GetIpamResourceCidrsCommand.d.ts +1 -2
  126. package/dist-types/ts3.4/commands/ListImagesInRecycleBinCommand.d.ts +17 -0
  127. package/dist-types/ts3.4/commands/ResetInstanceAttributeCommand.d.ts +1 -1
  128. package/dist-types/ts3.4/commands/ResetNetworkInterfaceAttributeCommand.d.ts +1 -1
  129. package/dist-types/ts3.4/commands/ResetSnapshotAttributeCommand.d.ts +1 -1
  130. package/dist-types/ts3.4/commands/RestoreAddressToClassicCommand.d.ts +1 -1
  131. package/dist-types/ts3.4/commands/RestoreImageFromRecycleBinCommand.d.ts +17 -0
  132. package/dist-types/ts3.4/commands/RestoreManagedPrefixListVersionCommand.d.ts +1 -1
  133. package/dist-types/ts3.4/commands/RestoreSnapshotFromRecycleBinCommand.d.ts +1 -1
  134. package/dist-types/ts3.4/commands/RestoreSnapshotTierCommand.d.ts +1 -1
  135. package/dist-types/ts3.4/commands/RevokeClientVpnIngressCommand.d.ts +1 -1
  136. package/dist-types/ts3.4/commands/RevokeSecurityGroupEgressCommand.d.ts +1 -1
  137. package/dist-types/ts3.4/commands/RevokeSecurityGroupIngressCommand.d.ts +1 -1
  138. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  139. package/dist-types/ts3.4/models/models_0.d.ts +22 -5
  140. package/dist-types/ts3.4/models/models_1.d.ts +5 -2
  141. package/dist-types/ts3.4/models/models_2.d.ts +17 -37
  142. package/dist-types/ts3.4/models/models_3.d.ts +122 -122
  143. package/dist-types/ts3.4/models/models_4.d.ts +224 -194
  144. package/dist-types/ts3.4/models/models_5.d.ts +239 -256
  145. package/dist-types/ts3.4/models/models_6.d.ts +275 -5
  146. package/dist-types/ts3.4/pagination/DescribeFastLaunchImagesPaginator.d.ts +4 -0
  147. package/dist-types/ts3.4/pagination/ListImagesInRecycleBinPaginator.d.ts +4 -0
  148. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  149. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +15 -0
  150. package/package.json +41 -35
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-ec2
9
+
10
+
11
+
12
+
13
+
14
+ # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** update clients as of 02/04/2022 ([#3280](https://github.com/aws/aws-sdk-js-v3/issues/3280)) ([63d7f8c](https://github.com/aws/aws-sdk-js-v3/commit/63d7f8c539e0fd782fa5bf997bd6ac2730e4bfda))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
26
+
27
+
28
+ ### Features
29
+
30
+ * **clients:** update clients as of 01/28/2022 ([#3263](https://github.com/aws/aws-sdk-js-v3/issues/3263)) ([c207cf4](https://github.com/aws/aws-sdk-js-v3/commit/c207cf4a70ba9ef14dc5b94da7883b0889d64918))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
37
+
38
+
39
+ ### Features
40
+
41
+ * **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
42
+
43
+
44
+
45
+
46
+
6
47
  ## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
7
48
 
8
49
  **Note:** Version bump only for package @aws-sdk/client-ec2
package/dist-cjs/EC2.js CHANGED
@@ -211,6 +211,7 @@ const DescribeEgressOnlyInternetGatewaysCommand_1 = require("./commands/Describe
211
211
  const DescribeElasticGpusCommand_1 = require("./commands/DescribeElasticGpusCommand");
212
212
  const DescribeExportImageTasksCommand_1 = require("./commands/DescribeExportImageTasksCommand");
213
213
  const DescribeExportTasksCommand_1 = require("./commands/DescribeExportTasksCommand");
214
+ const DescribeFastLaunchImagesCommand_1 = require("./commands/DescribeFastLaunchImagesCommand");
214
215
  const DescribeFastSnapshotRestoresCommand_1 = require("./commands/DescribeFastSnapshotRestoresCommand");
215
216
  const DescribeFleetHistoryCommand_1 = require("./commands/DescribeFleetHistoryCommand");
216
217
  const DescribeFleetInstancesCommand_1 = require("./commands/DescribeFleetInstancesCommand");
@@ -325,6 +326,7 @@ const DetachNetworkInterfaceCommand_1 = require("./commands/DetachNetworkInterfa
325
326
  const DetachVolumeCommand_1 = require("./commands/DetachVolumeCommand");
326
327
  const DetachVpnGatewayCommand_1 = require("./commands/DetachVpnGatewayCommand");
327
328
  const DisableEbsEncryptionByDefaultCommand_1 = require("./commands/DisableEbsEncryptionByDefaultCommand");
329
+ const DisableFastLaunchCommand_1 = require("./commands/DisableFastLaunchCommand");
328
330
  const DisableFastSnapshotRestoresCommand_1 = require("./commands/DisableFastSnapshotRestoresCommand");
329
331
  const DisableImageDeprecationCommand_1 = require("./commands/DisableImageDeprecationCommand");
330
332
  const DisableIpamOrganizationAdminAccountCommand_1 = require("./commands/DisableIpamOrganizationAdminAccountCommand");
@@ -345,6 +347,7 @@ const DisassociateTransitGatewayRouteTableCommand_1 = require("./commands/Disass
345
347
  const DisassociateTrunkInterfaceCommand_1 = require("./commands/DisassociateTrunkInterfaceCommand");
346
348
  const DisassociateVpcCidrBlockCommand_1 = require("./commands/DisassociateVpcCidrBlockCommand");
347
349
  const EnableEbsEncryptionByDefaultCommand_1 = require("./commands/EnableEbsEncryptionByDefaultCommand");
350
+ const EnableFastLaunchCommand_1 = require("./commands/EnableFastLaunchCommand");
348
351
  const EnableFastSnapshotRestoresCommand_1 = require("./commands/EnableFastSnapshotRestoresCommand");
349
352
  const EnableImageDeprecationCommand_1 = require("./commands/EnableImageDeprecationCommand");
350
353
  const EnableIpamOrganizationAdminAccountCommand_1 = require("./commands/EnableIpamOrganizationAdminAccountCommand");
@@ -398,6 +401,7 @@ const ImportInstanceCommand_1 = require("./commands/ImportInstanceCommand");
398
401
  const ImportKeyPairCommand_1 = require("./commands/ImportKeyPairCommand");
399
402
  const ImportSnapshotCommand_1 = require("./commands/ImportSnapshotCommand");
400
403
  const ImportVolumeCommand_1 = require("./commands/ImportVolumeCommand");
404
+ const ListImagesInRecycleBinCommand_1 = require("./commands/ListImagesInRecycleBinCommand");
401
405
  const ListSnapshotsInRecycleBinCommand_1 = require("./commands/ListSnapshotsInRecycleBinCommand");
402
406
  const ModifyAddressAttributeCommand_1 = require("./commands/ModifyAddressAttributeCommand");
403
407
  const ModifyAvailabilityZoneGroupCommand_1 = require("./commands/ModifyAvailabilityZoneGroupCommand");
@@ -492,6 +496,7 @@ const ResetInstanceAttributeCommand_1 = require("./commands/ResetInstanceAttribu
492
496
  const ResetNetworkInterfaceAttributeCommand_1 = require("./commands/ResetNetworkInterfaceAttributeCommand");
493
497
  const ResetSnapshotAttributeCommand_1 = require("./commands/ResetSnapshotAttributeCommand");
494
498
  const RestoreAddressToClassicCommand_1 = require("./commands/RestoreAddressToClassicCommand");
499
+ const RestoreImageFromRecycleBinCommand_1 = require("./commands/RestoreImageFromRecycleBinCommand");
495
500
  const RestoreManagedPrefixListVersionCommand_1 = require("./commands/RestoreManagedPrefixListVersionCommand");
496
501
  const RestoreSnapshotFromRecycleBinCommand_1 = require("./commands/RestoreSnapshotFromRecycleBinCommand");
497
502
  const RestoreSnapshotTierCommand_1 = require("./commands/RestoreSnapshotTierCommand");
@@ -3459,6 +3464,20 @@ class EC2 extends EC2Client_1.EC2Client {
3459
3464
  return this.send(command, optionsOrCb);
3460
3465
  }
3461
3466
  }
3467
+ describeFastLaunchImages(args, optionsOrCb, cb) {
3468
+ const command = new DescribeFastLaunchImagesCommand_1.DescribeFastLaunchImagesCommand(args);
3469
+ if (typeof optionsOrCb === "function") {
3470
+ this.send(command, optionsOrCb);
3471
+ }
3472
+ else if (typeof cb === "function") {
3473
+ if (typeof optionsOrCb !== "object")
3474
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3475
+ this.send(command, optionsOrCb || {}, cb);
3476
+ }
3477
+ else {
3478
+ return this.send(command, optionsOrCb);
3479
+ }
3480
+ }
3462
3481
  describeFastSnapshotRestores(args, optionsOrCb, cb) {
3463
3482
  const command = new DescribeFastSnapshotRestoresCommand_1.DescribeFastSnapshotRestoresCommand(args);
3464
3483
  if (typeof optionsOrCb === "function") {
@@ -5055,6 +5074,20 @@ class EC2 extends EC2Client_1.EC2Client {
5055
5074
  return this.send(command, optionsOrCb);
5056
5075
  }
5057
5076
  }
5077
+ disableFastLaunch(args, optionsOrCb, cb) {
5078
+ const command = new DisableFastLaunchCommand_1.DisableFastLaunchCommand(args);
5079
+ if (typeof optionsOrCb === "function") {
5080
+ this.send(command, optionsOrCb);
5081
+ }
5082
+ else if (typeof cb === "function") {
5083
+ if (typeof optionsOrCb !== "object")
5084
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
5085
+ this.send(command, optionsOrCb || {}, cb);
5086
+ }
5087
+ else {
5088
+ return this.send(command, optionsOrCb);
5089
+ }
5090
+ }
5058
5091
  disableFastSnapshotRestores(args, optionsOrCb, cb) {
5059
5092
  const command = new DisableFastSnapshotRestoresCommand_1.DisableFastSnapshotRestoresCommand(args);
5060
5093
  if (typeof optionsOrCb === "function") {
@@ -5335,6 +5368,20 @@ class EC2 extends EC2Client_1.EC2Client {
5335
5368
  return this.send(command, optionsOrCb);
5336
5369
  }
5337
5370
  }
5371
+ enableFastLaunch(args, optionsOrCb, cb) {
5372
+ const command = new EnableFastLaunchCommand_1.EnableFastLaunchCommand(args);
5373
+ if (typeof optionsOrCb === "function") {
5374
+ this.send(command, optionsOrCb);
5375
+ }
5376
+ else if (typeof cb === "function") {
5377
+ if (typeof optionsOrCb !== "object")
5378
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
5379
+ this.send(command, optionsOrCb || {}, cb);
5380
+ }
5381
+ else {
5382
+ return this.send(command, optionsOrCb);
5383
+ }
5384
+ }
5338
5385
  enableFastSnapshotRestores(args, optionsOrCb, cb) {
5339
5386
  const command = new EnableFastSnapshotRestoresCommand_1.EnableFastSnapshotRestoresCommand(args);
5340
5387
  if (typeof optionsOrCb === "function") {
@@ -6077,6 +6124,20 @@ class EC2 extends EC2Client_1.EC2Client {
6077
6124
  return this.send(command, optionsOrCb);
6078
6125
  }
6079
6126
  }
6127
+ listImagesInRecycleBin(args, optionsOrCb, cb) {
6128
+ const command = new ListImagesInRecycleBinCommand_1.ListImagesInRecycleBinCommand(args);
6129
+ if (typeof optionsOrCb === "function") {
6130
+ this.send(command, optionsOrCb);
6131
+ }
6132
+ else if (typeof cb === "function") {
6133
+ if (typeof optionsOrCb !== "object")
6134
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
6135
+ this.send(command, optionsOrCb || {}, cb);
6136
+ }
6137
+ else {
6138
+ return this.send(command, optionsOrCb);
6139
+ }
6140
+ }
6080
6141
  listSnapshotsInRecycleBin(args, optionsOrCb, cb) {
6081
6142
  const command = new ListSnapshotsInRecycleBinCommand_1.ListSnapshotsInRecycleBinCommand(args);
6082
6143
  if (typeof optionsOrCb === "function") {
@@ -7393,6 +7454,20 @@ class EC2 extends EC2Client_1.EC2Client {
7393
7454
  return this.send(command, optionsOrCb);
7394
7455
  }
7395
7456
  }
7457
+ restoreImageFromRecycleBin(args, optionsOrCb, cb) {
7458
+ const command = new RestoreImageFromRecycleBinCommand_1.RestoreImageFromRecycleBinCommand(args);
7459
+ if (typeof optionsOrCb === "function") {
7460
+ this.send(command, optionsOrCb);
7461
+ }
7462
+ else if (typeof cb === "function") {
7463
+ if (typeof optionsOrCb !== "object")
7464
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
7465
+ this.send(command, optionsOrCb || {}, cb);
7466
+ }
7467
+ else {
7468
+ return this.send(command, optionsOrCb);
7469
+ }
7470
+ }
7396
7471
  restoreManagedPrefixListVersion(args, optionsOrCb, cb) {
7397
7472
  const command = new RestoreManagedPrefixListVersionCommand_1.RestoreManagedPrefixListVersionCommand(args);
7398
7473
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeFastLaunchImagesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_3_1 = require("../models/models_3");
7
+ const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
+ class DescribeFastLaunchImagesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "EC2Client";
18
+ const commandName = "DescribeFastLaunchImagesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_3_1.DescribeFastLaunchImagesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_3_1.DescribeFastLaunchImagesResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_ec2_1.serializeAws_ec2DescribeFastLaunchImagesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_ec2_1.deserializeAws_ec2DescribeFastLaunchImagesCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeFastLaunchImagesCommand = DescribeFastLaunchImagesCommand;
@@ -4,6 +4,7 @@ exports.DescribeReservedInstancesCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_3_1 = require("../models/models_3");
7
+ const models_4_1 = require("../models/models_4");
7
8
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
9
  class DescribeReservedInstancesCommand extends smithy_client_1.Command {
9
10
  constructor(input) {
@@ -21,7 +22,7 @@ class DescribeReservedInstancesCommand extends smithy_client_1.Command {
21
22
  clientName,
22
23
  commandName,
23
24
  inputFilterSensitiveLog: models_3_1.DescribeReservedInstancesRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_3_1.DescribeReservedInstancesResult.filterSensitiveLog,
25
+ outputFilterSensitiveLog: models_4_1.DescribeReservedInstancesResult.filterSensitiveLog,
25
26
  };
26
27
  const { requestHandler } = configuration;
27
28
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DescribeReservedInstancesListingsCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_3_1 = require("../models/models_3");
6
+ const models_4_1 = require("../models/models_4");
7
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
8
  class DescribeReservedInstancesListingsCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class DescribeReservedInstancesListingsCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_3_1.DescribeReservedInstancesListingsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_3_1.DescribeReservedInstancesListingsResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_4_1.DescribeReservedInstancesListingsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_4_1.DescribeReservedInstancesListingsResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DescribeReservedInstancesModificationsCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_3_1 = require("../models/models_3");
7
6
  const models_4_1 = require("../models/models_4");
8
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
9
8
  class DescribeReservedInstancesModificationsCommand extends smithy_client_1.Command {
@@ -21,7 +20,7 @@ class DescribeReservedInstancesModificationsCommand extends smithy_client_1.Comm
21
20
  logger,
22
21
  clientName,
23
22
  commandName,
24
- inputFilterSensitiveLog: models_3_1.DescribeReservedInstancesModificationsRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_4_1.DescribeReservedInstancesModificationsRequest.filterSensitiveLog,
25
24
  outputFilterSensitiveLog: models_4_1.DescribeReservedInstancesModificationsResult.filterSensitiveLog,
26
25
  };
27
26
  const { requestHandler } = configuration;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisableFastLaunchCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_4_1 = require("../models/models_4");
7
+ const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
+ class DisableFastLaunchCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "EC2Client";
18
+ const commandName = "DisableFastLaunchCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_4_1.DisableFastLaunchRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_4_1.DisableFastLaunchResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_ec2_1.serializeAws_ec2DisableFastLaunchCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_ec2_1.deserializeAws_ec2DisableFastLaunchCommand(output, context);
34
+ }
35
+ }
36
+ exports.DisableFastLaunchCommand = DisableFastLaunchCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EnableFastLaunchCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_4_1 = require("../models/models_4");
7
+ const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
+ class EnableFastLaunchCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "EC2Client";
18
+ const commandName = "EnableFastLaunchCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_4_1.EnableFastLaunchRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_4_1.EnableFastLaunchResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_ec2_1.serializeAws_ec2EnableFastLaunchCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_ec2_1.deserializeAws_ec2EnableFastLaunchCommand(output, context);
34
+ }
35
+ }
36
+ exports.EnableFastLaunchCommand = EnableFastLaunchCommand;
@@ -4,6 +4,7 @@ exports.GetInstanceTypesFromInstanceRequirementsCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_4_1 = require("../models/models_4");
7
+ const models_5_1 = require("../models/models_5");
7
8
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
9
  class GetInstanceTypesFromInstanceRequirementsCommand extends smithy_client_1.Command {
9
10
  constructor(input) {
@@ -21,7 +22,7 @@ class GetInstanceTypesFromInstanceRequirementsCommand extends smithy_client_1.Co
21
22
  clientName,
22
23
  commandName,
23
24
  inputFilterSensitiveLog: models_4_1.GetInstanceTypesFromInstanceRequirementsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_4_1.GetInstanceTypesFromInstanceRequirementsResult.filterSensitiveLog,
25
+ outputFilterSensitiveLog: models_5_1.GetInstanceTypesFromInstanceRequirementsResult.filterSensitiveLog,
25
26
  };
26
27
  const { requestHandler } = configuration;
27
28
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetIpamAddressHistoryCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_4_1 = require("../models/models_4");
6
+ const models_5_1 = require("../models/models_5");
7
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
8
  class GetIpamAddressHistoryCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class GetIpamAddressHistoryCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_4_1.GetIpamAddressHistoryRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_4_1.GetIpamAddressHistoryResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_5_1.GetIpamAddressHistoryRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_5_1.GetIpamAddressHistoryResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetIpamPoolAllocationsCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_4_1 = require("../models/models_4");
6
+ const models_5_1 = require("../models/models_5");
7
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
8
  class GetIpamPoolAllocationsCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class GetIpamPoolAllocationsCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_4_1.GetIpamPoolAllocationsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_4_1.GetIpamPoolAllocationsResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_5_1.GetIpamPoolAllocationsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_5_1.GetIpamPoolAllocationsResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetIpamPoolCidrsCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_4_1 = require("../models/models_4");
6
+ const models_5_1 = require("../models/models_5");
7
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
8
  class GetIpamPoolCidrsCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class GetIpamPoolCidrsCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_4_1.GetIpamPoolCidrsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_4_1.GetIpamPoolCidrsResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_5_1.GetIpamPoolCidrsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_5_1.GetIpamPoolCidrsResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetIpamResourceCidrsCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_4_1 = require("../models/models_4");
7
6
  const models_5_1 = require("../models/models_5");
8
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
9
8
  class GetIpamResourceCidrsCommand extends smithy_client_1.Command {
@@ -21,7 +20,7 @@ class GetIpamResourceCidrsCommand extends smithy_client_1.Command {
21
20
  logger,
22
21
  clientName,
23
22
  commandName,
24
- inputFilterSensitiveLog: models_4_1.GetIpamResourceCidrsRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_5_1.GetIpamResourceCidrsRequest.filterSensitiveLog,
25
24
  outputFilterSensitiveLog: models_5_1.GetIpamResourceCidrsResult.filterSensitiveLog,
26
25
  };
27
26
  const { requestHandler } = configuration;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListImagesInRecycleBinCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_5_1 = require("../models/models_5");
7
+ const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
+ class ListImagesInRecycleBinCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "EC2Client";
18
+ const commandName = "ListImagesInRecycleBinCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_5_1.ListImagesInRecycleBinRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_5_1.ListImagesInRecycleBinResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_ec2_1.serializeAws_ec2ListImagesInRecycleBinCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_ec2_1.deserializeAws_ec2ListImagesInRecycleBinCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListImagesInRecycleBinCommand = ListImagesInRecycleBinCommand;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResetInstanceAttributeCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_5_1 = require("../models/models_5");
6
+ const models_6_1 = require("../models/models_6");
7
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
8
  class ResetInstanceAttributeCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class ResetInstanceAttributeCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_5_1.ResetInstanceAttributeRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_6_1.ResetInstanceAttributeRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResetNetworkInterfaceAttributeCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_5_1 = require("../models/models_5");
6
+ const models_6_1 = require("../models/models_6");
7
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
8
  class ResetNetworkInterfaceAttributeCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class ResetNetworkInterfaceAttributeCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_5_1.ResetNetworkInterfaceAttributeRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_6_1.ResetNetworkInterfaceAttributeRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ResetSnapshotAttributeCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_5_1 = require("../models/models_5");
6
+ const models_6_1 = require("../models/models_6");
7
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
8
  class ResetSnapshotAttributeCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,7 +20,7 @@ class ResetSnapshotAttributeCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_5_1.ResetSnapshotAttributeRequest.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_6_1.ResetSnapshotAttributeRequest.filterSensitiveLog,
24
24
  outputFilterSensitiveLog: (output) => output,
25
25
  };
26
26
  const { requestHandler } = configuration;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RestoreAddressToClassicCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_5_1 = require("../models/models_5");
6
+ const models_6_1 = require("../models/models_6");
7
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
8
  class RestoreAddressToClassicCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class RestoreAddressToClassicCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_5_1.RestoreAddressToClassicRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_5_1.RestoreAddressToClassicResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_6_1.RestoreAddressToClassicRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_6_1.RestoreAddressToClassicResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RestoreImageFromRecycleBinCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_6_1 = require("../models/models_6");
7
+ const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
+ class RestoreImageFromRecycleBinCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "EC2Client";
18
+ const commandName = "RestoreImageFromRecycleBinCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_6_1.RestoreImageFromRecycleBinRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_6_1.RestoreImageFromRecycleBinResult.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_ec2_1.serializeAws_ec2RestoreImageFromRecycleBinCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_ec2_1.deserializeAws_ec2RestoreImageFromRecycleBinCommand(output, context);
34
+ }
35
+ }
36
+ exports.RestoreImageFromRecycleBinCommand = RestoreImageFromRecycleBinCommand;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RestoreManagedPrefixListVersionCommand = void 0;
4
4
  const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
- const models_5_1 = require("../models/models_5");
6
+ const models_6_1 = require("../models/models_6");
7
7
  const Aws_ec2_1 = require("../protocols/Aws_ec2");
8
8
  class RestoreManagedPrefixListVersionCommand extends smithy_client_1.Command {
9
9
  constructor(input) {
@@ -20,8 +20,8 @@ class RestoreManagedPrefixListVersionCommand extends smithy_client_1.Command {
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_5_1.RestoreManagedPrefixListVersionRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_5_1.RestoreManagedPrefixListVersionResult.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_6_1.RestoreManagedPrefixListVersionRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_6_1.RestoreManagedPrefixListVersionResult.filterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);