@aws-sdk/client-billing 3.891.0 → 3.894.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.
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1052 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BillingServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./BillingClient"), exports);
6
- tslib_1.__exportStar(require("./Billing"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var BillingServiceException_1 = require("./models/BillingServiceException");
11
- Object.defineProperty(exports, "BillingServiceException", { enumerable: true, get: function () { return BillingServiceException_1.BillingServiceException; } });
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 index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ Billing: () => Billing,
26
+ BillingClient: () => BillingClient,
27
+ BillingServiceException: () => BillingServiceException,
28
+ BillingViewElementFilterSensitiveLog: () => BillingViewElementFilterSensitiveLog,
29
+ BillingViewListElementFilterSensitiveLog: () => BillingViewListElementFilterSensitiveLog,
30
+ BillingViewType: () => BillingViewType,
31
+ ConflictException: () => ConflictException,
32
+ CreateBillingViewCommand: () => CreateBillingViewCommand,
33
+ CreateBillingViewRequestFilterSensitiveLog: () => CreateBillingViewRequestFilterSensitiveLog,
34
+ DeleteBillingViewCommand: () => DeleteBillingViewCommand,
35
+ Dimension: () => Dimension,
36
+ GetBillingViewCommand: () => GetBillingViewCommand,
37
+ GetBillingViewResponseFilterSensitiveLog: () => GetBillingViewResponseFilterSensitiveLog,
38
+ GetResourcePolicyCommand: () => GetResourcePolicyCommand,
39
+ InternalServerException: () => InternalServerException,
40
+ ListBillingViewsCommand: () => ListBillingViewsCommand,
41
+ ListBillingViewsResponseFilterSensitiveLog: () => ListBillingViewsResponseFilterSensitiveLog,
42
+ ListSourceViewsForBillingViewCommand: () => ListSourceViewsForBillingViewCommand,
43
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
44
+ ResourceNotFoundException: () => ResourceNotFoundException,
45
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
46
+ TagResourceCommand: () => TagResourceCommand,
47
+ ThrottlingException: () => ThrottlingException,
48
+ UntagResourceCommand: () => UntagResourceCommand,
49
+ UpdateBillingViewCommand: () => UpdateBillingViewCommand,
50
+ UpdateBillingViewRequestFilterSensitiveLog: () => UpdateBillingViewRequestFilterSensitiveLog,
51
+ ValidationException: () => ValidationException,
52
+ ValidationExceptionReason: () => ValidationExceptionReason,
53
+ __Client: () => import_smithy_client.Client,
54
+ paginateListBillingViews: () => paginateListBillingViews,
55
+ paginateListSourceViewsForBillingView: () => paginateListSourceViewsForBillingView
56
+ });
57
+ module.exports = __toCommonJS(index_exports);
58
+
59
+ // src/BillingClient.ts
60
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
61
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
62
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
63
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
64
+ var import_config_resolver = require("@smithy/config-resolver");
65
+ var import_core = require("@smithy/core");
66
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
67
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
68
+ var import_middleware_retry = require("@smithy/middleware-retry");
69
+
70
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
71
+
72
+ // src/endpoint/EndpointParameters.ts
73
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
74
+ return Object.assign(options, {
75
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
76
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
77
+ defaultSigningName: "billing"
78
+ });
79
+ }, "resolveClientEndpointParameters");
80
+ var commonParams = {
81
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
82
+ Endpoint: { type: "builtInParams", name: "endpoint" },
83
+ Region: { type: "builtInParams", name: "region" },
84
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
85
+ };
86
+
87
+ // src/BillingClient.ts
88
+ var import_runtimeConfig = require("././runtimeConfig");
89
+
90
+ // src/runtimeExtensions.ts
91
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
92
+ var import_protocol_http = require("@smithy/protocol-http");
93
+ var import_smithy_client = require("@smithy/smithy-client");
94
+
95
+ // src/auth/httpAuthExtensionConfiguration.ts
96
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
97
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
98
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
99
+ let _credentials = runtimeConfig.credentials;
100
+ return {
101
+ setHttpAuthScheme(httpAuthScheme) {
102
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
103
+ if (index === -1) {
104
+ _httpAuthSchemes.push(httpAuthScheme);
105
+ } else {
106
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
107
+ }
108
+ },
109
+ httpAuthSchemes() {
110
+ return _httpAuthSchemes;
111
+ },
112
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
113
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
114
+ },
115
+ httpAuthSchemeProvider() {
116
+ return _httpAuthSchemeProvider;
117
+ },
118
+ setCredentials(credentials) {
119
+ _credentials = credentials;
120
+ },
121
+ credentials() {
122
+ return _credentials;
123
+ }
124
+ };
125
+ }, "getHttpAuthExtensionConfiguration");
126
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
127
+ return {
128
+ httpAuthSchemes: config.httpAuthSchemes(),
129
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
130
+ credentials: config.credentials()
131
+ };
132
+ }, "resolveHttpAuthRuntimeConfig");
133
+
134
+ // src/runtimeExtensions.ts
135
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
136
+ const extensionConfiguration = Object.assign(
137
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
138
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
139
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
140
+ getHttpAuthExtensionConfiguration(runtimeConfig)
141
+ );
142
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
143
+ return Object.assign(
144
+ runtimeConfig,
145
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
146
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
147
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
148
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
149
+ );
150
+ }, "resolveRuntimeExtensions");
151
+
152
+ // src/BillingClient.ts
153
+ var BillingClient = class extends import_smithy_client.Client {
154
+ static {
155
+ __name(this, "BillingClient");
156
+ }
157
+ /**
158
+ * The resolved configuration of BillingClient class. This is resolved and normalized from the {@link BillingClientConfig | constructor configuration interface}.
159
+ */
160
+ config;
161
+ constructor(...[configuration]) {
162
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
163
+ super(_config_0);
164
+ this.initConfig = _config_0;
165
+ const _config_1 = resolveClientEndpointParameters(_config_0);
166
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
167
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
168
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
169
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
170
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
171
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
172
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
173
+ this.config = _config_8;
174
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
175
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
176
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
177
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
178
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
179
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
180
+ this.middlewareStack.use(
181
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
182
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBillingHttpAuthSchemeParametersProvider,
183
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
184
+ "aws.auth#sigv4": config.credentials
185
+ }), "identityProviderConfigProvider")
186
+ })
187
+ );
188
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
189
+ }
190
+ /**
191
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
192
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
193
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
194
+ */
195
+ destroy() {
196
+ super.destroy();
197
+ }
198
+ };
199
+
200
+ // src/Billing.ts
201
+
202
+
203
+ // src/commands/CreateBillingViewCommand.ts
204
+
205
+ var import_middleware_serde = require("@smithy/middleware-serde");
206
+
207
+
208
+ // src/models/models_0.ts
209
+
210
+
211
+ // src/models/BillingServiceException.ts
212
+
213
+ var BillingServiceException = class _BillingServiceException extends import_smithy_client.ServiceException {
214
+ static {
215
+ __name(this, "BillingServiceException");
216
+ }
217
+ /**
218
+ * @internal
219
+ */
220
+ constructor(options) {
221
+ super(options);
222
+ Object.setPrototypeOf(this, _BillingServiceException.prototype);
223
+ }
224
+ };
225
+
226
+ // src/models/models_0.ts
227
+ var AccessDeniedException = class _AccessDeniedException extends BillingServiceException {
228
+ static {
229
+ __name(this, "AccessDeniedException");
230
+ }
231
+ name = "AccessDeniedException";
232
+ $fault = "client";
233
+ /**
234
+ * @internal
235
+ */
236
+ constructor(opts) {
237
+ super({
238
+ name: "AccessDeniedException",
239
+ $fault: "client",
240
+ ...opts
241
+ });
242
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
243
+ }
244
+ };
245
+ var ConflictException = class _ConflictException extends BillingServiceException {
246
+ static {
247
+ __name(this, "ConflictException");
248
+ }
249
+ name = "ConflictException";
250
+ $fault = "client";
251
+ /**
252
+ * <p> The identifier for the service resource associated with the request. </p>
253
+ * @public
254
+ */
255
+ resourceId;
256
+ /**
257
+ * <p> The type of resource associated with the request. </p>
258
+ * @public
259
+ */
260
+ resourceType;
261
+ /**
262
+ * @internal
263
+ */
264
+ constructor(opts) {
265
+ super({
266
+ name: "ConflictException",
267
+ $fault: "client",
268
+ ...opts
269
+ });
270
+ Object.setPrototypeOf(this, _ConflictException.prototype);
271
+ this.resourceId = opts.resourceId;
272
+ this.resourceType = opts.resourceType;
273
+ }
274
+ };
275
+ var Dimension = {
276
+ LINKED_ACCOUNT: "LINKED_ACCOUNT"
277
+ };
278
+ var InternalServerException = class _InternalServerException extends BillingServiceException {
279
+ static {
280
+ __name(this, "InternalServerException");
281
+ }
282
+ name = "InternalServerException";
283
+ $fault = "server";
284
+ /**
285
+ * @internal
286
+ */
287
+ constructor(opts) {
288
+ super({
289
+ name: "InternalServerException",
290
+ $fault: "server",
291
+ ...opts
292
+ });
293
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
294
+ }
295
+ };
296
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BillingServiceException {
297
+ static {
298
+ __name(this, "ServiceQuotaExceededException");
299
+ }
300
+ name = "ServiceQuotaExceededException";
301
+ $fault = "client";
302
+ /**
303
+ * <p> The ID of the resource. </p>
304
+ * @public
305
+ */
306
+ resourceId;
307
+ /**
308
+ * <p> The type of Amazon Web Services resource. </p>
309
+ * @public
310
+ */
311
+ resourceType;
312
+ /**
313
+ * <p> The container for the <code>serviceCode</code>. </p>
314
+ * @public
315
+ */
316
+ serviceCode;
317
+ /**
318
+ * <p> The container for the <code>quotaCode</code>. </p>
319
+ * @public
320
+ */
321
+ quotaCode;
322
+ /**
323
+ * @internal
324
+ */
325
+ constructor(opts) {
326
+ super({
327
+ name: "ServiceQuotaExceededException",
328
+ $fault: "client",
329
+ ...opts
330
+ });
331
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
332
+ this.resourceId = opts.resourceId;
333
+ this.resourceType = opts.resourceType;
334
+ this.serviceCode = opts.serviceCode;
335
+ this.quotaCode = opts.quotaCode;
336
+ }
337
+ };
338
+ var ThrottlingException = class _ThrottlingException extends BillingServiceException {
339
+ static {
340
+ __name(this, "ThrottlingException");
341
+ }
342
+ name = "ThrottlingException";
343
+ $fault = "client";
344
+ /**
345
+ * @internal
346
+ */
347
+ constructor(opts) {
348
+ super({
349
+ name: "ThrottlingException",
350
+ $fault: "client",
351
+ ...opts
352
+ });
353
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
354
+ }
355
+ };
356
+ var ValidationExceptionReason = {
357
+ CANNOT_PARSE: "cannotParse",
358
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
359
+ OTHER: "other",
360
+ UNKNOWN_OPERATION: "unknownOperation"
361
+ };
362
+ var ValidationException = class _ValidationException extends BillingServiceException {
363
+ static {
364
+ __name(this, "ValidationException");
365
+ }
366
+ name = "ValidationException";
367
+ $fault = "client";
368
+ /**
369
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
370
+ * @public
371
+ */
372
+ reason;
373
+ /**
374
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
375
+ * @public
376
+ */
377
+ fieldList;
378
+ /**
379
+ * @internal
380
+ */
381
+ constructor(opts) {
382
+ super({
383
+ name: "ValidationException",
384
+ $fault: "client",
385
+ ...opts
386
+ });
387
+ Object.setPrototypeOf(this, _ValidationException.prototype);
388
+ this.reason = opts.reason;
389
+ this.fieldList = opts.fieldList;
390
+ }
391
+ };
392
+ var BillingViewType = {
393
+ BILLING_GROUP: "BILLING_GROUP",
394
+ CUSTOM: "CUSTOM",
395
+ PRIMARY: "PRIMARY"
396
+ };
397
+ var ResourceNotFoundException = class _ResourceNotFoundException extends BillingServiceException {
398
+ static {
399
+ __name(this, "ResourceNotFoundException");
400
+ }
401
+ name = "ResourceNotFoundException";
402
+ $fault = "client";
403
+ /**
404
+ * <p> Value is a list of resource IDs that were not found. </p>
405
+ * @public
406
+ */
407
+ resourceId;
408
+ /**
409
+ * <p> Value is the type of resource that was not found. </p>
410
+ * @public
411
+ */
412
+ resourceType;
413
+ /**
414
+ * @internal
415
+ */
416
+ constructor(opts) {
417
+ super({
418
+ name: "ResourceNotFoundException",
419
+ $fault: "client",
420
+ ...opts
421
+ });
422
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
423
+ this.resourceId = opts.resourceId;
424
+ this.resourceType = opts.resourceType;
425
+ }
426
+ };
427
+ var CreateBillingViewRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
428
+ ...obj,
429
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
430
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
431
+ }), "CreateBillingViewRequestFilterSensitiveLog");
432
+ var BillingViewElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
433
+ ...obj,
434
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
435
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
436
+ }), "BillingViewElementFilterSensitiveLog");
437
+ var GetBillingViewResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
438
+ ...obj,
439
+ ...obj.billingView && { billingView: BillingViewElementFilterSensitiveLog(obj.billingView) }
440
+ }), "GetBillingViewResponseFilterSensitiveLog");
441
+ var BillingViewListElementFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
442
+ ...obj,
443
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
444
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
445
+ }), "BillingViewListElementFilterSensitiveLog");
446
+ var ListBillingViewsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
447
+ ...obj,
448
+ ...obj.billingViews && {
449
+ billingViews: obj.billingViews.map((item) => BillingViewListElementFilterSensitiveLog(item))
450
+ }
451
+ }), "ListBillingViewsResponseFilterSensitiveLog");
452
+ var UpdateBillingViewRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
453
+ ...obj,
454
+ ...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
455
+ ...obj.description && { description: import_smithy_client.SENSITIVE_STRING }
456
+ }), "UpdateBillingViewRequestFilterSensitiveLog");
457
+
458
+ // src/protocols/Aws_json1_0.ts
459
+ var import_core2 = require("@aws-sdk/core");
460
+
461
+
462
+ var import_uuid = require("uuid");
463
+ var se_CreateBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
464
+ const headers = sharedHeaders("CreateBillingView");
465
+ let body;
466
+ body = JSON.stringify(se_CreateBillingViewRequest(input, context));
467
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
468
+ }, "se_CreateBillingViewCommand");
469
+ var se_DeleteBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
470
+ const headers = sharedHeaders("DeleteBillingView");
471
+ let body;
472
+ body = JSON.stringify((0, import_smithy_client._json)(input));
473
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
474
+ }, "se_DeleteBillingViewCommand");
475
+ var se_GetBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
476
+ const headers = sharedHeaders("GetBillingView");
477
+ let body;
478
+ body = JSON.stringify((0, import_smithy_client._json)(input));
479
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
480
+ }, "se_GetBillingViewCommand");
481
+ var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
482
+ const headers = sharedHeaders("GetResourcePolicy");
483
+ let body;
484
+ body = JSON.stringify((0, import_smithy_client._json)(input));
485
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
486
+ }, "se_GetResourcePolicyCommand");
487
+ var se_ListBillingViewsCommand = /* @__PURE__ */ __name(async (input, context) => {
488
+ const headers = sharedHeaders("ListBillingViews");
489
+ let body;
490
+ body = JSON.stringify(se_ListBillingViewsRequest(input, context));
491
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
492
+ }, "se_ListBillingViewsCommand");
493
+ var se_ListSourceViewsForBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
494
+ const headers = sharedHeaders("ListSourceViewsForBillingView");
495
+ let body;
496
+ body = JSON.stringify((0, import_smithy_client._json)(input));
497
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
498
+ }, "se_ListSourceViewsForBillingViewCommand");
499
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
500
+ const headers = sharedHeaders("ListTagsForResource");
501
+ let body;
502
+ body = JSON.stringify((0, import_smithy_client._json)(input));
503
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
504
+ }, "se_ListTagsForResourceCommand");
505
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
506
+ const headers = sharedHeaders("TagResource");
507
+ let body;
508
+ body = JSON.stringify((0, import_smithy_client._json)(input));
509
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
510
+ }, "se_TagResourceCommand");
511
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
512
+ const headers = sharedHeaders("UntagResource");
513
+ let body;
514
+ body = JSON.stringify((0, import_smithy_client._json)(input));
515
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
516
+ }, "se_UntagResourceCommand");
517
+ var se_UpdateBillingViewCommand = /* @__PURE__ */ __name(async (input, context) => {
518
+ const headers = sharedHeaders("UpdateBillingView");
519
+ let body;
520
+ body = JSON.stringify((0, import_smithy_client._json)(input));
521
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
522
+ }, "se_UpdateBillingViewCommand");
523
+ var de_CreateBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
524
+ if (output.statusCode >= 300) {
525
+ return de_CommandError(output, context);
526
+ }
527
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
528
+ let contents = {};
529
+ contents = de_CreateBillingViewResponse(data, context);
530
+ const response = {
531
+ $metadata: deserializeMetadata(output),
532
+ ...contents
533
+ };
534
+ return response;
535
+ }, "de_CreateBillingViewCommand");
536
+ var de_DeleteBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
537
+ if (output.statusCode >= 300) {
538
+ return de_CommandError(output, context);
539
+ }
540
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
541
+ let contents = {};
542
+ contents = (0, import_smithy_client._json)(data);
543
+ const response = {
544
+ $metadata: deserializeMetadata(output),
545
+ ...contents
546
+ };
547
+ return response;
548
+ }, "de_DeleteBillingViewCommand");
549
+ var de_GetBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
550
+ if (output.statusCode >= 300) {
551
+ return de_CommandError(output, context);
552
+ }
553
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
554
+ let contents = {};
555
+ contents = de_GetBillingViewResponse(data, context);
556
+ const response = {
557
+ $metadata: deserializeMetadata(output),
558
+ ...contents
559
+ };
560
+ return response;
561
+ }, "de_GetBillingViewCommand");
562
+ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
563
+ if (output.statusCode >= 300) {
564
+ return de_CommandError(output, context);
565
+ }
566
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
567
+ let contents = {};
568
+ contents = (0, import_smithy_client._json)(data);
569
+ const response = {
570
+ $metadata: deserializeMetadata(output),
571
+ ...contents
572
+ };
573
+ return response;
574
+ }, "de_GetResourcePolicyCommand");
575
+ var de_ListBillingViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
576
+ if (output.statusCode >= 300) {
577
+ return de_CommandError(output, context);
578
+ }
579
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
580
+ let contents = {};
581
+ contents = (0, import_smithy_client._json)(data);
582
+ const response = {
583
+ $metadata: deserializeMetadata(output),
584
+ ...contents
585
+ };
586
+ return response;
587
+ }, "de_ListBillingViewsCommand");
588
+ var de_ListSourceViewsForBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
589
+ if (output.statusCode >= 300) {
590
+ return de_CommandError(output, context);
591
+ }
592
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
593
+ let contents = {};
594
+ contents = (0, import_smithy_client._json)(data);
595
+ const response = {
596
+ $metadata: deserializeMetadata(output),
597
+ ...contents
598
+ };
599
+ return response;
600
+ }, "de_ListSourceViewsForBillingViewCommand");
601
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
602
+ if (output.statusCode >= 300) {
603
+ return de_CommandError(output, context);
604
+ }
605
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
606
+ let contents = {};
607
+ contents = (0, import_smithy_client._json)(data);
608
+ const response = {
609
+ $metadata: deserializeMetadata(output),
610
+ ...contents
611
+ };
612
+ return response;
613
+ }, "de_ListTagsForResourceCommand");
614
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
615
+ if (output.statusCode >= 300) {
616
+ return de_CommandError(output, context);
617
+ }
618
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
619
+ let contents = {};
620
+ contents = (0, import_smithy_client._json)(data);
621
+ const response = {
622
+ $metadata: deserializeMetadata(output),
623
+ ...contents
624
+ };
625
+ return response;
626
+ }, "de_TagResourceCommand");
627
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
628
+ if (output.statusCode >= 300) {
629
+ return de_CommandError(output, context);
630
+ }
631
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
632
+ let contents = {};
633
+ contents = (0, import_smithy_client._json)(data);
634
+ const response = {
635
+ $metadata: deserializeMetadata(output),
636
+ ...contents
637
+ };
638
+ return response;
639
+ }, "de_UntagResourceCommand");
640
+ var de_UpdateBillingViewCommand = /* @__PURE__ */ __name(async (output, context) => {
641
+ if (output.statusCode >= 300) {
642
+ return de_CommandError(output, context);
643
+ }
644
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
645
+ let contents = {};
646
+ contents = de_UpdateBillingViewResponse(data, context);
647
+ const response = {
648
+ $metadata: deserializeMetadata(output),
649
+ ...contents
650
+ };
651
+ return response;
652
+ }, "de_UpdateBillingViewCommand");
653
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
654
+ const parsedOutput = {
655
+ ...output,
656
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
657
+ };
658
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
659
+ switch (errorCode) {
660
+ case "AccessDeniedException":
661
+ case "com.amazonaws.billing#AccessDeniedException":
662
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
663
+ case "ConflictException":
664
+ case "com.amazonaws.billing#ConflictException":
665
+ throw await de_ConflictExceptionRes(parsedOutput, context);
666
+ case "InternalServerException":
667
+ case "com.amazonaws.billing#InternalServerException":
668
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
669
+ case "ServiceQuotaExceededException":
670
+ case "com.amazonaws.billing#ServiceQuotaExceededException":
671
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
672
+ case "ThrottlingException":
673
+ case "com.amazonaws.billing#ThrottlingException":
674
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
675
+ case "ValidationException":
676
+ case "com.amazonaws.billing#ValidationException":
677
+ throw await de_ValidationExceptionRes(parsedOutput, context);
678
+ case "ResourceNotFoundException":
679
+ case "com.amazonaws.billing#ResourceNotFoundException":
680
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
681
+ default:
682
+ const parsedBody = parsedOutput.body;
683
+ return throwDefaultError({
684
+ output,
685
+ parsedBody,
686
+ errorCode
687
+ });
688
+ }
689
+ }, "de_CommandError");
690
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
691
+ const body = parsedOutput.body;
692
+ const deserialized = (0, import_smithy_client._json)(body);
693
+ const exception = new AccessDeniedException({
694
+ $metadata: deserializeMetadata(parsedOutput),
695
+ ...deserialized
696
+ });
697
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
698
+ }, "de_AccessDeniedExceptionRes");
699
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
700
+ const body = parsedOutput.body;
701
+ const deserialized = (0, import_smithy_client._json)(body);
702
+ const exception = new ConflictException({
703
+ $metadata: deserializeMetadata(parsedOutput),
704
+ ...deserialized
705
+ });
706
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
707
+ }, "de_ConflictExceptionRes");
708
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
709
+ const body = parsedOutput.body;
710
+ const deserialized = (0, import_smithy_client._json)(body);
711
+ const exception = new InternalServerException({
712
+ $metadata: deserializeMetadata(parsedOutput),
713
+ ...deserialized
714
+ });
715
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
716
+ }, "de_InternalServerExceptionRes");
717
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
718
+ const body = parsedOutput.body;
719
+ const deserialized = (0, import_smithy_client._json)(body);
720
+ const exception = new ResourceNotFoundException({
721
+ $metadata: deserializeMetadata(parsedOutput),
722
+ ...deserialized
723
+ });
724
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
725
+ }, "de_ResourceNotFoundExceptionRes");
726
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
727
+ const body = parsedOutput.body;
728
+ const deserialized = (0, import_smithy_client._json)(body);
729
+ const exception = new ServiceQuotaExceededException({
730
+ $metadata: deserializeMetadata(parsedOutput),
731
+ ...deserialized
732
+ });
733
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
734
+ }, "de_ServiceQuotaExceededExceptionRes");
735
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
736
+ const body = parsedOutput.body;
737
+ const deserialized = (0, import_smithy_client._json)(body);
738
+ const exception = new ThrottlingException({
739
+ $metadata: deserializeMetadata(parsedOutput),
740
+ ...deserialized
741
+ });
742
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
743
+ }, "de_ThrottlingExceptionRes");
744
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
745
+ const body = parsedOutput.body;
746
+ const deserialized = (0, import_smithy_client._json)(body);
747
+ const exception = new ValidationException({
748
+ $metadata: deserializeMetadata(parsedOutput),
749
+ ...deserialized
750
+ });
751
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
752
+ }, "de_ValidationExceptionRes");
753
+ var se_ActiveTimeRange = /* @__PURE__ */ __name((input, context) => {
754
+ return (0, import_smithy_client.take)(input, {
755
+ activeAfterInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "activeAfterInclusive"),
756
+ activeBeforeInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "activeBeforeInclusive")
757
+ });
758
+ }, "se_ActiveTimeRange");
759
+ var se_CreateBillingViewRequest = /* @__PURE__ */ __name((input, context) => {
760
+ return (0, import_smithy_client.take)(input, {
761
+ clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
762
+ dataFilterExpression: import_smithy_client._json,
763
+ description: [],
764
+ name: [],
765
+ resourceTags: import_smithy_client._json,
766
+ sourceViews: import_smithy_client._json
767
+ });
768
+ }, "se_CreateBillingViewRequest");
769
+ var se_ListBillingViewsRequest = /* @__PURE__ */ __name((input, context) => {
770
+ return (0, import_smithy_client.take)(input, {
771
+ activeTimeRange: /* @__PURE__ */ __name((_) => se_ActiveTimeRange(_, context), "activeTimeRange"),
772
+ arns: import_smithy_client._json,
773
+ billingViewTypes: import_smithy_client._json,
774
+ maxResults: [],
775
+ nextToken: [],
776
+ ownerAccountId: []
777
+ });
778
+ }, "se_ListBillingViewsRequest");
779
+ var de_BillingViewElement = /* @__PURE__ */ __name((output, context) => {
780
+ return (0, import_smithy_client.take)(output, {
781
+ arn: import_smithy_client.expectString,
782
+ billingViewType: import_smithy_client.expectString,
783
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
784
+ dataFilterExpression: import_smithy_client._json,
785
+ description: import_smithy_client.expectString,
786
+ name: import_smithy_client.expectString,
787
+ ownerAccountId: import_smithy_client.expectString,
788
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
789
+ });
790
+ }, "de_BillingViewElement");
791
+ var de_CreateBillingViewResponse = /* @__PURE__ */ __name((output, context) => {
792
+ return (0, import_smithy_client.take)(output, {
793
+ arn: import_smithy_client.expectString,
794
+ createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt")
795
+ });
796
+ }, "de_CreateBillingViewResponse");
797
+ var de_GetBillingViewResponse = /* @__PURE__ */ __name((output, context) => {
798
+ return (0, import_smithy_client.take)(output, {
799
+ billingView: /* @__PURE__ */ __name((_) => de_BillingViewElement(_, context), "billingView")
800
+ });
801
+ }, "de_GetBillingViewResponse");
802
+ var de_UpdateBillingViewResponse = /* @__PURE__ */ __name((output, context) => {
803
+ return (0, import_smithy_client.take)(output, {
804
+ arn: import_smithy_client.expectString,
805
+ updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "updatedAt")
806
+ });
807
+ }, "de_UpdateBillingViewResponse");
808
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
809
+ httpStatusCode: output.statusCode,
810
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
811
+ extendedRequestId: output.headers["x-amz-id-2"],
812
+ cfId: output.headers["x-amz-cf-id"]
813
+ }), "deserializeMetadata");
814
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(BillingServiceException);
815
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
816
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
817
+ const contents = {
818
+ protocol,
819
+ hostname,
820
+ port,
821
+ method: "POST",
822
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
823
+ headers
824
+ };
825
+ if (resolvedHostname !== void 0) {
826
+ contents.hostname = resolvedHostname;
827
+ }
828
+ if (body !== void 0) {
829
+ contents.body = body;
830
+ }
831
+ return new import_protocol_http.HttpRequest(contents);
832
+ }, "buildHttpRpcRequest");
833
+ function sharedHeaders(operation) {
834
+ return {
835
+ "content-type": "application/x-amz-json-1.0",
836
+ "x-amz-target": `AWSBilling.${operation}`
837
+ };
838
+ }
839
+ __name(sharedHeaders, "sharedHeaders");
840
+
841
+ // src/commands/CreateBillingViewCommand.ts
842
+ var CreateBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
843
+ return [
844
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
845
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
846
+ ];
847
+ }).s("AWSBilling", "CreateBillingView", {}).n("BillingClient", "CreateBillingViewCommand").f(CreateBillingViewRequestFilterSensitiveLog, void 0).ser(se_CreateBillingViewCommand).de(de_CreateBillingViewCommand).build() {
848
+ static {
849
+ __name(this, "CreateBillingViewCommand");
850
+ }
851
+ };
852
+
853
+ // src/commands/DeleteBillingViewCommand.ts
854
+
855
+
856
+
857
+ var DeleteBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
858
+ return [
859
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
860
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
861
+ ];
862
+ }).s("AWSBilling", "DeleteBillingView", {}).n("BillingClient", "DeleteBillingViewCommand").f(void 0, void 0).ser(se_DeleteBillingViewCommand).de(de_DeleteBillingViewCommand).build() {
863
+ static {
864
+ __name(this, "DeleteBillingViewCommand");
865
+ }
866
+ };
867
+
868
+ // src/commands/GetBillingViewCommand.ts
869
+
870
+
871
+
872
+ var GetBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
873
+ return [
874
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
875
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
876
+ ];
877
+ }).s("AWSBilling", "GetBillingView", {}).n("BillingClient", "GetBillingViewCommand").f(void 0, GetBillingViewResponseFilterSensitiveLog).ser(se_GetBillingViewCommand).de(de_GetBillingViewCommand).build() {
878
+ static {
879
+ __name(this, "GetBillingViewCommand");
880
+ }
881
+ };
882
+
883
+ // src/commands/GetResourcePolicyCommand.ts
884
+
885
+
886
+
887
+ var GetResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
888
+ return [
889
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
890
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
891
+ ];
892
+ }).s("AWSBilling", "GetResourcePolicy", {}).n("BillingClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
893
+ static {
894
+ __name(this, "GetResourcePolicyCommand");
895
+ }
896
+ };
897
+
898
+ // src/commands/ListBillingViewsCommand.ts
899
+
900
+
901
+
902
+ var ListBillingViewsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
903
+ return [
904
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
905
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
906
+ ];
907
+ }).s("AWSBilling", "ListBillingViews", {}).n("BillingClient", "ListBillingViewsCommand").f(void 0, ListBillingViewsResponseFilterSensitiveLog).ser(se_ListBillingViewsCommand).de(de_ListBillingViewsCommand).build() {
908
+ static {
909
+ __name(this, "ListBillingViewsCommand");
910
+ }
911
+ };
912
+
913
+ // src/commands/ListSourceViewsForBillingViewCommand.ts
914
+
915
+
916
+
917
+ var ListSourceViewsForBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
918
+ return [
919
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
920
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
921
+ ];
922
+ }).s("AWSBilling", "ListSourceViewsForBillingView", {}).n("BillingClient", "ListSourceViewsForBillingViewCommand").f(void 0, void 0).ser(se_ListSourceViewsForBillingViewCommand).de(de_ListSourceViewsForBillingViewCommand).build() {
923
+ static {
924
+ __name(this, "ListSourceViewsForBillingViewCommand");
925
+ }
926
+ };
927
+
928
+ // src/commands/ListTagsForResourceCommand.ts
929
+
930
+
931
+
932
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
933
+ return [
934
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
935
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
936
+ ];
937
+ }).s("AWSBilling", "ListTagsForResource", {}).n("BillingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
938
+ static {
939
+ __name(this, "ListTagsForResourceCommand");
940
+ }
941
+ };
942
+
943
+ // src/commands/TagResourceCommand.ts
944
+
945
+
946
+
947
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
948
+ return [
949
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
950
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
951
+ ];
952
+ }).s("AWSBilling", "TagResource", {}).n("BillingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
953
+ static {
954
+ __name(this, "TagResourceCommand");
955
+ }
956
+ };
957
+
958
+ // src/commands/UntagResourceCommand.ts
959
+
960
+
961
+
962
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
963
+ return [
964
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
965
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
966
+ ];
967
+ }).s("AWSBilling", "UntagResource", {}).n("BillingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
968
+ static {
969
+ __name(this, "UntagResourceCommand");
970
+ }
971
+ };
972
+
973
+ // src/commands/UpdateBillingViewCommand.ts
974
+
975
+
976
+
977
+ var UpdateBillingViewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
978
+ return [
979
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
980
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
981
+ ];
982
+ }).s("AWSBilling", "UpdateBillingView", {}).n("BillingClient", "UpdateBillingViewCommand").f(UpdateBillingViewRequestFilterSensitiveLog, void 0).ser(se_UpdateBillingViewCommand).de(de_UpdateBillingViewCommand).build() {
983
+ static {
984
+ __name(this, "UpdateBillingViewCommand");
985
+ }
986
+ };
987
+
988
+ // src/Billing.ts
989
+ var commands = {
990
+ CreateBillingViewCommand,
991
+ DeleteBillingViewCommand,
992
+ GetBillingViewCommand,
993
+ GetResourcePolicyCommand,
994
+ ListBillingViewsCommand,
995
+ ListSourceViewsForBillingViewCommand,
996
+ ListTagsForResourceCommand,
997
+ TagResourceCommand,
998
+ UntagResourceCommand,
999
+ UpdateBillingViewCommand
1000
+ };
1001
+ var Billing = class extends BillingClient {
1002
+ static {
1003
+ __name(this, "Billing");
1004
+ }
1005
+ };
1006
+ (0, import_smithy_client.createAggregatedClient)(commands, Billing);
1007
+
1008
+ // src/pagination/ListBillingViewsPaginator.ts
1009
+
1010
+ var paginateListBillingViews = (0, import_core.createPaginator)(BillingClient, ListBillingViewsCommand, "nextToken", "nextToken", "maxResults");
1011
+
1012
+ // src/pagination/ListSourceViewsForBillingViewPaginator.ts
1013
+
1014
+ var paginateListSourceViewsForBillingView = (0, import_core.createPaginator)(BillingClient, ListSourceViewsForBillingViewCommand, "nextToken", "nextToken", "maxResults");
1015
+ // Annotate the CommonJS export names for ESM import in node:
1016
+
1017
+ 0 && (module.exports = {
1018
+ BillingServiceException,
1019
+ __Client,
1020
+ BillingClient,
1021
+ Billing,
1022
+ $Command,
1023
+ CreateBillingViewCommand,
1024
+ DeleteBillingViewCommand,
1025
+ GetBillingViewCommand,
1026
+ GetResourcePolicyCommand,
1027
+ ListBillingViewsCommand,
1028
+ ListSourceViewsForBillingViewCommand,
1029
+ ListTagsForResourceCommand,
1030
+ TagResourceCommand,
1031
+ UntagResourceCommand,
1032
+ UpdateBillingViewCommand,
1033
+ paginateListBillingViews,
1034
+ paginateListSourceViewsForBillingView,
1035
+ AccessDeniedException,
1036
+ ConflictException,
1037
+ Dimension,
1038
+ InternalServerException,
1039
+ ServiceQuotaExceededException,
1040
+ ThrottlingException,
1041
+ ValidationExceptionReason,
1042
+ ValidationException,
1043
+ BillingViewType,
1044
+ ResourceNotFoundException,
1045
+ CreateBillingViewRequestFilterSensitiveLog,
1046
+ BillingViewElementFilterSensitiveLog,
1047
+ GetBillingViewResponseFilterSensitiveLog,
1048
+ BillingViewListElementFilterSensitiveLog,
1049
+ ListBillingViewsResponseFilterSensitiveLog,
1050
+ UpdateBillingViewRequestFilterSensitiveLog
1051
+ });
1052
+