@aws-sdk/client-cost-explorer 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 (173) hide show
  1. package/dist-cjs/commands/CreateAnomalyMonitorCommand.js +18 -41
  2. package/dist-cjs/commands/CreateAnomalySubscriptionCommand.js +18 -41
  3. package/dist-cjs/commands/CreateCostCategoryDefinitionCommand.js +18 -41
  4. package/dist-cjs/commands/DeleteAnomalyMonitorCommand.js +18 -41
  5. package/dist-cjs/commands/DeleteAnomalySubscriptionCommand.js +18 -41
  6. package/dist-cjs/commands/DeleteCostCategoryDefinitionCommand.js +18 -41
  7. package/dist-cjs/commands/DescribeCostCategoryDefinitionCommand.js +18 -41
  8. package/dist-cjs/commands/GetAnomaliesCommand.js +18 -41
  9. package/dist-cjs/commands/GetAnomalyMonitorsCommand.js +18 -41
  10. package/dist-cjs/commands/GetAnomalySubscriptionsCommand.js +18 -41
  11. package/dist-cjs/commands/GetCostAndUsageCommand.js +18 -41
  12. package/dist-cjs/commands/GetCostAndUsageWithResourcesCommand.js +18 -41
  13. package/dist-cjs/commands/GetCostCategoriesCommand.js +18 -41
  14. package/dist-cjs/commands/GetCostForecastCommand.js +18 -41
  15. package/dist-cjs/commands/GetDimensionValuesCommand.js +18 -41
  16. package/dist-cjs/commands/GetReservationCoverageCommand.js +18 -41
  17. package/dist-cjs/commands/GetReservationPurchaseRecommendationCommand.js +18 -41
  18. package/dist-cjs/commands/GetReservationUtilizationCommand.js +18 -41
  19. package/dist-cjs/commands/GetRightsizingRecommendationCommand.js +18 -41
  20. package/dist-cjs/commands/GetSavingsPlanPurchaseRecommendationDetailsCommand.js +18 -41
  21. package/dist-cjs/commands/GetSavingsPlansCoverageCommand.js +18 -41
  22. package/dist-cjs/commands/GetSavingsPlansPurchaseRecommendationCommand.js +18 -41
  23. package/dist-cjs/commands/GetSavingsPlansUtilizationCommand.js +18 -41
  24. package/dist-cjs/commands/GetSavingsPlansUtilizationDetailsCommand.js +18 -41
  25. package/dist-cjs/commands/GetTagsCommand.js +18 -41
  26. package/dist-cjs/commands/GetUsageForecastCommand.js +18 -41
  27. package/dist-cjs/commands/ListCostAllocationTagsCommand.js +18 -41
  28. package/dist-cjs/commands/ListCostCategoryDefinitionsCommand.js +18 -41
  29. package/dist-cjs/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.js +18 -41
  30. package/dist-cjs/commands/ListTagsForResourceCommand.js +18 -41
  31. package/dist-cjs/commands/ProvideAnomalyFeedbackCommand.js +18 -41
  32. package/dist-cjs/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.js +18 -41
  33. package/dist-cjs/commands/TagResourceCommand.js +18 -41
  34. package/dist-cjs/commands/UntagResourceCommand.js +18 -41
  35. package/dist-cjs/commands/UpdateAnomalyMonitorCommand.js +18 -41
  36. package/dist-cjs/commands/UpdateAnomalySubscriptionCommand.js +18 -41
  37. package/dist-cjs/commands/UpdateCostAllocationTagsStatusCommand.js +18 -41
  38. package/dist-cjs/commands/UpdateCostCategoryDefinitionCommand.js +18 -41
  39. package/dist-cjs/endpoint/EndpointParameters.js +7 -1
  40. package/dist-cjs/pagination/GetSavingsPlansCoveragePaginator.js +2 -24
  41. package/dist-cjs/pagination/GetSavingsPlansUtilizationDetailsPaginator.js +2 -24
  42. package/dist-cjs/pagination/ListCostAllocationTagsPaginator.js +2 -24
  43. package/dist-cjs/pagination/ListCostCategoryDefinitionsPaginator.js +2 -24
  44. package/dist-es/commands/CreateAnomalyMonitorCommand.js +18 -41
  45. package/dist-es/commands/CreateAnomalySubscriptionCommand.js +18 -41
  46. package/dist-es/commands/CreateCostCategoryDefinitionCommand.js +18 -41
  47. package/dist-es/commands/DeleteAnomalyMonitorCommand.js +18 -41
  48. package/dist-es/commands/DeleteAnomalySubscriptionCommand.js +18 -41
  49. package/dist-es/commands/DeleteCostCategoryDefinitionCommand.js +18 -41
  50. package/dist-es/commands/DescribeCostCategoryDefinitionCommand.js +18 -41
  51. package/dist-es/commands/GetAnomaliesCommand.js +18 -41
  52. package/dist-es/commands/GetAnomalyMonitorsCommand.js +18 -41
  53. package/dist-es/commands/GetAnomalySubscriptionsCommand.js +18 -41
  54. package/dist-es/commands/GetCostAndUsageCommand.js +18 -41
  55. package/dist-es/commands/GetCostAndUsageWithResourcesCommand.js +18 -41
  56. package/dist-es/commands/GetCostCategoriesCommand.js +18 -41
  57. package/dist-es/commands/GetCostForecastCommand.js +18 -41
  58. package/dist-es/commands/GetDimensionValuesCommand.js +18 -41
  59. package/dist-es/commands/GetReservationCoverageCommand.js +18 -41
  60. package/dist-es/commands/GetReservationPurchaseRecommendationCommand.js +18 -41
  61. package/dist-es/commands/GetReservationUtilizationCommand.js +18 -41
  62. package/dist-es/commands/GetRightsizingRecommendationCommand.js +18 -41
  63. package/dist-es/commands/GetSavingsPlanPurchaseRecommendationDetailsCommand.js +18 -41
  64. package/dist-es/commands/GetSavingsPlansCoverageCommand.js +18 -41
  65. package/dist-es/commands/GetSavingsPlansPurchaseRecommendationCommand.js +18 -41
  66. package/dist-es/commands/GetSavingsPlansUtilizationCommand.js +18 -41
  67. package/dist-es/commands/GetSavingsPlansUtilizationDetailsCommand.js +18 -41
  68. package/dist-es/commands/GetTagsCommand.js +18 -41
  69. package/dist-es/commands/GetUsageForecastCommand.js +18 -41
  70. package/dist-es/commands/ListCostAllocationTagsCommand.js +18 -41
  71. package/dist-es/commands/ListCostCategoryDefinitionsCommand.js +18 -41
  72. package/dist-es/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.js +18 -41
  73. package/dist-es/commands/ListTagsForResourceCommand.js +18 -41
  74. package/dist-es/commands/ProvideAnomalyFeedbackCommand.js +18 -41
  75. package/dist-es/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.js +18 -41
  76. package/dist-es/commands/TagResourceCommand.js +18 -41
  77. package/dist-es/commands/UntagResourceCommand.js +18 -41
  78. package/dist-es/commands/UpdateAnomalyMonitorCommand.js +18 -41
  79. package/dist-es/commands/UpdateAnomalySubscriptionCommand.js +18 -41
  80. package/dist-es/commands/UpdateCostAllocationTagsStatusCommand.js +18 -41
  81. package/dist-es/commands/UpdateCostCategoryDefinitionCommand.js +18 -41
  82. package/dist-es/endpoint/EndpointParameters.js +6 -0
  83. package/dist-es/pagination/GetSavingsPlansCoveragePaginator.js +2 -23
  84. package/dist-es/pagination/GetSavingsPlansUtilizationDetailsPaginator.js +2 -23
  85. package/dist-es/pagination/ListCostAllocationTagsPaginator.js +2 -23
  86. package/dist-es/pagination/ListCostCategoryDefinitionsPaginator.js +2 -23
  87. package/dist-types/commands/CreateAnomalyMonitorCommand.d.ts +6 -21
  88. package/dist-types/commands/CreateAnomalySubscriptionCommand.d.ts +6 -21
  89. package/dist-types/commands/CreateCostCategoryDefinitionCommand.d.ts +6 -21
  90. package/dist-types/commands/DeleteAnomalyMonitorCommand.d.ts +6 -21
  91. package/dist-types/commands/DeleteAnomalySubscriptionCommand.d.ts +6 -21
  92. package/dist-types/commands/DeleteCostCategoryDefinitionCommand.d.ts +6 -21
  93. package/dist-types/commands/DescribeCostCategoryDefinitionCommand.d.ts +6 -21
  94. package/dist-types/commands/GetAnomaliesCommand.d.ts +6 -21
  95. package/dist-types/commands/GetAnomalyMonitorsCommand.d.ts +6 -21
  96. package/dist-types/commands/GetAnomalySubscriptionsCommand.d.ts +6 -21
  97. package/dist-types/commands/GetCostAndUsageCommand.d.ts +6 -21
  98. package/dist-types/commands/GetCostAndUsageWithResourcesCommand.d.ts +6 -21
  99. package/dist-types/commands/GetCostCategoriesCommand.d.ts +6 -21
  100. package/dist-types/commands/GetCostForecastCommand.d.ts +6 -21
  101. package/dist-types/commands/GetDimensionValuesCommand.d.ts +6 -21
  102. package/dist-types/commands/GetReservationCoverageCommand.d.ts +6 -21
  103. package/dist-types/commands/GetReservationPurchaseRecommendationCommand.d.ts +6 -21
  104. package/dist-types/commands/GetReservationUtilizationCommand.d.ts +6 -21
  105. package/dist-types/commands/GetRightsizingRecommendationCommand.d.ts +6 -21
  106. package/dist-types/commands/GetSavingsPlanPurchaseRecommendationDetailsCommand.d.ts +6 -21
  107. package/dist-types/commands/GetSavingsPlansCoverageCommand.d.ts +6 -21
  108. package/dist-types/commands/GetSavingsPlansPurchaseRecommendationCommand.d.ts +6 -21
  109. package/dist-types/commands/GetSavingsPlansUtilizationCommand.d.ts +6 -21
  110. package/dist-types/commands/GetSavingsPlansUtilizationDetailsCommand.d.ts +6 -21
  111. package/dist-types/commands/GetTagsCommand.d.ts +6 -21
  112. package/dist-types/commands/GetUsageForecastCommand.d.ts +6 -21
  113. package/dist-types/commands/ListCostAllocationTagsCommand.d.ts +6 -21
  114. package/dist-types/commands/ListCostCategoryDefinitionsCommand.d.ts +6 -21
  115. package/dist-types/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +6 -21
  116. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -21
  117. package/dist-types/commands/ProvideAnomalyFeedbackCommand.d.ts +6 -21
  118. package/dist-types/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +6 -21
  119. package/dist-types/commands/TagResourceCommand.d.ts +6 -21
  120. package/dist-types/commands/UntagResourceCommand.d.ts +6 -21
  121. package/dist-types/commands/UpdateAnomalyMonitorCommand.d.ts +6 -21
  122. package/dist-types/commands/UpdateAnomalySubscriptionCommand.d.ts +6 -21
  123. package/dist-types/commands/UpdateCostAllocationTagsStatusCommand.d.ts +6 -21
  124. package/dist-types/commands/UpdateCostCategoryDefinitionCommand.d.ts +6 -21
  125. package/dist-types/endpoint/EndpointParameters.d.ts +18 -0
  126. package/dist-types/pagination/GetSavingsPlansCoveragePaginator.d.ts +1 -1
  127. package/dist-types/pagination/GetSavingsPlansUtilizationDetailsPaginator.d.ts +1 -1
  128. package/dist-types/pagination/ListCostAllocationTagsPaginator.d.ts +1 -1
  129. package/dist-types/pagination/ListCostCategoryDefinitionsPaginator.d.ts +1 -1
  130. package/dist-types/ts3.4/commands/CreateAnomalyMonitorCommand.d.ts +12 -24
  131. package/dist-types/ts3.4/commands/CreateAnomalySubscriptionCommand.d.ts +12 -24
  132. package/dist-types/ts3.4/commands/CreateCostCategoryDefinitionCommand.d.ts +12 -24
  133. package/dist-types/ts3.4/commands/DeleteAnomalyMonitorCommand.d.ts +12 -24
  134. package/dist-types/ts3.4/commands/DeleteAnomalySubscriptionCommand.d.ts +12 -24
  135. package/dist-types/ts3.4/commands/DeleteCostCategoryDefinitionCommand.d.ts +12 -24
  136. package/dist-types/ts3.4/commands/DescribeCostCategoryDefinitionCommand.d.ts +12 -24
  137. package/dist-types/ts3.4/commands/GetAnomaliesCommand.d.ts +14 -23
  138. package/dist-types/ts3.4/commands/GetAnomalyMonitorsCommand.d.ts +14 -23
  139. package/dist-types/ts3.4/commands/GetAnomalySubscriptionsCommand.d.ts +12 -24
  140. package/dist-types/ts3.4/commands/GetCostAndUsageCommand.d.ts +14 -23
  141. package/dist-types/ts3.4/commands/GetCostAndUsageWithResourcesCommand.d.ts +12 -24
  142. package/dist-types/ts3.4/commands/GetCostCategoriesCommand.d.ts +14 -23
  143. package/dist-types/ts3.4/commands/GetCostForecastCommand.d.ts +14 -23
  144. package/dist-types/ts3.4/commands/GetDimensionValuesCommand.d.ts +14 -23
  145. package/dist-types/ts3.4/commands/GetReservationCoverageCommand.d.ts +12 -24
  146. package/dist-types/ts3.4/commands/GetReservationPurchaseRecommendationCommand.d.ts +12 -24
  147. package/dist-types/ts3.4/commands/GetReservationUtilizationCommand.d.ts +12 -24
  148. package/dist-types/ts3.4/commands/GetRightsizingRecommendationCommand.d.ts +12 -24
  149. package/dist-types/ts3.4/commands/GetSavingsPlanPurchaseRecommendationDetailsCommand.d.ts +12 -24
  150. package/dist-types/ts3.4/commands/GetSavingsPlansCoverageCommand.d.ts +12 -24
  151. package/dist-types/ts3.4/commands/GetSavingsPlansPurchaseRecommendationCommand.d.ts +12 -24
  152. package/dist-types/ts3.4/commands/GetSavingsPlansUtilizationCommand.d.ts +12 -24
  153. package/dist-types/ts3.4/commands/GetSavingsPlansUtilizationDetailsCommand.d.ts +12 -24
  154. package/dist-types/ts3.4/commands/GetTagsCommand.d.ts +12 -23
  155. package/dist-types/ts3.4/commands/GetUsageForecastCommand.d.ts +14 -23
  156. package/dist-types/ts3.4/commands/ListCostAllocationTagsCommand.d.ts +12 -24
  157. package/dist-types/ts3.4/commands/ListCostCategoryDefinitionsCommand.d.ts +12 -24
  158. package/dist-types/ts3.4/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +11 -25
  159. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +14 -23
  160. package/dist-types/ts3.4/commands/ProvideAnomalyFeedbackCommand.d.ts +12 -24
  161. package/dist-types/ts3.4/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +11 -25
  162. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +14 -23
  163. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +14 -23
  164. package/dist-types/ts3.4/commands/UpdateAnomalyMonitorCommand.d.ts +12 -24
  165. package/dist-types/ts3.4/commands/UpdateAnomalySubscriptionCommand.d.ts +12 -24
  166. package/dist-types/ts3.4/commands/UpdateCostAllocationTagsStatusCommand.d.ts +12 -24
  167. package/dist-types/ts3.4/commands/UpdateCostCategoryDefinitionCommand.d.ts +12 -24
  168. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +18 -0
  169. package/dist-types/ts3.4/pagination/GetSavingsPlansCoveragePaginator.d.ts +3 -3
  170. package/dist-types/ts3.4/pagination/GetSavingsPlansUtilizationDetailsPaginator.d.ts +3 -3
  171. package/dist-types/ts3.4/pagination/ListCostAllocationTagsPaginator.d.ts +3 -3
  172. package/dist-types/ts3.4/pagination/ListCostCategoryDefinitionsPaginator.d.ts +3 -3
  173. package/package.json +11 -10
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class TagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, TagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CostExplorerClient";
26
- const commandName = "TagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSInsightsIndexService",
35
- operation: "TagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_TagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_TagResourceCommand(output, context);
46
- }
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSInsightsIndexService", "TagResource", {})
19
+ .n("CostExplorerClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UntagResourceCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CostExplorerClient";
26
- const commandName = "UntagResourceCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSInsightsIndexService",
35
- operation: "UntagResource",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UntagResourceCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UntagResourceCommand(output, context);
46
- }
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSInsightsIndexService", "UntagResource", {})
19
+ .n("CostExplorerClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateAnomalyMonitorCommand, se_UpdateAnomalyMonitorCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateAnomalyMonitorCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateAnomalyMonitorCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CostExplorerClient";
26
- const commandName = "UpdateAnomalyMonitorCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSInsightsIndexService",
35
- operation: "UpdateAnomalyMonitor",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateAnomalyMonitorCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateAnomalyMonitorCommand(output, context);
46
- }
7
+ export class UpdateAnomalyMonitorCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSInsightsIndexService", "UpdateAnomalyMonitor", {})
19
+ .n("CostExplorerClient", "UpdateAnomalyMonitorCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateAnomalyMonitorCommand)
22
+ .de(de_UpdateAnomalyMonitorCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateAnomalySubscriptionCommand, se_UpdateAnomalySubscriptionCommand } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateAnomalySubscriptionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateAnomalySubscriptionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CostExplorerClient";
26
- const commandName = "UpdateAnomalySubscriptionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSInsightsIndexService",
35
- operation: "UpdateAnomalySubscription",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateAnomalySubscriptionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateAnomalySubscriptionCommand(output, context);
46
- }
7
+ export class UpdateAnomalySubscriptionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSInsightsIndexService", "UpdateAnomalySubscription", {})
19
+ .n("CostExplorerClient", "UpdateAnomalySubscriptionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateAnomalySubscriptionCommand)
22
+ .de(de_UpdateAnomalySubscriptionCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateCostAllocationTagsStatusCommand, se_UpdateCostAllocationTagsStatusCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateCostAllocationTagsStatusCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateCostAllocationTagsStatusCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CostExplorerClient";
26
- const commandName = "UpdateCostAllocationTagsStatusCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSInsightsIndexService",
35
- operation: "UpdateCostAllocationTagsStatus",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateCostAllocationTagsStatusCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateCostAllocationTagsStatusCommand(output, context);
46
- }
7
+ export class UpdateCostAllocationTagsStatusCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSInsightsIndexService", "UpdateCostAllocationTagsStatus", {})
19
+ .n("CostExplorerClient", "UpdateCostAllocationTagsStatusCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateCostAllocationTagsStatusCommand)
22
+ .de(de_UpdateCostAllocationTagsStatusCommand)
23
+ .build() {
47
24
  }
@@ -1,47 +1,24 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
- import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
5
  import { de_UpdateCostCategoryDefinitionCommand, se_UpdateCostCategoryDefinitionCommand, } from "../protocols/Aws_json1_1";
6
6
  export { $Command };
7
- export class UpdateCostCategoryDefinitionCommand extends $Command {
8
- static getEndpointParameterInstructions() {
9
- return {
10
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
- Endpoint: { type: "builtInParams", name: "endpoint" },
12
- Region: { type: "builtInParams", name: "region" },
13
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
- };
15
- }
16
- constructor(input) {
17
- super();
18
- this.input = input;
19
- }
20
- resolveMiddleware(clientStack, configuration, options) {
21
- this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
- this.middlewareStack.use(getEndpointPlugin(configuration, UpdateCostCategoryDefinitionCommand.getEndpointParameterInstructions()));
23
- const stack = clientStack.concat(this.middlewareStack);
24
- const { logger } = configuration;
25
- const clientName = "CostExplorerClient";
26
- const commandName = "UpdateCostCategoryDefinitionCommand";
27
- const handlerExecutionContext = {
28
- logger,
29
- clientName,
30
- commandName,
31
- inputFilterSensitiveLog: (_) => _,
32
- outputFilterSensitiveLog: (_) => _,
33
- [SMITHY_CONTEXT_KEY]: {
34
- service: "AWSInsightsIndexService",
35
- operation: "UpdateCostCategoryDefinition",
36
- },
37
- };
38
- const { requestHandler } = configuration;
39
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
- }
41
- serialize(input, context) {
42
- return se_UpdateCostCategoryDefinitionCommand(input, context);
43
- }
44
- deserialize(output, context) {
45
- return de_UpdateCostCategoryDefinitionCommand(output, context);
46
- }
7
+ export class UpdateCostCategoryDefinitionCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSInsightsIndexService", "UpdateCostCategoryDefinition", {})
19
+ .n("CostExplorerClient", "UpdateCostCategoryDefinitionCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UpdateCostCategoryDefinitionCommand)
22
+ .de(de_UpdateCostCategoryDefinitionCommand)
23
+ .build() {
47
24
  }
@@ -6,3 +6,9 @@ export const resolveClientEndpointParameters = (options) => {
6
6
  defaultSigningName: "ce",
7
7
  };
8
8
  };
9
+ export const commonParams = {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetSavingsPlansCoverageCommand, } from "../commands/GetSavingsPlansCoverageCommand";
2
3
  import { CostExplorerClient } from "../CostExplorerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetSavingsPlansCoverageCommand(input), ...args);
5
- };
6
- export async function* paginateGetSavingsPlansCoverage(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof CostExplorerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CostExplorer | CostExplorerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetSavingsPlansCoverage = createPaginator(CostExplorerClient, GetSavingsPlansCoverageCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { GetSavingsPlansUtilizationDetailsCommand, } from "../commands/GetSavingsPlansUtilizationDetailsCommand";
2
3
  import { CostExplorerClient } from "../CostExplorerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new GetSavingsPlansUtilizationDetailsCommand(input), ...args);
5
- };
6
- export async function* paginateGetSavingsPlansUtilizationDetails(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof CostExplorerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CostExplorer | CostExplorerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateGetSavingsPlansUtilizationDetails = createPaginator(CostExplorerClient, GetSavingsPlansUtilizationDetailsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListCostAllocationTagsCommand, } from "../commands/ListCostAllocationTagsCommand";
2
3
  import { CostExplorerClient } from "../CostExplorerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListCostAllocationTagsCommand(input), ...args);
5
- };
6
- export async function* paginateListCostAllocationTags(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof CostExplorerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CostExplorer | CostExplorerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListCostAllocationTags = createPaginator(CostExplorerClient, ListCostAllocationTagsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListCostCategoryDefinitionsCommand, } from "../commands/ListCostCategoryDefinitionsCommand";
2
3
  import { CostExplorerClient } from "../CostExplorerClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListCostCategoryDefinitionsCommand(input), ...args);
5
- };
6
- export async function* paginateListCostCategoryDefinitions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof CostExplorerClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CostExplorer | CostExplorerClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListCostCategoryDefinitions = createPaginator(CostExplorerClient, ListCostCategoryDefinitionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
5
4
  import { CreateAnomalyMonitorRequest, CreateAnomalyMonitorResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateAnomalyMonitorCommandInput extends CreateAnomalyMonitorRe
21
20
  */
22
21
  export interface CreateAnomalyMonitorCommandOutput extends CreateAnomalyMonitorResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateAnomalyMonitorCommand_base: {
24
+ new (input: CreateAnomalyMonitorCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAnomalyMonitorCommandInput, CreateAnomalyMonitorCommandOutput, CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Creates a new cost anomaly detection monitor with the requested type and monitor
@@ -137,23 +140,5 @@ export interface CreateAnomalyMonitorCommandOutput extends CreateAnomalyMonitorR
137
140
  * <p>Base exception class for all service exceptions from CostExplorer service.</p>
138
141
  *
139
142
  */
140
- export declare class CreateAnomalyMonitorCommand extends $Command<CreateAnomalyMonitorCommandInput, CreateAnomalyMonitorCommandOutput, CostExplorerClientResolvedConfig> {
141
- readonly input: CreateAnomalyMonitorCommandInput;
142
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
143
- /**
144
- * @public
145
- */
146
- constructor(input: CreateAnomalyMonitorCommandInput);
147
- /**
148
- * @internal
149
- */
150
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAnomalyMonitorCommandInput, CreateAnomalyMonitorCommandOutput>;
151
- /**
152
- * @internal
153
- */
154
- private serialize;
155
- /**
156
- * @internal
157
- */
158
- private deserialize;
143
+ export declare class CreateAnomalyMonitorCommand extends CreateAnomalyMonitorCommand_base {
159
144
  }
@@ -1,6 +1,5 @@
1
- import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
1
  import { Command as $Command } from "@smithy/smithy-client";
3
- import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
4
3
  import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
5
4
  import { CreateAnomalySubscriptionRequest, CreateAnomalySubscriptionResponse } from "../models/models_0";
6
5
  /**
@@ -21,6 +20,10 @@ export interface CreateAnomalySubscriptionCommandInput extends CreateAnomalySubs
21
20
  */
22
21
  export interface CreateAnomalySubscriptionCommandOutput extends CreateAnomalySubscriptionResponse, __MetadataBearer {
23
22
  }
23
+ declare const CreateAnomalySubscriptionCommand_base: {
24
+ new (input: CreateAnomalySubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateAnomalySubscriptionCommandInput, CreateAnomalySubscriptionCommandOutput, CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
24
27
  /**
25
28
  * @public
26
29
  * <p>Adds an alert subscription to a cost anomaly detection monitor. You can use each
@@ -148,23 +151,5 @@ export interface CreateAnomalySubscriptionCommandOutput extends CreateAnomalySub
148
151
  * <p>Base exception class for all service exceptions from CostExplorer service.</p>
149
152
  *
150
153
  */
151
- export declare class CreateAnomalySubscriptionCommand extends $Command<CreateAnomalySubscriptionCommandInput, CreateAnomalySubscriptionCommandOutput, CostExplorerClientResolvedConfig> {
152
- readonly input: CreateAnomalySubscriptionCommandInput;
153
- static getEndpointParameterInstructions(): EndpointParameterInstructions;
154
- /**
155
- * @public
156
- */
157
- constructor(input: CreateAnomalySubscriptionCommandInput);
158
- /**
159
- * @internal
160
- */
161
- resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateAnomalySubscriptionCommandInput, CreateAnomalySubscriptionCommandOutput>;
162
- /**
163
- * @internal
164
- */
165
- private serialize;
166
- /**
167
- * @internal
168
- */
169
- private deserialize;
154
+ export declare class CreateAnomalySubscriptionCommand extends CreateAnomalySubscriptionCommand_base {
170
155
  }