@aws-sdk/client-billingconductor 3.489.0 → 3.495.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 (57) hide show
  1. package/dist-cjs/Billingconductor.js +1 -75
  2. package/dist-cjs/BillingconductorClient.js +1 -43
  3. package/dist-cjs/commands/AssociateAccountsCommand.js +1 -28
  4. package/dist-cjs/commands/AssociatePricingRulesCommand.js +1 -28
  5. package/dist-cjs/commands/BatchAssociateResourcesToCustomLineItemCommand.js +1 -28
  6. package/dist-cjs/commands/BatchDisassociateResourcesFromCustomLineItemCommand.js +1 -28
  7. package/dist-cjs/commands/CreateBillingGroupCommand.js +1 -29
  8. package/dist-cjs/commands/CreateCustomLineItemCommand.js +1 -29
  9. package/dist-cjs/commands/CreatePricingPlanCommand.js +1 -29
  10. package/dist-cjs/commands/CreatePricingRuleCommand.js +1 -29
  11. package/dist-cjs/commands/DeleteBillingGroupCommand.js +1 -28
  12. package/dist-cjs/commands/DeleteCustomLineItemCommand.js +1 -28
  13. package/dist-cjs/commands/DeletePricingPlanCommand.js +1 -28
  14. package/dist-cjs/commands/DeletePricingRuleCommand.js +1 -28
  15. package/dist-cjs/commands/DisassociateAccountsCommand.js +1 -28
  16. package/dist-cjs/commands/DisassociatePricingRulesCommand.js +1 -28
  17. package/dist-cjs/commands/GetBillingGroupCostReportCommand.js +1 -28
  18. package/dist-cjs/commands/ListAccountAssociationsCommand.js +1 -29
  19. package/dist-cjs/commands/ListBillingGroupCostReportsCommand.js +1 -28
  20. package/dist-cjs/commands/ListBillingGroupsCommand.js +1 -29
  21. package/dist-cjs/commands/ListCustomLineItemVersionsCommand.js +1 -29
  22. package/dist-cjs/commands/ListCustomLineItemsCommand.js +1 -29
  23. package/dist-cjs/commands/ListPricingPlansAssociatedWithPricingRuleCommand.js +1 -28
  24. package/dist-cjs/commands/ListPricingPlansCommand.js +1 -29
  25. package/dist-cjs/commands/ListPricingRulesAssociatedToPricingPlanCommand.js +1 -28
  26. package/dist-cjs/commands/ListPricingRulesCommand.js +1 -29
  27. package/dist-cjs/commands/ListResourcesAssociatedToCustomLineItemCommand.js +1 -28
  28. package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
  29. package/dist-cjs/commands/TagResourceCommand.js +1 -28
  30. package/dist-cjs/commands/UntagResourceCommand.js +1 -28
  31. package/dist-cjs/commands/UpdateBillingGroupCommand.js +1 -29
  32. package/dist-cjs/commands/UpdateCustomLineItemCommand.js +1 -29
  33. package/dist-cjs/commands/UpdatePricingPlanCommand.js +1 -29
  34. package/dist-cjs/commands/UpdatePricingRuleCommand.js +1 -29
  35. package/dist-cjs/commands/index.js +1 -35
  36. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  37. package/dist-cjs/extensionConfiguration.js +1 -2
  38. package/dist-cjs/index.js +3717 -11
  39. package/dist-cjs/models/BillingconductorServiceException.js +1 -12
  40. package/dist-cjs/models/index.js +1 -4
  41. package/dist-cjs/models/models_0.js +1 -392
  42. package/dist-cjs/pagination/GetBillingGroupCostReportPaginator.js +1 -7
  43. package/dist-cjs/pagination/Interfaces.js +1 -2
  44. package/dist-cjs/pagination/ListAccountAssociationsPaginator.js +1 -7
  45. package/dist-cjs/pagination/ListBillingGroupCostReportsPaginator.js +1 -7
  46. package/dist-cjs/pagination/ListBillingGroupsPaginator.js +1 -7
  47. package/dist-cjs/pagination/ListCustomLineItemVersionsPaginator.js +1 -7
  48. package/dist-cjs/pagination/ListCustomLineItemsPaginator.js +1 -7
  49. package/dist-cjs/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.js +1 -7
  50. package/dist-cjs/pagination/ListPricingPlansPaginator.js +1 -7
  51. package/dist-cjs/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.js +1 -7
  52. package/dist-cjs/pagination/ListPricingRulesPaginator.js +1 -7
  53. package/dist-cjs/pagination/ListResourcesAssociatedToCustomLineItemPaginator.js +1 -7
  54. package/dist-cjs/pagination/index.js +1 -15
  55. package/dist-cjs/protocols/Aws_restJson1.js +1 -2390
  56. package/dist-cjs/runtimeExtensions.js +1 -22
  57. package/package.json +40 -40
package/dist-cjs/index.js CHANGED
@@ -1,12 +1,3718 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BillingconductorServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./BillingconductorClient"), exports);
6
- tslib_1.__exportStar(require("./Billingconductor"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- require("@aws-sdk/util-endpoints");
11
- var BillingconductorServiceException_1 = require("./models/BillingconductorServiceException");
12
- Object.defineProperty(exports, "BillingconductorServiceException", { enumerable: true, get: function () { return BillingconductorServiceException_1.BillingconductorServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ AccountAssociationsListElementFilterSensitiveLog: () => AccountAssociationsListElementFilterSensitiveLog,
26
+ AssociateAccountsCommand: () => AssociateAccountsCommand,
27
+ AssociatePricingRulesCommand: () => AssociatePricingRulesCommand,
28
+ AssociateResourceErrorReason: () => AssociateResourceErrorReason,
29
+ BatchAssociateResourcesToCustomLineItemCommand: () => BatchAssociateResourcesToCustomLineItemCommand,
30
+ BatchDisassociateResourcesFromCustomLineItemCommand: () => BatchDisassociateResourcesFromCustomLineItemCommand,
31
+ BillingGroupListElementFilterSensitiveLog: () => BillingGroupListElementFilterSensitiveLog,
32
+ BillingGroupStatus: () => BillingGroupStatus,
33
+ Billingconductor: () => Billingconductor,
34
+ BillingconductorClient: () => BillingconductorClient,
35
+ BillingconductorServiceException: () => BillingconductorServiceException,
36
+ ConflictException: () => ConflictException,
37
+ ConflictExceptionReason: () => ConflictExceptionReason,
38
+ CreateBillingGroupCommand: () => CreateBillingGroupCommand,
39
+ CreateBillingGroupInputFilterSensitiveLog: () => CreateBillingGroupInputFilterSensitiveLog,
40
+ CreateCustomLineItemCommand: () => CreateCustomLineItemCommand,
41
+ CreateCustomLineItemInputFilterSensitiveLog: () => CreateCustomLineItemInputFilterSensitiveLog,
42
+ CreatePricingPlanCommand: () => CreatePricingPlanCommand,
43
+ CreatePricingPlanInputFilterSensitiveLog: () => CreatePricingPlanInputFilterSensitiveLog,
44
+ CreatePricingRuleCommand: () => CreatePricingRuleCommand,
45
+ CreatePricingRuleInputFilterSensitiveLog: () => CreatePricingRuleInputFilterSensitiveLog,
46
+ CurrencyCode: () => CurrencyCode,
47
+ CustomLineItemListElementFilterSensitiveLog: () => CustomLineItemListElementFilterSensitiveLog,
48
+ CustomLineItemRelationship: () => CustomLineItemRelationship,
49
+ CustomLineItemType: () => CustomLineItemType,
50
+ CustomLineItemVersionListElementFilterSensitiveLog: () => CustomLineItemVersionListElementFilterSensitiveLog,
51
+ DeleteBillingGroupCommand: () => DeleteBillingGroupCommand,
52
+ DeleteCustomLineItemCommand: () => DeleteCustomLineItemCommand,
53
+ DeletePricingPlanCommand: () => DeletePricingPlanCommand,
54
+ DeletePricingRuleCommand: () => DeletePricingRuleCommand,
55
+ DisassociateAccountsCommand: () => DisassociateAccountsCommand,
56
+ DisassociatePricingRulesCommand: () => DisassociatePricingRulesCommand,
57
+ GetBillingGroupCostReportCommand: () => GetBillingGroupCostReportCommand,
58
+ GroupByAttributeName: () => GroupByAttributeName,
59
+ InternalServerException: () => InternalServerException,
60
+ LineItemFilterAttributeName: () => LineItemFilterAttributeName,
61
+ LineItemFilterValue: () => LineItemFilterValue,
62
+ ListAccountAssociationsCommand: () => ListAccountAssociationsCommand,
63
+ ListAccountAssociationsOutputFilterSensitiveLog: () => ListAccountAssociationsOutputFilterSensitiveLog,
64
+ ListBillingGroupCostReportsCommand: () => ListBillingGroupCostReportsCommand,
65
+ ListBillingGroupsCommand: () => ListBillingGroupsCommand,
66
+ ListBillingGroupsOutputFilterSensitiveLog: () => ListBillingGroupsOutputFilterSensitiveLog,
67
+ ListCustomLineItemVersionsCommand: () => ListCustomLineItemVersionsCommand,
68
+ ListCustomLineItemVersionsOutputFilterSensitiveLog: () => ListCustomLineItemVersionsOutputFilterSensitiveLog,
69
+ ListCustomLineItemsCommand: () => ListCustomLineItemsCommand,
70
+ ListCustomLineItemsFilterFilterSensitiveLog: () => ListCustomLineItemsFilterFilterSensitiveLog,
71
+ ListCustomLineItemsInputFilterSensitiveLog: () => ListCustomLineItemsInputFilterSensitiveLog,
72
+ ListCustomLineItemsOutputFilterSensitiveLog: () => ListCustomLineItemsOutputFilterSensitiveLog,
73
+ ListPricingPlansAssociatedWithPricingRuleCommand: () => ListPricingPlansAssociatedWithPricingRuleCommand,
74
+ ListPricingPlansCommand: () => ListPricingPlansCommand,
75
+ ListPricingPlansOutputFilterSensitiveLog: () => ListPricingPlansOutputFilterSensitiveLog,
76
+ ListPricingRulesAssociatedToPricingPlanCommand: () => ListPricingRulesAssociatedToPricingPlanCommand,
77
+ ListPricingRulesCommand: () => ListPricingRulesCommand,
78
+ ListPricingRulesOutputFilterSensitiveLog: () => ListPricingRulesOutputFilterSensitiveLog,
79
+ ListResourcesAssociatedToCustomLineItemCommand: () => ListResourcesAssociatedToCustomLineItemCommand,
80
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
81
+ MatchOption: () => MatchOption,
82
+ PricingPlanListElementFilterSensitiveLog: () => PricingPlanListElementFilterSensitiveLog,
83
+ PricingRuleListElementFilterSensitiveLog: () => PricingRuleListElementFilterSensitiveLog,
84
+ PricingRuleScope: () => PricingRuleScope,
85
+ PricingRuleType: () => PricingRuleType,
86
+ ResourceNotFoundException: () => ResourceNotFoundException,
87
+ ServiceLimitExceededException: () => ServiceLimitExceededException,
88
+ TagResourceCommand: () => TagResourceCommand,
89
+ ThrottlingException: () => ThrottlingException,
90
+ UntagResourceCommand: () => UntagResourceCommand,
91
+ UpdateBillingGroupCommand: () => UpdateBillingGroupCommand,
92
+ UpdateBillingGroupInputFilterSensitiveLog: () => UpdateBillingGroupInputFilterSensitiveLog,
93
+ UpdateBillingGroupOutputFilterSensitiveLog: () => UpdateBillingGroupOutputFilterSensitiveLog,
94
+ UpdateCustomLineItemCommand: () => UpdateCustomLineItemCommand,
95
+ UpdateCustomLineItemInputFilterSensitiveLog: () => UpdateCustomLineItemInputFilterSensitiveLog,
96
+ UpdateCustomLineItemOutputFilterSensitiveLog: () => UpdateCustomLineItemOutputFilterSensitiveLog,
97
+ UpdatePricingPlanCommand: () => UpdatePricingPlanCommand,
98
+ UpdatePricingPlanInputFilterSensitiveLog: () => UpdatePricingPlanInputFilterSensitiveLog,
99
+ UpdatePricingPlanOutputFilterSensitiveLog: () => UpdatePricingPlanOutputFilterSensitiveLog,
100
+ UpdatePricingRuleCommand: () => UpdatePricingRuleCommand,
101
+ UpdatePricingRuleInputFilterSensitiveLog: () => UpdatePricingRuleInputFilterSensitiveLog,
102
+ UpdatePricingRuleOutputFilterSensitiveLog: () => UpdatePricingRuleOutputFilterSensitiveLog,
103
+ ValidationException: () => ValidationException,
104
+ ValidationExceptionReason: () => ValidationExceptionReason,
105
+ __Client: () => import_smithy_client.Client,
106
+ paginateGetBillingGroupCostReport: () => paginateGetBillingGroupCostReport,
107
+ paginateListAccountAssociations: () => paginateListAccountAssociations,
108
+ paginateListBillingGroupCostReports: () => paginateListBillingGroupCostReports,
109
+ paginateListBillingGroups: () => paginateListBillingGroups,
110
+ paginateListCustomLineItemVersions: () => paginateListCustomLineItemVersions,
111
+ paginateListCustomLineItems: () => paginateListCustomLineItems,
112
+ paginateListPricingPlans: () => paginateListPricingPlans,
113
+ paginateListPricingPlansAssociatedWithPricingRule: () => paginateListPricingPlansAssociatedWithPricingRule,
114
+ paginateListPricingRules: () => paginateListPricingRules,
115
+ paginateListPricingRulesAssociatedToPricingPlan: () => paginateListPricingRulesAssociatedToPricingPlan,
116
+ paginateListResourcesAssociatedToCustomLineItem: () => paginateListResourcesAssociatedToCustomLineItem
117
+ });
118
+ module.exports = __toCommonJS(src_exports);
119
+
120
+ // src/BillingconductorClient.ts
121
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
122
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
123
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
124
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
125
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
126
+ var import_config_resolver = require("@smithy/config-resolver");
127
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
128
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
129
+ var import_middleware_retry = require("@smithy/middleware-retry");
130
+
131
+
132
+ // src/endpoint/EndpointParameters.ts
133
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
134
+ return {
135
+ ...options,
136
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
137
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
138
+ defaultSigningName: "billingconductor"
139
+ };
140
+ }, "resolveClientEndpointParameters");
141
+ var commonParams = {
142
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
143
+ Endpoint: { type: "builtInParams", name: "endpoint" },
144
+ Region: { type: "builtInParams", name: "region" },
145
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
146
+ };
147
+
148
+ // src/BillingconductorClient.ts
149
+ var import_runtimeConfig = require("././runtimeConfig");
150
+
151
+ // src/runtimeExtensions.ts
152
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
153
+ var import_protocol_http = require("@smithy/protocol-http");
154
+ var import_smithy_client = require("@smithy/smithy-client");
155
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
156
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
157
+ const extensionConfiguration = {
158
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
159
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
160
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
161
+ };
162
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
163
+ return {
164
+ ...runtimeConfig,
165
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
166
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
167
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
168
+ };
169
+ }, "resolveRuntimeExtensions");
170
+
171
+ // src/BillingconductorClient.ts
172
+ var _BillingconductorClient = class _BillingconductorClient extends import_smithy_client.Client {
173
+ constructor(...[configuration]) {
174
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
175
+ const _config_1 = resolveClientEndpointParameters(_config_0);
176
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
177
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
178
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
179
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
180
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
181
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
182
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
183
+ super(_config_8);
184
+ this.config = _config_8;
185
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
186
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
187
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
188
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
189
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
190
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
191
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
192
+ }
193
+ /**
194
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
195
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
196
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
197
+ */
198
+ destroy() {
199
+ super.destroy();
200
+ }
201
+ };
202
+ __name(_BillingconductorClient, "BillingconductorClient");
203
+ var BillingconductorClient = _BillingconductorClient;
204
+
205
+ // src/Billingconductor.ts
206
+
207
+
208
+ // src/commands/AssociateAccountsCommand.ts
209
+
210
+ var import_middleware_serde = require("@smithy/middleware-serde");
211
+
212
+ var import_types = require("@smithy/types");
213
+
214
+ // src/protocols/Aws_restJson1.ts
215
+ var import_core = require("@smithy/core");
216
+
217
+
218
+ // src/models/BillingconductorServiceException.ts
219
+
220
+ var _BillingconductorServiceException = class _BillingconductorServiceException extends import_smithy_client.ServiceException {
221
+ /**
222
+ * @internal
223
+ */
224
+ constructor(options) {
225
+ super(options);
226
+ Object.setPrototypeOf(this, _BillingconductorServiceException.prototype);
227
+ }
228
+ };
229
+ __name(_BillingconductorServiceException, "BillingconductorServiceException");
230
+ var BillingconductorServiceException = _BillingconductorServiceException;
231
+
232
+ // src/models/models_0.ts
233
+
234
+ var _AccessDeniedException = class _AccessDeniedException extends BillingconductorServiceException {
235
+ /**
236
+ * @internal
237
+ */
238
+ constructor(opts) {
239
+ super({
240
+ name: "AccessDeniedException",
241
+ $fault: "client",
242
+ ...opts
243
+ });
244
+ this.name = "AccessDeniedException";
245
+ this.$fault = "client";
246
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
247
+ this.Message = opts.Message;
248
+ }
249
+ };
250
+ __name(_AccessDeniedException, "AccessDeniedException");
251
+ var AccessDeniedException = _AccessDeniedException;
252
+ var ConflictExceptionReason = {
253
+ PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT: "PRICING_PLAN_ATTACHED_TO_BILLING_GROUP_DELETE_CONFLICT",
254
+ PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT: "PRICING_RULE_ATTACHED_TO_PRICING_PLAN_DELETE_CONFLICT",
255
+ PRICING_RULE_IN_PRICING_PLAN_CONFLICT: "PRICING_RULE_IN_PRICING_PLAN_CONFLICT",
256
+ RESOURCE_NAME_CONFLICT: "RESOURCE_NAME_CONFLICT",
257
+ WRITE_CONFLICT_RETRY: "WRITE_CONFLICT_RETRY"
258
+ };
259
+ var _ConflictException = class _ConflictException extends BillingconductorServiceException {
260
+ /**
261
+ * @internal
262
+ */
263
+ constructor(opts) {
264
+ super({
265
+ name: "ConflictException",
266
+ $fault: "client",
267
+ ...opts
268
+ });
269
+ this.name = "ConflictException";
270
+ this.$fault = "client";
271
+ Object.setPrototypeOf(this, _ConflictException.prototype);
272
+ this.Message = opts.Message;
273
+ this.ResourceId = opts.ResourceId;
274
+ this.ResourceType = opts.ResourceType;
275
+ this.Reason = opts.Reason;
276
+ }
277
+ };
278
+ __name(_ConflictException, "ConflictException");
279
+ var ConflictException = _ConflictException;
280
+ var _InternalServerException = class _InternalServerException extends BillingconductorServiceException {
281
+ /**
282
+ * @internal
283
+ */
284
+ constructor(opts) {
285
+ super({
286
+ name: "InternalServerException",
287
+ $fault: "server",
288
+ ...opts
289
+ });
290
+ this.name = "InternalServerException";
291
+ this.$fault = "server";
292
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
293
+ this.Message = opts.Message;
294
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
295
+ }
296
+ };
297
+ __name(_InternalServerException, "InternalServerException");
298
+ var InternalServerException = _InternalServerException;
299
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends BillingconductorServiceException {
300
+ /**
301
+ * @internal
302
+ */
303
+ constructor(opts) {
304
+ super({
305
+ name: "ResourceNotFoundException",
306
+ $fault: "client",
307
+ ...opts
308
+ });
309
+ this.name = "ResourceNotFoundException";
310
+ this.$fault = "client";
311
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
312
+ this.Message = opts.Message;
313
+ this.ResourceId = opts.ResourceId;
314
+ this.ResourceType = opts.ResourceType;
315
+ }
316
+ };
317
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
318
+ var ResourceNotFoundException = _ResourceNotFoundException;
319
+ var _ServiceLimitExceededException = class _ServiceLimitExceededException extends BillingconductorServiceException {
320
+ /**
321
+ * @internal
322
+ */
323
+ constructor(opts) {
324
+ super({
325
+ name: "ServiceLimitExceededException",
326
+ $fault: "client",
327
+ ...opts
328
+ });
329
+ this.name = "ServiceLimitExceededException";
330
+ this.$fault = "client";
331
+ Object.setPrototypeOf(this, _ServiceLimitExceededException.prototype);
332
+ this.Message = opts.Message;
333
+ this.ResourceId = opts.ResourceId;
334
+ this.ResourceType = opts.ResourceType;
335
+ this.LimitCode = opts.LimitCode;
336
+ this.ServiceCode = opts.ServiceCode;
337
+ }
338
+ };
339
+ __name(_ServiceLimitExceededException, "ServiceLimitExceededException");
340
+ var ServiceLimitExceededException = _ServiceLimitExceededException;
341
+ var _ThrottlingException = class _ThrottlingException extends BillingconductorServiceException {
342
+ /**
343
+ * @internal
344
+ */
345
+ constructor(opts) {
346
+ super({
347
+ name: "ThrottlingException",
348
+ $fault: "client",
349
+ ...opts
350
+ });
351
+ this.name = "ThrottlingException";
352
+ this.$fault = "client";
353
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
354
+ this.Message = opts.Message;
355
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
356
+ }
357
+ };
358
+ __name(_ThrottlingException, "ThrottlingException");
359
+ var ThrottlingException = _ThrottlingException;
360
+ var ValidationExceptionReason = {
361
+ ACCOUNTS_ALREADY_ASSOCIATED: "ACCOUNTS_ALREADY_ASSOCIATED",
362
+ ACCOUNTS_NOT_ASSOCIATED: "ACCOUNTS_NOT_ASSOCIATED",
363
+ CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP: "CANNOT_DELETE_AUTO_ASSOCIATE_BILLING_GROUP",
364
+ CANNOT_PARSE: "CANNOT_PARSE",
365
+ CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS: "CUSTOM_LINE_ITEM_ASSOCIATION_EXISTS",
366
+ DUPLICATE_ACCOUNT: "DUPLICATE_ACCOUNT",
367
+ DUPLICATE_PRICINGRULE_ARNS: "DUPLICATE_PRICINGRULE_ARNS",
368
+ FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
369
+ ILLEGAL_ACCOUNTS: "ILLEGAL_ACCOUNTS",
370
+ ILLEGAL_ACCOUNT_ID: "ILLEGAL_ACCOUNT_ID",
371
+ ILLEGAL_BILLING_ENTITY: "ILLEGAL_BILLING_ENTITY",
372
+ ILLEGAL_BILLING_PERIOD: "ILLEGAL_BILLING_PERIOD",
373
+ ILLEGAL_BILLING_PERIOD_RANGE: "ILLEGAL_BILLING_PERIOD_RANGE",
374
+ ILLEGAL_CHARGE_DETAILS: "ILLEGAL_CHARGE_DETAILS",
375
+ ILLEGAL_CHILD_ASSOCIATE_RESOURCE: "ILLEGAL_CHILD_ASSOCIATE_RESOURCE",
376
+ ILLEGAL_CUSTOMLINEITEM: "ILLEGAL_CUSTOMLINEITEM",
377
+ ILLEGAL_CUSTOMLINEITEM_MODIFICATION: "ILLEGAL_CUSTOMLINEITEM_MODIFICATION",
378
+ ILLEGAL_CUSTOMLINEITEM_UPDATE: "ILLEGAL_CUSTOMLINEITEM_UPDATE",
379
+ ILLEGAL_ENDED_BILLINGGROUP: "ILLEGAL_ENDED_BILLINGGROUP",
380
+ ILLEGAL_EXPRESSION: "ILLEGAL_EXPRESSION",
381
+ ILLEGAL_MODIFIER_PERCENTAGE: "ILLEGAL_MODIFIER_PERCENTAGE",
382
+ ILLEGAL_OPERATION: "ILLEGAL_OPERATION",
383
+ ILLEGAL_PRIMARY_ACCOUNT: "ILLEGAL_PRIMARY_ACCOUNT",
384
+ ILLEGAL_RESOURCE_ARNS: "ILLEGAL_RESOURCE_ARNS",
385
+ ILLEGAL_SCOPE: "ILLEGAL_SCOPE",
386
+ ILLEGAL_SERVICE: "ILLEGAL_SERVICE",
387
+ ILLEGAL_TIERING_INPUT: "ILLEGAL_TIERING_INPUT",
388
+ ILLEGAL_TYPE: "ILLEGAL_TYPE",
389
+ ILLEGAL_UPDATE_CHARGE_DETAILS: "ILLEGAL_UPDATE_CHARGE_DETAILS",
390
+ ILLEGAL_USAGE_TYPE: "ILLEGAL_USAGE_TYPE",
391
+ INVALID_ARN: "INVALID_ARN",
392
+ INVALID_BILLINGVIEW_ARN: "INVALID_BILLINGVIEW_ARN",
393
+ INVALID_BILLING_GROUP: "INVALID_BILLING_GROUP",
394
+ INVALID_BILLING_GROUP_STATUS: "INVALID_BILLING_GROUP_STATUS",
395
+ INVALID_BILLING_PERIOD_FOR_OPERATION: "INVALID_BILLING_PERIOD_FOR_OPERATION",
396
+ INVALID_FILTER: "INVALID_FILTER",
397
+ INVALID_SKU_COMBO: "INVALID_SKU_COMBO",
398
+ INVALID_TIME_RANGE: "INVALID_TIME_RANGE",
399
+ MISMATCHED_BILLINGGROUP_ARN: "MISMATCHED_BILLINGGROUP_ARN",
400
+ MISMATCHED_BILLINGVIEW_ARN: "MISMATCHED_BILLINGVIEW_ARN",
401
+ MISMATCHED_CUSTOMLINEITEM_ARN: "MISMATCHED_CUSTOMLINEITEM_ARN",
402
+ MISMATCHED_PRICINGPLAN_ARN: "MISMATCHED_PRICINGPLAN_ARN",
403
+ MISMATCHED_PRICINGRULE_ARN: "MISMATCHED_PRICINGRULE_ARN",
404
+ MISSING_BILLINGGROUP: "MISSING_BILLINGGROUP",
405
+ MISSING_CUSTOMLINEITEM: "MISSING_CUSTOMLINEITEM",
406
+ MISSING_LINKED_ACCOUNT_IDS: "MISSING_LINKED_ACCOUNT_IDS",
407
+ MISSING_PRICINGPLAN: "MISSING_PRICINGPLAN",
408
+ MISSING_PRICING_PLAN_ARN: "MISSING_PRICING_PLAN_ARN",
409
+ MULTIPLE_LINKED_ACCOUNT_IDS: "MULTIPLE_LINKED_ACCOUNT_IDS",
410
+ MULTIPLE_PRICING_PLAN_ARN: "MULTIPLE_PRICING_PLAN_ARN",
411
+ OTHER: "OTHER",
412
+ PRICINGRULES_ALREADY_ASSOCIATED: "PRICINGRULES_ALREADY_ASSOCIATED",
413
+ PRICINGRULES_NOT_ASSOCIATED: "PRICINGRULES_NOT_ASSOCIATED",
414
+ PRICINGRULES_NOT_EXIST: "PRICINGRULES_NOT_EXIST",
415
+ PRIMARY_CANNOT_DISASSOCIATE: "PRIMARY_CANNOT_DISASSOCIATE",
416
+ PRIMARY_NOT_ASSOCIATED: "PRIMARY_NOT_ASSOCIATED",
417
+ TOO_MANY_ACCOUNTS_IN_REQUEST: "TOO_MANY_ACCOUNTS_IN_REQUEST",
418
+ TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS: "TOO_MANY_AUTO_ASSOCIATE_BILLING_GROUPS",
419
+ TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST: "TOO_MANY_CUSTOMLINEITEMS_IN_REQUEST",
420
+ UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
421
+ };
422
+ var _ValidationException = class _ValidationException extends BillingconductorServiceException {
423
+ /**
424
+ * @internal
425
+ */
426
+ constructor(opts) {
427
+ super({
428
+ name: "ValidationException",
429
+ $fault: "client",
430
+ ...opts
431
+ });
432
+ this.name = "ValidationException";
433
+ this.$fault = "client";
434
+ Object.setPrototypeOf(this, _ValidationException.prototype);
435
+ this.Message = opts.Message;
436
+ this.Reason = opts.Reason;
437
+ this.Fields = opts.Fields;
438
+ }
439
+ };
440
+ __name(_ValidationException, "ValidationException");
441
+ var ValidationException = _ValidationException;
442
+ var AssociateResourceErrorReason = {
443
+ ILLEGAL_CUSTOMLINEITEM: "ILLEGAL_CUSTOMLINEITEM",
444
+ INTERNAL_SERVER_EXCEPTION: "INTERNAL_SERVER_EXCEPTION",
445
+ INVALID_ARN: "INVALID_ARN",
446
+ INVALID_BILLING_PERIOD_RANGE: "INVALID_BILLING_PERIOD_RANGE",
447
+ SERVICE_LIMIT_EXCEEDED: "SERVICE_LIMIT_EXCEEDED"
448
+ };
449
+ var BillingGroupStatus = {
450
+ ACTIVE: "ACTIVE",
451
+ PRIMARY_ACCOUNT_MISSING: "PRIMARY_ACCOUNT_MISSING"
452
+ };
453
+ var LineItemFilterAttributeName = {
454
+ LINE_ITEM_TYPE: "LINE_ITEM_TYPE"
455
+ };
456
+ var MatchOption = {
457
+ NOT_EQUAL: "NOT_EQUAL"
458
+ };
459
+ var LineItemFilterValue = {
460
+ SAVINGS_PLAN_NEGATION: "SAVINGS_PLAN_NEGATION"
461
+ };
462
+ var CustomLineItemType = {
463
+ CREDIT: "CREDIT",
464
+ FEE: "FEE"
465
+ };
466
+ var CurrencyCode = {
467
+ CNY: "CNY",
468
+ USD: "USD"
469
+ };
470
+ var CustomLineItemRelationship = {
471
+ CHILD: "CHILD",
472
+ PARENT: "PARENT"
473
+ };
474
+ var GroupByAttributeName = {
475
+ BILLING_PERIOD: "BILLING_PERIOD",
476
+ PRODUCT_NAME: "PRODUCT_NAME"
477
+ };
478
+ var PricingRuleScope = {
479
+ BILLING_ENTITY: "BILLING_ENTITY",
480
+ GLOBAL: "GLOBAL",
481
+ SERVICE: "SERVICE",
482
+ SKU: "SKU"
483
+ };
484
+ var PricingRuleType = {
485
+ DISCOUNT: "DISCOUNT",
486
+ MARKUP: "MARKUP",
487
+ TIERING: "TIERING"
488
+ };
489
+ var AccountAssociationsListElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
490
+ ...obj,
491
+ ...obj.AccountName && { AccountName: import_smithy_client.SENSITIVE_STRING },
492
+ ...obj.AccountEmail && { AccountEmail: import_smithy_client.SENSITIVE_STRING }
493
+ }), "AccountAssociationsListElementFilterSensitiveLog");
494
+ var CreateBillingGroupInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
495
+ ...obj,
496
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
497
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
498
+ }), "CreateBillingGroupInputFilterSensitiveLog");
499
+ var BillingGroupListElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
500
+ ...obj,
501
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
502
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
503
+ }), "BillingGroupListElementFilterSensitiveLog");
504
+ var ListBillingGroupsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
505
+ ...obj,
506
+ ...obj.BillingGroups && {
507
+ BillingGroups: obj.BillingGroups.map((item) => BillingGroupListElementFilterSensitiveLog(item))
508
+ }
509
+ }), "ListBillingGroupsOutputFilterSensitiveLog");
510
+ var UpdateBillingGroupInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
511
+ ...obj,
512
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
513
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
514
+ }), "UpdateBillingGroupInputFilterSensitiveLog");
515
+ var UpdateBillingGroupOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
516
+ ...obj,
517
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
518
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
519
+ }), "UpdateBillingGroupOutputFilterSensitiveLog");
520
+ var CreateCustomLineItemInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
521
+ ...obj,
522
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
523
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
524
+ }), "CreateCustomLineItemInputFilterSensitiveLog");
525
+ var ListCustomLineItemsFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
526
+ ...obj,
527
+ ...obj.Names && { Names: import_smithy_client.SENSITIVE_STRING }
528
+ }), "ListCustomLineItemsFilterFilterSensitiveLog");
529
+ var ListCustomLineItemsInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
530
+ ...obj,
531
+ ...obj.Filters && { Filters: ListCustomLineItemsFilterFilterSensitiveLog(obj.Filters) }
532
+ }), "ListCustomLineItemsInputFilterSensitiveLog");
533
+ var CustomLineItemListElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
534
+ ...obj,
535
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
536
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
537
+ }), "CustomLineItemListElementFilterSensitiveLog");
538
+ var ListCustomLineItemsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
539
+ ...obj,
540
+ ...obj.CustomLineItems && {
541
+ CustomLineItems: obj.CustomLineItems.map((item) => CustomLineItemListElementFilterSensitiveLog(item))
542
+ }
543
+ }), "ListCustomLineItemsOutputFilterSensitiveLog");
544
+ var CustomLineItemVersionListElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
545
+ ...obj,
546
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
547
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
548
+ }), "CustomLineItemVersionListElementFilterSensitiveLog");
549
+ var ListCustomLineItemVersionsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
550
+ ...obj,
551
+ ...obj.CustomLineItemVersions && {
552
+ CustomLineItemVersions: obj.CustomLineItemVersions.map(
553
+ (item) => CustomLineItemVersionListElementFilterSensitiveLog(item)
554
+ )
555
+ }
556
+ }), "ListCustomLineItemVersionsOutputFilterSensitiveLog");
557
+ var UpdateCustomLineItemInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
558
+ ...obj,
559
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
560
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
561
+ }), "UpdateCustomLineItemInputFilterSensitiveLog");
562
+ var UpdateCustomLineItemOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
563
+ ...obj,
564
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
565
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
566
+ }), "UpdateCustomLineItemOutputFilterSensitiveLog");
567
+ var ListAccountAssociationsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
568
+ ...obj,
569
+ ...obj.LinkedAccounts && {
570
+ LinkedAccounts: obj.LinkedAccounts.map((item) => AccountAssociationsListElementFilterSensitiveLog(item))
571
+ }
572
+ }), "ListAccountAssociationsOutputFilterSensitiveLog");
573
+ var CreatePricingPlanInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
574
+ ...obj,
575
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
576
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
577
+ }), "CreatePricingPlanInputFilterSensitiveLog");
578
+ var PricingPlanListElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
579
+ ...obj,
580
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
581
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
582
+ }), "PricingPlanListElementFilterSensitiveLog");
583
+ var ListPricingPlansOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
584
+ ...obj,
585
+ ...obj.PricingPlans && {
586
+ PricingPlans: obj.PricingPlans.map((item) => PricingPlanListElementFilterSensitiveLog(item))
587
+ }
588
+ }), "ListPricingPlansOutputFilterSensitiveLog");
589
+ var UpdatePricingPlanInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
590
+ ...obj,
591
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
592
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
593
+ }), "UpdatePricingPlanInputFilterSensitiveLog");
594
+ var UpdatePricingPlanOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
595
+ ...obj,
596
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
597
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
598
+ }), "UpdatePricingPlanOutputFilterSensitiveLog");
599
+ var CreatePricingRuleInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
600
+ ...obj,
601
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
602
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
603
+ }), "CreatePricingRuleInputFilterSensitiveLog");
604
+ var PricingRuleListElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
605
+ ...obj,
606
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
607
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
608
+ }), "PricingRuleListElementFilterSensitiveLog");
609
+ var ListPricingRulesOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
610
+ ...obj,
611
+ ...obj.PricingRules && {
612
+ PricingRules: obj.PricingRules.map((item) => PricingRuleListElementFilterSensitiveLog(item))
613
+ }
614
+ }), "ListPricingRulesOutputFilterSensitiveLog");
615
+ var UpdatePricingRuleInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
616
+ ...obj,
617
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
618
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
619
+ }), "UpdatePricingRuleInputFilterSensitiveLog");
620
+ var UpdatePricingRuleOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
621
+ ...obj,
622
+ ...obj.Name && { Name: import_smithy_client.SENSITIVE_STRING },
623
+ ...obj.Description && { Description: import_smithy_client.SENSITIVE_STRING }
624
+ }), "UpdatePricingRuleOutputFilterSensitiveLog");
625
+
626
+ // src/protocols/Aws_restJson1.ts
627
+ var se_AssociateAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
628
+ const b = (0, import_core.requestBuilder)(input, context);
629
+ const headers = {
630
+ "content-type": "application/json"
631
+ };
632
+ b.bp("/associate-accounts");
633
+ let body;
634
+ body = JSON.stringify(
635
+ (0, import_smithy_client.take)(input, {
636
+ AccountIds: (_) => (0, import_smithy_client._json)(_),
637
+ Arn: []
638
+ })
639
+ );
640
+ b.m("POST").h(headers).b(body);
641
+ return b.build();
642
+ }, "se_AssociateAccountsCommand");
643
+ var se_AssociatePricingRulesCommand = /* @__PURE__ */ __name(async (input, context) => {
644
+ const b = (0, import_core.requestBuilder)(input, context);
645
+ const headers = {
646
+ "content-type": "application/json"
647
+ };
648
+ b.bp("/associate-pricing-rules");
649
+ let body;
650
+ body = JSON.stringify(
651
+ (0, import_smithy_client.take)(input, {
652
+ Arn: [],
653
+ PricingRuleArns: (_) => (0, import_smithy_client._json)(_)
654
+ })
655
+ );
656
+ b.m("PUT").h(headers).b(body);
657
+ return b.build();
658
+ }, "se_AssociatePricingRulesCommand");
659
+ var se_BatchAssociateResourcesToCustomLineItemCommand = /* @__PURE__ */ __name(async (input, context) => {
660
+ const b = (0, import_core.requestBuilder)(input, context);
661
+ const headers = {
662
+ "content-type": "application/json"
663
+ };
664
+ b.bp("/batch-associate-resources-to-custom-line-item");
665
+ let body;
666
+ body = JSON.stringify(
667
+ (0, import_smithy_client.take)(input, {
668
+ BillingPeriodRange: (_) => (0, import_smithy_client._json)(_),
669
+ ResourceArns: (_) => (0, import_smithy_client._json)(_),
670
+ TargetArn: []
671
+ })
672
+ );
673
+ b.m("PUT").h(headers).b(body);
674
+ return b.build();
675
+ }, "se_BatchAssociateResourcesToCustomLineItemCommand");
676
+ var se_BatchDisassociateResourcesFromCustomLineItemCommand = /* @__PURE__ */ __name(async (input, context) => {
677
+ const b = (0, import_core.requestBuilder)(input, context);
678
+ const headers = {
679
+ "content-type": "application/json"
680
+ };
681
+ b.bp("/batch-disassociate-resources-from-custom-line-item");
682
+ let body;
683
+ body = JSON.stringify(
684
+ (0, import_smithy_client.take)(input, {
685
+ BillingPeriodRange: (_) => (0, import_smithy_client._json)(_),
686
+ ResourceArns: (_) => (0, import_smithy_client._json)(_),
687
+ TargetArn: []
688
+ })
689
+ );
690
+ b.m("PUT").h(headers).b(body);
691
+ return b.build();
692
+ }, "se_BatchDisassociateResourcesFromCustomLineItemCommand");
693
+ var se_CreateBillingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
694
+ const b = (0, import_core.requestBuilder)(input, context);
695
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
696
+ "content-type": "application/json",
697
+ [_xact]: input[_CT]
698
+ });
699
+ b.bp("/create-billing-group");
700
+ let body;
701
+ body = JSON.stringify(
702
+ (0, import_smithy_client.take)(input, {
703
+ AccountGrouping: (_) => (0, import_smithy_client._json)(_),
704
+ ComputationPreference: (_) => (0, import_smithy_client._json)(_),
705
+ Description: [],
706
+ Name: [],
707
+ PrimaryAccountId: [],
708
+ Tags: (_) => (0, import_smithy_client._json)(_)
709
+ })
710
+ );
711
+ b.m("POST").h(headers).b(body);
712
+ return b.build();
713
+ }, "se_CreateBillingGroupCommand");
714
+ var se_CreateCustomLineItemCommand = /* @__PURE__ */ __name(async (input, context) => {
715
+ const b = (0, import_core.requestBuilder)(input, context);
716
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
717
+ "content-type": "application/json",
718
+ [_xact]: input[_CT]
719
+ });
720
+ b.bp("/create-custom-line-item");
721
+ let body;
722
+ body = JSON.stringify(
723
+ (0, import_smithy_client.take)(input, {
724
+ AccountId: [],
725
+ BillingGroupArn: [],
726
+ BillingPeriodRange: (_) => (0, import_smithy_client._json)(_),
727
+ ChargeDetails: (_) => se_CustomLineItemChargeDetails(_, context),
728
+ Description: [],
729
+ Name: [],
730
+ Tags: (_) => (0, import_smithy_client._json)(_)
731
+ })
732
+ );
733
+ b.m("POST").h(headers).b(body);
734
+ return b.build();
735
+ }, "se_CreateCustomLineItemCommand");
736
+ var se_CreatePricingPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
737
+ const b = (0, import_core.requestBuilder)(input, context);
738
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
739
+ "content-type": "application/json",
740
+ [_xact]: input[_CT]
741
+ });
742
+ b.bp("/create-pricing-plan");
743
+ let body;
744
+ body = JSON.stringify(
745
+ (0, import_smithy_client.take)(input, {
746
+ Description: [],
747
+ Name: [],
748
+ PricingRuleArns: (_) => (0, import_smithy_client._json)(_),
749
+ Tags: (_) => (0, import_smithy_client._json)(_)
750
+ })
751
+ );
752
+ b.m("POST").h(headers).b(body);
753
+ return b.build();
754
+ }, "se_CreatePricingPlanCommand");
755
+ var se_CreatePricingRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
756
+ const b = (0, import_core.requestBuilder)(input, context);
757
+ const headers = (0, import_smithy_client.map)({}, isSerializableHeaderValue, {
758
+ "content-type": "application/json",
759
+ [_xact]: input[_CT]
760
+ });
761
+ b.bp("/create-pricing-rule");
762
+ let body;
763
+ body = JSON.stringify(
764
+ (0, import_smithy_client.take)(input, {
765
+ BillingEntity: [],
766
+ Description: [],
767
+ ModifierPercentage: (_) => (0, import_smithy_client.serializeFloat)(_),
768
+ Name: [],
769
+ Operation: [],
770
+ Scope: [],
771
+ Service: [],
772
+ Tags: (_) => (0, import_smithy_client._json)(_),
773
+ Tiering: (_) => (0, import_smithy_client._json)(_),
774
+ Type: [],
775
+ UsageType: []
776
+ })
777
+ );
778
+ b.m("POST").h(headers).b(body);
779
+ return b.build();
780
+ }, "se_CreatePricingRuleCommand");
781
+ var se_DeleteBillingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
782
+ const b = (0, import_core.requestBuilder)(input, context);
783
+ const headers = {
784
+ "content-type": "application/json"
785
+ };
786
+ b.bp("/delete-billing-group");
787
+ let body;
788
+ body = JSON.stringify(
789
+ (0, import_smithy_client.take)(input, {
790
+ Arn: []
791
+ })
792
+ );
793
+ b.m("POST").h(headers).b(body);
794
+ return b.build();
795
+ }, "se_DeleteBillingGroupCommand");
796
+ var se_DeleteCustomLineItemCommand = /* @__PURE__ */ __name(async (input, context) => {
797
+ const b = (0, import_core.requestBuilder)(input, context);
798
+ const headers = {
799
+ "content-type": "application/json"
800
+ };
801
+ b.bp("/delete-custom-line-item");
802
+ let body;
803
+ body = JSON.stringify(
804
+ (0, import_smithy_client.take)(input, {
805
+ Arn: [],
806
+ BillingPeriodRange: (_) => (0, import_smithy_client._json)(_)
807
+ })
808
+ );
809
+ b.m("POST").h(headers).b(body);
810
+ return b.build();
811
+ }, "se_DeleteCustomLineItemCommand");
812
+ var se_DeletePricingPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
813
+ const b = (0, import_core.requestBuilder)(input, context);
814
+ const headers = {
815
+ "content-type": "application/json"
816
+ };
817
+ b.bp("/delete-pricing-plan");
818
+ let body;
819
+ body = JSON.stringify(
820
+ (0, import_smithy_client.take)(input, {
821
+ Arn: []
822
+ })
823
+ );
824
+ b.m("POST").h(headers).b(body);
825
+ return b.build();
826
+ }, "se_DeletePricingPlanCommand");
827
+ var se_DeletePricingRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
828
+ const b = (0, import_core.requestBuilder)(input, context);
829
+ const headers = {
830
+ "content-type": "application/json"
831
+ };
832
+ b.bp("/delete-pricing-rule");
833
+ let body;
834
+ body = JSON.stringify(
835
+ (0, import_smithy_client.take)(input, {
836
+ Arn: []
837
+ })
838
+ );
839
+ b.m("POST").h(headers).b(body);
840
+ return b.build();
841
+ }, "se_DeletePricingRuleCommand");
842
+ var se_DisassociateAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
843
+ const b = (0, import_core.requestBuilder)(input, context);
844
+ const headers = {
845
+ "content-type": "application/json"
846
+ };
847
+ b.bp("/disassociate-accounts");
848
+ let body;
849
+ body = JSON.stringify(
850
+ (0, import_smithy_client.take)(input, {
851
+ AccountIds: (_) => (0, import_smithy_client._json)(_),
852
+ Arn: []
853
+ })
854
+ );
855
+ b.m("POST").h(headers).b(body);
856
+ return b.build();
857
+ }, "se_DisassociateAccountsCommand");
858
+ var se_DisassociatePricingRulesCommand = /* @__PURE__ */ __name(async (input, context) => {
859
+ const b = (0, import_core.requestBuilder)(input, context);
860
+ const headers = {
861
+ "content-type": "application/json"
862
+ };
863
+ b.bp("/disassociate-pricing-rules");
864
+ let body;
865
+ body = JSON.stringify(
866
+ (0, import_smithy_client.take)(input, {
867
+ Arn: [],
868
+ PricingRuleArns: (_) => (0, import_smithy_client._json)(_)
869
+ })
870
+ );
871
+ b.m("PUT").h(headers).b(body);
872
+ return b.build();
873
+ }, "se_DisassociatePricingRulesCommand");
874
+ var se_GetBillingGroupCostReportCommand = /* @__PURE__ */ __name(async (input, context) => {
875
+ const b = (0, import_core.requestBuilder)(input, context);
876
+ const headers = {
877
+ "content-type": "application/json"
878
+ };
879
+ b.bp("/get-billing-group-cost-report");
880
+ let body;
881
+ body = JSON.stringify(
882
+ (0, import_smithy_client.take)(input, {
883
+ Arn: [],
884
+ BillingPeriodRange: (_) => (0, import_smithy_client._json)(_),
885
+ GroupBy: (_) => (0, import_smithy_client._json)(_),
886
+ MaxResults: [],
887
+ NextToken: []
888
+ })
889
+ );
890
+ b.m("POST").h(headers).b(body);
891
+ return b.build();
892
+ }, "se_GetBillingGroupCostReportCommand");
893
+ var se_ListAccountAssociationsCommand = /* @__PURE__ */ __name(async (input, context) => {
894
+ const b = (0, import_core.requestBuilder)(input, context);
895
+ const headers = {
896
+ "content-type": "application/json"
897
+ };
898
+ b.bp("/list-account-associations");
899
+ let body;
900
+ body = JSON.stringify(
901
+ (0, import_smithy_client.take)(input, {
902
+ BillingPeriod: [],
903
+ Filters: (_) => (0, import_smithy_client._json)(_),
904
+ NextToken: []
905
+ })
906
+ );
907
+ b.m("POST").h(headers).b(body);
908
+ return b.build();
909
+ }, "se_ListAccountAssociationsCommand");
910
+ var se_ListBillingGroupCostReportsCommand = /* @__PURE__ */ __name(async (input, context) => {
911
+ const b = (0, import_core.requestBuilder)(input, context);
912
+ const headers = {
913
+ "content-type": "application/json"
914
+ };
915
+ b.bp("/list-billing-group-cost-reports");
916
+ let body;
917
+ body = JSON.stringify(
918
+ (0, import_smithy_client.take)(input, {
919
+ BillingPeriod: [],
920
+ Filters: (_) => (0, import_smithy_client._json)(_),
921
+ MaxResults: [],
922
+ NextToken: []
923
+ })
924
+ );
925
+ b.m("POST").h(headers).b(body);
926
+ return b.build();
927
+ }, "se_ListBillingGroupCostReportsCommand");
928
+ var se_ListBillingGroupsCommand = /* @__PURE__ */ __name(async (input, context) => {
929
+ const b = (0, import_core.requestBuilder)(input, context);
930
+ const headers = {
931
+ "content-type": "application/json"
932
+ };
933
+ b.bp("/list-billing-groups");
934
+ let body;
935
+ body = JSON.stringify(
936
+ (0, import_smithy_client.take)(input, {
937
+ BillingPeriod: [],
938
+ Filters: (_) => (0, import_smithy_client._json)(_),
939
+ MaxResults: [],
940
+ NextToken: []
941
+ })
942
+ );
943
+ b.m("POST").h(headers).b(body);
944
+ return b.build();
945
+ }, "se_ListBillingGroupsCommand");
946
+ var se_ListCustomLineItemsCommand = /* @__PURE__ */ __name(async (input, context) => {
947
+ const b = (0, import_core.requestBuilder)(input, context);
948
+ const headers = {
949
+ "content-type": "application/json"
950
+ };
951
+ b.bp("/list-custom-line-items");
952
+ let body;
953
+ body = JSON.stringify(
954
+ (0, import_smithy_client.take)(input, {
955
+ BillingPeriod: [],
956
+ Filters: (_) => (0, import_smithy_client._json)(_),
957
+ MaxResults: [],
958
+ NextToken: []
959
+ })
960
+ );
961
+ b.m("POST").h(headers).b(body);
962
+ return b.build();
963
+ }, "se_ListCustomLineItemsCommand");
964
+ var se_ListCustomLineItemVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
965
+ const b = (0, import_core.requestBuilder)(input, context);
966
+ const headers = {
967
+ "content-type": "application/json"
968
+ };
969
+ b.bp("/list-custom-line-item-versions");
970
+ let body;
971
+ body = JSON.stringify(
972
+ (0, import_smithy_client.take)(input, {
973
+ Arn: [],
974
+ Filters: (_) => (0, import_smithy_client._json)(_),
975
+ MaxResults: [],
976
+ NextToken: []
977
+ })
978
+ );
979
+ b.m("POST").h(headers).b(body);
980
+ return b.build();
981
+ }, "se_ListCustomLineItemVersionsCommand");
982
+ var se_ListPricingPlansCommand = /* @__PURE__ */ __name(async (input, context) => {
983
+ const b = (0, import_core.requestBuilder)(input, context);
984
+ const headers = {
985
+ "content-type": "application/json"
986
+ };
987
+ b.bp("/list-pricing-plans");
988
+ let body;
989
+ body = JSON.stringify(
990
+ (0, import_smithy_client.take)(input, {
991
+ BillingPeriod: [],
992
+ Filters: (_) => (0, import_smithy_client._json)(_),
993
+ MaxResults: [],
994
+ NextToken: []
995
+ })
996
+ );
997
+ b.m("POST").h(headers).b(body);
998
+ return b.build();
999
+ }, "se_ListPricingPlansCommand");
1000
+ var se_ListPricingPlansAssociatedWithPricingRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
1001
+ const b = (0, import_core.requestBuilder)(input, context);
1002
+ const headers = {
1003
+ "content-type": "application/json"
1004
+ };
1005
+ b.bp("/list-pricing-plans-associated-with-pricing-rule");
1006
+ let body;
1007
+ body = JSON.stringify(
1008
+ (0, import_smithy_client.take)(input, {
1009
+ BillingPeriod: [],
1010
+ MaxResults: [],
1011
+ NextToken: [],
1012
+ PricingRuleArn: []
1013
+ })
1014
+ );
1015
+ b.m("POST").h(headers).b(body);
1016
+ return b.build();
1017
+ }, "se_ListPricingPlansAssociatedWithPricingRuleCommand");
1018
+ var se_ListPricingRulesCommand = /* @__PURE__ */ __name(async (input, context) => {
1019
+ const b = (0, import_core.requestBuilder)(input, context);
1020
+ const headers = {
1021
+ "content-type": "application/json"
1022
+ };
1023
+ b.bp("/list-pricing-rules");
1024
+ let body;
1025
+ body = JSON.stringify(
1026
+ (0, import_smithy_client.take)(input, {
1027
+ BillingPeriod: [],
1028
+ Filters: (_) => (0, import_smithy_client._json)(_),
1029
+ MaxResults: [],
1030
+ NextToken: []
1031
+ })
1032
+ );
1033
+ b.m("POST").h(headers).b(body);
1034
+ return b.build();
1035
+ }, "se_ListPricingRulesCommand");
1036
+ var se_ListPricingRulesAssociatedToPricingPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
1037
+ const b = (0, import_core.requestBuilder)(input, context);
1038
+ const headers = {
1039
+ "content-type": "application/json"
1040
+ };
1041
+ b.bp("/list-pricing-rules-associated-to-pricing-plan");
1042
+ let body;
1043
+ body = JSON.stringify(
1044
+ (0, import_smithy_client.take)(input, {
1045
+ BillingPeriod: [],
1046
+ MaxResults: [],
1047
+ NextToken: [],
1048
+ PricingPlanArn: []
1049
+ })
1050
+ );
1051
+ b.m("POST").h(headers).b(body);
1052
+ return b.build();
1053
+ }, "se_ListPricingRulesAssociatedToPricingPlanCommand");
1054
+ var se_ListResourcesAssociatedToCustomLineItemCommand = /* @__PURE__ */ __name(async (input, context) => {
1055
+ const b = (0, import_core.requestBuilder)(input, context);
1056
+ const headers = {
1057
+ "content-type": "application/json"
1058
+ };
1059
+ b.bp("/list-resources-associated-to-custom-line-item");
1060
+ let body;
1061
+ body = JSON.stringify(
1062
+ (0, import_smithy_client.take)(input, {
1063
+ Arn: [],
1064
+ BillingPeriod: [],
1065
+ Filters: (_) => (0, import_smithy_client._json)(_),
1066
+ MaxResults: [],
1067
+ NextToken: []
1068
+ })
1069
+ );
1070
+ b.m("POST").h(headers).b(body);
1071
+ return b.build();
1072
+ }, "se_ListResourcesAssociatedToCustomLineItemCommand");
1073
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1074
+ const b = (0, import_core.requestBuilder)(input, context);
1075
+ const headers = {};
1076
+ b.bp("/tags/{ResourceArn}");
1077
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1078
+ let body;
1079
+ b.m("GET").h(headers).b(body);
1080
+ return b.build();
1081
+ }, "se_ListTagsForResourceCommand");
1082
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1083
+ const b = (0, import_core.requestBuilder)(input, context);
1084
+ const headers = {
1085
+ "content-type": "application/json"
1086
+ };
1087
+ b.bp("/tags/{ResourceArn}");
1088
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1089
+ let body;
1090
+ body = JSON.stringify(
1091
+ (0, import_smithy_client.take)(input, {
1092
+ Tags: (_) => (0, import_smithy_client._json)(_)
1093
+ })
1094
+ );
1095
+ b.m("POST").h(headers).b(body);
1096
+ return b.build();
1097
+ }, "se_TagResourceCommand");
1098
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
1099
+ const b = (0, import_core.requestBuilder)(input, context);
1100
+ const headers = {};
1101
+ b.bp("/tags/{ResourceArn}");
1102
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1103
+ const query = (0, import_smithy_client.map)({
1104
+ [_tK]: [
1105
+ (0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null,
1106
+ () => (input[_TK] || []).map((_entry) => _entry)
1107
+ ]
1108
+ });
1109
+ let body;
1110
+ b.m("DELETE").h(headers).q(query).b(body);
1111
+ return b.build();
1112
+ }, "se_UntagResourceCommand");
1113
+ var se_UpdateBillingGroupCommand = /* @__PURE__ */ __name(async (input, context) => {
1114
+ const b = (0, import_core.requestBuilder)(input, context);
1115
+ const headers = {
1116
+ "content-type": "application/json"
1117
+ };
1118
+ b.bp("/update-billing-group");
1119
+ let body;
1120
+ body = JSON.stringify(
1121
+ (0, import_smithy_client.take)(input, {
1122
+ AccountGrouping: (_) => (0, import_smithy_client._json)(_),
1123
+ Arn: [],
1124
+ ComputationPreference: (_) => (0, import_smithy_client._json)(_),
1125
+ Description: [],
1126
+ Name: [],
1127
+ Status: []
1128
+ })
1129
+ );
1130
+ b.m("POST").h(headers).b(body);
1131
+ return b.build();
1132
+ }, "se_UpdateBillingGroupCommand");
1133
+ var se_UpdateCustomLineItemCommand = /* @__PURE__ */ __name(async (input, context) => {
1134
+ const b = (0, import_core.requestBuilder)(input, context);
1135
+ const headers = {
1136
+ "content-type": "application/json"
1137
+ };
1138
+ b.bp("/update-custom-line-item");
1139
+ let body;
1140
+ body = JSON.stringify(
1141
+ (0, import_smithy_client.take)(input, {
1142
+ Arn: [],
1143
+ BillingPeriodRange: (_) => (0, import_smithy_client._json)(_),
1144
+ ChargeDetails: (_) => se_UpdateCustomLineItemChargeDetails(_, context),
1145
+ Description: [],
1146
+ Name: []
1147
+ })
1148
+ );
1149
+ b.m("POST").h(headers).b(body);
1150
+ return b.build();
1151
+ }, "se_UpdateCustomLineItemCommand");
1152
+ var se_UpdatePricingPlanCommand = /* @__PURE__ */ __name(async (input, context) => {
1153
+ const b = (0, import_core.requestBuilder)(input, context);
1154
+ const headers = {
1155
+ "content-type": "application/json"
1156
+ };
1157
+ b.bp("/update-pricing-plan");
1158
+ let body;
1159
+ body = JSON.stringify(
1160
+ (0, import_smithy_client.take)(input, {
1161
+ Arn: [],
1162
+ Description: [],
1163
+ Name: []
1164
+ })
1165
+ );
1166
+ b.m("PUT").h(headers).b(body);
1167
+ return b.build();
1168
+ }, "se_UpdatePricingPlanCommand");
1169
+ var se_UpdatePricingRuleCommand = /* @__PURE__ */ __name(async (input, context) => {
1170
+ const b = (0, import_core.requestBuilder)(input, context);
1171
+ const headers = {
1172
+ "content-type": "application/json"
1173
+ };
1174
+ b.bp("/update-pricing-rule");
1175
+ let body;
1176
+ body = JSON.stringify(
1177
+ (0, import_smithy_client.take)(input, {
1178
+ Arn: [],
1179
+ Description: [],
1180
+ ModifierPercentage: (_) => (0, import_smithy_client.serializeFloat)(_),
1181
+ Name: [],
1182
+ Tiering: (_) => (0, import_smithy_client._json)(_),
1183
+ Type: []
1184
+ })
1185
+ );
1186
+ b.m("PUT").h(headers).b(body);
1187
+ return b.build();
1188
+ }, "se_UpdatePricingRuleCommand");
1189
+ var de_AssociateAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
1190
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1191
+ return de_AssociateAccountsCommandError(output, context);
1192
+ }
1193
+ const contents = (0, import_smithy_client.map)({
1194
+ $metadata: deserializeMetadata(output)
1195
+ });
1196
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1197
+ const doc = (0, import_smithy_client.take)(data, {
1198
+ Arn: import_smithy_client.expectString
1199
+ });
1200
+ Object.assign(contents, doc);
1201
+ return contents;
1202
+ }, "de_AssociateAccountsCommand");
1203
+ var de_AssociateAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1204
+ const parsedOutput = {
1205
+ ...output,
1206
+ body: await parseErrorBody(output.body, context)
1207
+ };
1208
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1209
+ switch (errorCode) {
1210
+ case "AccessDeniedException":
1211
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1212
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1213
+ case "ConflictException":
1214
+ case "com.amazonaws.billingconductor#ConflictException":
1215
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1216
+ case "InternalServerException":
1217
+ case "com.amazonaws.billingconductor#InternalServerException":
1218
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1219
+ case "ResourceNotFoundException":
1220
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
1221
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1222
+ case "ServiceLimitExceededException":
1223
+ case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1224
+ throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1225
+ case "ThrottlingException":
1226
+ case "com.amazonaws.billingconductor#ThrottlingException":
1227
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1228
+ case "ValidationException":
1229
+ case "com.amazonaws.billingconductor#ValidationException":
1230
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1231
+ default:
1232
+ const parsedBody = parsedOutput.body;
1233
+ return throwDefaultError({
1234
+ output,
1235
+ parsedBody,
1236
+ errorCode
1237
+ });
1238
+ }
1239
+ }, "de_AssociateAccountsCommandError");
1240
+ var de_AssociatePricingRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
1241
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1242
+ return de_AssociatePricingRulesCommandError(output, context);
1243
+ }
1244
+ const contents = (0, import_smithy_client.map)({
1245
+ $metadata: deserializeMetadata(output)
1246
+ });
1247
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1248
+ const doc = (0, import_smithy_client.take)(data, {
1249
+ Arn: import_smithy_client.expectString
1250
+ });
1251
+ Object.assign(contents, doc);
1252
+ return contents;
1253
+ }, "de_AssociatePricingRulesCommand");
1254
+ var de_AssociatePricingRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1255
+ const parsedOutput = {
1256
+ ...output,
1257
+ body: await parseErrorBody(output.body, context)
1258
+ };
1259
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1260
+ switch (errorCode) {
1261
+ case "AccessDeniedException":
1262
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1263
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1264
+ case "ConflictException":
1265
+ case "com.amazonaws.billingconductor#ConflictException":
1266
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1267
+ case "InternalServerException":
1268
+ case "com.amazonaws.billingconductor#InternalServerException":
1269
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1270
+ case "ResourceNotFoundException":
1271
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
1272
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1273
+ case "ServiceLimitExceededException":
1274
+ case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1275
+ throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1276
+ case "ThrottlingException":
1277
+ case "com.amazonaws.billingconductor#ThrottlingException":
1278
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1279
+ case "ValidationException":
1280
+ case "com.amazonaws.billingconductor#ValidationException":
1281
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1282
+ default:
1283
+ const parsedBody = parsedOutput.body;
1284
+ return throwDefaultError({
1285
+ output,
1286
+ parsedBody,
1287
+ errorCode
1288
+ });
1289
+ }
1290
+ }, "de_AssociatePricingRulesCommandError");
1291
+ var de_BatchAssociateResourcesToCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1292
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1293
+ return de_BatchAssociateResourcesToCustomLineItemCommandError(output, context);
1294
+ }
1295
+ const contents = (0, import_smithy_client.map)({
1296
+ $metadata: deserializeMetadata(output)
1297
+ });
1298
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1299
+ const doc = (0, import_smithy_client.take)(data, {
1300
+ FailedAssociatedResources: import_smithy_client._json,
1301
+ SuccessfullyAssociatedResources: import_smithy_client._json
1302
+ });
1303
+ Object.assign(contents, doc);
1304
+ return contents;
1305
+ }, "de_BatchAssociateResourcesToCustomLineItemCommand");
1306
+ var de_BatchAssociateResourcesToCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1307
+ const parsedOutput = {
1308
+ ...output,
1309
+ body: await parseErrorBody(output.body, context)
1310
+ };
1311
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1312
+ switch (errorCode) {
1313
+ case "AccessDeniedException":
1314
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1315
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1316
+ case "ConflictException":
1317
+ case "com.amazonaws.billingconductor#ConflictException":
1318
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1319
+ case "InternalServerException":
1320
+ case "com.amazonaws.billingconductor#InternalServerException":
1321
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1322
+ case "ResourceNotFoundException":
1323
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
1324
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1325
+ case "ServiceLimitExceededException":
1326
+ case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1327
+ throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1328
+ case "ThrottlingException":
1329
+ case "com.amazonaws.billingconductor#ThrottlingException":
1330
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1331
+ case "ValidationException":
1332
+ case "com.amazonaws.billingconductor#ValidationException":
1333
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1334
+ default:
1335
+ const parsedBody = parsedOutput.body;
1336
+ return throwDefaultError({
1337
+ output,
1338
+ parsedBody,
1339
+ errorCode
1340
+ });
1341
+ }
1342
+ }, "de_BatchAssociateResourcesToCustomLineItemCommandError");
1343
+ var de_BatchDisassociateResourcesFromCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1344
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1345
+ return de_BatchDisassociateResourcesFromCustomLineItemCommandError(output, context);
1346
+ }
1347
+ const contents = (0, import_smithy_client.map)({
1348
+ $metadata: deserializeMetadata(output)
1349
+ });
1350
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1351
+ const doc = (0, import_smithy_client.take)(data, {
1352
+ FailedDisassociatedResources: import_smithy_client._json,
1353
+ SuccessfullyDisassociatedResources: import_smithy_client._json
1354
+ });
1355
+ Object.assign(contents, doc);
1356
+ return contents;
1357
+ }, "de_BatchDisassociateResourcesFromCustomLineItemCommand");
1358
+ var de_BatchDisassociateResourcesFromCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1359
+ const parsedOutput = {
1360
+ ...output,
1361
+ body: await parseErrorBody(output.body, context)
1362
+ };
1363
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1364
+ switch (errorCode) {
1365
+ case "AccessDeniedException":
1366
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1367
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1368
+ case "ConflictException":
1369
+ case "com.amazonaws.billingconductor#ConflictException":
1370
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1371
+ case "InternalServerException":
1372
+ case "com.amazonaws.billingconductor#InternalServerException":
1373
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1374
+ case "ResourceNotFoundException":
1375
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
1376
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1377
+ case "ThrottlingException":
1378
+ case "com.amazonaws.billingconductor#ThrottlingException":
1379
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1380
+ case "ValidationException":
1381
+ case "com.amazonaws.billingconductor#ValidationException":
1382
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1383
+ default:
1384
+ const parsedBody = parsedOutput.body;
1385
+ return throwDefaultError({
1386
+ output,
1387
+ parsedBody,
1388
+ errorCode
1389
+ });
1390
+ }
1391
+ }, "de_BatchDisassociateResourcesFromCustomLineItemCommandError");
1392
+ var de_CreateBillingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1393
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1394
+ return de_CreateBillingGroupCommandError(output, context);
1395
+ }
1396
+ const contents = (0, import_smithy_client.map)({
1397
+ $metadata: deserializeMetadata(output)
1398
+ });
1399
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1400
+ const doc = (0, import_smithy_client.take)(data, {
1401
+ Arn: import_smithy_client.expectString
1402
+ });
1403
+ Object.assign(contents, doc);
1404
+ return contents;
1405
+ }, "de_CreateBillingGroupCommand");
1406
+ var de_CreateBillingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1407
+ const parsedOutput = {
1408
+ ...output,
1409
+ body: await parseErrorBody(output.body, context)
1410
+ };
1411
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1412
+ switch (errorCode) {
1413
+ case "AccessDeniedException":
1414
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1415
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1416
+ case "ConflictException":
1417
+ case "com.amazonaws.billingconductor#ConflictException":
1418
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1419
+ case "InternalServerException":
1420
+ case "com.amazonaws.billingconductor#InternalServerException":
1421
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1422
+ case "ServiceLimitExceededException":
1423
+ case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1424
+ throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1425
+ case "ThrottlingException":
1426
+ case "com.amazonaws.billingconductor#ThrottlingException":
1427
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1428
+ case "ValidationException":
1429
+ case "com.amazonaws.billingconductor#ValidationException":
1430
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1431
+ default:
1432
+ const parsedBody = parsedOutput.body;
1433
+ return throwDefaultError({
1434
+ output,
1435
+ parsedBody,
1436
+ errorCode
1437
+ });
1438
+ }
1439
+ }, "de_CreateBillingGroupCommandError");
1440
+ var de_CreateCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1441
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1442
+ return de_CreateCustomLineItemCommandError(output, context);
1443
+ }
1444
+ const contents = (0, import_smithy_client.map)({
1445
+ $metadata: deserializeMetadata(output)
1446
+ });
1447
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1448
+ const doc = (0, import_smithy_client.take)(data, {
1449
+ Arn: import_smithy_client.expectString
1450
+ });
1451
+ Object.assign(contents, doc);
1452
+ return contents;
1453
+ }, "de_CreateCustomLineItemCommand");
1454
+ var de_CreateCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1455
+ const parsedOutput = {
1456
+ ...output,
1457
+ body: await parseErrorBody(output.body, context)
1458
+ };
1459
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1460
+ switch (errorCode) {
1461
+ case "AccessDeniedException":
1462
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1463
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1464
+ case "ConflictException":
1465
+ case "com.amazonaws.billingconductor#ConflictException":
1466
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1467
+ case "InternalServerException":
1468
+ case "com.amazonaws.billingconductor#InternalServerException":
1469
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1470
+ case "ServiceLimitExceededException":
1471
+ case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1472
+ throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1473
+ case "ThrottlingException":
1474
+ case "com.amazonaws.billingconductor#ThrottlingException":
1475
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1476
+ case "ValidationException":
1477
+ case "com.amazonaws.billingconductor#ValidationException":
1478
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1479
+ default:
1480
+ const parsedBody = parsedOutput.body;
1481
+ return throwDefaultError({
1482
+ output,
1483
+ parsedBody,
1484
+ errorCode
1485
+ });
1486
+ }
1487
+ }, "de_CreateCustomLineItemCommandError");
1488
+ var de_CreatePricingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1489
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1490
+ return de_CreatePricingPlanCommandError(output, context);
1491
+ }
1492
+ const contents = (0, import_smithy_client.map)({
1493
+ $metadata: deserializeMetadata(output)
1494
+ });
1495
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1496
+ const doc = (0, import_smithy_client.take)(data, {
1497
+ Arn: import_smithy_client.expectString
1498
+ });
1499
+ Object.assign(contents, doc);
1500
+ return contents;
1501
+ }, "de_CreatePricingPlanCommand");
1502
+ var de_CreatePricingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
1503
+ const parsedOutput = {
1504
+ ...output,
1505
+ body: await parseErrorBody(output.body, context)
1506
+ };
1507
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1508
+ switch (errorCode) {
1509
+ case "AccessDeniedException":
1510
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1511
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1512
+ case "ConflictException":
1513
+ case "com.amazonaws.billingconductor#ConflictException":
1514
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1515
+ case "InternalServerException":
1516
+ case "com.amazonaws.billingconductor#InternalServerException":
1517
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1518
+ case "ResourceNotFoundException":
1519
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
1520
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1521
+ case "ServiceLimitExceededException":
1522
+ case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1523
+ throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1524
+ case "ThrottlingException":
1525
+ case "com.amazonaws.billingconductor#ThrottlingException":
1526
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1527
+ case "ValidationException":
1528
+ case "com.amazonaws.billingconductor#ValidationException":
1529
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1530
+ default:
1531
+ const parsedBody = parsedOutput.body;
1532
+ return throwDefaultError({
1533
+ output,
1534
+ parsedBody,
1535
+ errorCode
1536
+ });
1537
+ }
1538
+ }, "de_CreatePricingPlanCommandError");
1539
+ var de_CreatePricingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1540
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1541
+ return de_CreatePricingRuleCommandError(output, context);
1542
+ }
1543
+ const contents = (0, import_smithy_client.map)({
1544
+ $metadata: deserializeMetadata(output)
1545
+ });
1546
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1547
+ const doc = (0, import_smithy_client.take)(data, {
1548
+ Arn: import_smithy_client.expectString
1549
+ });
1550
+ Object.assign(contents, doc);
1551
+ return contents;
1552
+ }, "de_CreatePricingRuleCommand");
1553
+ var de_CreatePricingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1554
+ const parsedOutput = {
1555
+ ...output,
1556
+ body: await parseErrorBody(output.body, context)
1557
+ };
1558
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1559
+ switch (errorCode) {
1560
+ case "AccessDeniedException":
1561
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1562
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1563
+ case "ConflictException":
1564
+ case "com.amazonaws.billingconductor#ConflictException":
1565
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1566
+ case "InternalServerException":
1567
+ case "com.amazonaws.billingconductor#InternalServerException":
1568
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1569
+ case "ServiceLimitExceededException":
1570
+ case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1571
+ throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1572
+ case "ThrottlingException":
1573
+ case "com.amazonaws.billingconductor#ThrottlingException":
1574
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1575
+ case "ValidationException":
1576
+ case "com.amazonaws.billingconductor#ValidationException":
1577
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1578
+ default:
1579
+ const parsedBody = parsedOutput.body;
1580
+ return throwDefaultError({
1581
+ output,
1582
+ parsedBody,
1583
+ errorCode
1584
+ });
1585
+ }
1586
+ }, "de_CreatePricingRuleCommandError");
1587
+ var de_DeleteBillingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1588
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1589
+ return de_DeleteBillingGroupCommandError(output, context);
1590
+ }
1591
+ const contents = (0, import_smithy_client.map)({
1592
+ $metadata: deserializeMetadata(output)
1593
+ });
1594
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1595
+ const doc = (0, import_smithy_client.take)(data, {
1596
+ Arn: import_smithy_client.expectString
1597
+ });
1598
+ Object.assign(contents, doc);
1599
+ return contents;
1600
+ }, "de_DeleteBillingGroupCommand");
1601
+ var de_DeleteBillingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1602
+ const parsedOutput = {
1603
+ ...output,
1604
+ body: await parseErrorBody(output.body, context)
1605
+ };
1606
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1607
+ switch (errorCode) {
1608
+ case "AccessDeniedException":
1609
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1610
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1611
+ case "InternalServerException":
1612
+ case "com.amazonaws.billingconductor#InternalServerException":
1613
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1614
+ case "ThrottlingException":
1615
+ case "com.amazonaws.billingconductor#ThrottlingException":
1616
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1617
+ case "ValidationException":
1618
+ case "com.amazonaws.billingconductor#ValidationException":
1619
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1620
+ default:
1621
+ const parsedBody = parsedOutput.body;
1622
+ return throwDefaultError({
1623
+ output,
1624
+ parsedBody,
1625
+ errorCode
1626
+ });
1627
+ }
1628
+ }, "de_DeleteBillingGroupCommandError");
1629
+ var de_DeleteCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1630
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1631
+ return de_DeleteCustomLineItemCommandError(output, context);
1632
+ }
1633
+ const contents = (0, import_smithy_client.map)({
1634
+ $metadata: deserializeMetadata(output)
1635
+ });
1636
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1637
+ const doc = (0, import_smithy_client.take)(data, {
1638
+ Arn: import_smithy_client.expectString
1639
+ });
1640
+ Object.assign(contents, doc);
1641
+ return contents;
1642
+ }, "de_DeleteCustomLineItemCommand");
1643
+ var de_DeleteCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1644
+ const parsedOutput = {
1645
+ ...output,
1646
+ body: await parseErrorBody(output.body, context)
1647
+ };
1648
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1649
+ switch (errorCode) {
1650
+ case "AccessDeniedException":
1651
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1652
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1653
+ case "ConflictException":
1654
+ case "com.amazonaws.billingconductor#ConflictException":
1655
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1656
+ case "InternalServerException":
1657
+ case "com.amazonaws.billingconductor#InternalServerException":
1658
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1659
+ case "ThrottlingException":
1660
+ case "com.amazonaws.billingconductor#ThrottlingException":
1661
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1662
+ case "ValidationException":
1663
+ case "com.amazonaws.billingconductor#ValidationException":
1664
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1665
+ default:
1666
+ const parsedBody = parsedOutput.body;
1667
+ return throwDefaultError({
1668
+ output,
1669
+ parsedBody,
1670
+ errorCode
1671
+ });
1672
+ }
1673
+ }, "de_DeleteCustomLineItemCommandError");
1674
+ var de_DeletePricingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1675
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1676
+ return de_DeletePricingPlanCommandError(output, context);
1677
+ }
1678
+ const contents = (0, import_smithy_client.map)({
1679
+ $metadata: deserializeMetadata(output)
1680
+ });
1681
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1682
+ const doc = (0, import_smithy_client.take)(data, {
1683
+ Arn: import_smithy_client.expectString
1684
+ });
1685
+ Object.assign(contents, doc);
1686
+ return contents;
1687
+ }, "de_DeletePricingPlanCommand");
1688
+ var de_DeletePricingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
1689
+ const parsedOutput = {
1690
+ ...output,
1691
+ body: await parseErrorBody(output.body, context)
1692
+ };
1693
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1694
+ switch (errorCode) {
1695
+ case "AccessDeniedException":
1696
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1697
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1698
+ case "ConflictException":
1699
+ case "com.amazonaws.billingconductor#ConflictException":
1700
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1701
+ case "InternalServerException":
1702
+ case "com.amazonaws.billingconductor#InternalServerException":
1703
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1704
+ case "ThrottlingException":
1705
+ case "com.amazonaws.billingconductor#ThrottlingException":
1706
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1707
+ case "ValidationException":
1708
+ case "com.amazonaws.billingconductor#ValidationException":
1709
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1710
+ default:
1711
+ const parsedBody = parsedOutput.body;
1712
+ return throwDefaultError({
1713
+ output,
1714
+ parsedBody,
1715
+ errorCode
1716
+ });
1717
+ }
1718
+ }, "de_DeletePricingPlanCommandError");
1719
+ var de_DeletePricingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1720
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1721
+ return de_DeletePricingRuleCommandError(output, context);
1722
+ }
1723
+ const contents = (0, import_smithy_client.map)({
1724
+ $metadata: deserializeMetadata(output)
1725
+ });
1726
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1727
+ const doc = (0, import_smithy_client.take)(data, {
1728
+ Arn: import_smithy_client.expectString
1729
+ });
1730
+ Object.assign(contents, doc);
1731
+ return contents;
1732
+ }, "de_DeletePricingRuleCommand");
1733
+ var de_DeletePricingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1734
+ const parsedOutput = {
1735
+ ...output,
1736
+ body: await parseErrorBody(output.body, context)
1737
+ };
1738
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1739
+ switch (errorCode) {
1740
+ case "AccessDeniedException":
1741
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1742
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1743
+ case "ConflictException":
1744
+ case "com.amazonaws.billingconductor#ConflictException":
1745
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1746
+ case "InternalServerException":
1747
+ case "com.amazonaws.billingconductor#InternalServerException":
1748
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1749
+ case "ThrottlingException":
1750
+ case "com.amazonaws.billingconductor#ThrottlingException":
1751
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1752
+ case "ValidationException":
1753
+ case "com.amazonaws.billingconductor#ValidationException":
1754
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1755
+ default:
1756
+ const parsedBody = parsedOutput.body;
1757
+ return throwDefaultError({
1758
+ output,
1759
+ parsedBody,
1760
+ errorCode
1761
+ });
1762
+ }
1763
+ }, "de_DeletePricingRuleCommandError");
1764
+ var de_DisassociateAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
1765
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1766
+ return de_DisassociateAccountsCommandError(output, context);
1767
+ }
1768
+ const contents = (0, import_smithy_client.map)({
1769
+ $metadata: deserializeMetadata(output)
1770
+ });
1771
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1772
+ const doc = (0, import_smithy_client.take)(data, {
1773
+ Arn: import_smithy_client.expectString
1774
+ });
1775
+ Object.assign(contents, doc);
1776
+ return contents;
1777
+ }, "de_DisassociateAccountsCommand");
1778
+ var de_DisassociateAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1779
+ const parsedOutput = {
1780
+ ...output,
1781
+ body: await parseErrorBody(output.body, context)
1782
+ };
1783
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1784
+ switch (errorCode) {
1785
+ case "AccessDeniedException":
1786
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1787
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1788
+ case "ConflictException":
1789
+ case "com.amazonaws.billingconductor#ConflictException":
1790
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1791
+ case "InternalServerException":
1792
+ case "com.amazonaws.billingconductor#InternalServerException":
1793
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1794
+ case "ResourceNotFoundException":
1795
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
1796
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1797
+ case "ThrottlingException":
1798
+ case "com.amazonaws.billingconductor#ThrottlingException":
1799
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1800
+ case "ValidationException":
1801
+ case "com.amazonaws.billingconductor#ValidationException":
1802
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1803
+ default:
1804
+ const parsedBody = parsedOutput.body;
1805
+ return throwDefaultError({
1806
+ output,
1807
+ parsedBody,
1808
+ errorCode
1809
+ });
1810
+ }
1811
+ }, "de_DisassociateAccountsCommandError");
1812
+ var de_DisassociatePricingRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
1813
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1814
+ return de_DisassociatePricingRulesCommandError(output, context);
1815
+ }
1816
+ const contents = (0, import_smithy_client.map)({
1817
+ $metadata: deserializeMetadata(output)
1818
+ });
1819
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1820
+ const doc = (0, import_smithy_client.take)(data, {
1821
+ Arn: import_smithy_client.expectString
1822
+ });
1823
+ Object.assign(contents, doc);
1824
+ return contents;
1825
+ }, "de_DisassociatePricingRulesCommand");
1826
+ var de_DisassociatePricingRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1827
+ const parsedOutput = {
1828
+ ...output,
1829
+ body: await parseErrorBody(output.body, context)
1830
+ };
1831
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1832
+ switch (errorCode) {
1833
+ case "AccessDeniedException":
1834
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1835
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1836
+ case "ConflictException":
1837
+ case "com.amazonaws.billingconductor#ConflictException":
1838
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1839
+ case "InternalServerException":
1840
+ case "com.amazonaws.billingconductor#InternalServerException":
1841
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1842
+ case "ResourceNotFoundException":
1843
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
1844
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1845
+ case "ThrottlingException":
1846
+ case "com.amazonaws.billingconductor#ThrottlingException":
1847
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1848
+ case "ValidationException":
1849
+ case "com.amazonaws.billingconductor#ValidationException":
1850
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1851
+ default:
1852
+ const parsedBody = parsedOutput.body;
1853
+ return throwDefaultError({
1854
+ output,
1855
+ parsedBody,
1856
+ errorCode
1857
+ });
1858
+ }
1859
+ }, "de_DisassociatePricingRulesCommandError");
1860
+ var de_GetBillingGroupCostReportCommand = /* @__PURE__ */ __name(async (output, context) => {
1861
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1862
+ return de_GetBillingGroupCostReportCommandError(output, context);
1863
+ }
1864
+ const contents = (0, import_smithy_client.map)({
1865
+ $metadata: deserializeMetadata(output)
1866
+ });
1867
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1868
+ const doc = (0, import_smithy_client.take)(data, {
1869
+ BillingGroupCostReportResults: import_smithy_client._json,
1870
+ NextToken: import_smithy_client.expectString
1871
+ });
1872
+ Object.assign(contents, doc);
1873
+ return contents;
1874
+ }, "de_GetBillingGroupCostReportCommand");
1875
+ var de_GetBillingGroupCostReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
1876
+ const parsedOutput = {
1877
+ ...output,
1878
+ body: await parseErrorBody(output.body, context)
1879
+ };
1880
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1881
+ switch (errorCode) {
1882
+ case "AccessDeniedException":
1883
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1884
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1885
+ case "InternalServerException":
1886
+ case "com.amazonaws.billingconductor#InternalServerException":
1887
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1888
+ case "ResourceNotFoundException":
1889
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
1890
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1891
+ case "ThrottlingException":
1892
+ case "com.amazonaws.billingconductor#ThrottlingException":
1893
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1894
+ case "ValidationException":
1895
+ case "com.amazonaws.billingconductor#ValidationException":
1896
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1897
+ default:
1898
+ const parsedBody = parsedOutput.body;
1899
+ return throwDefaultError({
1900
+ output,
1901
+ parsedBody,
1902
+ errorCode
1903
+ });
1904
+ }
1905
+ }, "de_GetBillingGroupCostReportCommandError");
1906
+ var de_ListAccountAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1907
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1908
+ return de_ListAccountAssociationsCommandError(output, context);
1909
+ }
1910
+ const contents = (0, import_smithy_client.map)({
1911
+ $metadata: deserializeMetadata(output)
1912
+ });
1913
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1914
+ const doc = (0, import_smithy_client.take)(data, {
1915
+ LinkedAccounts: import_smithy_client._json,
1916
+ NextToken: import_smithy_client.expectString
1917
+ });
1918
+ Object.assign(contents, doc);
1919
+ return contents;
1920
+ }, "de_ListAccountAssociationsCommand");
1921
+ var de_ListAccountAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1922
+ const parsedOutput = {
1923
+ ...output,
1924
+ body: await parseErrorBody(output.body, context)
1925
+ };
1926
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1927
+ switch (errorCode) {
1928
+ case "AccessDeniedException":
1929
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1930
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1931
+ case "InternalServerException":
1932
+ case "com.amazonaws.billingconductor#InternalServerException":
1933
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1934
+ case "ResourceNotFoundException":
1935
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
1936
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1937
+ case "ThrottlingException":
1938
+ case "com.amazonaws.billingconductor#ThrottlingException":
1939
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1940
+ case "ValidationException":
1941
+ case "com.amazonaws.billingconductor#ValidationException":
1942
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1943
+ default:
1944
+ const parsedBody = parsedOutput.body;
1945
+ return throwDefaultError({
1946
+ output,
1947
+ parsedBody,
1948
+ errorCode
1949
+ });
1950
+ }
1951
+ }, "de_ListAccountAssociationsCommandError");
1952
+ var de_ListBillingGroupCostReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
1953
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1954
+ return de_ListBillingGroupCostReportsCommandError(output, context);
1955
+ }
1956
+ const contents = (0, import_smithy_client.map)({
1957
+ $metadata: deserializeMetadata(output)
1958
+ });
1959
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1960
+ const doc = (0, import_smithy_client.take)(data, {
1961
+ BillingGroupCostReports: import_smithy_client._json,
1962
+ NextToken: import_smithy_client.expectString
1963
+ });
1964
+ Object.assign(contents, doc);
1965
+ return contents;
1966
+ }, "de_ListBillingGroupCostReportsCommand");
1967
+ var de_ListBillingGroupCostReportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1968
+ const parsedOutput = {
1969
+ ...output,
1970
+ body: await parseErrorBody(output.body, context)
1971
+ };
1972
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1973
+ switch (errorCode) {
1974
+ case "AccessDeniedException":
1975
+ case "com.amazonaws.billingconductor#AccessDeniedException":
1976
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1977
+ case "InternalServerException":
1978
+ case "com.amazonaws.billingconductor#InternalServerException":
1979
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1980
+ case "ResourceNotFoundException":
1981
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
1982
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1983
+ case "ThrottlingException":
1984
+ case "com.amazonaws.billingconductor#ThrottlingException":
1985
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1986
+ case "ValidationException":
1987
+ case "com.amazonaws.billingconductor#ValidationException":
1988
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1989
+ default:
1990
+ const parsedBody = parsedOutput.body;
1991
+ return throwDefaultError({
1992
+ output,
1993
+ parsedBody,
1994
+ errorCode
1995
+ });
1996
+ }
1997
+ }, "de_ListBillingGroupCostReportsCommandError");
1998
+ var de_ListBillingGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1999
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2000
+ return de_ListBillingGroupsCommandError(output, context);
2001
+ }
2002
+ const contents = (0, import_smithy_client.map)({
2003
+ $metadata: deserializeMetadata(output)
2004
+ });
2005
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2006
+ const doc = (0, import_smithy_client.take)(data, {
2007
+ BillingGroups: import_smithy_client._json,
2008
+ NextToken: import_smithy_client.expectString
2009
+ });
2010
+ Object.assign(contents, doc);
2011
+ return contents;
2012
+ }, "de_ListBillingGroupsCommand");
2013
+ var de_ListBillingGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2014
+ const parsedOutput = {
2015
+ ...output,
2016
+ body: await parseErrorBody(output.body, context)
2017
+ };
2018
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2019
+ switch (errorCode) {
2020
+ case "AccessDeniedException":
2021
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2022
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2023
+ case "InternalServerException":
2024
+ case "com.amazonaws.billingconductor#InternalServerException":
2025
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2026
+ case "ResourceNotFoundException":
2027
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2028
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2029
+ case "ThrottlingException":
2030
+ case "com.amazonaws.billingconductor#ThrottlingException":
2031
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2032
+ case "ValidationException":
2033
+ case "com.amazonaws.billingconductor#ValidationException":
2034
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2035
+ default:
2036
+ const parsedBody = parsedOutput.body;
2037
+ return throwDefaultError({
2038
+ output,
2039
+ parsedBody,
2040
+ errorCode
2041
+ });
2042
+ }
2043
+ }, "de_ListBillingGroupsCommandError");
2044
+ var de_ListCustomLineItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
2045
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2046
+ return de_ListCustomLineItemsCommandError(output, context);
2047
+ }
2048
+ const contents = (0, import_smithy_client.map)({
2049
+ $metadata: deserializeMetadata(output)
2050
+ });
2051
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2052
+ const doc = (0, import_smithy_client.take)(data, {
2053
+ CustomLineItems: (_) => de_CustomLineItemList(_, context),
2054
+ NextToken: import_smithy_client.expectString
2055
+ });
2056
+ Object.assign(contents, doc);
2057
+ return contents;
2058
+ }, "de_ListCustomLineItemsCommand");
2059
+ var de_ListCustomLineItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2060
+ const parsedOutput = {
2061
+ ...output,
2062
+ body: await parseErrorBody(output.body, context)
2063
+ };
2064
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2065
+ switch (errorCode) {
2066
+ case "AccessDeniedException":
2067
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2068
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2069
+ case "InternalServerException":
2070
+ case "com.amazonaws.billingconductor#InternalServerException":
2071
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2072
+ case "ResourceNotFoundException":
2073
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2074
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2075
+ case "ThrottlingException":
2076
+ case "com.amazonaws.billingconductor#ThrottlingException":
2077
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2078
+ case "ValidationException":
2079
+ case "com.amazonaws.billingconductor#ValidationException":
2080
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2081
+ default:
2082
+ const parsedBody = parsedOutput.body;
2083
+ return throwDefaultError({
2084
+ output,
2085
+ parsedBody,
2086
+ errorCode
2087
+ });
2088
+ }
2089
+ }, "de_ListCustomLineItemsCommandError");
2090
+ var de_ListCustomLineItemVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2091
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2092
+ return de_ListCustomLineItemVersionsCommandError(output, context);
2093
+ }
2094
+ const contents = (0, import_smithy_client.map)({
2095
+ $metadata: deserializeMetadata(output)
2096
+ });
2097
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2098
+ const doc = (0, import_smithy_client.take)(data, {
2099
+ CustomLineItemVersions: (_) => de_CustomLineItemVersionList(_, context),
2100
+ NextToken: import_smithy_client.expectString
2101
+ });
2102
+ Object.assign(contents, doc);
2103
+ return contents;
2104
+ }, "de_ListCustomLineItemVersionsCommand");
2105
+ var de_ListCustomLineItemVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2106
+ const parsedOutput = {
2107
+ ...output,
2108
+ body: await parseErrorBody(output.body, context)
2109
+ };
2110
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2111
+ switch (errorCode) {
2112
+ case "AccessDeniedException":
2113
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2114
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2115
+ case "InternalServerException":
2116
+ case "com.amazonaws.billingconductor#InternalServerException":
2117
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2118
+ case "ThrottlingException":
2119
+ case "com.amazonaws.billingconductor#ThrottlingException":
2120
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2121
+ case "ValidationException":
2122
+ case "com.amazonaws.billingconductor#ValidationException":
2123
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2124
+ default:
2125
+ const parsedBody = parsedOutput.body;
2126
+ return throwDefaultError({
2127
+ output,
2128
+ parsedBody,
2129
+ errorCode
2130
+ });
2131
+ }
2132
+ }, "de_ListCustomLineItemVersionsCommandError");
2133
+ var de_ListPricingPlansCommand = /* @__PURE__ */ __name(async (output, context) => {
2134
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2135
+ return de_ListPricingPlansCommandError(output, context);
2136
+ }
2137
+ const contents = (0, import_smithy_client.map)({
2138
+ $metadata: deserializeMetadata(output)
2139
+ });
2140
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2141
+ const doc = (0, import_smithy_client.take)(data, {
2142
+ BillingPeriod: import_smithy_client.expectString,
2143
+ NextToken: import_smithy_client.expectString,
2144
+ PricingPlans: import_smithy_client._json
2145
+ });
2146
+ Object.assign(contents, doc);
2147
+ return contents;
2148
+ }, "de_ListPricingPlansCommand");
2149
+ var de_ListPricingPlansCommandError = /* @__PURE__ */ __name(async (output, context) => {
2150
+ const parsedOutput = {
2151
+ ...output,
2152
+ body: await parseErrorBody(output.body, context)
2153
+ };
2154
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2155
+ switch (errorCode) {
2156
+ case "AccessDeniedException":
2157
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2158
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2159
+ case "InternalServerException":
2160
+ case "com.amazonaws.billingconductor#InternalServerException":
2161
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2162
+ case "ThrottlingException":
2163
+ case "com.amazonaws.billingconductor#ThrottlingException":
2164
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2165
+ case "ValidationException":
2166
+ case "com.amazonaws.billingconductor#ValidationException":
2167
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2168
+ default:
2169
+ const parsedBody = parsedOutput.body;
2170
+ return throwDefaultError({
2171
+ output,
2172
+ parsedBody,
2173
+ errorCode
2174
+ });
2175
+ }
2176
+ }, "de_ListPricingPlansCommandError");
2177
+ var de_ListPricingPlansAssociatedWithPricingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
2178
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2179
+ return de_ListPricingPlansAssociatedWithPricingRuleCommandError(output, context);
2180
+ }
2181
+ const contents = (0, import_smithy_client.map)({
2182
+ $metadata: deserializeMetadata(output)
2183
+ });
2184
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2185
+ const doc = (0, import_smithy_client.take)(data, {
2186
+ BillingPeriod: import_smithy_client.expectString,
2187
+ NextToken: import_smithy_client.expectString,
2188
+ PricingPlanArns: import_smithy_client._json,
2189
+ PricingRuleArn: import_smithy_client.expectString
2190
+ });
2191
+ Object.assign(contents, doc);
2192
+ return contents;
2193
+ }, "de_ListPricingPlansAssociatedWithPricingRuleCommand");
2194
+ var de_ListPricingPlansAssociatedWithPricingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
2195
+ const parsedOutput = {
2196
+ ...output,
2197
+ body: await parseErrorBody(output.body, context)
2198
+ };
2199
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2200
+ switch (errorCode) {
2201
+ case "AccessDeniedException":
2202
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2203
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2204
+ case "InternalServerException":
2205
+ case "com.amazonaws.billingconductor#InternalServerException":
2206
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2207
+ case "ResourceNotFoundException":
2208
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2209
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2210
+ case "ThrottlingException":
2211
+ case "com.amazonaws.billingconductor#ThrottlingException":
2212
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2213
+ case "ValidationException":
2214
+ case "com.amazonaws.billingconductor#ValidationException":
2215
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2216
+ default:
2217
+ const parsedBody = parsedOutput.body;
2218
+ return throwDefaultError({
2219
+ output,
2220
+ parsedBody,
2221
+ errorCode
2222
+ });
2223
+ }
2224
+ }, "de_ListPricingPlansAssociatedWithPricingRuleCommandError");
2225
+ var de_ListPricingRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
2226
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2227
+ return de_ListPricingRulesCommandError(output, context);
2228
+ }
2229
+ const contents = (0, import_smithy_client.map)({
2230
+ $metadata: deserializeMetadata(output)
2231
+ });
2232
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2233
+ const doc = (0, import_smithy_client.take)(data, {
2234
+ BillingPeriod: import_smithy_client.expectString,
2235
+ NextToken: import_smithy_client.expectString,
2236
+ PricingRules: (_) => de_PricingRuleList(_, context)
2237
+ });
2238
+ Object.assign(contents, doc);
2239
+ return contents;
2240
+ }, "de_ListPricingRulesCommand");
2241
+ var de_ListPricingRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2242
+ const parsedOutput = {
2243
+ ...output,
2244
+ body: await parseErrorBody(output.body, context)
2245
+ };
2246
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2247
+ switch (errorCode) {
2248
+ case "AccessDeniedException":
2249
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2250
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2251
+ case "InternalServerException":
2252
+ case "com.amazonaws.billingconductor#InternalServerException":
2253
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2254
+ case "ThrottlingException":
2255
+ case "com.amazonaws.billingconductor#ThrottlingException":
2256
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2257
+ case "ValidationException":
2258
+ case "com.amazonaws.billingconductor#ValidationException":
2259
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2260
+ default:
2261
+ const parsedBody = parsedOutput.body;
2262
+ return throwDefaultError({
2263
+ output,
2264
+ parsedBody,
2265
+ errorCode
2266
+ });
2267
+ }
2268
+ }, "de_ListPricingRulesCommandError");
2269
+ var de_ListPricingRulesAssociatedToPricingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
2270
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2271
+ return de_ListPricingRulesAssociatedToPricingPlanCommandError(output, context);
2272
+ }
2273
+ const contents = (0, import_smithy_client.map)({
2274
+ $metadata: deserializeMetadata(output)
2275
+ });
2276
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2277
+ const doc = (0, import_smithy_client.take)(data, {
2278
+ BillingPeriod: import_smithy_client.expectString,
2279
+ NextToken: import_smithy_client.expectString,
2280
+ PricingPlanArn: import_smithy_client.expectString,
2281
+ PricingRuleArns: import_smithy_client._json
2282
+ });
2283
+ Object.assign(contents, doc);
2284
+ return contents;
2285
+ }, "de_ListPricingRulesAssociatedToPricingPlanCommand");
2286
+ var de_ListPricingRulesAssociatedToPricingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
2287
+ const parsedOutput = {
2288
+ ...output,
2289
+ body: await parseErrorBody(output.body, context)
2290
+ };
2291
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2292
+ switch (errorCode) {
2293
+ case "AccessDeniedException":
2294
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2295
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2296
+ case "InternalServerException":
2297
+ case "com.amazonaws.billingconductor#InternalServerException":
2298
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2299
+ case "ResourceNotFoundException":
2300
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2301
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2302
+ case "ThrottlingException":
2303
+ case "com.amazonaws.billingconductor#ThrottlingException":
2304
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2305
+ case "ValidationException":
2306
+ case "com.amazonaws.billingconductor#ValidationException":
2307
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2308
+ default:
2309
+ const parsedBody = parsedOutput.body;
2310
+ return throwDefaultError({
2311
+ output,
2312
+ parsedBody,
2313
+ errorCode
2314
+ });
2315
+ }
2316
+ }, "de_ListPricingRulesAssociatedToPricingPlanCommandError");
2317
+ var de_ListResourcesAssociatedToCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
2318
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2319
+ return de_ListResourcesAssociatedToCustomLineItemCommandError(output, context);
2320
+ }
2321
+ const contents = (0, import_smithy_client.map)({
2322
+ $metadata: deserializeMetadata(output)
2323
+ });
2324
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2325
+ const doc = (0, import_smithy_client.take)(data, {
2326
+ Arn: import_smithy_client.expectString,
2327
+ AssociatedResources: import_smithy_client._json,
2328
+ NextToken: import_smithy_client.expectString
2329
+ });
2330
+ Object.assign(contents, doc);
2331
+ return contents;
2332
+ }, "de_ListResourcesAssociatedToCustomLineItemCommand");
2333
+ var de_ListResourcesAssociatedToCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
2334
+ const parsedOutput = {
2335
+ ...output,
2336
+ body: await parseErrorBody(output.body, context)
2337
+ };
2338
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2339
+ switch (errorCode) {
2340
+ case "AccessDeniedException":
2341
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2342
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2343
+ case "InternalServerException":
2344
+ case "com.amazonaws.billingconductor#InternalServerException":
2345
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2346
+ case "ResourceNotFoundException":
2347
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2348
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2349
+ case "ThrottlingException":
2350
+ case "com.amazonaws.billingconductor#ThrottlingException":
2351
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2352
+ case "ValidationException":
2353
+ case "com.amazonaws.billingconductor#ValidationException":
2354
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2355
+ default:
2356
+ const parsedBody = parsedOutput.body;
2357
+ return throwDefaultError({
2358
+ output,
2359
+ parsedBody,
2360
+ errorCode
2361
+ });
2362
+ }
2363
+ }, "de_ListResourcesAssociatedToCustomLineItemCommandError");
2364
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2365
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2366
+ return de_ListTagsForResourceCommandError(output, context);
2367
+ }
2368
+ const contents = (0, import_smithy_client.map)({
2369
+ $metadata: deserializeMetadata(output)
2370
+ });
2371
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2372
+ const doc = (0, import_smithy_client.take)(data, {
2373
+ Tags: import_smithy_client._json
2374
+ });
2375
+ Object.assign(contents, doc);
2376
+ return contents;
2377
+ }, "de_ListTagsForResourceCommand");
2378
+ var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2379
+ const parsedOutput = {
2380
+ ...output,
2381
+ body: await parseErrorBody(output.body, context)
2382
+ };
2383
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2384
+ switch (errorCode) {
2385
+ case "AccessDeniedException":
2386
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2387
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2388
+ case "InternalServerException":
2389
+ case "com.amazonaws.billingconductor#InternalServerException":
2390
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2391
+ case "ResourceNotFoundException":
2392
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2393
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2394
+ case "ThrottlingException":
2395
+ case "com.amazonaws.billingconductor#ThrottlingException":
2396
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2397
+ case "ValidationException":
2398
+ case "com.amazonaws.billingconductor#ValidationException":
2399
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2400
+ default:
2401
+ const parsedBody = parsedOutput.body;
2402
+ return throwDefaultError({
2403
+ output,
2404
+ parsedBody,
2405
+ errorCode
2406
+ });
2407
+ }
2408
+ }, "de_ListTagsForResourceCommandError");
2409
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2410
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2411
+ return de_TagResourceCommandError(output, context);
2412
+ }
2413
+ const contents = (0, import_smithy_client.map)({
2414
+ $metadata: deserializeMetadata(output)
2415
+ });
2416
+ await (0, import_smithy_client.collectBody)(output.body, context);
2417
+ return contents;
2418
+ }, "de_TagResourceCommand");
2419
+ var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2420
+ const parsedOutput = {
2421
+ ...output,
2422
+ body: await parseErrorBody(output.body, context)
2423
+ };
2424
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2425
+ switch (errorCode) {
2426
+ case "AccessDeniedException":
2427
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2428
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2429
+ case "InternalServerException":
2430
+ case "com.amazonaws.billingconductor#InternalServerException":
2431
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2432
+ case "ResourceNotFoundException":
2433
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2434
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2435
+ case "ThrottlingException":
2436
+ case "com.amazonaws.billingconductor#ThrottlingException":
2437
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2438
+ case "ValidationException":
2439
+ case "com.amazonaws.billingconductor#ValidationException":
2440
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2441
+ default:
2442
+ const parsedBody = parsedOutput.body;
2443
+ return throwDefaultError({
2444
+ output,
2445
+ parsedBody,
2446
+ errorCode
2447
+ });
2448
+ }
2449
+ }, "de_TagResourceCommandError");
2450
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2451
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
2452
+ return de_UntagResourceCommandError(output, context);
2453
+ }
2454
+ const contents = (0, import_smithy_client.map)({
2455
+ $metadata: deserializeMetadata(output)
2456
+ });
2457
+ await (0, import_smithy_client.collectBody)(output.body, context);
2458
+ return contents;
2459
+ }, "de_UntagResourceCommand");
2460
+ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2461
+ const parsedOutput = {
2462
+ ...output,
2463
+ body: await parseErrorBody(output.body, context)
2464
+ };
2465
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2466
+ switch (errorCode) {
2467
+ case "AccessDeniedException":
2468
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2469
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2470
+ case "InternalServerException":
2471
+ case "com.amazonaws.billingconductor#InternalServerException":
2472
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2473
+ case "ResourceNotFoundException":
2474
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2475
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2476
+ case "ThrottlingException":
2477
+ case "com.amazonaws.billingconductor#ThrottlingException":
2478
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2479
+ case "ValidationException":
2480
+ case "com.amazonaws.billingconductor#ValidationException":
2481
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2482
+ default:
2483
+ const parsedBody = parsedOutput.body;
2484
+ return throwDefaultError({
2485
+ output,
2486
+ parsedBody,
2487
+ errorCode
2488
+ });
2489
+ }
2490
+ }, "de_UntagResourceCommandError");
2491
+ var de_UpdateBillingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2492
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2493
+ return de_UpdateBillingGroupCommandError(output, context);
2494
+ }
2495
+ const contents = (0, import_smithy_client.map)({
2496
+ $metadata: deserializeMetadata(output)
2497
+ });
2498
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2499
+ const doc = (0, import_smithy_client.take)(data, {
2500
+ AccountGrouping: import_smithy_client._json,
2501
+ Arn: import_smithy_client.expectString,
2502
+ Description: import_smithy_client.expectString,
2503
+ LastModifiedTime: import_smithy_client.expectLong,
2504
+ Name: import_smithy_client.expectString,
2505
+ PricingPlanArn: import_smithy_client.expectString,
2506
+ PrimaryAccountId: import_smithy_client.expectString,
2507
+ Size: import_smithy_client.expectLong,
2508
+ Status: import_smithy_client.expectString,
2509
+ StatusReason: import_smithy_client.expectString
2510
+ });
2511
+ Object.assign(contents, doc);
2512
+ return contents;
2513
+ }, "de_UpdateBillingGroupCommand");
2514
+ var de_UpdateBillingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2515
+ const parsedOutput = {
2516
+ ...output,
2517
+ body: await parseErrorBody(output.body, context)
2518
+ };
2519
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2520
+ switch (errorCode) {
2521
+ case "AccessDeniedException":
2522
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2523
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2524
+ case "ConflictException":
2525
+ case "com.amazonaws.billingconductor#ConflictException":
2526
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2527
+ case "InternalServerException":
2528
+ case "com.amazonaws.billingconductor#InternalServerException":
2529
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2530
+ case "ResourceNotFoundException":
2531
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2532
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2533
+ case "ThrottlingException":
2534
+ case "com.amazonaws.billingconductor#ThrottlingException":
2535
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2536
+ case "ValidationException":
2537
+ case "com.amazonaws.billingconductor#ValidationException":
2538
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2539
+ default:
2540
+ const parsedBody = parsedOutput.body;
2541
+ return throwDefaultError({
2542
+ output,
2543
+ parsedBody,
2544
+ errorCode
2545
+ });
2546
+ }
2547
+ }, "de_UpdateBillingGroupCommandError");
2548
+ var de_UpdateCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
2549
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2550
+ return de_UpdateCustomLineItemCommandError(output, context);
2551
+ }
2552
+ const contents = (0, import_smithy_client.map)({
2553
+ $metadata: deserializeMetadata(output)
2554
+ });
2555
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2556
+ const doc = (0, import_smithy_client.take)(data, {
2557
+ Arn: import_smithy_client.expectString,
2558
+ AssociationSize: import_smithy_client.expectLong,
2559
+ BillingGroupArn: import_smithy_client.expectString,
2560
+ ChargeDetails: (_) => de_ListCustomLineItemChargeDetails(_, context),
2561
+ Description: import_smithy_client.expectString,
2562
+ LastModifiedTime: import_smithy_client.expectLong,
2563
+ Name: import_smithy_client.expectString
2564
+ });
2565
+ Object.assign(contents, doc);
2566
+ return contents;
2567
+ }, "de_UpdateCustomLineItemCommand");
2568
+ var de_UpdateCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
2569
+ const parsedOutput = {
2570
+ ...output,
2571
+ body: await parseErrorBody(output.body, context)
2572
+ };
2573
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2574
+ switch (errorCode) {
2575
+ case "AccessDeniedException":
2576
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2577
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2578
+ case "InternalServerException":
2579
+ case "com.amazonaws.billingconductor#InternalServerException":
2580
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2581
+ case "ResourceNotFoundException":
2582
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2583
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2584
+ case "ThrottlingException":
2585
+ case "com.amazonaws.billingconductor#ThrottlingException":
2586
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2587
+ case "ValidationException":
2588
+ case "com.amazonaws.billingconductor#ValidationException":
2589
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2590
+ default:
2591
+ const parsedBody = parsedOutput.body;
2592
+ return throwDefaultError({
2593
+ output,
2594
+ parsedBody,
2595
+ errorCode
2596
+ });
2597
+ }
2598
+ }, "de_UpdateCustomLineItemCommandError");
2599
+ var de_UpdatePricingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
2600
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2601
+ return de_UpdatePricingPlanCommandError(output, context);
2602
+ }
2603
+ const contents = (0, import_smithy_client.map)({
2604
+ $metadata: deserializeMetadata(output)
2605
+ });
2606
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2607
+ const doc = (0, import_smithy_client.take)(data, {
2608
+ Arn: import_smithy_client.expectString,
2609
+ Description: import_smithy_client.expectString,
2610
+ LastModifiedTime: import_smithy_client.expectLong,
2611
+ Name: import_smithy_client.expectString,
2612
+ Size: import_smithy_client.expectLong
2613
+ });
2614
+ Object.assign(contents, doc);
2615
+ return contents;
2616
+ }, "de_UpdatePricingPlanCommand");
2617
+ var de_UpdatePricingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
2618
+ const parsedOutput = {
2619
+ ...output,
2620
+ body: await parseErrorBody(output.body, context)
2621
+ };
2622
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2623
+ switch (errorCode) {
2624
+ case "AccessDeniedException":
2625
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2626
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2627
+ case "ConflictException":
2628
+ case "com.amazonaws.billingconductor#ConflictException":
2629
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2630
+ case "InternalServerException":
2631
+ case "com.amazonaws.billingconductor#InternalServerException":
2632
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2633
+ case "ResourceNotFoundException":
2634
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2635
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2636
+ case "ThrottlingException":
2637
+ case "com.amazonaws.billingconductor#ThrottlingException":
2638
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2639
+ case "ValidationException":
2640
+ case "com.amazonaws.billingconductor#ValidationException":
2641
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2642
+ default:
2643
+ const parsedBody = parsedOutput.body;
2644
+ return throwDefaultError({
2645
+ output,
2646
+ parsedBody,
2647
+ errorCode
2648
+ });
2649
+ }
2650
+ }, "de_UpdatePricingPlanCommandError");
2651
+ var de_UpdatePricingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
2652
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2653
+ return de_UpdatePricingRuleCommandError(output, context);
2654
+ }
2655
+ const contents = (0, import_smithy_client.map)({
2656
+ $metadata: deserializeMetadata(output)
2657
+ });
2658
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2659
+ const doc = (0, import_smithy_client.take)(data, {
2660
+ Arn: import_smithy_client.expectString,
2661
+ AssociatedPricingPlanCount: import_smithy_client.expectLong,
2662
+ BillingEntity: import_smithy_client.expectString,
2663
+ Description: import_smithy_client.expectString,
2664
+ LastModifiedTime: import_smithy_client.expectLong,
2665
+ ModifierPercentage: import_smithy_client.limitedParseDouble,
2666
+ Name: import_smithy_client.expectString,
2667
+ Operation: import_smithy_client.expectString,
2668
+ Scope: import_smithy_client.expectString,
2669
+ Service: import_smithy_client.expectString,
2670
+ Tiering: import_smithy_client._json,
2671
+ Type: import_smithy_client.expectString,
2672
+ UsageType: import_smithy_client.expectString
2673
+ });
2674
+ Object.assign(contents, doc);
2675
+ return contents;
2676
+ }, "de_UpdatePricingRuleCommand");
2677
+ var de_UpdatePricingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
2678
+ const parsedOutput = {
2679
+ ...output,
2680
+ body: await parseErrorBody(output.body, context)
2681
+ };
2682
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2683
+ switch (errorCode) {
2684
+ case "AccessDeniedException":
2685
+ case "com.amazonaws.billingconductor#AccessDeniedException":
2686
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2687
+ case "ConflictException":
2688
+ case "com.amazonaws.billingconductor#ConflictException":
2689
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2690
+ case "InternalServerException":
2691
+ case "com.amazonaws.billingconductor#InternalServerException":
2692
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2693
+ case "ResourceNotFoundException":
2694
+ case "com.amazonaws.billingconductor#ResourceNotFoundException":
2695
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2696
+ case "ThrottlingException":
2697
+ case "com.amazonaws.billingconductor#ThrottlingException":
2698
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2699
+ case "ValidationException":
2700
+ case "com.amazonaws.billingconductor#ValidationException":
2701
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2702
+ default:
2703
+ const parsedBody = parsedOutput.body;
2704
+ return throwDefaultError({
2705
+ output,
2706
+ parsedBody,
2707
+ errorCode
2708
+ });
2709
+ }
2710
+ }, "de_UpdatePricingRuleCommandError");
2711
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(BillingconductorServiceException);
2712
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2713
+ const contents = (0, import_smithy_client.map)({});
2714
+ const data = parsedOutput.body;
2715
+ const doc = (0, import_smithy_client.take)(data, {
2716
+ Message: import_smithy_client.expectString
2717
+ });
2718
+ Object.assign(contents, doc);
2719
+ const exception = new AccessDeniedException({
2720
+ $metadata: deserializeMetadata(parsedOutput),
2721
+ ...contents
2722
+ });
2723
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2724
+ }, "de_AccessDeniedExceptionRes");
2725
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2726
+ const contents = (0, import_smithy_client.map)({});
2727
+ const data = parsedOutput.body;
2728
+ const doc = (0, import_smithy_client.take)(data, {
2729
+ Message: import_smithy_client.expectString,
2730
+ Reason: import_smithy_client.expectString,
2731
+ ResourceId: import_smithy_client.expectString,
2732
+ ResourceType: import_smithy_client.expectString
2733
+ });
2734
+ Object.assign(contents, doc);
2735
+ const exception = new ConflictException({
2736
+ $metadata: deserializeMetadata(parsedOutput),
2737
+ ...contents
2738
+ });
2739
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2740
+ }, "de_ConflictExceptionRes");
2741
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2742
+ const contents = (0, import_smithy_client.map)({
2743
+ [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
2744
+ });
2745
+ const data = parsedOutput.body;
2746
+ const doc = (0, import_smithy_client.take)(data, {
2747
+ Message: import_smithy_client.expectString
2748
+ });
2749
+ Object.assign(contents, doc);
2750
+ const exception = new InternalServerException({
2751
+ $metadata: deserializeMetadata(parsedOutput),
2752
+ ...contents
2753
+ });
2754
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2755
+ }, "de_InternalServerExceptionRes");
2756
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2757
+ const contents = (0, import_smithy_client.map)({});
2758
+ const data = parsedOutput.body;
2759
+ const doc = (0, import_smithy_client.take)(data, {
2760
+ Message: import_smithy_client.expectString,
2761
+ ResourceId: import_smithy_client.expectString,
2762
+ ResourceType: import_smithy_client.expectString
2763
+ });
2764
+ Object.assign(contents, doc);
2765
+ const exception = new ResourceNotFoundException({
2766
+ $metadata: deserializeMetadata(parsedOutput),
2767
+ ...contents
2768
+ });
2769
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2770
+ }, "de_ResourceNotFoundExceptionRes");
2771
+ var de_ServiceLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2772
+ const contents = (0, import_smithy_client.map)({});
2773
+ const data = parsedOutput.body;
2774
+ const doc = (0, import_smithy_client.take)(data, {
2775
+ LimitCode: import_smithy_client.expectString,
2776
+ Message: import_smithy_client.expectString,
2777
+ ResourceId: import_smithy_client.expectString,
2778
+ ResourceType: import_smithy_client.expectString,
2779
+ ServiceCode: import_smithy_client.expectString
2780
+ });
2781
+ Object.assign(contents, doc);
2782
+ const exception = new ServiceLimitExceededException({
2783
+ $metadata: deserializeMetadata(parsedOutput),
2784
+ ...contents
2785
+ });
2786
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2787
+ }, "de_ServiceLimitExceededExceptionRes");
2788
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2789
+ const contents = (0, import_smithy_client.map)({
2790
+ [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
2791
+ });
2792
+ const data = parsedOutput.body;
2793
+ const doc = (0, import_smithy_client.take)(data, {
2794
+ Message: import_smithy_client.expectString
2795
+ });
2796
+ Object.assign(contents, doc);
2797
+ const exception = new ThrottlingException({
2798
+ $metadata: deserializeMetadata(parsedOutput),
2799
+ ...contents
2800
+ });
2801
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2802
+ }, "de_ThrottlingExceptionRes");
2803
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2804
+ const contents = (0, import_smithy_client.map)({});
2805
+ const data = parsedOutput.body;
2806
+ const doc = (0, import_smithy_client.take)(data, {
2807
+ Fields: import_smithy_client._json,
2808
+ Message: import_smithy_client.expectString,
2809
+ Reason: import_smithy_client.expectString
2810
+ });
2811
+ Object.assign(contents, doc);
2812
+ const exception = new ValidationException({
2813
+ $metadata: deserializeMetadata(parsedOutput),
2814
+ ...contents
2815
+ });
2816
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2817
+ }, "de_ValidationExceptionRes");
2818
+ var se_CustomLineItemChargeDetails = /* @__PURE__ */ __name((input, context) => {
2819
+ return (0, import_smithy_client.take)(input, {
2820
+ Flat: (_) => se_CustomLineItemFlatChargeDetails(_, context),
2821
+ LineItemFilters: import_smithy_client._json,
2822
+ Percentage: (_) => se_CustomLineItemPercentageChargeDetails(_, context),
2823
+ Type: []
2824
+ });
2825
+ }, "se_CustomLineItemChargeDetails");
2826
+ var se_CustomLineItemFlatChargeDetails = /* @__PURE__ */ __name((input, context) => {
2827
+ return (0, import_smithy_client.take)(input, {
2828
+ ChargeValue: import_smithy_client.serializeFloat
2829
+ });
2830
+ }, "se_CustomLineItemFlatChargeDetails");
2831
+ var se_CustomLineItemPercentageChargeDetails = /* @__PURE__ */ __name((input, context) => {
2832
+ return (0, import_smithy_client.take)(input, {
2833
+ AssociatedValues: import_smithy_client._json,
2834
+ PercentageValue: import_smithy_client.serializeFloat
2835
+ });
2836
+ }, "se_CustomLineItemPercentageChargeDetails");
2837
+ var se_UpdateCustomLineItemChargeDetails = /* @__PURE__ */ __name((input, context) => {
2838
+ return (0, import_smithy_client.take)(input, {
2839
+ Flat: (_) => se_UpdateCustomLineItemFlatChargeDetails(_, context),
2840
+ LineItemFilters: import_smithy_client._json,
2841
+ Percentage: (_) => se_UpdateCustomLineItemPercentageChargeDetails(_, context)
2842
+ });
2843
+ }, "se_UpdateCustomLineItemChargeDetails");
2844
+ var se_UpdateCustomLineItemFlatChargeDetails = /* @__PURE__ */ __name((input, context) => {
2845
+ return (0, import_smithy_client.take)(input, {
2846
+ ChargeValue: import_smithy_client.serializeFloat
2847
+ });
2848
+ }, "se_UpdateCustomLineItemFlatChargeDetails");
2849
+ var se_UpdateCustomLineItemPercentageChargeDetails = /* @__PURE__ */ __name((input, context) => {
2850
+ return (0, import_smithy_client.take)(input, {
2851
+ PercentageValue: import_smithy_client.serializeFloat
2852
+ });
2853
+ }, "se_UpdateCustomLineItemPercentageChargeDetails");
2854
+ var de_CustomLineItemList = /* @__PURE__ */ __name((output, context) => {
2855
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2856
+ return de_CustomLineItemListElement(entry, context);
2857
+ });
2858
+ return retVal;
2859
+ }, "de_CustomLineItemList");
2860
+ var de_CustomLineItemListElement = /* @__PURE__ */ __name((output, context) => {
2861
+ return (0, import_smithy_client.take)(output, {
2862
+ AccountId: import_smithy_client.expectString,
2863
+ Arn: import_smithy_client.expectString,
2864
+ AssociationSize: import_smithy_client.expectLong,
2865
+ BillingGroupArn: import_smithy_client.expectString,
2866
+ ChargeDetails: (_) => de_ListCustomLineItemChargeDetails(_, context),
2867
+ CreationTime: import_smithy_client.expectLong,
2868
+ CurrencyCode: import_smithy_client.expectString,
2869
+ Description: import_smithy_client.expectString,
2870
+ LastModifiedTime: import_smithy_client.expectLong,
2871
+ Name: import_smithy_client.expectString,
2872
+ ProductCode: import_smithy_client.expectString
2873
+ });
2874
+ }, "de_CustomLineItemListElement");
2875
+ var de_CustomLineItemVersionList = /* @__PURE__ */ __name((output, context) => {
2876
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2877
+ return de_CustomLineItemVersionListElement(entry, context);
2878
+ });
2879
+ return retVal;
2880
+ }, "de_CustomLineItemVersionList");
2881
+ var de_CustomLineItemVersionListElement = /* @__PURE__ */ __name((output, context) => {
2882
+ return (0, import_smithy_client.take)(output, {
2883
+ AccountId: import_smithy_client.expectString,
2884
+ Arn: import_smithy_client.expectString,
2885
+ AssociationSize: import_smithy_client.expectLong,
2886
+ BillingGroupArn: import_smithy_client.expectString,
2887
+ ChargeDetails: (_) => de_ListCustomLineItemChargeDetails(_, context),
2888
+ CreationTime: import_smithy_client.expectLong,
2889
+ CurrencyCode: import_smithy_client.expectString,
2890
+ Description: import_smithy_client.expectString,
2891
+ EndBillingPeriod: import_smithy_client.expectString,
2892
+ LastModifiedTime: import_smithy_client.expectLong,
2893
+ Name: import_smithy_client.expectString,
2894
+ ProductCode: import_smithy_client.expectString,
2895
+ StartBillingPeriod: import_smithy_client.expectString,
2896
+ StartTime: import_smithy_client.expectLong
2897
+ });
2898
+ }, "de_CustomLineItemVersionListElement");
2899
+ var de_ListCustomLineItemChargeDetails = /* @__PURE__ */ __name((output, context) => {
2900
+ return (0, import_smithy_client.take)(output, {
2901
+ Flat: (_) => de_ListCustomLineItemFlatChargeDetails(_, context),
2902
+ LineItemFilters: import_smithy_client._json,
2903
+ Percentage: (_) => de_ListCustomLineItemPercentageChargeDetails(_, context),
2904
+ Type: import_smithy_client.expectString
2905
+ });
2906
+ }, "de_ListCustomLineItemChargeDetails");
2907
+ var de_ListCustomLineItemFlatChargeDetails = /* @__PURE__ */ __name((output, context) => {
2908
+ return (0, import_smithy_client.take)(output, {
2909
+ ChargeValue: import_smithy_client.limitedParseDouble
2910
+ });
2911
+ }, "de_ListCustomLineItemFlatChargeDetails");
2912
+ var de_ListCustomLineItemPercentageChargeDetails = /* @__PURE__ */ __name((output, context) => {
2913
+ return (0, import_smithy_client.take)(output, {
2914
+ PercentageValue: import_smithy_client.limitedParseDouble
2915
+ });
2916
+ }, "de_ListCustomLineItemPercentageChargeDetails");
2917
+ var de_PricingRuleList = /* @__PURE__ */ __name((output, context) => {
2918
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2919
+ return de_PricingRuleListElement(entry, context);
2920
+ });
2921
+ return retVal;
2922
+ }, "de_PricingRuleList");
2923
+ var de_PricingRuleListElement = /* @__PURE__ */ __name((output, context) => {
2924
+ return (0, import_smithy_client.take)(output, {
2925
+ Arn: import_smithy_client.expectString,
2926
+ AssociatedPricingPlanCount: import_smithy_client.expectLong,
2927
+ BillingEntity: import_smithy_client.expectString,
2928
+ CreationTime: import_smithy_client.expectLong,
2929
+ Description: import_smithy_client.expectString,
2930
+ LastModifiedTime: import_smithy_client.expectLong,
2931
+ ModifierPercentage: import_smithy_client.limitedParseDouble,
2932
+ Name: import_smithy_client.expectString,
2933
+ Operation: import_smithy_client.expectString,
2934
+ Scope: import_smithy_client.expectString,
2935
+ Service: import_smithy_client.expectString,
2936
+ Tiering: import_smithy_client._json,
2937
+ Type: import_smithy_client.expectString,
2938
+ UsageType: import_smithy_client.expectString
2939
+ });
2940
+ }, "de_PricingRuleListElement");
2941
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2942
+ httpStatusCode: output.statusCode,
2943
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2944
+ extendedRequestId: output.headers["x-amz-id-2"],
2945
+ cfId: output.headers["x-amz-cf-id"]
2946
+ }), "deserializeMetadata");
2947
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2948
+ var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
2949
+ var _CT = "ClientToken";
2950
+ var _RAS = "RetryAfterSeconds";
2951
+ var _TK = "TagKeys";
2952
+ var _ra = "retry-after";
2953
+ var _tK = "tagKeys";
2954
+ var _xact = "x-amzn-client-token";
2955
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2956
+ if (encoded.length) {
2957
+ return JSON.parse(encoded);
2958
+ }
2959
+ return {};
2960
+ }), "parseBody");
2961
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2962
+ const value = await parseBody(errorBody, context);
2963
+ value.message = value.message ?? value.Message;
2964
+ return value;
2965
+ }, "parseErrorBody");
2966
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2967
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2968
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2969
+ let cleanValue = rawValue;
2970
+ if (typeof cleanValue === "number") {
2971
+ cleanValue = cleanValue.toString();
2972
+ }
2973
+ if (cleanValue.indexOf(",") >= 0) {
2974
+ cleanValue = cleanValue.split(",")[0];
2975
+ }
2976
+ if (cleanValue.indexOf(":") >= 0) {
2977
+ cleanValue = cleanValue.split(":")[0];
2978
+ }
2979
+ if (cleanValue.indexOf("#") >= 0) {
2980
+ cleanValue = cleanValue.split("#")[1];
2981
+ }
2982
+ return cleanValue;
2983
+ }, "sanitizeErrorCode");
2984
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2985
+ if (headerKey !== void 0) {
2986
+ return sanitizeErrorCode(output.headers[headerKey]);
2987
+ }
2988
+ if (data.code !== void 0) {
2989
+ return sanitizeErrorCode(data.code);
2990
+ }
2991
+ if (data["__type"] !== void 0) {
2992
+ return sanitizeErrorCode(data["__type"]);
2993
+ }
2994
+ }, "loadRestJsonErrorCode");
2995
+
2996
+ // src/commands/AssociateAccountsCommand.ts
2997
+ var _AssociateAccountsCommand = class _AssociateAccountsCommand extends import_smithy_client.Command.classBuilder().ep({
2998
+ ...commonParams
2999
+ }).m(function(Command, cs, config, o) {
3000
+ return [
3001
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3002
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3003
+ ];
3004
+ }).s("AWSBillingConductor", "AssociateAccounts", {}).n("BillingconductorClient", "AssociateAccountsCommand").f(void 0, void 0).ser(se_AssociateAccountsCommand).de(de_AssociateAccountsCommand).build() {
3005
+ };
3006
+ __name(_AssociateAccountsCommand, "AssociateAccountsCommand");
3007
+ var AssociateAccountsCommand = _AssociateAccountsCommand;
3008
+
3009
+ // src/commands/AssociatePricingRulesCommand.ts
3010
+
3011
+
3012
+
3013
+
3014
+ var _AssociatePricingRulesCommand = class _AssociatePricingRulesCommand extends import_smithy_client.Command.classBuilder().ep({
3015
+ ...commonParams
3016
+ }).m(function(Command, cs, config, o) {
3017
+ return [
3018
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3019
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3020
+ ];
3021
+ }).s("AWSBillingConductor", "AssociatePricingRules", {}).n("BillingconductorClient", "AssociatePricingRulesCommand").f(void 0, void 0).ser(se_AssociatePricingRulesCommand).de(de_AssociatePricingRulesCommand).build() {
3022
+ };
3023
+ __name(_AssociatePricingRulesCommand, "AssociatePricingRulesCommand");
3024
+ var AssociatePricingRulesCommand = _AssociatePricingRulesCommand;
3025
+
3026
+ // src/commands/BatchAssociateResourcesToCustomLineItemCommand.ts
3027
+
3028
+
3029
+
3030
+
3031
+ var _BatchAssociateResourcesToCustomLineItemCommand = class _BatchAssociateResourcesToCustomLineItemCommand extends import_smithy_client.Command.classBuilder().ep({
3032
+ ...commonParams
3033
+ }).m(function(Command, cs, config, o) {
3034
+ return [
3035
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3036
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3037
+ ];
3038
+ }).s("AWSBillingConductor", "BatchAssociateResourcesToCustomLineItem", {}).n("BillingconductorClient", "BatchAssociateResourcesToCustomLineItemCommand").f(void 0, void 0).ser(se_BatchAssociateResourcesToCustomLineItemCommand).de(de_BatchAssociateResourcesToCustomLineItemCommand).build() {
3039
+ };
3040
+ __name(_BatchAssociateResourcesToCustomLineItemCommand, "BatchAssociateResourcesToCustomLineItemCommand");
3041
+ var BatchAssociateResourcesToCustomLineItemCommand = _BatchAssociateResourcesToCustomLineItemCommand;
3042
+
3043
+ // src/commands/BatchDisassociateResourcesFromCustomLineItemCommand.ts
3044
+
3045
+
3046
+
3047
+
3048
+ var _BatchDisassociateResourcesFromCustomLineItemCommand = class _BatchDisassociateResourcesFromCustomLineItemCommand extends import_smithy_client.Command.classBuilder().ep({
3049
+ ...commonParams
3050
+ }).m(function(Command, cs, config, o) {
3051
+ return [
3052
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3053
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3054
+ ];
3055
+ }).s("AWSBillingConductor", "BatchDisassociateResourcesFromCustomLineItem", {}).n("BillingconductorClient", "BatchDisassociateResourcesFromCustomLineItemCommand").f(void 0, void 0).ser(se_BatchDisassociateResourcesFromCustomLineItemCommand).de(de_BatchDisassociateResourcesFromCustomLineItemCommand).build() {
3056
+ };
3057
+ __name(_BatchDisassociateResourcesFromCustomLineItemCommand, "BatchDisassociateResourcesFromCustomLineItemCommand");
3058
+ var BatchDisassociateResourcesFromCustomLineItemCommand = _BatchDisassociateResourcesFromCustomLineItemCommand;
3059
+
3060
+ // src/commands/CreateBillingGroupCommand.ts
3061
+
3062
+
3063
+
3064
+
3065
+ var _CreateBillingGroupCommand = class _CreateBillingGroupCommand extends import_smithy_client.Command.classBuilder().ep({
3066
+ ...commonParams
3067
+ }).m(function(Command, cs, config, o) {
3068
+ return [
3069
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3070
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3071
+ ];
3072
+ }).s("AWSBillingConductor", "CreateBillingGroup", {}).n("BillingconductorClient", "CreateBillingGroupCommand").f(CreateBillingGroupInputFilterSensitiveLog, void 0).ser(se_CreateBillingGroupCommand).de(de_CreateBillingGroupCommand).build() {
3073
+ };
3074
+ __name(_CreateBillingGroupCommand, "CreateBillingGroupCommand");
3075
+ var CreateBillingGroupCommand = _CreateBillingGroupCommand;
3076
+
3077
+ // src/commands/CreateCustomLineItemCommand.ts
3078
+
3079
+
3080
+
3081
+
3082
+ var _CreateCustomLineItemCommand = class _CreateCustomLineItemCommand extends import_smithy_client.Command.classBuilder().ep({
3083
+ ...commonParams
3084
+ }).m(function(Command, cs, config, o) {
3085
+ return [
3086
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3087
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3088
+ ];
3089
+ }).s("AWSBillingConductor", "CreateCustomLineItem", {}).n("BillingconductorClient", "CreateCustomLineItemCommand").f(CreateCustomLineItemInputFilterSensitiveLog, void 0).ser(se_CreateCustomLineItemCommand).de(de_CreateCustomLineItemCommand).build() {
3090
+ };
3091
+ __name(_CreateCustomLineItemCommand, "CreateCustomLineItemCommand");
3092
+ var CreateCustomLineItemCommand = _CreateCustomLineItemCommand;
3093
+
3094
+ // src/commands/CreatePricingPlanCommand.ts
3095
+
3096
+
3097
+
3098
+
3099
+ var _CreatePricingPlanCommand = class _CreatePricingPlanCommand extends import_smithy_client.Command.classBuilder().ep({
3100
+ ...commonParams
3101
+ }).m(function(Command, cs, config, o) {
3102
+ return [
3103
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3104
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3105
+ ];
3106
+ }).s("AWSBillingConductor", "CreatePricingPlan", {}).n("BillingconductorClient", "CreatePricingPlanCommand").f(CreatePricingPlanInputFilterSensitiveLog, void 0).ser(se_CreatePricingPlanCommand).de(de_CreatePricingPlanCommand).build() {
3107
+ };
3108
+ __name(_CreatePricingPlanCommand, "CreatePricingPlanCommand");
3109
+ var CreatePricingPlanCommand = _CreatePricingPlanCommand;
3110
+
3111
+ // src/commands/CreatePricingRuleCommand.ts
3112
+
3113
+
3114
+
3115
+
3116
+ var _CreatePricingRuleCommand = class _CreatePricingRuleCommand extends import_smithy_client.Command.classBuilder().ep({
3117
+ ...commonParams
3118
+ }).m(function(Command, cs, config, o) {
3119
+ return [
3120
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3121
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3122
+ ];
3123
+ }).s("AWSBillingConductor", "CreatePricingRule", {}).n("BillingconductorClient", "CreatePricingRuleCommand").f(CreatePricingRuleInputFilterSensitiveLog, void 0).ser(se_CreatePricingRuleCommand).de(de_CreatePricingRuleCommand).build() {
3124
+ };
3125
+ __name(_CreatePricingRuleCommand, "CreatePricingRuleCommand");
3126
+ var CreatePricingRuleCommand = _CreatePricingRuleCommand;
3127
+
3128
+ // src/commands/DeleteBillingGroupCommand.ts
3129
+
3130
+
3131
+
3132
+
3133
+ var _DeleteBillingGroupCommand = class _DeleteBillingGroupCommand extends import_smithy_client.Command.classBuilder().ep({
3134
+ ...commonParams
3135
+ }).m(function(Command, cs, config, o) {
3136
+ return [
3137
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3138
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3139
+ ];
3140
+ }).s("AWSBillingConductor", "DeleteBillingGroup", {}).n("BillingconductorClient", "DeleteBillingGroupCommand").f(void 0, void 0).ser(se_DeleteBillingGroupCommand).de(de_DeleteBillingGroupCommand).build() {
3141
+ };
3142
+ __name(_DeleteBillingGroupCommand, "DeleteBillingGroupCommand");
3143
+ var DeleteBillingGroupCommand = _DeleteBillingGroupCommand;
3144
+
3145
+ // src/commands/DeleteCustomLineItemCommand.ts
3146
+
3147
+
3148
+
3149
+
3150
+ var _DeleteCustomLineItemCommand = class _DeleteCustomLineItemCommand extends import_smithy_client.Command.classBuilder().ep({
3151
+ ...commonParams
3152
+ }).m(function(Command, cs, config, o) {
3153
+ return [
3154
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3155
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3156
+ ];
3157
+ }).s("AWSBillingConductor", "DeleteCustomLineItem", {}).n("BillingconductorClient", "DeleteCustomLineItemCommand").f(void 0, void 0).ser(se_DeleteCustomLineItemCommand).de(de_DeleteCustomLineItemCommand).build() {
3158
+ };
3159
+ __name(_DeleteCustomLineItemCommand, "DeleteCustomLineItemCommand");
3160
+ var DeleteCustomLineItemCommand = _DeleteCustomLineItemCommand;
3161
+
3162
+ // src/commands/DeletePricingPlanCommand.ts
3163
+
3164
+
3165
+
3166
+
3167
+ var _DeletePricingPlanCommand = class _DeletePricingPlanCommand extends import_smithy_client.Command.classBuilder().ep({
3168
+ ...commonParams
3169
+ }).m(function(Command, cs, config, o) {
3170
+ return [
3171
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3172
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3173
+ ];
3174
+ }).s("AWSBillingConductor", "DeletePricingPlan", {}).n("BillingconductorClient", "DeletePricingPlanCommand").f(void 0, void 0).ser(se_DeletePricingPlanCommand).de(de_DeletePricingPlanCommand).build() {
3175
+ };
3176
+ __name(_DeletePricingPlanCommand, "DeletePricingPlanCommand");
3177
+ var DeletePricingPlanCommand = _DeletePricingPlanCommand;
3178
+
3179
+ // src/commands/DeletePricingRuleCommand.ts
3180
+
3181
+
3182
+
3183
+
3184
+ var _DeletePricingRuleCommand = class _DeletePricingRuleCommand extends import_smithy_client.Command.classBuilder().ep({
3185
+ ...commonParams
3186
+ }).m(function(Command, cs, config, o) {
3187
+ return [
3188
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3189
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3190
+ ];
3191
+ }).s("AWSBillingConductor", "DeletePricingRule", {}).n("BillingconductorClient", "DeletePricingRuleCommand").f(void 0, void 0).ser(se_DeletePricingRuleCommand).de(de_DeletePricingRuleCommand).build() {
3192
+ };
3193
+ __name(_DeletePricingRuleCommand, "DeletePricingRuleCommand");
3194
+ var DeletePricingRuleCommand = _DeletePricingRuleCommand;
3195
+
3196
+ // src/commands/DisassociateAccountsCommand.ts
3197
+
3198
+
3199
+
3200
+
3201
+ var _DisassociateAccountsCommand = class _DisassociateAccountsCommand extends import_smithy_client.Command.classBuilder().ep({
3202
+ ...commonParams
3203
+ }).m(function(Command, cs, config, o) {
3204
+ return [
3205
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3206
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3207
+ ];
3208
+ }).s("AWSBillingConductor", "DisassociateAccounts", {}).n("BillingconductorClient", "DisassociateAccountsCommand").f(void 0, void 0).ser(se_DisassociateAccountsCommand).de(de_DisassociateAccountsCommand).build() {
3209
+ };
3210
+ __name(_DisassociateAccountsCommand, "DisassociateAccountsCommand");
3211
+ var DisassociateAccountsCommand = _DisassociateAccountsCommand;
3212
+
3213
+ // src/commands/DisassociatePricingRulesCommand.ts
3214
+
3215
+
3216
+
3217
+
3218
+ var _DisassociatePricingRulesCommand = class _DisassociatePricingRulesCommand extends import_smithy_client.Command.classBuilder().ep({
3219
+ ...commonParams
3220
+ }).m(function(Command, cs, config, o) {
3221
+ return [
3222
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3223
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3224
+ ];
3225
+ }).s("AWSBillingConductor", "DisassociatePricingRules", {}).n("BillingconductorClient", "DisassociatePricingRulesCommand").f(void 0, void 0).ser(se_DisassociatePricingRulesCommand).de(de_DisassociatePricingRulesCommand).build() {
3226
+ };
3227
+ __name(_DisassociatePricingRulesCommand, "DisassociatePricingRulesCommand");
3228
+ var DisassociatePricingRulesCommand = _DisassociatePricingRulesCommand;
3229
+
3230
+ // src/commands/GetBillingGroupCostReportCommand.ts
3231
+
3232
+
3233
+
3234
+
3235
+ var _GetBillingGroupCostReportCommand = class _GetBillingGroupCostReportCommand extends import_smithy_client.Command.classBuilder().ep({
3236
+ ...commonParams
3237
+ }).m(function(Command, cs, config, o) {
3238
+ return [
3239
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3240
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3241
+ ];
3242
+ }).s("AWSBillingConductor", "GetBillingGroupCostReport", {}).n("BillingconductorClient", "GetBillingGroupCostReportCommand").f(void 0, void 0).ser(se_GetBillingGroupCostReportCommand).de(de_GetBillingGroupCostReportCommand).build() {
3243
+ };
3244
+ __name(_GetBillingGroupCostReportCommand, "GetBillingGroupCostReportCommand");
3245
+ var GetBillingGroupCostReportCommand = _GetBillingGroupCostReportCommand;
3246
+
3247
+ // src/commands/ListAccountAssociationsCommand.ts
3248
+
3249
+
3250
+
3251
+
3252
+ var _ListAccountAssociationsCommand = class _ListAccountAssociationsCommand extends import_smithy_client.Command.classBuilder().ep({
3253
+ ...commonParams
3254
+ }).m(function(Command, cs, config, o) {
3255
+ return [
3256
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3257
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3258
+ ];
3259
+ }).s("AWSBillingConductor", "ListAccountAssociations", {}).n("BillingconductorClient", "ListAccountAssociationsCommand").f(void 0, ListAccountAssociationsOutputFilterSensitiveLog).ser(se_ListAccountAssociationsCommand).de(de_ListAccountAssociationsCommand).build() {
3260
+ };
3261
+ __name(_ListAccountAssociationsCommand, "ListAccountAssociationsCommand");
3262
+ var ListAccountAssociationsCommand = _ListAccountAssociationsCommand;
3263
+
3264
+ // src/commands/ListBillingGroupCostReportsCommand.ts
3265
+
3266
+
3267
+
3268
+
3269
+ var _ListBillingGroupCostReportsCommand = class _ListBillingGroupCostReportsCommand extends import_smithy_client.Command.classBuilder().ep({
3270
+ ...commonParams
3271
+ }).m(function(Command, cs, config, o) {
3272
+ return [
3273
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3274
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3275
+ ];
3276
+ }).s("AWSBillingConductor", "ListBillingGroupCostReports", {}).n("BillingconductorClient", "ListBillingGroupCostReportsCommand").f(void 0, void 0).ser(se_ListBillingGroupCostReportsCommand).de(de_ListBillingGroupCostReportsCommand).build() {
3277
+ };
3278
+ __name(_ListBillingGroupCostReportsCommand, "ListBillingGroupCostReportsCommand");
3279
+ var ListBillingGroupCostReportsCommand = _ListBillingGroupCostReportsCommand;
3280
+
3281
+ // src/commands/ListBillingGroupsCommand.ts
3282
+
3283
+
3284
+
3285
+
3286
+ var _ListBillingGroupsCommand = class _ListBillingGroupsCommand extends import_smithy_client.Command.classBuilder().ep({
3287
+ ...commonParams
3288
+ }).m(function(Command, cs, config, o) {
3289
+ return [
3290
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3291
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3292
+ ];
3293
+ }).s("AWSBillingConductor", "ListBillingGroups", {}).n("BillingconductorClient", "ListBillingGroupsCommand").f(void 0, ListBillingGroupsOutputFilterSensitiveLog).ser(se_ListBillingGroupsCommand).de(de_ListBillingGroupsCommand).build() {
3294
+ };
3295
+ __name(_ListBillingGroupsCommand, "ListBillingGroupsCommand");
3296
+ var ListBillingGroupsCommand = _ListBillingGroupsCommand;
3297
+
3298
+ // src/commands/ListCustomLineItemsCommand.ts
3299
+
3300
+
3301
+
3302
+
3303
+ var _ListCustomLineItemsCommand = class _ListCustomLineItemsCommand extends import_smithy_client.Command.classBuilder().ep({
3304
+ ...commonParams
3305
+ }).m(function(Command, cs, config, o) {
3306
+ return [
3307
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3308
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3309
+ ];
3310
+ }).s("AWSBillingConductor", "ListCustomLineItems", {}).n("BillingconductorClient", "ListCustomLineItemsCommand").f(ListCustomLineItemsInputFilterSensitiveLog, ListCustomLineItemsOutputFilterSensitiveLog).ser(se_ListCustomLineItemsCommand).de(de_ListCustomLineItemsCommand).build() {
3311
+ };
3312
+ __name(_ListCustomLineItemsCommand, "ListCustomLineItemsCommand");
3313
+ var ListCustomLineItemsCommand = _ListCustomLineItemsCommand;
3314
+
3315
+ // src/commands/ListCustomLineItemVersionsCommand.ts
3316
+
3317
+
3318
+
3319
+
3320
+ var _ListCustomLineItemVersionsCommand = class _ListCustomLineItemVersionsCommand extends import_smithy_client.Command.classBuilder().ep({
3321
+ ...commonParams
3322
+ }).m(function(Command, cs, config, o) {
3323
+ return [
3324
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3325
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3326
+ ];
3327
+ }).s("AWSBillingConductor", "ListCustomLineItemVersions", {}).n("BillingconductorClient", "ListCustomLineItemVersionsCommand").f(void 0, ListCustomLineItemVersionsOutputFilterSensitiveLog).ser(se_ListCustomLineItemVersionsCommand).de(de_ListCustomLineItemVersionsCommand).build() {
3328
+ };
3329
+ __name(_ListCustomLineItemVersionsCommand, "ListCustomLineItemVersionsCommand");
3330
+ var ListCustomLineItemVersionsCommand = _ListCustomLineItemVersionsCommand;
3331
+
3332
+ // src/commands/ListPricingPlansAssociatedWithPricingRuleCommand.ts
3333
+
3334
+
3335
+
3336
+
3337
+ var _ListPricingPlansAssociatedWithPricingRuleCommand = class _ListPricingPlansAssociatedWithPricingRuleCommand extends import_smithy_client.Command.classBuilder().ep({
3338
+ ...commonParams
3339
+ }).m(function(Command, cs, config, o) {
3340
+ return [
3341
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3342
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3343
+ ];
3344
+ }).s("AWSBillingConductor", "ListPricingPlansAssociatedWithPricingRule", {}).n("BillingconductorClient", "ListPricingPlansAssociatedWithPricingRuleCommand").f(void 0, void 0).ser(se_ListPricingPlansAssociatedWithPricingRuleCommand).de(de_ListPricingPlansAssociatedWithPricingRuleCommand).build() {
3345
+ };
3346
+ __name(_ListPricingPlansAssociatedWithPricingRuleCommand, "ListPricingPlansAssociatedWithPricingRuleCommand");
3347
+ var ListPricingPlansAssociatedWithPricingRuleCommand = _ListPricingPlansAssociatedWithPricingRuleCommand;
3348
+
3349
+ // src/commands/ListPricingPlansCommand.ts
3350
+
3351
+
3352
+
3353
+
3354
+ var _ListPricingPlansCommand = class _ListPricingPlansCommand extends import_smithy_client.Command.classBuilder().ep({
3355
+ ...commonParams
3356
+ }).m(function(Command, cs, config, o) {
3357
+ return [
3358
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3359
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3360
+ ];
3361
+ }).s("AWSBillingConductor", "ListPricingPlans", {}).n("BillingconductorClient", "ListPricingPlansCommand").f(void 0, ListPricingPlansOutputFilterSensitiveLog).ser(se_ListPricingPlansCommand).de(de_ListPricingPlansCommand).build() {
3362
+ };
3363
+ __name(_ListPricingPlansCommand, "ListPricingPlansCommand");
3364
+ var ListPricingPlansCommand = _ListPricingPlansCommand;
3365
+
3366
+ // src/commands/ListPricingRulesAssociatedToPricingPlanCommand.ts
3367
+
3368
+
3369
+
3370
+
3371
+ var _ListPricingRulesAssociatedToPricingPlanCommand = class _ListPricingRulesAssociatedToPricingPlanCommand extends import_smithy_client.Command.classBuilder().ep({
3372
+ ...commonParams
3373
+ }).m(function(Command, cs, config, o) {
3374
+ return [
3375
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3376
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3377
+ ];
3378
+ }).s("AWSBillingConductor", "ListPricingRulesAssociatedToPricingPlan", {}).n("BillingconductorClient", "ListPricingRulesAssociatedToPricingPlanCommand").f(void 0, void 0).ser(se_ListPricingRulesAssociatedToPricingPlanCommand).de(de_ListPricingRulesAssociatedToPricingPlanCommand).build() {
3379
+ };
3380
+ __name(_ListPricingRulesAssociatedToPricingPlanCommand, "ListPricingRulesAssociatedToPricingPlanCommand");
3381
+ var ListPricingRulesAssociatedToPricingPlanCommand = _ListPricingRulesAssociatedToPricingPlanCommand;
3382
+
3383
+ // src/commands/ListPricingRulesCommand.ts
3384
+
3385
+
3386
+
3387
+
3388
+ var _ListPricingRulesCommand = class _ListPricingRulesCommand extends import_smithy_client.Command.classBuilder().ep({
3389
+ ...commonParams
3390
+ }).m(function(Command, cs, config, o) {
3391
+ return [
3392
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3393
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3394
+ ];
3395
+ }).s("AWSBillingConductor", "ListPricingRules", {}).n("BillingconductorClient", "ListPricingRulesCommand").f(void 0, ListPricingRulesOutputFilterSensitiveLog).ser(se_ListPricingRulesCommand).de(de_ListPricingRulesCommand).build() {
3396
+ };
3397
+ __name(_ListPricingRulesCommand, "ListPricingRulesCommand");
3398
+ var ListPricingRulesCommand = _ListPricingRulesCommand;
3399
+
3400
+ // src/commands/ListResourcesAssociatedToCustomLineItemCommand.ts
3401
+
3402
+
3403
+
3404
+
3405
+ var _ListResourcesAssociatedToCustomLineItemCommand = class _ListResourcesAssociatedToCustomLineItemCommand extends import_smithy_client.Command.classBuilder().ep({
3406
+ ...commonParams
3407
+ }).m(function(Command, cs, config, o) {
3408
+ return [
3409
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3410
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3411
+ ];
3412
+ }).s("AWSBillingConductor", "ListResourcesAssociatedToCustomLineItem", {}).n("BillingconductorClient", "ListResourcesAssociatedToCustomLineItemCommand").f(void 0, void 0).ser(se_ListResourcesAssociatedToCustomLineItemCommand).de(de_ListResourcesAssociatedToCustomLineItemCommand).build() {
3413
+ };
3414
+ __name(_ListResourcesAssociatedToCustomLineItemCommand, "ListResourcesAssociatedToCustomLineItemCommand");
3415
+ var ListResourcesAssociatedToCustomLineItemCommand = _ListResourcesAssociatedToCustomLineItemCommand;
3416
+
3417
+ // src/commands/ListTagsForResourceCommand.ts
3418
+
3419
+
3420
+
3421
+
3422
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3423
+ ...commonParams
3424
+ }).m(function(Command, cs, config, o) {
3425
+ return [
3426
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3427
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3428
+ ];
3429
+ }).s("AWSBillingConductor", "ListTagsForResource", {}).n("BillingconductorClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
3430
+ };
3431
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
3432
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
3433
+
3434
+ // src/commands/TagResourceCommand.ts
3435
+
3436
+
3437
+
3438
+
3439
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3440
+ ...commonParams
3441
+ }).m(function(Command, cs, config, o) {
3442
+ return [
3443
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3444
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3445
+ ];
3446
+ }).s("AWSBillingConductor", "TagResource", {}).n("BillingconductorClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
3447
+ };
3448
+ __name(_TagResourceCommand, "TagResourceCommand");
3449
+ var TagResourceCommand = _TagResourceCommand;
3450
+
3451
+ // src/commands/UntagResourceCommand.ts
3452
+
3453
+
3454
+
3455
+
3456
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
3457
+ ...commonParams
3458
+ }).m(function(Command, cs, config, o) {
3459
+ return [
3460
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3461
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3462
+ ];
3463
+ }).s("AWSBillingConductor", "UntagResource", {}).n("BillingconductorClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
3464
+ };
3465
+ __name(_UntagResourceCommand, "UntagResourceCommand");
3466
+ var UntagResourceCommand = _UntagResourceCommand;
3467
+
3468
+ // src/commands/UpdateBillingGroupCommand.ts
3469
+
3470
+
3471
+
3472
+
3473
+ var _UpdateBillingGroupCommand = class _UpdateBillingGroupCommand extends import_smithy_client.Command.classBuilder().ep({
3474
+ ...commonParams
3475
+ }).m(function(Command, cs, config, o) {
3476
+ return [
3477
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3478
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3479
+ ];
3480
+ }).s("AWSBillingConductor", "UpdateBillingGroup", {}).n("BillingconductorClient", "UpdateBillingGroupCommand").f(UpdateBillingGroupInputFilterSensitiveLog, UpdateBillingGroupOutputFilterSensitiveLog).ser(se_UpdateBillingGroupCommand).de(de_UpdateBillingGroupCommand).build() {
3481
+ };
3482
+ __name(_UpdateBillingGroupCommand, "UpdateBillingGroupCommand");
3483
+ var UpdateBillingGroupCommand = _UpdateBillingGroupCommand;
3484
+
3485
+ // src/commands/UpdateCustomLineItemCommand.ts
3486
+
3487
+
3488
+
3489
+
3490
+ var _UpdateCustomLineItemCommand = class _UpdateCustomLineItemCommand extends import_smithy_client.Command.classBuilder().ep({
3491
+ ...commonParams
3492
+ }).m(function(Command, cs, config, o) {
3493
+ return [
3494
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3495
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3496
+ ];
3497
+ }).s("AWSBillingConductor", "UpdateCustomLineItem", {}).n("BillingconductorClient", "UpdateCustomLineItemCommand").f(UpdateCustomLineItemInputFilterSensitiveLog, UpdateCustomLineItemOutputFilterSensitiveLog).ser(se_UpdateCustomLineItemCommand).de(de_UpdateCustomLineItemCommand).build() {
3498
+ };
3499
+ __name(_UpdateCustomLineItemCommand, "UpdateCustomLineItemCommand");
3500
+ var UpdateCustomLineItemCommand = _UpdateCustomLineItemCommand;
3501
+
3502
+ // src/commands/UpdatePricingPlanCommand.ts
3503
+
3504
+
3505
+
3506
+
3507
+ var _UpdatePricingPlanCommand = class _UpdatePricingPlanCommand extends import_smithy_client.Command.classBuilder().ep({
3508
+ ...commonParams
3509
+ }).m(function(Command, cs, config, o) {
3510
+ return [
3511
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3512
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3513
+ ];
3514
+ }).s("AWSBillingConductor", "UpdatePricingPlan", {}).n("BillingconductorClient", "UpdatePricingPlanCommand").f(UpdatePricingPlanInputFilterSensitiveLog, UpdatePricingPlanOutputFilterSensitiveLog).ser(se_UpdatePricingPlanCommand).de(de_UpdatePricingPlanCommand).build() {
3515
+ };
3516
+ __name(_UpdatePricingPlanCommand, "UpdatePricingPlanCommand");
3517
+ var UpdatePricingPlanCommand = _UpdatePricingPlanCommand;
3518
+
3519
+ // src/commands/UpdatePricingRuleCommand.ts
3520
+
3521
+
3522
+
3523
+
3524
+ var _UpdatePricingRuleCommand = class _UpdatePricingRuleCommand extends import_smithy_client.Command.classBuilder().ep({
3525
+ ...commonParams
3526
+ }).m(function(Command, cs, config, o) {
3527
+ return [
3528
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
3529
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
3530
+ ];
3531
+ }).s("AWSBillingConductor", "UpdatePricingRule", {}).n("BillingconductorClient", "UpdatePricingRuleCommand").f(UpdatePricingRuleInputFilterSensitiveLog, UpdatePricingRuleOutputFilterSensitiveLog).ser(se_UpdatePricingRuleCommand).de(de_UpdatePricingRuleCommand).build() {
3532
+ };
3533
+ __name(_UpdatePricingRuleCommand, "UpdatePricingRuleCommand");
3534
+ var UpdatePricingRuleCommand = _UpdatePricingRuleCommand;
3535
+
3536
+ // src/Billingconductor.ts
3537
+ var commands = {
3538
+ AssociateAccountsCommand,
3539
+ AssociatePricingRulesCommand,
3540
+ BatchAssociateResourcesToCustomLineItemCommand,
3541
+ BatchDisassociateResourcesFromCustomLineItemCommand,
3542
+ CreateBillingGroupCommand,
3543
+ CreateCustomLineItemCommand,
3544
+ CreatePricingPlanCommand,
3545
+ CreatePricingRuleCommand,
3546
+ DeleteBillingGroupCommand,
3547
+ DeleteCustomLineItemCommand,
3548
+ DeletePricingPlanCommand,
3549
+ DeletePricingRuleCommand,
3550
+ DisassociateAccountsCommand,
3551
+ DisassociatePricingRulesCommand,
3552
+ GetBillingGroupCostReportCommand,
3553
+ ListAccountAssociationsCommand,
3554
+ ListBillingGroupCostReportsCommand,
3555
+ ListBillingGroupsCommand,
3556
+ ListCustomLineItemsCommand,
3557
+ ListCustomLineItemVersionsCommand,
3558
+ ListPricingPlansCommand,
3559
+ ListPricingPlansAssociatedWithPricingRuleCommand,
3560
+ ListPricingRulesCommand,
3561
+ ListPricingRulesAssociatedToPricingPlanCommand,
3562
+ ListResourcesAssociatedToCustomLineItemCommand,
3563
+ ListTagsForResourceCommand,
3564
+ TagResourceCommand,
3565
+ UntagResourceCommand,
3566
+ UpdateBillingGroupCommand,
3567
+ UpdateCustomLineItemCommand,
3568
+ UpdatePricingPlanCommand,
3569
+ UpdatePricingRuleCommand
3570
+ };
3571
+ var _Billingconductor = class _Billingconductor extends BillingconductorClient {
3572
+ };
3573
+ __name(_Billingconductor, "Billingconductor");
3574
+ var Billingconductor = _Billingconductor;
3575
+ (0, import_smithy_client.createAggregatedClient)(commands, Billingconductor);
3576
+
3577
+ // src/pagination/GetBillingGroupCostReportPaginator.ts
3578
+
3579
+ var paginateGetBillingGroupCostReport = (0, import_core.createPaginator)(BillingconductorClient, GetBillingGroupCostReportCommand, "NextToken", "NextToken", "MaxResults");
3580
+
3581
+ // src/pagination/ListAccountAssociationsPaginator.ts
3582
+
3583
+ var paginateListAccountAssociations = (0, import_core.createPaginator)(BillingconductorClient, ListAccountAssociationsCommand, "NextToken", "NextToken", "");
3584
+
3585
+ // src/pagination/ListBillingGroupCostReportsPaginator.ts
3586
+
3587
+ var paginateListBillingGroupCostReports = (0, import_core.createPaginator)(BillingconductorClient, ListBillingGroupCostReportsCommand, "NextToken", "NextToken", "MaxResults");
3588
+
3589
+ // src/pagination/ListBillingGroupsPaginator.ts
3590
+
3591
+ var paginateListBillingGroups = (0, import_core.createPaginator)(BillingconductorClient, ListBillingGroupsCommand, "NextToken", "NextToken", "MaxResults");
3592
+
3593
+ // src/pagination/ListCustomLineItemVersionsPaginator.ts
3594
+
3595
+ var paginateListCustomLineItemVersions = (0, import_core.createPaginator)(BillingconductorClient, ListCustomLineItemVersionsCommand, "NextToken", "NextToken", "MaxResults");
3596
+
3597
+ // src/pagination/ListCustomLineItemsPaginator.ts
3598
+
3599
+ var paginateListCustomLineItems = (0, import_core.createPaginator)(BillingconductorClient, ListCustomLineItemsCommand, "NextToken", "NextToken", "MaxResults");
3600
+
3601
+ // src/pagination/ListPricingPlansAssociatedWithPricingRulePaginator.ts
3602
+
3603
+ var paginateListPricingPlansAssociatedWithPricingRule = (0, import_core.createPaginator)(BillingconductorClient, ListPricingPlansAssociatedWithPricingRuleCommand, "NextToken", "NextToken", "MaxResults");
3604
+
3605
+ // src/pagination/ListPricingPlansPaginator.ts
3606
+
3607
+ var paginateListPricingPlans = (0, import_core.createPaginator)(BillingconductorClient, ListPricingPlansCommand, "NextToken", "NextToken", "MaxResults");
3608
+
3609
+ // src/pagination/ListPricingRulesAssociatedToPricingPlanPaginator.ts
3610
+
3611
+ var paginateListPricingRulesAssociatedToPricingPlan = (0, import_core.createPaginator)(BillingconductorClient, ListPricingRulesAssociatedToPricingPlanCommand, "NextToken", "NextToken", "MaxResults");
3612
+
3613
+ // src/pagination/ListPricingRulesPaginator.ts
3614
+
3615
+ var paginateListPricingRules = (0, import_core.createPaginator)(BillingconductorClient, ListPricingRulesCommand, "NextToken", "NextToken", "MaxResults");
3616
+
3617
+ // src/pagination/ListResourcesAssociatedToCustomLineItemPaginator.ts
3618
+
3619
+ var paginateListResourcesAssociatedToCustomLineItem = (0, import_core.createPaginator)(BillingconductorClient, ListResourcesAssociatedToCustomLineItemCommand, "NextToken", "NextToken", "MaxResults");
3620
+
3621
+ // src/index.ts
3622
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
3623
+ // Annotate the CommonJS export names for ESM import in node:
3624
+ 0 && (module.exports = {
3625
+ AccessDeniedException,
3626
+ AccountAssociationsListElementFilterSensitiveLog,
3627
+ AssociateAccountsCommand,
3628
+ AssociatePricingRulesCommand,
3629
+ AssociateResourceErrorReason,
3630
+ BatchAssociateResourcesToCustomLineItemCommand,
3631
+ BatchDisassociateResourcesFromCustomLineItemCommand,
3632
+ BillingGroupListElementFilterSensitiveLog,
3633
+ BillingGroupStatus,
3634
+ Billingconductor,
3635
+ BillingconductorClient,
3636
+ BillingconductorServiceException,
3637
+ ConflictException,
3638
+ ConflictExceptionReason,
3639
+ CreateBillingGroupCommand,
3640
+ CreateBillingGroupInputFilterSensitiveLog,
3641
+ CreateCustomLineItemCommand,
3642
+ CreateCustomLineItemInputFilterSensitiveLog,
3643
+ CreatePricingPlanCommand,
3644
+ CreatePricingPlanInputFilterSensitiveLog,
3645
+ CreatePricingRuleCommand,
3646
+ CreatePricingRuleInputFilterSensitiveLog,
3647
+ CurrencyCode,
3648
+ CustomLineItemListElementFilterSensitiveLog,
3649
+ CustomLineItemRelationship,
3650
+ CustomLineItemType,
3651
+ CustomLineItemVersionListElementFilterSensitiveLog,
3652
+ DeleteBillingGroupCommand,
3653
+ DeleteCustomLineItemCommand,
3654
+ DeletePricingPlanCommand,
3655
+ DeletePricingRuleCommand,
3656
+ DisassociateAccountsCommand,
3657
+ DisassociatePricingRulesCommand,
3658
+ GetBillingGroupCostReportCommand,
3659
+ GroupByAttributeName,
3660
+ InternalServerException,
3661
+ LineItemFilterAttributeName,
3662
+ LineItemFilterValue,
3663
+ ListAccountAssociationsCommand,
3664
+ ListAccountAssociationsOutputFilterSensitiveLog,
3665
+ ListBillingGroupCostReportsCommand,
3666
+ ListBillingGroupsCommand,
3667
+ ListBillingGroupsOutputFilterSensitiveLog,
3668
+ ListCustomLineItemVersionsCommand,
3669
+ ListCustomLineItemVersionsOutputFilterSensitiveLog,
3670
+ ListCustomLineItemsCommand,
3671
+ ListCustomLineItemsFilterFilterSensitiveLog,
3672
+ ListCustomLineItemsInputFilterSensitiveLog,
3673
+ ListCustomLineItemsOutputFilterSensitiveLog,
3674
+ ListPricingPlansAssociatedWithPricingRuleCommand,
3675
+ ListPricingPlansCommand,
3676
+ ListPricingPlansOutputFilterSensitiveLog,
3677
+ ListPricingRulesAssociatedToPricingPlanCommand,
3678
+ ListPricingRulesCommand,
3679
+ ListPricingRulesOutputFilterSensitiveLog,
3680
+ ListResourcesAssociatedToCustomLineItemCommand,
3681
+ ListTagsForResourceCommand,
3682
+ MatchOption,
3683
+ PricingPlanListElementFilterSensitiveLog,
3684
+ PricingRuleListElementFilterSensitiveLog,
3685
+ PricingRuleScope,
3686
+ PricingRuleType,
3687
+ ResourceNotFoundException,
3688
+ ServiceLimitExceededException,
3689
+ TagResourceCommand,
3690
+ ThrottlingException,
3691
+ UntagResourceCommand,
3692
+ UpdateBillingGroupCommand,
3693
+ UpdateBillingGroupInputFilterSensitiveLog,
3694
+ UpdateBillingGroupOutputFilterSensitiveLog,
3695
+ UpdateCustomLineItemCommand,
3696
+ UpdateCustomLineItemInputFilterSensitiveLog,
3697
+ UpdateCustomLineItemOutputFilterSensitiveLog,
3698
+ UpdatePricingPlanCommand,
3699
+ UpdatePricingPlanInputFilterSensitiveLog,
3700
+ UpdatePricingPlanOutputFilterSensitiveLog,
3701
+ UpdatePricingRuleCommand,
3702
+ UpdatePricingRuleInputFilterSensitiveLog,
3703
+ UpdatePricingRuleOutputFilterSensitiveLog,
3704
+ ValidationException,
3705
+ ValidationExceptionReason,
3706
+ __Client,
3707
+ paginateGetBillingGroupCostReport,
3708
+ paginateListAccountAssociations,
3709
+ paginateListBillingGroupCostReports,
3710
+ paginateListBillingGroups,
3711
+ paginateListCustomLineItemVersions,
3712
+ paginateListCustomLineItems,
3713
+ paginateListPricingPlans,
3714
+ paginateListPricingPlansAssociatedWithPricingRule,
3715
+ paginateListPricingRules,
3716
+ paginateListPricingRulesAssociatedToPricingPlan,
3717
+ paginateListResourcesAssociatedToCustomLineItem
3718
+ });