@aws-sdk/client-rds 3.477.0 → 3.479.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 (185) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/RDS.js +4 -0
  3. package/dist-cjs/commands/DisableHttpEndpointCommand.js +51 -0
  4. package/dist-cjs/commands/EnableHttpEndpointCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_1.js +14 -1
  7. package/dist-cjs/pagination/DescribeBlueGreenDeploymentsPaginator.js +2 -24
  8. package/dist-cjs/pagination/DescribeCertificatesPaginator.js +2 -24
  9. package/dist-cjs/pagination/DescribeDBClusterAutomatedBackupsPaginator.js +2 -24
  10. package/dist-cjs/pagination/DescribeDBClusterBacktracksPaginator.js +2 -24
  11. package/dist-cjs/pagination/DescribeDBClusterEndpointsPaginator.js +2 -24
  12. package/dist-cjs/pagination/DescribeDBClusterParameterGroupsPaginator.js +2 -24
  13. package/dist-cjs/pagination/DescribeDBClusterParametersPaginator.js +2 -24
  14. package/dist-cjs/pagination/DescribeDBClusterSnapshotsPaginator.js +2 -24
  15. package/dist-cjs/pagination/DescribeDBClustersPaginator.js +2 -24
  16. package/dist-cjs/pagination/DescribeDBEngineVersionsPaginator.js +2 -24
  17. package/dist-cjs/pagination/DescribeDBInstanceAutomatedBackupsPaginator.js +2 -24
  18. package/dist-cjs/pagination/DescribeDBInstancesPaginator.js +2 -24
  19. package/dist-cjs/pagination/DescribeDBLogFilesPaginator.js +2 -24
  20. package/dist-cjs/pagination/DescribeDBParameterGroupsPaginator.js +2 -24
  21. package/dist-cjs/pagination/DescribeDBParametersPaginator.js +2 -24
  22. package/dist-cjs/pagination/DescribeDBProxiesPaginator.js +2 -24
  23. package/dist-cjs/pagination/DescribeDBProxyEndpointsPaginator.js +2 -24
  24. package/dist-cjs/pagination/DescribeDBProxyTargetGroupsPaginator.js +2 -24
  25. package/dist-cjs/pagination/DescribeDBProxyTargetsPaginator.js +2 -24
  26. package/dist-cjs/pagination/DescribeDBRecommendationsPaginator.js +2 -24
  27. package/dist-cjs/pagination/DescribeDBSecurityGroupsPaginator.js +2 -24
  28. package/dist-cjs/pagination/DescribeDBSnapshotTenantDatabasesPaginator.js +2 -24
  29. package/dist-cjs/pagination/DescribeDBSnapshotsPaginator.js +2 -24
  30. package/dist-cjs/pagination/DescribeDBSubnetGroupsPaginator.js +2 -24
  31. package/dist-cjs/pagination/DescribeEngineDefaultParametersPaginator.js +2 -24
  32. package/dist-cjs/pagination/DescribeEventSubscriptionsPaginator.js +2 -24
  33. package/dist-cjs/pagination/DescribeEventsPaginator.js +2 -24
  34. package/dist-cjs/pagination/DescribeExportTasksPaginator.js +2 -24
  35. package/dist-cjs/pagination/DescribeGlobalClustersPaginator.js +2 -24
  36. package/dist-cjs/pagination/DescribeIntegrationsPaginator.js +2 -24
  37. package/dist-cjs/pagination/DescribeOptionGroupOptionsPaginator.js +2 -24
  38. package/dist-cjs/pagination/DescribeOptionGroupsPaginator.js +2 -24
  39. package/dist-cjs/pagination/DescribeOrderableDBInstanceOptionsPaginator.js +2 -24
  40. package/dist-cjs/pagination/DescribePendingMaintenanceActionsPaginator.js +2 -24
  41. package/dist-cjs/pagination/DescribeReservedDBInstancesOfferingsPaginator.js +2 -24
  42. package/dist-cjs/pagination/DescribeReservedDBInstancesPaginator.js +2 -24
  43. package/dist-cjs/pagination/DescribeSourceRegionsPaginator.js +2 -24
  44. package/dist-cjs/pagination/DescribeTenantDatabasesPaginator.js +2 -24
  45. package/dist-cjs/pagination/DownloadDBLogFilePortionPaginator.js +2 -24
  46. package/dist-cjs/protocols/Aws_query.js +151 -6
  47. package/dist-es/RDS.js +4 -0
  48. package/dist-es/commands/DisableHttpEndpointCommand.js +47 -0
  49. package/dist-es/commands/EnableHttpEndpointCommand.js +47 -0
  50. package/dist-es/commands/index.js +2 -0
  51. package/dist-es/models/models_1.js +12 -0
  52. package/dist-es/pagination/DescribeBlueGreenDeploymentsPaginator.js +2 -23
  53. package/dist-es/pagination/DescribeCertificatesPaginator.js +2 -23
  54. package/dist-es/pagination/DescribeDBClusterAutomatedBackupsPaginator.js +2 -23
  55. package/dist-es/pagination/DescribeDBClusterBacktracksPaginator.js +2 -23
  56. package/dist-es/pagination/DescribeDBClusterEndpointsPaginator.js +2 -23
  57. package/dist-es/pagination/DescribeDBClusterParameterGroupsPaginator.js +2 -23
  58. package/dist-es/pagination/DescribeDBClusterParametersPaginator.js +2 -23
  59. package/dist-es/pagination/DescribeDBClusterSnapshotsPaginator.js +2 -23
  60. package/dist-es/pagination/DescribeDBClustersPaginator.js +2 -23
  61. package/dist-es/pagination/DescribeDBEngineVersionsPaginator.js +2 -23
  62. package/dist-es/pagination/DescribeDBInstanceAutomatedBackupsPaginator.js +2 -23
  63. package/dist-es/pagination/DescribeDBInstancesPaginator.js +2 -23
  64. package/dist-es/pagination/DescribeDBLogFilesPaginator.js +2 -23
  65. package/dist-es/pagination/DescribeDBParameterGroupsPaginator.js +2 -23
  66. package/dist-es/pagination/DescribeDBParametersPaginator.js +2 -23
  67. package/dist-es/pagination/DescribeDBProxiesPaginator.js +2 -23
  68. package/dist-es/pagination/DescribeDBProxyEndpointsPaginator.js +2 -23
  69. package/dist-es/pagination/DescribeDBProxyTargetGroupsPaginator.js +2 -23
  70. package/dist-es/pagination/DescribeDBProxyTargetsPaginator.js +2 -23
  71. package/dist-es/pagination/DescribeDBRecommendationsPaginator.js +2 -23
  72. package/dist-es/pagination/DescribeDBSecurityGroupsPaginator.js +2 -23
  73. package/dist-es/pagination/DescribeDBSnapshotTenantDatabasesPaginator.js +2 -23
  74. package/dist-es/pagination/DescribeDBSnapshotsPaginator.js +2 -23
  75. package/dist-es/pagination/DescribeDBSubnetGroupsPaginator.js +2 -23
  76. package/dist-es/pagination/DescribeEngineDefaultParametersPaginator.js +2 -23
  77. package/dist-es/pagination/DescribeEventSubscriptionsPaginator.js +2 -23
  78. package/dist-es/pagination/DescribeEventsPaginator.js +2 -23
  79. package/dist-es/pagination/DescribeExportTasksPaginator.js +2 -23
  80. package/dist-es/pagination/DescribeGlobalClustersPaginator.js +2 -23
  81. package/dist-es/pagination/DescribeIntegrationsPaginator.js +2 -23
  82. package/dist-es/pagination/DescribeOptionGroupOptionsPaginator.js +2 -23
  83. package/dist-es/pagination/DescribeOptionGroupsPaginator.js +2 -23
  84. package/dist-es/pagination/DescribeOrderableDBInstanceOptionsPaginator.js +2 -23
  85. package/dist-es/pagination/DescribePendingMaintenanceActionsPaginator.js +2 -23
  86. package/dist-es/pagination/DescribeReservedDBInstancesOfferingsPaginator.js +2 -23
  87. package/dist-es/pagination/DescribeReservedDBInstancesPaginator.js +2 -23
  88. package/dist-es/pagination/DescribeSourceRegionsPaginator.js +2 -23
  89. package/dist-es/pagination/DescribeTenantDatabasesPaginator.js +2 -23
  90. package/dist-es/pagination/DownloadDBLogFilePortionPaginator.js +2 -23
  91. package/dist-es/protocols/Aws_query.js +142 -1
  92. package/dist-types/RDS.d.ts +14 -0
  93. package/dist-types/RDSClient.d.ts +4 -2
  94. package/dist-types/commands/DisableHttpEndpointCommand.d.ts +86 -0
  95. package/dist-types/commands/EnableHttpEndpointCommand.d.ts +90 -0
  96. package/dist-types/commands/index.d.ts +2 -0
  97. package/dist-types/models/models_0.d.ts +20 -11
  98. package/dist-types/models/models_1.d.ts +70 -4
  99. package/dist-types/pagination/DescribeBlueGreenDeploymentsPaginator.d.ts +1 -1
  100. package/dist-types/pagination/DescribeCertificatesPaginator.d.ts +1 -1
  101. package/dist-types/pagination/DescribeDBClusterAutomatedBackupsPaginator.d.ts +1 -1
  102. package/dist-types/pagination/DescribeDBClusterBacktracksPaginator.d.ts +1 -1
  103. package/dist-types/pagination/DescribeDBClusterEndpointsPaginator.d.ts +1 -1
  104. package/dist-types/pagination/DescribeDBClusterParameterGroupsPaginator.d.ts +1 -1
  105. package/dist-types/pagination/DescribeDBClusterParametersPaginator.d.ts +1 -1
  106. package/dist-types/pagination/DescribeDBClusterSnapshotsPaginator.d.ts +1 -1
  107. package/dist-types/pagination/DescribeDBClustersPaginator.d.ts +1 -1
  108. package/dist-types/pagination/DescribeDBEngineVersionsPaginator.d.ts +1 -1
  109. package/dist-types/pagination/DescribeDBInstanceAutomatedBackupsPaginator.d.ts +1 -1
  110. package/dist-types/pagination/DescribeDBInstancesPaginator.d.ts +1 -1
  111. package/dist-types/pagination/DescribeDBLogFilesPaginator.d.ts +1 -1
  112. package/dist-types/pagination/DescribeDBParameterGroupsPaginator.d.ts +1 -1
  113. package/dist-types/pagination/DescribeDBParametersPaginator.d.ts +1 -1
  114. package/dist-types/pagination/DescribeDBProxiesPaginator.d.ts +1 -1
  115. package/dist-types/pagination/DescribeDBProxyEndpointsPaginator.d.ts +1 -1
  116. package/dist-types/pagination/DescribeDBProxyTargetGroupsPaginator.d.ts +1 -1
  117. package/dist-types/pagination/DescribeDBProxyTargetsPaginator.d.ts +1 -1
  118. package/dist-types/pagination/DescribeDBRecommendationsPaginator.d.ts +1 -1
  119. package/dist-types/pagination/DescribeDBSecurityGroupsPaginator.d.ts +1 -1
  120. package/dist-types/pagination/DescribeDBSnapshotTenantDatabasesPaginator.d.ts +1 -1
  121. package/dist-types/pagination/DescribeDBSnapshotsPaginator.d.ts +1 -1
  122. package/dist-types/pagination/DescribeDBSubnetGroupsPaginator.d.ts +1 -1
  123. package/dist-types/pagination/DescribeEngineDefaultParametersPaginator.d.ts +1 -1
  124. package/dist-types/pagination/DescribeEventSubscriptionsPaginator.d.ts +1 -1
  125. package/dist-types/pagination/DescribeEventsPaginator.d.ts +1 -1
  126. package/dist-types/pagination/DescribeExportTasksPaginator.d.ts +1 -1
  127. package/dist-types/pagination/DescribeGlobalClustersPaginator.d.ts +1 -1
  128. package/dist-types/pagination/DescribeIntegrationsPaginator.d.ts +1 -1
  129. package/dist-types/pagination/DescribeOptionGroupOptionsPaginator.d.ts +1 -1
  130. package/dist-types/pagination/DescribeOptionGroupsPaginator.d.ts +1 -1
  131. package/dist-types/pagination/DescribeOrderableDBInstanceOptionsPaginator.d.ts +1 -1
  132. package/dist-types/pagination/DescribePendingMaintenanceActionsPaginator.d.ts +1 -1
  133. package/dist-types/pagination/DescribeReservedDBInstancesOfferingsPaginator.d.ts +1 -1
  134. package/dist-types/pagination/DescribeReservedDBInstancesPaginator.d.ts +1 -1
  135. package/dist-types/pagination/DescribeSourceRegionsPaginator.d.ts +1 -1
  136. package/dist-types/pagination/DescribeTenantDatabasesPaginator.d.ts +1 -1
  137. package/dist-types/pagination/DownloadDBLogFilePortionPaginator.d.ts +1 -1
  138. package/dist-types/protocols/Aws_query.d.ts +18 -0
  139. package/dist-types/ts3.4/RDS.d.ts +34 -0
  140. package/dist-types/ts3.4/RDSClient.d.ts +12 -0
  141. package/dist-types/ts3.4/commands/DisableHttpEndpointCommand.d.ts +39 -0
  142. package/dist-types/ts3.4/commands/EnableHttpEndpointCommand.d.ts +39 -0
  143. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  144. package/dist-types/ts3.4/models/models_1.d.ts +21 -0
  145. package/dist-types/ts3.4/pagination/DescribeBlueGreenDeploymentsPaginator.d.ts +3 -3
  146. package/dist-types/ts3.4/pagination/DescribeCertificatesPaginator.d.ts +3 -3
  147. package/dist-types/ts3.4/pagination/DescribeDBClusterAutomatedBackupsPaginator.d.ts +3 -3
  148. package/dist-types/ts3.4/pagination/DescribeDBClusterBacktracksPaginator.d.ts +3 -3
  149. package/dist-types/ts3.4/pagination/DescribeDBClusterEndpointsPaginator.d.ts +3 -3
  150. package/dist-types/ts3.4/pagination/DescribeDBClusterParameterGroupsPaginator.d.ts +3 -3
  151. package/dist-types/ts3.4/pagination/DescribeDBClusterParametersPaginator.d.ts +3 -3
  152. package/dist-types/ts3.4/pagination/DescribeDBClusterSnapshotsPaginator.d.ts +3 -3
  153. package/dist-types/ts3.4/pagination/DescribeDBClustersPaginator.d.ts +3 -3
  154. package/dist-types/ts3.4/pagination/DescribeDBEngineVersionsPaginator.d.ts +3 -3
  155. package/dist-types/ts3.4/pagination/DescribeDBInstanceAutomatedBackupsPaginator.d.ts +3 -3
  156. package/dist-types/ts3.4/pagination/DescribeDBInstancesPaginator.d.ts +3 -3
  157. package/dist-types/ts3.4/pagination/DescribeDBLogFilesPaginator.d.ts +3 -3
  158. package/dist-types/ts3.4/pagination/DescribeDBParameterGroupsPaginator.d.ts +3 -3
  159. package/dist-types/ts3.4/pagination/DescribeDBParametersPaginator.d.ts +3 -3
  160. package/dist-types/ts3.4/pagination/DescribeDBProxiesPaginator.d.ts +3 -3
  161. package/dist-types/ts3.4/pagination/DescribeDBProxyEndpointsPaginator.d.ts +3 -3
  162. package/dist-types/ts3.4/pagination/DescribeDBProxyTargetGroupsPaginator.d.ts +3 -3
  163. package/dist-types/ts3.4/pagination/DescribeDBProxyTargetsPaginator.d.ts +3 -3
  164. package/dist-types/ts3.4/pagination/DescribeDBRecommendationsPaginator.d.ts +3 -3
  165. package/dist-types/ts3.4/pagination/DescribeDBSecurityGroupsPaginator.d.ts +3 -3
  166. package/dist-types/ts3.4/pagination/DescribeDBSnapshotTenantDatabasesPaginator.d.ts +3 -3
  167. package/dist-types/ts3.4/pagination/DescribeDBSnapshotsPaginator.d.ts +3 -3
  168. package/dist-types/ts3.4/pagination/DescribeDBSubnetGroupsPaginator.d.ts +3 -3
  169. package/dist-types/ts3.4/pagination/DescribeEngineDefaultParametersPaginator.d.ts +3 -3
  170. package/dist-types/ts3.4/pagination/DescribeEventSubscriptionsPaginator.d.ts +3 -3
  171. package/dist-types/ts3.4/pagination/DescribeEventsPaginator.d.ts +3 -3
  172. package/dist-types/ts3.4/pagination/DescribeExportTasksPaginator.d.ts +3 -3
  173. package/dist-types/ts3.4/pagination/DescribeGlobalClustersPaginator.d.ts +3 -3
  174. package/dist-types/ts3.4/pagination/DescribeIntegrationsPaginator.d.ts +3 -3
  175. package/dist-types/ts3.4/pagination/DescribeOptionGroupOptionsPaginator.d.ts +3 -3
  176. package/dist-types/ts3.4/pagination/DescribeOptionGroupsPaginator.d.ts +3 -3
  177. package/dist-types/ts3.4/pagination/DescribeOrderableDBInstanceOptionsPaginator.d.ts +3 -3
  178. package/dist-types/ts3.4/pagination/DescribePendingMaintenanceActionsPaginator.d.ts +3 -3
  179. package/dist-types/ts3.4/pagination/DescribeReservedDBInstancesOfferingsPaginator.d.ts +3 -3
  180. package/dist-types/ts3.4/pagination/DescribeReservedDBInstancesPaginator.d.ts +3 -3
  181. package/dist-types/ts3.4/pagination/DescribeSourceRegionsPaginator.d.ts +3 -3
  182. package/dist-types/ts3.4/pagination/DescribeTenantDatabasesPaginator.d.ts +3 -3
  183. package/dist-types/ts3.4/pagination/DownloadDBLogFilePortionPaginator.d.ts +3 -3
  184. package/dist-types/ts3.4/protocols/Aws_query.d.ts +24 -0
  185. package/package.json +6 -5
package/README.md CHANGED
@@ -1031,6 +1031,14 @@ DescribeValidDBInstanceModifications
1031
1031
 
1032
1032
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rds/command/DescribeValidDBInstanceModificationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/DescribeValidDBInstanceModificationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/DescribeValidDBInstanceModificationsCommandOutput/)
1033
1033
 
1034
+ </details>
1035
+ <details>
1036
+ <summary>
1037
+ DisableHttpEndpoint
1038
+ </summary>
1039
+
1040
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rds/command/DisableHttpEndpointCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/DisableHttpEndpointCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/DisableHttpEndpointCommandOutput/)
1041
+
1034
1042
  </details>
1035
1043
  <details>
1036
1044
  <summary>
@@ -1039,6 +1047,14 @@ DownloadDBLogFilePortion
1039
1047
 
1040
1048
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rds/command/DownloadDBLogFilePortionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/DownloadDBLogFilePortionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/DownloadDBLogFilePortionCommandOutput/)
1041
1049
 
1050
+ </details>
1051
+ <details>
1052
+ <summary>
1053
+ EnableHttpEndpoint
1054
+ </summary>
1055
+
1056
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/rds/command/EnableHttpEndpointCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/EnableHttpEndpointCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-rds/Interface/EnableHttpEndpointCommandOutput/)
1057
+
1042
1058
  </details>
1043
1059
  <details>
1044
1060
  <summary>
package/dist-cjs/RDS.js CHANGED
@@ -99,7 +99,9 @@ const DescribeReservedDBInstancesOfferingsCommand_1 = require("./commands/Descri
99
99
  const DescribeSourceRegionsCommand_1 = require("./commands/DescribeSourceRegionsCommand");
100
100
  const DescribeTenantDatabasesCommand_1 = require("./commands/DescribeTenantDatabasesCommand");
101
101
  const DescribeValidDBInstanceModificationsCommand_1 = require("./commands/DescribeValidDBInstanceModificationsCommand");
102
+ const DisableHttpEndpointCommand_1 = require("./commands/DisableHttpEndpointCommand");
102
103
  const DownloadDBLogFilePortionCommand_1 = require("./commands/DownloadDBLogFilePortionCommand");
104
+ const EnableHttpEndpointCommand_1 = require("./commands/EnableHttpEndpointCommand");
103
105
  const FailoverDBClusterCommand_1 = require("./commands/FailoverDBClusterCommand");
104
106
  const FailoverGlobalClusterCommand_1 = require("./commands/FailoverGlobalClusterCommand");
105
107
  const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
@@ -255,7 +257,9 @@ const commands = {
255
257
  DescribeSourceRegionsCommand: DescribeSourceRegionsCommand_1.DescribeSourceRegionsCommand,
256
258
  DescribeTenantDatabasesCommand: DescribeTenantDatabasesCommand_1.DescribeTenantDatabasesCommand,
257
259
  DescribeValidDBInstanceModificationsCommand: DescribeValidDBInstanceModificationsCommand_1.DescribeValidDBInstanceModificationsCommand,
260
+ DisableHttpEndpointCommand: DisableHttpEndpointCommand_1.DisableHttpEndpointCommand,
258
261
  DownloadDBLogFilePortionCommand: DownloadDBLogFilePortionCommand_1.DownloadDBLogFilePortionCommand,
262
+ EnableHttpEndpointCommand: EnableHttpEndpointCommand_1.EnableHttpEndpointCommand,
259
263
  FailoverDBClusterCommand: FailoverDBClusterCommand_1.FailoverDBClusterCommand,
260
264
  FailoverGlobalClusterCommand: FailoverGlobalClusterCommand_1.FailoverGlobalClusterCommand,
261
265
  ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DisableHttpEndpointCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_query_1 = require("../protocols/Aws_query");
10
+ class DisableHttpEndpointCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DisableHttpEndpointCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "RDSClient";
29
+ const commandName = "DisableHttpEndpointCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AmazonRDSv19",
38
+ operation: "DisableHttpEndpoint",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_query_1.se_DisableHttpEndpointCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_query_1.de_DisableHttpEndpointCommand)(output, context);
49
+ }
50
+ }
51
+ exports.DisableHttpEndpointCommand = DisableHttpEndpointCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EnableHttpEndpointCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_query_1 = require("../protocols/Aws_query");
10
+ class EnableHttpEndpointCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, EnableHttpEndpointCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "RDSClient";
29
+ const commandName = "EnableHttpEndpointCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AmazonRDSv19",
38
+ operation: "EnableHttpEndpoint",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_query_1.se_EnableHttpEndpointCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_query_1.de_EnableHttpEndpointCommand)(output, context);
49
+ }
50
+ }
51
+ exports.EnableHttpEndpointCommand = EnableHttpEndpointCommand;
@@ -98,7 +98,9 @@ tslib_1.__exportStar(require("./DescribeReservedDBInstancesOfferingsCommand"), e
98
98
  tslib_1.__exportStar(require("./DescribeSourceRegionsCommand"), exports);
99
99
  tslib_1.__exportStar(require("./DescribeTenantDatabasesCommand"), exports);
100
100
  tslib_1.__exportStar(require("./DescribeValidDBInstanceModificationsCommand"), exports);
101
+ tslib_1.__exportStar(require("./DisableHttpEndpointCommand"), exports);
101
102
  tslib_1.__exportStar(require("./DownloadDBLogFilePortionCommand"), exports);
103
+ tslib_1.__exportStar(require("./EnableHttpEndpointCommand"), exports);
102
104
  tslib_1.__exportStar(require("./FailoverDBClusterCommand"), exports);
103
105
  tslib_1.__exportStar(require("./FailoverGlobalClusterCommand"), exports);
104
106
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ModifyTenantDatabaseResultFilterSensitiveLog = exports.ModifyTenantDatabaseMessageFilterSensitiveLog = exports.TenantDatabasesMessageFilterSensitiveLog = exports.InvalidExportSourceStateFault = exports.InvalidExportOnlyFault = exports.IamRoleNotFoundFault = exports.IamRoleMissingPermissionsFault = exports.ExportTaskAlreadyExistsFault = exports.PointInTimeRestoreNotEnabledFault = exports.InvalidRestoreFault = exports.InsufficientDBClusterCapacityFault = exports.InvalidS3BucketFault = exports.DBInstanceRoleNotFoundFault = exports.DBClusterRoleNotFoundFault = exports.InsufficientAvailableIPsInSubnetFault = exports.DBProxyTargetAlreadyRegisteredFault = exports.ReservedDBInstanceQuotaExceededFault = exports.ReservedDBInstanceAlreadyExistsFault = exports.SubnetAlreadyInUse = exports.DBUpgradeDependencyFailureFault = exports.SharedSnapshotQuotaExceededFault = exports.StorageTypeNotAvailableFault = exports.CustomEngineVersionStatus = exports.InvalidDBClusterCapacityFault = exports.AuditPolicyState = exports.DBLogFileNotFoundFault = exports.ReservedDBInstancesOfferingNotFoundFault = exports.ReservedDBInstanceNotFoundFault = exports.SourceType = exports.TargetType = exports.TargetState = exports.TargetHealthReason = exports.TargetRole = exports.ApplyMethod = exports.DBClusterBacktrackNotFoundFault = void 0;
3
+ exports.ModifyTenantDatabaseResultFilterSensitiveLog = exports.ModifyTenantDatabaseMessageFilterSensitiveLog = exports.TenantDatabasesMessageFilterSensitiveLog = exports.InvalidExportSourceStateFault = exports.InvalidExportOnlyFault = exports.IamRoleNotFoundFault = exports.IamRoleMissingPermissionsFault = exports.ExportTaskAlreadyExistsFault = exports.PointInTimeRestoreNotEnabledFault = exports.InvalidRestoreFault = exports.InsufficientDBClusterCapacityFault = exports.InvalidS3BucketFault = exports.DBInstanceRoleNotFoundFault = exports.DBClusterRoleNotFoundFault = exports.InsufficientAvailableIPsInSubnetFault = exports.DBProxyTargetAlreadyRegisteredFault = exports.ReservedDBInstanceQuotaExceededFault = exports.ReservedDBInstanceAlreadyExistsFault = exports.SubnetAlreadyInUse = exports.DBUpgradeDependencyFailureFault = exports.SharedSnapshotQuotaExceededFault = exports.StorageTypeNotAvailableFault = exports.CustomEngineVersionStatus = exports.InvalidDBClusterCapacityFault = exports.AuditPolicyState = exports.DBLogFileNotFoundFault = exports.InvalidResourceStateFault = exports.ReservedDBInstancesOfferingNotFoundFault = exports.ReservedDBInstanceNotFoundFault = exports.SourceType = exports.TargetType = exports.TargetState = exports.TargetHealthReason = exports.TargetRole = exports.ApplyMethod = exports.DBClusterBacktrackNotFoundFault = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const models_0_1 = require("./models_0");
6
6
  const RDSServiceException_1 = require("./RDSServiceException");
@@ -80,6 +80,19 @@ class ReservedDBInstancesOfferingNotFoundFault extends RDSServiceException_1.RDS
80
80
  }
81
81
  }
82
82
  exports.ReservedDBInstancesOfferingNotFoundFault = ReservedDBInstancesOfferingNotFoundFault;
83
+ class InvalidResourceStateFault extends RDSServiceException_1.RDSServiceException {
84
+ constructor(opts) {
85
+ super({
86
+ name: "InvalidResourceStateFault",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ this.name = "InvalidResourceStateFault";
91
+ this.$fault = "client";
92
+ Object.setPrototypeOf(this, InvalidResourceStateFault.prototype);
93
+ }
94
+ }
95
+ exports.InvalidResourceStateFault = InvalidResourceStateFault;
83
96
  class DBLogFileNotFoundFault extends RDSServiceException_1.RDSServiceException {
84
97
  constructor(opts) {
85
98
  super({
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeBlueGreenDeployments = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeBlueGreenDeploymentsCommand_1 = require("../commands/DescribeBlueGreenDeploymentsCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeBlueGreenDeploymentsCommand_1.DescribeBlueGreenDeploymentsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeBlueGreenDeployments(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeBlueGreenDeployments = paginateDescribeBlueGreenDeployments;
7
+ exports.paginateDescribeBlueGreenDeployments = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeBlueGreenDeploymentsCommand_1.DescribeBlueGreenDeploymentsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeCertificates = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeCertificatesCommand_1 = require("../commands/DescribeCertificatesCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeCertificatesCommand_1.DescribeCertificatesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeCertificates(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeCertificates = paginateDescribeCertificates;
7
+ exports.paginateDescribeCertificates = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeCertificatesCommand_1.DescribeCertificatesCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBClusterAutomatedBackups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBClusterAutomatedBackupsCommand_1 = require("../commands/DescribeDBClusterAutomatedBackupsCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBClusterAutomatedBackupsCommand_1.DescribeDBClusterAutomatedBackupsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBClusterAutomatedBackups(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBClusterAutomatedBackups = paginateDescribeDBClusterAutomatedBackups;
7
+ exports.paginateDescribeDBClusterAutomatedBackups = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBClusterAutomatedBackupsCommand_1.DescribeDBClusterAutomatedBackupsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBClusterBacktracks = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBClusterBacktracksCommand_1 = require("../commands/DescribeDBClusterBacktracksCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBClusterBacktracksCommand_1.DescribeDBClusterBacktracksCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBClusterBacktracks(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBClusterBacktracks = paginateDescribeDBClusterBacktracks;
7
+ exports.paginateDescribeDBClusterBacktracks = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBClusterBacktracksCommand_1.DescribeDBClusterBacktracksCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBClusterEndpoints = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBClusterEndpointsCommand_1 = require("../commands/DescribeDBClusterEndpointsCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBClusterEndpointsCommand_1.DescribeDBClusterEndpointsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBClusterEndpoints(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBClusterEndpoints = paginateDescribeDBClusterEndpoints;
7
+ exports.paginateDescribeDBClusterEndpoints = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBClusterEndpointsCommand_1.DescribeDBClusterEndpointsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBClusterParameterGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBClusterParameterGroupsCommand_1 = require("../commands/DescribeDBClusterParameterGroupsCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBClusterParameterGroupsCommand_1.DescribeDBClusterParameterGroupsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBClusterParameterGroups(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBClusterParameterGroups = paginateDescribeDBClusterParameterGroups;
7
+ exports.paginateDescribeDBClusterParameterGroups = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBClusterParameterGroupsCommand_1.DescribeDBClusterParameterGroupsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBClusterParameters = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBClusterParametersCommand_1 = require("../commands/DescribeDBClusterParametersCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBClusterParametersCommand_1.DescribeDBClusterParametersCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBClusterParameters(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBClusterParameters = paginateDescribeDBClusterParameters;
7
+ exports.paginateDescribeDBClusterParameters = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBClusterParametersCommand_1.DescribeDBClusterParametersCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBClusterSnapshots = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBClusterSnapshotsCommand_1 = require("../commands/DescribeDBClusterSnapshotsCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBClusterSnapshotsCommand_1.DescribeDBClusterSnapshotsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBClusterSnapshots(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBClusterSnapshots = paginateDescribeDBClusterSnapshots;
7
+ exports.paginateDescribeDBClusterSnapshots = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBClusterSnapshotsCommand_1.DescribeDBClusterSnapshotsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBClusters = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBClustersCommand_1 = require("../commands/DescribeDBClustersCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBClustersCommand_1.DescribeDBClustersCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBClusters(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBClusters = paginateDescribeDBClusters;
7
+ exports.paginateDescribeDBClusters = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBClustersCommand_1.DescribeDBClustersCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBEngineVersions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBEngineVersionsCommand_1 = require("../commands/DescribeDBEngineVersionsCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBEngineVersionsCommand_1.DescribeDBEngineVersionsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBEngineVersions(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBEngineVersions = paginateDescribeDBEngineVersions;
7
+ exports.paginateDescribeDBEngineVersions = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBEngineVersionsCommand_1.DescribeDBEngineVersionsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBInstanceAutomatedBackups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBInstanceAutomatedBackupsCommand_1 = require("../commands/DescribeDBInstanceAutomatedBackupsCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBInstanceAutomatedBackupsCommand_1.DescribeDBInstanceAutomatedBackupsCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBInstanceAutomatedBackups(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBInstanceAutomatedBackups = paginateDescribeDBInstanceAutomatedBackups;
7
+ exports.paginateDescribeDBInstanceAutomatedBackups = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBInstanceAutomatedBackupsCommand_1.DescribeDBInstanceAutomatedBackupsCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBInstances = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBInstancesCommand_1 = require("../commands/DescribeDBInstancesCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBInstancesCommand_1.DescribeDBInstancesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBInstances(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBInstances = paginateDescribeDBInstances;
7
+ exports.paginateDescribeDBInstances = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBInstancesCommand_1.DescribeDBInstancesCommand, "Marker", "Marker", "MaxRecords");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeDBLogFiles = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeDBLogFilesCommand_1 = require("../commands/DescribeDBLogFilesCommand");
5
6
  const RDSClient_1 = require("../RDSClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeDBLogFilesCommand_1.DescribeDBLogFilesCommand(input), ...args);
8
- };
9
- async function* paginateDescribeDBLogFiles(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxRecords"] = config.pageSize;
16
- if (config.client instanceof RDSClient_1.RDSClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected RDS | RDSClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.Marker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateDescribeDBLogFiles = paginateDescribeDBLogFiles;
7
+ exports.paginateDescribeDBLogFiles = (0, core_1.createPaginator)(RDSClient_1.RDSClient, DescribeDBLogFilesCommand_1.DescribeDBLogFilesCommand, "Marker", "Marker", "MaxRecords");