@aws-sdk/client-devops-guru 3.477.0 → 3.481.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/dist-cjs/commands/AddNotificationChannelCommand.js +18 -41
  2. package/dist-cjs/commands/DeleteInsightCommand.js +18 -41
  3. package/dist-cjs/commands/DescribeAccountHealthCommand.js +18 -41
  4. package/dist-cjs/commands/DescribeAccountOverviewCommand.js +18 -41
  5. package/dist-cjs/commands/DescribeAnomalyCommand.js +18 -41
  6. package/dist-cjs/commands/DescribeEventSourcesConfigCommand.js +18 -41
  7. package/dist-cjs/commands/DescribeFeedbackCommand.js +18 -41
  8. package/dist-cjs/commands/DescribeInsightCommand.js +18 -41
  9. package/dist-cjs/commands/DescribeOrganizationHealthCommand.js +18 -41
  10. package/dist-cjs/commands/DescribeOrganizationOverviewCommand.js +18 -41
  11. package/dist-cjs/commands/DescribeOrganizationResourceCollectionHealthCommand.js +18 -41
  12. package/dist-cjs/commands/DescribeResourceCollectionHealthCommand.js +18 -41
  13. package/dist-cjs/commands/DescribeServiceIntegrationCommand.js +18 -41
  14. package/dist-cjs/commands/GetCostEstimationCommand.js +18 -41
  15. package/dist-cjs/commands/GetResourceCollectionCommand.js +18 -41
  16. package/dist-cjs/commands/ListAnomaliesForInsightCommand.js +18 -41
  17. package/dist-cjs/commands/ListAnomalousLogGroupsCommand.js +18 -41
  18. package/dist-cjs/commands/ListEventsCommand.js +18 -41
  19. package/dist-cjs/commands/ListInsightsCommand.js +18 -41
  20. package/dist-cjs/commands/ListMonitoredResourcesCommand.js +18 -41
  21. package/dist-cjs/commands/ListNotificationChannelsCommand.js +18 -41
  22. package/dist-cjs/commands/ListOrganizationInsightsCommand.js +18 -41
  23. package/dist-cjs/commands/ListRecommendationsCommand.js +18 -41
  24. package/dist-cjs/commands/PutFeedbackCommand.js +18 -41
  25. package/dist-cjs/commands/RemoveNotificationChannelCommand.js +18 -41
  26. package/dist-cjs/commands/SearchInsightsCommand.js +18 -41
  27. package/dist-cjs/commands/SearchOrganizationInsightsCommand.js +18 -41
  28. package/dist-cjs/commands/StartCostEstimationCommand.js +18 -41
  29. package/dist-cjs/commands/UpdateEventSourcesConfigCommand.js +18 -41
  30. package/dist-cjs/commands/UpdateResourceCollectionCommand.js +18 -41
  31. package/dist-cjs/commands/UpdateServiceIntegrationCommand.js +18 -41
  32. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  33. package/dist-cjs/pagination/DescribeOrganizationResourceCollectionHealthPaginator.js +2 -23
  34. package/dist-cjs/pagination/DescribeResourceCollectionHealthPaginator.js +2 -23
  35. package/dist-cjs/pagination/GetCostEstimationPaginator.js +2 -23
  36. package/dist-cjs/pagination/GetResourceCollectionPaginator.js +2 -23
  37. package/dist-cjs/pagination/ListAnomaliesForInsightPaginator.js +2 -24
  38. package/dist-cjs/pagination/ListAnomalousLogGroupsPaginator.js +2 -24
  39. package/dist-cjs/pagination/ListEventsPaginator.js +2 -24
  40. package/dist-cjs/pagination/ListInsightsPaginator.js +2 -24
  41. package/dist-cjs/pagination/ListMonitoredResourcesPaginator.js +2 -24
  42. package/dist-cjs/pagination/ListNotificationChannelsPaginator.js +2 -23
  43. package/dist-cjs/pagination/ListOrganizationInsightsPaginator.js +2 -24
  44. package/dist-cjs/pagination/ListRecommendationsPaginator.js +2 -23
  45. package/dist-cjs/pagination/SearchInsightsPaginator.js +2 -24
  46. package/dist-cjs/pagination/SearchOrganizationInsightsPaginator.js +2 -24
  47. package/dist-es/commands/AddNotificationChannelCommand.js +18 -41
  48. package/dist-es/commands/DeleteInsightCommand.js +18 -41
  49. package/dist-es/commands/DescribeAccountHealthCommand.js +18 -41
  50. package/dist-es/commands/DescribeAccountOverviewCommand.js +18 -41
  51. package/dist-es/commands/DescribeAnomalyCommand.js +18 -41
  52. package/dist-es/commands/DescribeEventSourcesConfigCommand.js +18 -41
  53. package/dist-es/commands/DescribeFeedbackCommand.js +18 -41
  54. package/dist-es/commands/DescribeInsightCommand.js +18 -41
  55. package/dist-es/commands/DescribeOrganizationHealthCommand.js +18 -41
  56. package/dist-es/commands/DescribeOrganizationOverviewCommand.js +18 -41
  57. package/dist-es/commands/DescribeOrganizationResourceCollectionHealthCommand.js +18 -41
  58. package/dist-es/commands/DescribeResourceCollectionHealthCommand.js +18 -41
  59. package/dist-es/commands/DescribeServiceIntegrationCommand.js +18 -41
  60. package/dist-es/commands/GetCostEstimationCommand.js +18 -41
  61. package/dist-es/commands/GetResourceCollectionCommand.js +18 -41
  62. package/dist-es/commands/ListAnomaliesForInsightCommand.js +18 -41
  63. package/dist-es/commands/ListAnomalousLogGroupsCommand.js +18 -41
  64. package/dist-es/commands/ListEventsCommand.js +18 -41
  65. package/dist-es/commands/ListInsightsCommand.js +18 -41
  66. package/dist-es/commands/ListMonitoredResourcesCommand.js +18 -41
  67. package/dist-es/commands/ListNotificationChannelsCommand.js +18 -41
  68. package/dist-es/commands/ListOrganizationInsightsCommand.js +18 -41
  69. package/dist-es/commands/ListRecommendationsCommand.js +18 -41
  70. package/dist-es/commands/PutFeedbackCommand.js +18 -41
  71. package/dist-es/commands/RemoveNotificationChannelCommand.js +18 -41
  72. package/dist-es/commands/SearchInsightsCommand.js +18 -41
  73. package/dist-es/commands/SearchOrganizationInsightsCommand.js +18 -41
  74. package/dist-es/commands/StartCostEstimationCommand.js +18 -41
  75. package/dist-es/commands/UpdateEventSourcesConfigCommand.js +18 -41
  76. package/dist-es/commands/UpdateResourceCollectionCommand.js +18 -41
  77. package/dist-es/commands/UpdateServiceIntegrationCommand.js +18 -41
  78. package/dist-es/endpoint/EndpointParameters.js +6 -0
  79. package/dist-es/pagination/DescribeOrganizationResourceCollectionHealthPaginator.js +2 -22
  80. package/dist-es/pagination/DescribeResourceCollectionHealthPaginator.js +2 -22
  81. package/dist-es/pagination/GetCostEstimationPaginator.js +2 -22
  82. package/dist-es/pagination/GetResourceCollectionPaginator.js +2 -22
  83. package/dist-es/pagination/ListAnomaliesForInsightPaginator.js +2 -23
  84. package/dist-es/pagination/ListAnomalousLogGroupsPaginator.js +2 -23
  85. package/dist-es/pagination/ListEventsPaginator.js +2 -23
  86. package/dist-es/pagination/ListInsightsPaginator.js +2 -23
  87. package/dist-es/pagination/ListMonitoredResourcesPaginator.js +2 -23
  88. package/dist-es/pagination/ListNotificationChannelsPaginator.js +2 -22
  89. package/dist-es/pagination/ListOrganizationInsightsPaginator.js +2 -23
  90. package/dist-es/pagination/ListRecommendationsPaginator.js +2 -22
  91. package/dist-es/pagination/SearchInsightsPaginator.js +2 -23
  92. package/dist-es/pagination/SearchOrganizationInsightsPaginator.js +2 -23
  93. package/dist-types/commands/AddNotificationChannelCommand.d.ts +6 -21
  94. package/dist-types/commands/DeleteInsightCommand.d.ts +6 -21
  95. package/dist-types/commands/DescribeAccountHealthCommand.d.ts +6 -21
  96. package/dist-types/commands/DescribeAccountOverviewCommand.d.ts +6 -21
  97. package/dist-types/commands/DescribeAnomalyCommand.d.ts +6 -21
  98. package/dist-types/commands/DescribeEventSourcesConfigCommand.d.ts +6 -21
  99. package/dist-types/commands/DescribeFeedbackCommand.d.ts +6 -21
  100. package/dist-types/commands/DescribeInsightCommand.d.ts +6 -21
  101. package/dist-types/commands/DescribeOrganizationHealthCommand.d.ts +6 -21
  102. package/dist-types/commands/DescribeOrganizationOverviewCommand.d.ts +6 -21
  103. package/dist-types/commands/DescribeOrganizationResourceCollectionHealthCommand.d.ts +6 -21
  104. package/dist-types/commands/DescribeResourceCollectionHealthCommand.d.ts +6 -21
  105. package/dist-types/commands/DescribeServiceIntegrationCommand.d.ts +6 -21
  106. package/dist-types/commands/GetCostEstimationCommand.d.ts +6 -21
  107. package/dist-types/commands/GetResourceCollectionCommand.d.ts +6 -21
  108. package/dist-types/commands/ListAnomaliesForInsightCommand.d.ts +6 -21
  109. package/dist-types/commands/ListAnomalousLogGroupsCommand.d.ts +6 -21
  110. package/dist-types/commands/ListEventsCommand.d.ts +6 -21
  111. package/dist-types/commands/ListInsightsCommand.d.ts +6 -21
  112. package/dist-types/commands/ListMonitoredResourcesCommand.d.ts +6 -21
  113. package/dist-types/commands/ListNotificationChannelsCommand.d.ts +6 -21
  114. package/dist-types/commands/ListOrganizationInsightsCommand.d.ts +6 -21
  115. package/dist-types/commands/ListRecommendationsCommand.d.ts +6 -21
  116. package/dist-types/commands/PutFeedbackCommand.d.ts +6 -21
  117. package/dist-types/commands/RemoveNotificationChannelCommand.d.ts +6 -21
  118. package/dist-types/commands/SearchInsightsCommand.d.ts +6 -21
  119. package/dist-types/commands/SearchOrganizationInsightsCommand.d.ts +6 -21
  120. package/dist-types/commands/StartCostEstimationCommand.d.ts +6 -21
  121. package/dist-types/commands/UpdateEventSourcesConfigCommand.d.ts +6 -21
  122. package/dist-types/commands/UpdateResourceCollectionCommand.d.ts +6 -21
  123. package/dist-types/commands/UpdateServiceIntegrationCommand.d.ts +6 -21
  124. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  125. package/dist-types/pagination/DescribeOrganizationResourceCollectionHealthPaginator.d.ts +1 -1
  126. package/dist-types/pagination/DescribeResourceCollectionHealthPaginator.d.ts +1 -1
  127. package/dist-types/pagination/GetCostEstimationPaginator.d.ts +1 -1
  128. package/dist-types/pagination/GetResourceCollectionPaginator.d.ts +1 -1
  129. package/dist-types/pagination/ListAnomaliesForInsightPaginator.d.ts +1 -1
  130. package/dist-types/pagination/ListAnomalousLogGroupsPaginator.d.ts +1 -1
  131. package/dist-types/pagination/ListEventsPaginator.d.ts +1 -1
  132. package/dist-types/pagination/ListInsightsPaginator.d.ts +1 -1
  133. package/dist-types/pagination/ListMonitoredResourcesPaginator.d.ts +1 -1
  134. package/dist-types/pagination/ListNotificationChannelsPaginator.d.ts +1 -1
  135. package/dist-types/pagination/ListOrganizationInsightsPaginator.d.ts +1 -1
  136. package/dist-types/pagination/ListRecommendationsPaginator.d.ts +1 -1
  137. package/dist-types/pagination/SearchInsightsPaginator.d.ts +1 -1
  138. package/dist-types/pagination/SearchOrganizationInsightsPaginator.d.ts +1 -1
  139. package/dist-types/ts3.4/commands/AddNotificationChannelCommand.d.ts +12 -24
  140. package/dist-types/ts3.4/commands/DeleteInsightCommand.d.ts +14 -23
  141. package/dist-types/ts3.4/commands/DescribeAccountHealthCommand.d.ts +12 -24
  142. package/dist-types/ts3.4/commands/DescribeAccountOverviewCommand.d.ts +12 -24
  143. package/dist-types/ts3.4/commands/DescribeAnomalyCommand.d.ts +14 -23
  144. package/dist-types/ts3.4/commands/DescribeEventSourcesConfigCommand.d.ts +12 -24
  145. package/dist-types/ts3.4/commands/DescribeFeedbackCommand.d.ts +14 -23
  146. package/dist-types/ts3.4/commands/DescribeInsightCommand.d.ts +14 -23
  147. package/dist-types/ts3.4/commands/DescribeOrganizationHealthCommand.d.ts +12 -24
  148. package/dist-types/ts3.4/commands/DescribeOrganizationOverviewCommand.d.ts +12 -24
  149. package/dist-types/ts3.4/commands/DescribeOrganizationResourceCollectionHealthCommand.d.ts +12 -24
  150. package/dist-types/ts3.4/commands/DescribeResourceCollectionHealthCommand.d.ts +12 -24
  151. package/dist-types/ts3.4/commands/DescribeServiceIntegrationCommand.d.ts +12 -24
  152. package/dist-types/ts3.4/commands/GetCostEstimationCommand.d.ts +14 -23
  153. package/dist-types/ts3.4/commands/GetResourceCollectionCommand.d.ts +12 -24
  154. package/dist-types/ts3.4/commands/ListAnomaliesForInsightCommand.d.ts +12 -24
  155. package/dist-types/ts3.4/commands/ListAnomalousLogGroupsCommand.d.ts +12 -24
  156. package/dist-types/ts3.4/commands/ListEventsCommand.d.ts +14 -23
  157. package/dist-types/ts3.4/commands/ListInsightsCommand.d.ts +14 -23
  158. package/dist-types/ts3.4/commands/ListMonitoredResourcesCommand.d.ts +12 -24
  159. package/dist-types/ts3.4/commands/ListNotificationChannelsCommand.d.ts +12 -24
  160. package/dist-types/ts3.4/commands/ListOrganizationInsightsCommand.d.ts +12 -24
  161. package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +14 -23
  162. package/dist-types/ts3.4/commands/PutFeedbackCommand.d.ts +14 -23
  163. package/dist-types/ts3.4/commands/RemoveNotificationChannelCommand.d.ts +12 -24
  164. package/dist-types/ts3.4/commands/SearchInsightsCommand.d.ts +14 -23
  165. package/dist-types/ts3.4/commands/SearchOrganizationInsightsCommand.d.ts +12 -24
  166. package/dist-types/ts3.4/commands/StartCostEstimationCommand.d.ts +14 -23
  167. package/dist-types/ts3.4/commands/UpdateEventSourcesConfigCommand.d.ts +12 -24
  168. package/dist-types/ts3.4/commands/UpdateResourceCollectionCommand.d.ts +12 -24
  169. package/dist-types/ts3.4/commands/UpdateServiceIntegrationCommand.d.ts +12 -24
  170. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  171. package/dist-types/ts3.4/pagination/DescribeOrganizationResourceCollectionHealthPaginator.d.ts +3 -3
  172. package/dist-types/ts3.4/pagination/DescribeResourceCollectionHealthPaginator.d.ts +3 -3
  173. package/dist-types/ts3.4/pagination/GetCostEstimationPaginator.d.ts +3 -3
  174. package/dist-types/ts3.4/pagination/GetResourceCollectionPaginator.d.ts +3 -3
  175. package/dist-types/ts3.4/pagination/ListAnomaliesForInsightPaginator.d.ts +3 -3
  176. package/dist-types/ts3.4/pagination/ListAnomalousLogGroupsPaginator.d.ts +3 -3
  177. package/dist-types/ts3.4/pagination/ListEventsPaginator.d.ts +3 -3
  178. package/dist-types/ts3.4/pagination/ListInsightsPaginator.d.ts +3 -3
  179. package/dist-types/ts3.4/pagination/ListMonitoredResourcesPaginator.d.ts +3 -3
  180. package/dist-types/ts3.4/pagination/ListNotificationChannelsPaginator.d.ts +3 -3
  181. package/dist-types/ts3.4/pagination/ListOrganizationInsightsPaginator.d.ts +3 -3
  182. package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +3 -3
  183. package/dist-types/ts3.4/pagination/SearchInsightsPaginator.d.ts +3 -3
  184. package/dist-types/ts3.4/pagination/SearchOrganizationInsightsPaginator.d.ts +3 -3
  185. package/package.json +11 -11
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class StartCostEstimationCommand 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, StartCostEstimationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "DevOpsGuruClient";
29
- const commandName = "StartCostEstimationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "CapstoneControlPlaneService",
38
- operation: "StartCostEstimation",
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_restJson1_1.se_StartCostEstimationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_StartCostEstimationCommand)(output, context);
49
- }
10
+ class StartCostEstimationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("CapstoneControlPlaneService", "StartCostEstimation", {})
22
+ .n("DevOpsGuruClient", "StartCostEstimationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_StartCostEstimationCommand)
25
+ .de(Aws_restJson1_1.de_StartCostEstimationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.StartCostEstimationCommand = StartCostEstimationCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateEventSourcesConfigCommand 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, UpdateEventSourcesConfigCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "DevOpsGuruClient";
29
- const commandName = "UpdateEventSourcesConfigCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "CapstoneControlPlaneService",
38
- operation: "UpdateEventSourcesConfig",
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_restJson1_1.se_UpdateEventSourcesConfigCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateEventSourcesConfigCommand)(output, context);
49
- }
10
+ class UpdateEventSourcesConfigCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("CapstoneControlPlaneService", "UpdateEventSourcesConfig", {})
22
+ .n("DevOpsGuruClient", "UpdateEventSourcesConfigCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateEventSourcesConfigCommand)
25
+ .de(Aws_restJson1_1.de_UpdateEventSourcesConfigCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateEventSourcesConfigCommand = UpdateEventSourcesConfigCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateResourceCollectionCommand 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, UpdateResourceCollectionCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "DevOpsGuruClient";
29
- const commandName = "UpdateResourceCollectionCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "CapstoneControlPlaneService",
38
- operation: "UpdateResourceCollection",
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_restJson1_1.se_UpdateResourceCollectionCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateResourceCollectionCommand)(output, context);
49
- }
10
+ class UpdateResourceCollectionCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("CapstoneControlPlaneService", "UpdateResourceCollection", {})
22
+ .n("DevOpsGuruClient", "UpdateResourceCollectionCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateResourceCollectionCommand)
25
+ .de(Aws_restJson1_1.de_UpdateResourceCollectionCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateResourceCollectionCommand = UpdateResourceCollectionCommand;
@@ -5,47 +5,24 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
5
  const middleware_serde_1 = require("@smithy/middleware-serde");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- const types_1 = require("@smithy/types");
8
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
9
9
  const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
- class UpdateServiceIntegrationCommand 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, UpdateServiceIntegrationCommand.getEndpointParameterInstructions()));
26
- const stack = clientStack.concat(this.middlewareStack);
27
- const { logger } = configuration;
28
- const clientName = "DevOpsGuruClient";
29
- const commandName = "UpdateServiceIntegrationCommand";
30
- const handlerExecutionContext = {
31
- logger,
32
- clientName,
33
- commandName,
34
- inputFilterSensitiveLog: (_) => _,
35
- outputFilterSensitiveLog: (_) => _,
36
- [types_1.SMITHY_CONTEXT_KEY]: {
37
- service: "CapstoneControlPlaneService",
38
- operation: "UpdateServiceIntegration",
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_restJson1_1.se_UpdateServiceIntegrationCommand)(input, context);
46
- }
47
- deserialize(output, context) {
48
- return (0, Aws_restJson1_1.de_UpdateServiceIntegrationCommand)(output, context);
49
- }
10
+ class UpdateServiceIntegrationCommand extends smithy_client_1.Command
11
+ .classBuilder()
12
+ .ep({
13
+ ...EndpointParameters_1.commonParams,
14
+ })
15
+ .m(function (Command, cs, config, o) {
16
+ return [
17
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
18
+ (0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
19
+ ];
20
+ })
21
+ .s("CapstoneControlPlaneService", "UpdateServiceIntegration", {})
22
+ .n("DevOpsGuruClient", "UpdateServiceIntegrationCommand")
23
+ .f(void 0, void 0)
24
+ .ser(Aws_restJson1_1.se_UpdateServiceIntegrationCommand)
25
+ .de(Aws_restJson1_1.de_UpdateServiceIntegrationCommand)
26
+ .build() {
50
27
  }
51
28
  exports.UpdateServiceIntegrationCommand = UpdateServiceIntegrationCommand;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveClientEndpointParameters = void 0;
3
+ exports.commonParams = exports.resolveClientEndpointParameters = void 0;
4
4
  const resolveClientEndpointParameters = (options) => {
5
5
  return {
6
6
  ...options,
@@ -10,3 +10,9 @@ const resolveClientEndpointParameters = (options) => {
10
10
  };
11
11
  };
12
12
  exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
13
+ exports.commonParams = {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeOrganizationResourceCollectionHealth = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeOrganizationResourceCollectionHealthCommand_1 = require("../commands/DescribeOrganizationResourceCollectionHealthCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeOrganizationResourceCollectionHealthCommand_1.DescribeOrganizationResourceCollectionHealthCommand(input), ...args);
8
- };
9
- async function* paginateDescribeOrganizationResourceCollectionHealth(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateDescribeOrganizationResourceCollectionHealth = paginateDescribeOrganizationResourceCollectionHealth;
7
+ exports.paginateDescribeOrganizationResourceCollectionHealth = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, DescribeOrganizationResourceCollectionHealthCommand_1.DescribeOrganizationResourceCollectionHealthCommand, "NextToken", "NextToken", "");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateDescribeResourceCollectionHealth = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const DescribeResourceCollectionHealthCommand_1 = require("../commands/DescribeResourceCollectionHealthCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new DescribeResourceCollectionHealthCommand_1.DescribeResourceCollectionHealthCommand(input), ...args);
8
- };
9
- async function* paginateDescribeResourceCollectionHealth(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateDescribeResourceCollectionHealth = paginateDescribeResourceCollectionHealth;
7
+ exports.paginateDescribeResourceCollectionHealth = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, DescribeResourceCollectionHealthCommand_1.DescribeResourceCollectionHealthCommand, "NextToken", "NextToken", "");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetCostEstimation = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetCostEstimationCommand_1 = require("../commands/GetCostEstimationCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetCostEstimationCommand_1.GetCostEstimationCommand(input), ...args);
8
- };
9
- async function* paginateGetCostEstimation(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateGetCostEstimation = paginateGetCostEstimation;
7
+ exports.paginateGetCostEstimation = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, GetCostEstimationCommand_1.GetCostEstimationCommand, "NextToken", "NextToken", "");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateGetResourceCollection = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const GetResourceCollectionCommand_1 = require("../commands/GetResourceCollectionCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new GetResourceCollectionCommand_1.GetResourceCollectionCommand(input), ...args);
8
- };
9
- async function* paginateGetResourceCollection(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateGetResourceCollection = paginateGetResourceCollection;
7
+ exports.paginateGetResourceCollection = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, GetResourceCollectionCommand_1.GetResourceCollectionCommand, "NextToken", "NextToken", "");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAnomaliesForInsight = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAnomaliesForInsightCommand_1 = require("../commands/ListAnomaliesForInsightCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAnomaliesForInsightCommand_1.ListAnomaliesForInsightCommand(input), ...args);
8
- };
9
- async function* paginateListAnomaliesForInsight(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAnomaliesForInsight = paginateListAnomaliesForInsight;
7
+ exports.paginateListAnomaliesForInsight = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListAnomaliesForInsightCommand_1.ListAnomaliesForInsightCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAnomalousLogGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAnomalousLogGroupsCommand_1 = require("../commands/ListAnomalousLogGroupsCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAnomalousLogGroupsCommand_1.ListAnomalousLogGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListAnomalousLogGroups(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListAnomalousLogGroups = paginateListAnomalousLogGroups;
7
+ exports.paginateListAnomalousLogGroups = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListAnomalousLogGroupsCommand_1.ListAnomalousLogGroupsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEvents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEventsCommand_1 = require("../commands/ListEventsCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEventsCommand_1.ListEventsCommand(input), ...args);
8
- };
9
- async function* paginateListEvents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListEvents = paginateListEvents;
7
+ exports.paginateListEvents = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListEventsCommand_1.ListEventsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListInsights = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListInsightsCommand_1 = require("../commands/ListInsightsCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListInsightsCommand_1.ListInsightsCommand(input), ...args);
8
- };
9
- async function* paginateListInsights(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListInsights = paginateListInsights;
7
+ exports.paginateListInsights = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListInsightsCommand_1.ListInsightsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListMonitoredResources = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListMonitoredResourcesCommand_1 = require("../commands/ListMonitoredResourcesCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListMonitoredResourcesCommand_1.ListMonitoredResourcesCommand(input), ...args);
8
- };
9
- async function* paginateListMonitoredResources(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListMonitoredResources = paginateListMonitoredResources;
7
+ exports.paginateListMonitoredResources = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListMonitoredResourcesCommand_1.ListMonitoredResourcesCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListNotificationChannels = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListNotificationChannelsCommand_1 = require("../commands/ListNotificationChannelsCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListNotificationChannelsCommand_1.ListNotificationChannelsCommand(input), ...args);
8
- };
9
- async function* paginateListNotificationChannels(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.NextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateListNotificationChannels = paginateListNotificationChannels;
7
+ exports.paginateListNotificationChannels = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListNotificationChannelsCommand_1.ListNotificationChannelsCommand, "NextToken", "NextToken", "");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListOrganizationInsights = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListOrganizationInsightsCommand_1 = require("../commands/ListOrganizationInsightsCommand");
5
6
  const DevOpsGuruClient_1 = require("../DevOpsGuruClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListOrganizationInsightsCommand_1.ListOrganizationInsightsCommand(input), ...args);
8
- };
9
- async function* paginateListOrganizationInsights(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof DevOpsGuruClient_1.DevOpsGuruClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected DevOpsGuru | DevOpsGuruClient");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListOrganizationInsights = paginateListOrganizationInsights;
7
+ exports.paginateListOrganizationInsights = (0, core_1.createPaginator)(DevOpsGuruClient_1.DevOpsGuruClient, ListOrganizationInsightsCommand_1.ListOrganizationInsightsCommand, "NextToken", "NextToken", "MaxResults");