@aws-sdk/client-billingconductor 3.55.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 (220) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +215 -0
  4. package/dist-cjs/Billingconductor.js +457 -0
  5. package/dist-cjs/BillingconductorClient.js +35 -0
  6. package/dist-cjs/commands/AssociateAccountsCommand.js +36 -0
  7. package/dist-cjs/commands/AssociatePricingRulesCommand.js +36 -0
  8. package/dist-cjs/commands/BatchAssociateResourcesToCustomLineItemCommand.js +36 -0
  9. package/dist-cjs/commands/BatchDisassociateResourcesFromCustomLineItemCommand.js +36 -0
  10. package/dist-cjs/commands/CreateBillingGroupCommand.js +36 -0
  11. package/dist-cjs/commands/CreateCustomLineItemCommand.js +36 -0
  12. package/dist-cjs/commands/CreatePricingPlanCommand.js +36 -0
  13. package/dist-cjs/commands/CreatePricingRuleCommand.js +36 -0
  14. package/dist-cjs/commands/DeleteBillingGroupCommand.js +36 -0
  15. package/dist-cjs/commands/DeleteCustomLineItemCommand.js +36 -0
  16. package/dist-cjs/commands/DeletePricingPlanCommand.js +36 -0
  17. package/dist-cjs/commands/DeletePricingRuleCommand.js +36 -0
  18. package/dist-cjs/commands/DisassociateAccountsCommand.js +36 -0
  19. package/dist-cjs/commands/DisassociatePricingRulesCommand.js +36 -0
  20. package/dist-cjs/commands/ListAccountAssociationsCommand.js +36 -0
  21. package/dist-cjs/commands/ListBillingGroupCostReportsCommand.js +36 -0
  22. package/dist-cjs/commands/ListBillingGroupsCommand.js +36 -0
  23. package/dist-cjs/commands/ListCustomLineItemsCommand.js +36 -0
  24. package/dist-cjs/commands/ListPricingPlansAssociatedWithPricingRuleCommand.js +36 -0
  25. package/dist-cjs/commands/ListPricingPlansCommand.js +36 -0
  26. package/dist-cjs/commands/ListPricingRulesAssociatedToPricingPlanCommand.js +36 -0
  27. package/dist-cjs/commands/ListPricingRulesCommand.js +36 -0
  28. package/dist-cjs/commands/ListResourcesAssociatedToCustomLineItemCommand.js +36 -0
  29. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  30. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  31. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  32. package/dist-cjs/commands/UpdateBillingGroupCommand.js +36 -0
  33. package/dist-cjs/commands/UpdateCustomLineItemCommand.js +36 -0
  34. package/dist-cjs/commands/UpdatePricingPlanCommand.js +36 -0
  35. package/dist-cjs/commands/UpdatePricingRuleCommand.js +36 -0
  36. package/dist-cjs/commands/index.js +33 -0
  37. package/dist-cjs/endpoints.js +131 -0
  38. package/dist-cjs/index.js +11 -0
  39. package/dist-cjs/models/BillingconductorServiceException.js +11 -0
  40. package/dist-cjs/models/index.js +4 -0
  41. package/dist-cjs/models/models_0.js +792 -0
  42. package/dist-cjs/pagination/Interfaces.js +2 -0
  43. package/dist-cjs/pagination/ListAccountAssociationsPaginator.js +34 -0
  44. package/dist-cjs/pagination/ListBillingGroupCostReportsPaginator.js +35 -0
  45. package/dist-cjs/pagination/ListBillingGroupsPaginator.js +35 -0
  46. package/dist-cjs/pagination/ListCustomLineItemsPaginator.js +35 -0
  47. package/dist-cjs/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.js +35 -0
  48. package/dist-cjs/pagination/ListPricingPlansPaginator.js +35 -0
  49. package/dist-cjs/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.js +35 -0
  50. package/dist-cjs/pagination/ListPricingRulesPaginator.js +35 -0
  51. package/dist-cjs/pagination/ListResourcesAssociatedToCustomLineItemPaginator.js +35 -0
  52. package/dist-cjs/pagination/index.js +13 -0
  53. package/dist-cjs/protocols/Aws_restJson1.js +3178 -0
  54. package/dist-cjs/runtimeConfig.browser.js +45 -0
  55. package/dist-cjs/runtimeConfig.js +50 -0
  56. package/dist-cjs/runtimeConfig.native.js +16 -0
  57. package/dist-cjs/runtimeConfig.shared.js +17 -0
  58. package/dist-es/Billingconductor.js +460 -0
  59. package/dist-es/BillingconductorClient.js +37 -0
  60. package/dist-es/commands/AssociateAccountsCommand.js +39 -0
  61. package/dist-es/commands/AssociatePricingRulesCommand.js +39 -0
  62. package/dist-es/commands/BatchAssociateResourcesToCustomLineItemCommand.js +39 -0
  63. package/dist-es/commands/BatchDisassociateResourcesFromCustomLineItemCommand.js +39 -0
  64. package/dist-es/commands/CreateBillingGroupCommand.js +39 -0
  65. package/dist-es/commands/CreateCustomLineItemCommand.js +39 -0
  66. package/dist-es/commands/CreatePricingPlanCommand.js +39 -0
  67. package/dist-es/commands/CreatePricingRuleCommand.js +39 -0
  68. package/dist-es/commands/DeleteBillingGroupCommand.js +39 -0
  69. package/dist-es/commands/DeleteCustomLineItemCommand.js +39 -0
  70. package/dist-es/commands/DeletePricingPlanCommand.js +39 -0
  71. package/dist-es/commands/DeletePricingRuleCommand.js +39 -0
  72. package/dist-es/commands/DisassociateAccountsCommand.js +39 -0
  73. package/dist-es/commands/DisassociatePricingRulesCommand.js +39 -0
  74. package/dist-es/commands/ListAccountAssociationsCommand.js +39 -0
  75. package/dist-es/commands/ListBillingGroupCostReportsCommand.js +39 -0
  76. package/dist-es/commands/ListBillingGroupsCommand.js +39 -0
  77. package/dist-es/commands/ListCustomLineItemsCommand.js +39 -0
  78. package/dist-es/commands/ListPricingPlansAssociatedWithPricingRuleCommand.js +39 -0
  79. package/dist-es/commands/ListPricingPlansCommand.js +39 -0
  80. package/dist-es/commands/ListPricingRulesAssociatedToPricingPlanCommand.js +39 -0
  81. package/dist-es/commands/ListPricingRulesCommand.js +39 -0
  82. package/dist-es/commands/ListResourcesAssociatedToCustomLineItemCommand.js +39 -0
  83. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  84. package/dist-es/commands/TagResourceCommand.js +39 -0
  85. package/dist-es/commands/UntagResourceCommand.js +39 -0
  86. package/dist-es/commands/UpdateBillingGroupCommand.js +39 -0
  87. package/dist-es/commands/UpdateCustomLineItemCommand.js +39 -0
  88. package/dist-es/commands/UpdatePricingPlanCommand.js +39 -0
  89. package/dist-es/commands/UpdatePricingRuleCommand.js +39 -0
  90. package/dist-es/commands/index.js +30 -0
  91. package/dist-es/endpoints.js +127 -0
  92. package/dist-es/index.js +6 -0
  93. package/dist-es/models/BillingconductorServiceException.js +12 -0
  94. package/dist-es/models/index.js +1 -0
  95. package/dist-es/models/models_0.js +560 -0
  96. package/dist-es/pagination/Interfaces.js +1 -0
  97. package/dist-es/pagination/ListAccountAssociationsPaginator.js +73 -0
  98. package/dist-es/pagination/ListBillingGroupCostReportsPaginator.js +74 -0
  99. package/dist-es/pagination/ListBillingGroupsPaginator.js +74 -0
  100. package/dist-es/pagination/ListCustomLineItemsPaginator.js +74 -0
  101. package/dist-es/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.js +74 -0
  102. package/dist-es/pagination/ListPricingPlansPaginator.js +74 -0
  103. package/dist-es/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.js +74 -0
  104. package/dist-es/pagination/ListPricingRulesPaginator.js +74 -0
  105. package/dist-es/pagination/ListResourcesAssociatedToCustomLineItemPaginator.js +74 -0
  106. package/dist-es/pagination/index.js +10 -0
  107. package/dist-es/protocols/Aws_restJson1.js +3850 -0
  108. package/dist-es/runtimeConfig.browser.js +26 -0
  109. package/dist-es/runtimeConfig.js +28 -0
  110. package/dist-es/runtimeConfig.native.js +8 -0
  111. package/dist-es/runtimeConfig.shared.js +13 -0
  112. package/dist-types/Billingconductor.d.ts +283 -0
  113. package/dist-types/BillingconductorClient.d.ts +186 -0
  114. package/dist-types/commands/AssociateAccountsCommand.d.ts +38 -0
  115. package/dist-types/commands/AssociatePricingRulesCommand.d.ts +36 -0
  116. package/dist-types/commands/BatchAssociateResourcesToCustomLineItemCommand.d.ts +37 -0
  117. package/dist-types/commands/BatchDisassociateResourcesFromCustomLineItemCommand.d.ts +37 -0
  118. package/dist-types/commands/CreateBillingGroupCommand.d.ts +37 -0
  119. package/dist-types/commands/CreateCustomLineItemCommand.d.ts +37 -0
  120. package/dist-types/commands/CreatePricingPlanCommand.d.ts +36 -0
  121. package/dist-types/commands/CreatePricingRuleCommand.d.ts +37 -0
  122. package/dist-types/commands/DeleteBillingGroupCommand.d.ts +37 -0
  123. package/dist-types/commands/DeleteCustomLineItemCommand.d.ts +37 -0
  124. package/dist-types/commands/DeletePricingPlanCommand.d.ts +36 -0
  125. package/dist-types/commands/DeletePricingRuleCommand.d.ts +35 -0
  126. package/dist-types/commands/DisassociateAccountsCommand.d.ts +35 -0
  127. package/dist-types/commands/DisassociatePricingRulesCommand.d.ts +37 -0
  128. package/dist-types/commands/ListAccountAssociationsCommand.d.ts +43 -0
  129. package/dist-types/commands/ListBillingGroupCostReportsCommand.d.ts +36 -0
  130. package/dist-types/commands/ListBillingGroupsCommand.d.ts +35 -0
  131. package/dist-types/commands/ListCustomLineItemsCommand.d.ts +37 -0
  132. package/dist-types/commands/ListPricingPlansAssociatedWithPricingRuleCommand.d.ts +37 -0
  133. package/dist-types/commands/ListPricingPlansCommand.d.ts +36 -0
  134. package/dist-types/commands/ListPricingRulesAssociatedToPricingPlanCommand.d.ts +37 -0
  135. package/dist-types/commands/ListPricingRulesCommand.d.ts +37 -0
  136. package/dist-types/commands/ListResourcesAssociatedToCustomLineItemCommand.d.ts +37 -0
  137. package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
  138. package/dist-types/commands/TagResourceCommand.d.ts +37 -0
  139. package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
  140. package/dist-types/commands/UpdateBillingGroupCommand.d.ts +36 -0
  141. package/dist-types/commands/UpdateCustomLineItemCommand.d.ts +37 -0
  142. package/dist-types/commands/UpdatePricingPlanCommand.d.ts +36 -0
  143. package/dist-types/commands/UpdatePricingRuleCommand.d.ts +37 -0
  144. package/dist-types/commands/index.d.ts +30 -0
  145. package/dist-types/endpoints.d.ts +2 -0
  146. package/dist-types/index.d.ts +6 -0
  147. package/dist-types/models/BillingconductorServiceException.d.ts +10 -0
  148. package/dist-types/models/index.d.ts +1 -0
  149. package/dist-types/models/models_0.d.ts +2576 -0
  150. package/dist-types/pagination/Interfaces.d.ts +6 -0
  151. package/dist-types/pagination/ListAccountAssociationsPaginator.d.ts +4 -0
  152. package/dist-types/pagination/ListBillingGroupCostReportsPaginator.d.ts +4 -0
  153. package/dist-types/pagination/ListBillingGroupsPaginator.d.ts +4 -0
  154. package/dist-types/pagination/ListCustomLineItemsPaginator.d.ts +4 -0
  155. package/dist-types/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.d.ts +4 -0
  156. package/dist-types/pagination/ListPricingPlansPaginator.d.ts +4 -0
  157. package/dist-types/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.d.ts +4 -0
  158. package/dist-types/pagination/ListPricingRulesPaginator.d.ts +4 -0
  159. package/dist-types/pagination/ListResourcesAssociatedToCustomLineItemPaginator.d.ts +4 -0
  160. package/dist-types/pagination/index.d.ts +10 -0
  161. package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
  162. package/dist-types/runtimeConfig.browser.d.ts +40 -0
  163. package/dist-types/runtimeConfig.d.ts +40 -0
  164. package/dist-types/runtimeConfig.native.d.ts +39 -0
  165. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  166. package/dist-types/ts3.4/Billingconductor.d.ts +155 -0
  167. package/dist-types/ts3.4/BillingconductorClient.d.ts +103 -0
  168. package/dist-types/ts3.4/commands/AssociateAccountsCommand.d.ts +17 -0
  169. package/dist-types/ts3.4/commands/AssociatePricingRulesCommand.d.ts +17 -0
  170. package/dist-types/ts3.4/commands/BatchAssociateResourcesToCustomLineItemCommand.d.ts +17 -0
  171. package/dist-types/ts3.4/commands/BatchDisassociateResourcesFromCustomLineItemCommand.d.ts +17 -0
  172. package/dist-types/ts3.4/commands/CreateBillingGroupCommand.d.ts +17 -0
  173. package/dist-types/ts3.4/commands/CreateCustomLineItemCommand.d.ts +17 -0
  174. package/dist-types/ts3.4/commands/CreatePricingPlanCommand.d.ts +17 -0
  175. package/dist-types/ts3.4/commands/CreatePricingRuleCommand.d.ts +17 -0
  176. package/dist-types/ts3.4/commands/DeleteBillingGroupCommand.d.ts +17 -0
  177. package/dist-types/ts3.4/commands/DeleteCustomLineItemCommand.d.ts +17 -0
  178. package/dist-types/ts3.4/commands/DeletePricingPlanCommand.d.ts +17 -0
  179. package/dist-types/ts3.4/commands/DeletePricingRuleCommand.d.ts +17 -0
  180. package/dist-types/ts3.4/commands/DisassociateAccountsCommand.d.ts +17 -0
  181. package/dist-types/ts3.4/commands/DisassociatePricingRulesCommand.d.ts +17 -0
  182. package/dist-types/ts3.4/commands/ListAccountAssociationsCommand.d.ts +17 -0
  183. package/dist-types/ts3.4/commands/ListBillingGroupCostReportsCommand.d.ts +17 -0
  184. package/dist-types/ts3.4/commands/ListBillingGroupsCommand.d.ts +17 -0
  185. package/dist-types/ts3.4/commands/ListCustomLineItemsCommand.d.ts +17 -0
  186. package/dist-types/ts3.4/commands/ListPricingPlansAssociatedWithPricingRuleCommand.d.ts +17 -0
  187. package/dist-types/ts3.4/commands/ListPricingPlansCommand.d.ts +17 -0
  188. package/dist-types/ts3.4/commands/ListPricingRulesAssociatedToPricingPlanCommand.d.ts +17 -0
  189. package/dist-types/ts3.4/commands/ListPricingRulesCommand.d.ts +17 -0
  190. package/dist-types/ts3.4/commands/ListResourcesAssociatedToCustomLineItemCommand.d.ts +17 -0
  191. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  192. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  193. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  194. package/dist-types/ts3.4/commands/UpdateBillingGroupCommand.d.ts +17 -0
  195. package/dist-types/ts3.4/commands/UpdateCustomLineItemCommand.d.ts +17 -0
  196. package/dist-types/ts3.4/commands/UpdatePricingPlanCommand.d.ts +17 -0
  197. package/dist-types/ts3.4/commands/UpdatePricingRuleCommand.d.ts +17 -0
  198. package/dist-types/ts3.4/commands/index.d.ts +30 -0
  199. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  200. package/dist-types/ts3.4/index.d.ts +6 -0
  201. package/dist-types/ts3.4/models/BillingconductorServiceException.d.ts +6 -0
  202. package/dist-types/ts3.4/models/index.d.ts +1 -0
  203. package/dist-types/ts3.4/models/models_0.d.ts +1266 -0
  204. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  205. package/dist-types/ts3.4/pagination/ListAccountAssociationsPaginator.d.ts +4 -0
  206. package/dist-types/ts3.4/pagination/ListBillingGroupCostReportsPaginator.d.ts +4 -0
  207. package/dist-types/ts3.4/pagination/ListBillingGroupsPaginator.d.ts +4 -0
  208. package/dist-types/ts3.4/pagination/ListCustomLineItemsPaginator.d.ts +4 -0
  209. package/dist-types/ts3.4/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.d.ts +4 -0
  210. package/dist-types/ts3.4/pagination/ListPricingPlansPaginator.d.ts +4 -0
  211. package/dist-types/ts3.4/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.d.ts +4 -0
  212. package/dist-types/ts3.4/pagination/ListPricingRulesPaginator.d.ts +4 -0
  213. package/dist-types/ts3.4/pagination/ListResourcesAssociatedToCustomLineItemPaginator.d.ts +4 -0
  214. package/dist-types/ts3.4/pagination/index.d.ts +10 -0
  215. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +92 -0
  216. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  217. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  218. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  219. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  220. package/package.json +95 -0
@@ -0,0 +1,457 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Billingconductor = void 0;
4
+ const BillingconductorClient_1 = require("./BillingconductorClient");
5
+ const AssociateAccountsCommand_1 = require("./commands/AssociateAccountsCommand");
6
+ const AssociatePricingRulesCommand_1 = require("./commands/AssociatePricingRulesCommand");
7
+ const BatchAssociateResourcesToCustomLineItemCommand_1 = require("./commands/BatchAssociateResourcesToCustomLineItemCommand");
8
+ const BatchDisassociateResourcesFromCustomLineItemCommand_1 = require("./commands/BatchDisassociateResourcesFromCustomLineItemCommand");
9
+ const CreateBillingGroupCommand_1 = require("./commands/CreateBillingGroupCommand");
10
+ const CreateCustomLineItemCommand_1 = require("./commands/CreateCustomLineItemCommand");
11
+ const CreatePricingPlanCommand_1 = require("./commands/CreatePricingPlanCommand");
12
+ const CreatePricingRuleCommand_1 = require("./commands/CreatePricingRuleCommand");
13
+ const DeleteBillingGroupCommand_1 = require("./commands/DeleteBillingGroupCommand");
14
+ const DeleteCustomLineItemCommand_1 = require("./commands/DeleteCustomLineItemCommand");
15
+ const DeletePricingPlanCommand_1 = require("./commands/DeletePricingPlanCommand");
16
+ const DeletePricingRuleCommand_1 = require("./commands/DeletePricingRuleCommand");
17
+ const DisassociateAccountsCommand_1 = require("./commands/DisassociateAccountsCommand");
18
+ const DisassociatePricingRulesCommand_1 = require("./commands/DisassociatePricingRulesCommand");
19
+ const ListAccountAssociationsCommand_1 = require("./commands/ListAccountAssociationsCommand");
20
+ const ListBillingGroupCostReportsCommand_1 = require("./commands/ListBillingGroupCostReportsCommand");
21
+ const ListBillingGroupsCommand_1 = require("./commands/ListBillingGroupsCommand");
22
+ const ListCustomLineItemsCommand_1 = require("./commands/ListCustomLineItemsCommand");
23
+ const ListPricingPlansAssociatedWithPricingRuleCommand_1 = require("./commands/ListPricingPlansAssociatedWithPricingRuleCommand");
24
+ const ListPricingPlansCommand_1 = require("./commands/ListPricingPlansCommand");
25
+ const ListPricingRulesAssociatedToPricingPlanCommand_1 = require("./commands/ListPricingRulesAssociatedToPricingPlanCommand");
26
+ const ListPricingRulesCommand_1 = require("./commands/ListPricingRulesCommand");
27
+ const ListResourcesAssociatedToCustomLineItemCommand_1 = require("./commands/ListResourcesAssociatedToCustomLineItemCommand");
28
+ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
29
+ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
30
+ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
31
+ const UpdateBillingGroupCommand_1 = require("./commands/UpdateBillingGroupCommand");
32
+ const UpdateCustomLineItemCommand_1 = require("./commands/UpdateCustomLineItemCommand");
33
+ const UpdatePricingPlanCommand_1 = require("./commands/UpdatePricingPlanCommand");
34
+ const UpdatePricingRuleCommand_1 = require("./commands/UpdatePricingRuleCommand");
35
+ class Billingconductor extends BillingconductorClient_1.BillingconductorClient {
36
+ associateAccounts(args, optionsOrCb, cb) {
37
+ const command = new AssociateAccountsCommand_1.AssociateAccountsCommand(args);
38
+ if (typeof optionsOrCb === "function") {
39
+ this.send(command, optionsOrCb);
40
+ }
41
+ else if (typeof cb === "function") {
42
+ if (typeof optionsOrCb !== "object")
43
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
+ this.send(command, optionsOrCb || {}, cb);
45
+ }
46
+ else {
47
+ return this.send(command, optionsOrCb);
48
+ }
49
+ }
50
+ associatePricingRules(args, optionsOrCb, cb) {
51
+ const command = new AssociatePricingRulesCommand_1.AssociatePricingRulesCommand(args);
52
+ if (typeof optionsOrCb === "function") {
53
+ this.send(command, optionsOrCb);
54
+ }
55
+ else if (typeof cb === "function") {
56
+ if (typeof optionsOrCb !== "object")
57
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
+ this.send(command, optionsOrCb || {}, cb);
59
+ }
60
+ else {
61
+ return this.send(command, optionsOrCb);
62
+ }
63
+ }
64
+ batchAssociateResourcesToCustomLineItem(args, optionsOrCb, cb) {
65
+ const command = new BatchAssociateResourcesToCustomLineItemCommand_1.BatchAssociateResourcesToCustomLineItemCommand(args);
66
+ if (typeof optionsOrCb === "function") {
67
+ this.send(command, optionsOrCb);
68
+ }
69
+ else if (typeof cb === "function") {
70
+ if (typeof optionsOrCb !== "object")
71
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
+ this.send(command, optionsOrCb || {}, cb);
73
+ }
74
+ else {
75
+ return this.send(command, optionsOrCb);
76
+ }
77
+ }
78
+ batchDisassociateResourcesFromCustomLineItem(args, optionsOrCb, cb) {
79
+ const command = new BatchDisassociateResourcesFromCustomLineItemCommand_1.BatchDisassociateResourcesFromCustomLineItemCommand(args);
80
+ if (typeof optionsOrCb === "function") {
81
+ this.send(command, optionsOrCb);
82
+ }
83
+ else if (typeof cb === "function") {
84
+ if (typeof optionsOrCb !== "object")
85
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
+ this.send(command, optionsOrCb || {}, cb);
87
+ }
88
+ else {
89
+ return this.send(command, optionsOrCb);
90
+ }
91
+ }
92
+ createBillingGroup(args, optionsOrCb, cb) {
93
+ const command = new CreateBillingGroupCommand_1.CreateBillingGroupCommand(args);
94
+ if (typeof optionsOrCb === "function") {
95
+ this.send(command, optionsOrCb);
96
+ }
97
+ else if (typeof cb === "function") {
98
+ if (typeof optionsOrCb !== "object")
99
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
+ this.send(command, optionsOrCb || {}, cb);
101
+ }
102
+ else {
103
+ return this.send(command, optionsOrCb);
104
+ }
105
+ }
106
+ createCustomLineItem(args, optionsOrCb, cb) {
107
+ const command = new CreateCustomLineItemCommand_1.CreateCustomLineItemCommand(args);
108
+ if (typeof optionsOrCb === "function") {
109
+ this.send(command, optionsOrCb);
110
+ }
111
+ else if (typeof cb === "function") {
112
+ if (typeof optionsOrCb !== "object")
113
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
+ this.send(command, optionsOrCb || {}, cb);
115
+ }
116
+ else {
117
+ return this.send(command, optionsOrCb);
118
+ }
119
+ }
120
+ createPricingPlan(args, optionsOrCb, cb) {
121
+ const command = new CreatePricingPlanCommand_1.CreatePricingPlanCommand(args);
122
+ if (typeof optionsOrCb === "function") {
123
+ this.send(command, optionsOrCb);
124
+ }
125
+ else if (typeof cb === "function") {
126
+ if (typeof optionsOrCb !== "object")
127
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
+ this.send(command, optionsOrCb || {}, cb);
129
+ }
130
+ else {
131
+ return this.send(command, optionsOrCb);
132
+ }
133
+ }
134
+ createPricingRule(args, optionsOrCb, cb) {
135
+ const command = new CreatePricingRuleCommand_1.CreatePricingRuleCommand(args);
136
+ if (typeof optionsOrCb === "function") {
137
+ this.send(command, optionsOrCb);
138
+ }
139
+ else if (typeof cb === "function") {
140
+ if (typeof optionsOrCb !== "object")
141
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
+ this.send(command, optionsOrCb || {}, cb);
143
+ }
144
+ else {
145
+ return this.send(command, optionsOrCb);
146
+ }
147
+ }
148
+ deleteBillingGroup(args, optionsOrCb, cb) {
149
+ const command = new DeleteBillingGroupCommand_1.DeleteBillingGroupCommand(args);
150
+ if (typeof optionsOrCb === "function") {
151
+ this.send(command, optionsOrCb);
152
+ }
153
+ else if (typeof cb === "function") {
154
+ if (typeof optionsOrCb !== "object")
155
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
+ this.send(command, optionsOrCb || {}, cb);
157
+ }
158
+ else {
159
+ return this.send(command, optionsOrCb);
160
+ }
161
+ }
162
+ deleteCustomLineItem(args, optionsOrCb, cb) {
163
+ const command = new DeleteCustomLineItemCommand_1.DeleteCustomLineItemCommand(args);
164
+ if (typeof optionsOrCb === "function") {
165
+ this.send(command, optionsOrCb);
166
+ }
167
+ else if (typeof cb === "function") {
168
+ if (typeof optionsOrCb !== "object")
169
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
+ this.send(command, optionsOrCb || {}, cb);
171
+ }
172
+ else {
173
+ return this.send(command, optionsOrCb);
174
+ }
175
+ }
176
+ deletePricingPlan(args, optionsOrCb, cb) {
177
+ const command = new DeletePricingPlanCommand_1.DeletePricingPlanCommand(args);
178
+ if (typeof optionsOrCb === "function") {
179
+ this.send(command, optionsOrCb);
180
+ }
181
+ else if (typeof cb === "function") {
182
+ if (typeof optionsOrCb !== "object")
183
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
+ this.send(command, optionsOrCb || {}, cb);
185
+ }
186
+ else {
187
+ return this.send(command, optionsOrCb);
188
+ }
189
+ }
190
+ deletePricingRule(args, optionsOrCb, cb) {
191
+ const command = new DeletePricingRuleCommand_1.DeletePricingRuleCommand(args);
192
+ if (typeof optionsOrCb === "function") {
193
+ this.send(command, optionsOrCb);
194
+ }
195
+ else if (typeof cb === "function") {
196
+ if (typeof optionsOrCb !== "object")
197
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
+ this.send(command, optionsOrCb || {}, cb);
199
+ }
200
+ else {
201
+ return this.send(command, optionsOrCb);
202
+ }
203
+ }
204
+ disassociateAccounts(args, optionsOrCb, cb) {
205
+ const command = new DisassociateAccountsCommand_1.DisassociateAccountsCommand(args);
206
+ if (typeof optionsOrCb === "function") {
207
+ this.send(command, optionsOrCb);
208
+ }
209
+ else if (typeof cb === "function") {
210
+ if (typeof optionsOrCb !== "object")
211
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
+ this.send(command, optionsOrCb || {}, cb);
213
+ }
214
+ else {
215
+ return this.send(command, optionsOrCb);
216
+ }
217
+ }
218
+ disassociatePricingRules(args, optionsOrCb, cb) {
219
+ const command = new DisassociatePricingRulesCommand_1.DisassociatePricingRulesCommand(args);
220
+ if (typeof optionsOrCb === "function") {
221
+ this.send(command, optionsOrCb);
222
+ }
223
+ else if (typeof cb === "function") {
224
+ if (typeof optionsOrCb !== "object")
225
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
226
+ this.send(command, optionsOrCb || {}, cb);
227
+ }
228
+ else {
229
+ return this.send(command, optionsOrCb);
230
+ }
231
+ }
232
+ listAccountAssociations(args, optionsOrCb, cb) {
233
+ const command = new ListAccountAssociationsCommand_1.ListAccountAssociationsCommand(args);
234
+ if (typeof optionsOrCb === "function") {
235
+ this.send(command, optionsOrCb);
236
+ }
237
+ else if (typeof cb === "function") {
238
+ if (typeof optionsOrCb !== "object")
239
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
240
+ this.send(command, optionsOrCb || {}, cb);
241
+ }
242
+ else {
243
+ return this.send(command, optionsOrCb);
244
+ }
245
+ }
246
+ listBillingGroupCostReports(args, optionsOrCb, cb) {
247
+ const command = new ListBillingGroupCostReportsCommand_1.ListBillingGroupCostReportsCommand(args);
248
+ if (typeof optionsOrCb === "function") {
249
+ this.send(command, optionsOrCb);
250
+ }
251
+ else if (typeof cb === "function") {
252
+ if (typeof optionsOrCb !== "object")
253
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
+ this.send(command, optionsOrCb || {}, cb);
255
+ }
256
+ else {
257
+ return this.send(command, optionsOrCb);
258
+ }
259
+ }
260
+ listBillingGroups(args, optionsOrCb, cb) {
261
+ const command = new ListBillingGroupsCommand_1.ListBillingGroupsCommand(args);
262
+ if (typeof optionsOrCb === "function") {
263
+ this.send(command, optionsOrCb);
264
+ }
265
+ else if (typeof cb === "function") {
266
+ if (typeof optionsOrCb !== "object")
267
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
268
+ this.send(command, optionsOrCb || {}, cb);
269
+ }
270
+ else {
271
+ return this.send(command, optionsOrCb);
272
+ }
273
+ }
274
+ listCustomLineItems(args, optionsOrCb, cb) {
275
+ const command = new ListCustomLineItemsCommand_1.ListCustomLineItemsCommand(args);
276
+ if (typeof optionsOrCb === "function") {
277
+ this.send(command, optionsOrCb);
278
+ }
279
+ else if (typeof cb === "function") {
280
+ if (typeof optionsOrCb !== "object")
281
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
282
+ this.send(command, optionsOrCb || {}, cb);
283
+ }
284
+ else {
285
+ return this.send(command, optionsOrCb);
286
+ }
287
+ }
288
+ listPricingPlans(args, optionsOrCb, cb) {
289
+ const command = new ListPricingPlansCommand_1.ListPricingPlansCommand(args);
290
+ if (typeof optionsOrCb === "function") {
291
+ this.send(command, optionsOrCb);
292
+ }
293
+ else if (typeof cb === "function") {
294
+ if (typeof optionsOrCb !== "object")
295
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
296
+ this.send(command, optionsOrCb || {}, cb);
297
+ }
298
+ else {
299
+ return this.send(command, optionsOrCb);
300
+ }
301
+ }
302
+ listPricingPlansAssociatedWithPricingRule(args, optionsOrCb, cb) {
303
+ const command = new ListPricingPlansAssociatedWithPricingRuleCommand_1.ListPricingPlansAssociatedWithPricingRuleCommand(args);
304
+ if (typeof optionsOrCb === "function") {
305
+ this.send(command, optionsOrCb);
306
+ }
307
+ else if (typeof cb === "function") {
308
+ if (typeof optionsOrCb !== "object")
309
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
310
+ this.send(command, optionsOrCb || {}, cb);
311
+ }
312
+ else {
313
+ return this.send(command, optionsOrCb);
314
+ }
315
+ }
316
+ listPricingRules(args, optionsOrCb, cb) {
317
+ const command = new ListPricingRulesCommand_1.ListPricingRulesCommand(args);
318
+ if (typeof optionsOrCb === "function") {
319
+ this.send(command, optionsOrCb);
320
+ }
321
+ else if (typeof cb === "function") {
322
+ if (typeof optionsOrCb !== "object")
323
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
324
+ this.send(command, optionsOrCb || {}, cb);
325
+ }
326
+ else {
327
+ return this.send(command, optionsOrCb);
328
+ }
329
+ }
330
+ listPricingRulesAssociatedToPricingPlan(args, optionsOrCb, cb) {
331
+ const command = new ListPricingRulesAssociatedToPricingPlanCommand_1.ListPricingRulesAssociatedToPricingPlanCommand(args);
332
+ if (typeof optionsOrCb === "function") {
333
+ this.send(command, optionsOrCb);
334
+ }
335
+ else if (typeof cb === "function") {
336
+ if (typeof optionsOrCb !== "object")
337
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
338
+ this.send(command, optionsOrCb || {}, cb);
339
+ }
340
+ else {
341
+ return this.send(command, optionsOrCb);
342
+ }
343
+ }
344
+ listResourcesAssociatedToCustomLineItem(args, optionsOrCb, cb) {
345
+ const command = new ListResourcesAssociatedToCustomLineItemCommand_1.ListResourcesAssociatedToCustomLineItemCommand(args);
346
+ if (typeof optionsOrCb === "function") {
347
+ this.send(command, optionsOrCb);
348
+ }
349
+ else if (typeof cb === "function") {
350
+ if (typeof optionsOrCb !== "object")
351
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
352
+ this.send(command, optionsOrCb || {}, cb);
353
+ }
354
+ else {
355
+ return this.send(command, optionsOrCb);
356
+ }
357
+ }
358
+ listTagsForResource(args, optionsOrCb, cb) {
359
+ const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
360
+ if (typeof optionsOrCb === "function") {
361
+ this.send(command, optionsOrCb);
362
+ }
363
+ else if (typeof cb === "function") {
364
+ if (typeof optionsOrCb !== "object")
365
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
366
+ this.send(command, optionsOrCb || {}, cb);
367
+ }
368
+ else {
369
+ return this.send(command, optionsOrCb);
370
+ }
371
+ }
372
+ tagResource(args, optionsOrCb, cb) {
373
+ const command = new TagResourceCommand_1.TagResourceCommand(args);
374
+ if (typeof optionsOrCb === "function") {
375
+ this.send(command, optionsOrCb);
376
+ }
377
+ else if (typeof cb === "function") {
378
+ if (typeof optionsOrCb !== "object")
379
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
380
+ this.send(command, optionsOrCb || {}, cb);
381
+ }
382
+ else {
383
+ return this.send(command, optionsOrCb);
384
+ }
385
+ }
386
+ untagResource(args, optionsOrCb, cb) {
387
+ const command = new UntagResourceCommand_1.UntagResourceCommand(args);
388
+ if (typeof optionsOrCb === "function") {
389
+ this.send(command, optionsOrCb);
390
+ }
391
+ else if (typeof cb === "function") {
392
+ if (typeof optionsOrCb !== "object")
393
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
394
+ this.send(command, optionsOrCb || {}, cb);
395
+ }
396
+ else {
397
+ return this.send(command, optionsOrCb);
398
+ }
399
+ }
400
+ updateBillingGroup(args, optionsOrCb, cb) {
401
+ const command = new UpdateBillingGroupCommand_1.UpdateBillingGroupCommand(args);
402
+ if (typeof optionsOrCb === "function") {
403
+ this.send(command, optionsOrCb);
404
+ }
405
+ else if (typeof cb === "function") {
406
+ if (typeof optionsOrCb !== "object")
407
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
408
+ this.send(command, optionsOrCb || {}, cb);
409
+ }
410
+ else {
411
+ return this.send(command, optionsOrCb);
412
+ }
413
+ }
414
+ updateCustomLineItem(args, optionsOrCb, cb) {
415
+ const command = new UpdateCustomLineItemCommand_1.UpdateCustomLineItemCommand(args);
416
+ if (typeof optionsOrCb === "function") {
417
+ this.send(command, optionsOrCb);
418
+ }
419
+ else if (typeof cb === "function") {
420
+ if (typeof optionsOrCb !== "object")
421
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
422
+ this.send(command, optionsOrCb || {}, cb);
423
+ }
424
+ else {
425
+ return this.send(command, optionsOrCb);
426
+ }
427
+ }
428
+ updatePricingPlan(args, optionsOrCb, cb) {
429
+ const command = new UpdatePricingPlanCommand_1.UpdatePricingPlanCommand(args);
430
+ if (typeof optionsOrCb === "function") {
431
+ this.send(command, optionsOrCb);
432
+ }
433
+ else if (typeof cb === "function") {
434
+ if (typeof optionsOrCb !== "object")
435
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
436
+ this.send(command, optionsOrCb || {}, cb);
437
+ }
438
+ else {
439
+ return this.send(command, optionsOrCb);
440
+ }
441
+ }
442
+ updatePricingRule(args, optionsOrCb, cb) {
443
+ const command = new UpdatePricingRuleCommand_1.UpdatePricingRuleCommand(args);
444
+ if (typeof optionsOrCb === "function") {
445
+ this.send(command, optionsOrCb);
446
+ }
447
+ else if (typeof cb === "function") {
448
+ if (typeof optionsOrCb !== "object")
449
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
450
+ this.send(command, optionsOrCb || {}, cb);
451
+ }
452
+ else {
453
+ return this.send(command, optionsOrCb);
454
+ }
455
+ }
456
+ }
457
+ exports.Billingconductor = Billingconductor;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingconductorClient = void 0;
4
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
+ const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
6
+ const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
7
+ const middleware_logger_1 = require("@aws-sdk/middleware-logger");
8
+ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
9
+ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
+ const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
+ const runtimeConfig_1 = require("./runtimeConfig");
13
+ class BillingconductorClient extends smithy_client_1.Client {
14
+ constructor(configuration) {
15
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
16
+ const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
17
+ const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
18
+ const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
19
+ const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
20
+ const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
21
+ const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
22
+ super(_config_6);
23
+ this.config = _config_6;
24
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
25
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
28
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
+ }
31
+ destroy() {
32
+ super.destroy();
33
+ }
34
+ }
35
+ exports.BillingconductorClient = BillingconductorClient;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssociateAccountsCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class AssociateAccountsCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BillingconductorClient";
18
+ const commandName = "AssociateAccountsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.AssociateAccountsInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.AssociateAccountsOutput.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1AssociateAccountsCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1AssociateAccountsCommand)(output, context);
34
+ }
35
+ }
36
+ exports.AssociateAccountsCommand = AssociateAccountsCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssociatePricingRulesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class AssociatePricingRulesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BillingconductorClient";
18
+ const commandName = "AssociatePricingRulesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.AssociatePricingRulesInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.AssociatePricingRulesOutput.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1AssociatePricingRulesCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1AssociatePricingRulesCommand)(output, context);
34
+ }
35
+ }
36
+ exports.AssociatePricingRulesCommand = AssociatePricingRulesCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchAssociateResourcesToCustomLineItemCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class BatchAssociateResourcesToCustomLineItemCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BillingconductorClient";
18
+ const commandName = "BatchAssociateResourcesToCustomLineItemCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.BatchAssociateResourcesToCustomLineItemInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.BatchAssociateResourcesToCustomLineItemOutput.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1BatchAssociateResourcesToCustomLineItemCommand)(output, context);
34
+ }
35
+ }
36
+ exports.BatchAssociateResourcesToCustomLineItemCommand = BatchAssociateResourcesToCustomLineItemCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BatchDisassociateResourcesFromCustomLineItemCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class BatchDisassociateResourcesFromCustomLineItemCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BillingconductorClient";
18
+ const commandName = "BatchDisassociateResourcesFromCustomLineItemCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.BatchDisassociateResourcesFromCustomLineItemInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.BatchDisassociateResourcesFromCustomLineItemOutput.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1BatchDisassociateResourcesFromCustomLineItemCommand)(output, context);
34
+ }
35
+ }
36
+ exports.BatchDisassociateResourcesFromCustomLineItemCommand = BatchDisassociateResourcesFromCustomLineItemCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBillingGroupCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
8
+ class CreateBillingGroupCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "BillingconductorClient";
18
+ const commandName = "CreateBillingGroupCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateBillingGroupInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateBillingGroupOutput.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1CreateBillingGroupCommand)(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1CreateBillingGroupCommand)(output, context);
34
+ }
35
+ }
36
+ exports.CreateBillingGroupCommand = CreateBillingGroupCommand;