@aws-sdk/client-billing 3.927.0 → 3.929.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 (36) hide show
  1. package/dist-cjs/index.js +494 -613
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/BillingClient.js +2 -0
  4. package/dist-es/commands/AssociateSourceViewsCommand.js +3 -9
  5. package/dist-es/commands/CreateBillingViewCommand.js +3 -10
  6. package/dist-es/commands/DeleteBillingViewCommand.js +3 -9
  7. package/dist-es/commands/DisassociateSourceViewsCommand.js +3 -9
  8. package/dist-es/commands/GetBillingViewCommand.js +3 -10
  9. package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
  10. package/dist-es/commands/ListBillingViewsCommand.js +3 -10
  11. package/dist-es/commands/ListSourceViewsForBillingViewCommand.js +3 -9
  12. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  13. package/dist-es/commands/TagResourceCommand.js +3 -9
  14. package/dist-es/commands/UntagResourceCommand.js +3 -9
  15. package/dist-es/commands/UpdateBillingViewCommand.js +3 -10
  16. package/dist-es/models/models_0.js +0 -31
  17. package/dist-es/runtimeConfig.shared.js +7 -0
  18. package/dist-es/schemas/schemas_0.js +451 -0
  19. package/dist-types/BillingClient.d.ts +10 -1
  20. package/dist-types/models/models_0.d.ts +0 -24
  21. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  22. package/dist-types/runtimeConfig.d.ts +1 -0
  23. package/dist-types/runtimeConfig.native.d.ts +1 -0
  24. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  25. package/dist-types/schemas/schemas_0.d.ts +68 -0
  26. package/dist-types/ts3.4/BillingClient.d.ts +4 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +0 -18
  28. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  29. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  30. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  31. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  32. package/dist-types/ts3.4/schemas/schemas_0.d.ts +74 -0
  33. package/package.json +5 -6
  34. package/dist-es/protocols/Aws_json1_0.js +0 -473
  35. package/dist-types/protocols/Aws_json1_0.d.ts +0 -110
  36. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -149
package/dist-cjs/index.js CHANGED
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
6
6
  var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
7
  var configResolver = require('@smithy/config-resolver');
8
8
  var core = require('@smithy/core');
9
+ var schema = require('@smithy/core/schema');
9
10
  var middlewareContentLength = require('@smithy/middleware-content-length');
10
11
  var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
12
  var middlewareRetry = require('@smithy/middleware-retry');
@@ -14,9 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
15
  var runtimeConfig = require('./runtimeConfig');
15
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
17
  var protocolHttp = require('@smithy/protocol-http');
17
- var middlewareSerde = require('@smithy/middleware-serde');
18
- var core$1 = require('@aws-sdk/core');
19
- var uuid = require('@smithy/uuid');
20
18
 
21
19
  const resolveClientEndpointParameters = (options) => {
22
20
  return Object.assign(options, {
@@ -92,6 +90,7 @@ class BillingClient extends smithyClient.Client {
92
90
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
91
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
92
  this.config = _config_8;
93
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
95
94
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
95
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
96
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -111,14 +110,14 @@ class BillingClient extends smithyClient.Client {
111
110
  }
112
111
  }
113
112
 
114
- class BillingServiceException extends smithyClient.ServiceException {
113
+ let BillingServiceException$1 = class BillingServiceException extends smithyClient.ServiceException {
115
114
  constructor(options) {
116
115
  super(options);
117
116
  Object.setPrototypeOf(this, BillingServiceException.prototype);
118
117
  }
119
- }
118
+ };
120
119
 
121
- class AccessDeniedException extends BillingServiceException {
120
+ let AccessDeniedException$1 = class AccessDeniedException extends BillingServiceException$1 {
122
121
  name = "AccessDeniedException";
123
122
  $fault = "client";
124
123
  constructor(opts) {
@@ -129,8 +128,8 @@ class AccessDeniedException extends BillingServiceException {
129
128
  });
130
129
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
131
130
  }
132
- }
133
- class BillingViewHealthStatusException extends BillingServiceException {
131
+ };
132
+ let BillingViewHealthStatusException$1 = class BillingViewHealthStatusException extends BillingServiceException$1 {
134
133
  name = "BillingViewHealthStatusException";
135
134
  $fault = "client";
136
135
  constructor(opts) {
@@ -141,8 +140,8 @@ class BillingViewHealthStatusException extends BillingServiceException {
141
140
  });
142
141
  Object.setPrototypeOf(this, BillingViewHealthStatusException.prototype);
143
142
  }
144
- }
145
- class ConflictException extends BillingServiceException {
143
+ };
144
+ let ConflictException$1 = class ConflictException extends BillingServiceException$1 {
146
145
  name = "ConflictException";
147
146
  $fault = "client";
148
147
  resourceId;
@@ -157,8 +156,8 @@ class ConflictException extends BillingServiceException {
157
156
  this.resourceId = opts.resourceId;
158
157
  this.resourceType = opts.resourceType;
159
158
  }
160
- }
161
- class InternalServerException extends BillingServiceException {
159
+ };
160
+ let InternalServerException$1 = class InternalServerException extends BillingServiceException$1 {
162
161
  name = "InternalServerException";
163
162
  $fault = "server";
164
163
  constructor(opts) {
@@ -169,8 +168,8 @@ class InternalServerException extends BillingServiceException {
169
168
  });
170
169
  Object.setPrototypeOf(this, InternalServerException.prototype);
171
170
  }
172
- }
173
- class ResourceNotFoundException extends BillingServiceException {
171
+ };
172
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends BillingServiceException$1 {
174
173
  name = "ResourceNotFoundException";
175
174
  $fault = "client";
176
175
  resourceId;
@@ -185,8 +184,8 @@ class ResourceNotFoundException extends BillingServiceException {
185
184
  this.resourceId = opts.resourceId;
186
185
  this.resourceType = opts.resourceType;
187
186
  }
188
- }
189
- class ServiceQuotaExceededException extends BillingServiceException {
187
+ };
188
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends BillingServiceException$1 {
190
189
  name = "ServiceQuotaExceededException";
191
190
  $fault = "client";
192
191
  resourceId;
@@ -205,8 +204,8 @@ class ServiceQuotaExceededException extends BillingServiceException {
205
204
  this.serviceCode = opts.serviceCode;
206
205
  this.quotaCode = opts.quotaCode;
207
206
  }
208
- }
209
- class ThrottlingException extends BillingServiceException {
207
+ };
208
+ let ThrottlingException$1 = class ThrottlingException extends BillingServiceException$1 {
210
209
  name = "ThrottlingException";
211
210
  $fault = "client";
212
211
  constructor(opts) {
@@ -217,14 +216,14 @@ class ThrottlingException extends BillingServiceException {
217
216
  });
218
217
  Object.setPrototypeOf(this, ThrottlingException.prototype);
219
218
  }
220
- }
219
+ };
221
220
  const ValidationExceptionReason = {
222
221
  CANNOT_PARSE: "cannotParse",
223
222
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
224
223
  OTHER: "other",
225
224
  UNKNOWN_OPERATION: "unknownOperation",
226
225
  };
227
- class ValidationException extends BillingServiceException {
226
+ let ValidationException$1 = class ValidationException extends BillingServiceException$1 {
228
227
  name = "ValidationException";
229
228
  $fault = "client";
230
229
  reason;
@@ -239,7 +238,7 @@ class ValidationException extends BillingServiceException {
239
238
  this.reason = opts.reason;
240
239
  this.fieldList = opts.fieldList;
241
240
  }
242
- }
241
+ };
243
242
  const Dimension = {
244
243
  LINKED_ACCOUNT: "LINKED_ACCOUNT",
245
244
  };
@@ -264,515 +263,458 @@ const BillingViewStatusReason = {
264
263
  SOURCE_VIEW_UPDATING: "SOURCE_VIEW_UPDATING",
265
264
  VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT: "VIEW_OWNER_NOT_MANAGEMENT_ACCOUNT",
266
265
  };
267
- const CreateBillingViewRequestFilterSensitiveLog = (obj) => ({
268
- ...obj,
269
- ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
270
- ...(obj.description && { description: smithyClient.SENSITIVE_STRING }),
271
- });
272
- const BillingViewElementFilterSensitiveLog = (obj) => ({
273
- ...obj,
274
- ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
275
- ...(obj.description && { description: smithyClient.SENSITIVE_STRING }),
276
- });
277
- const GetBillingViewResponseFilterSensitiveLog = (obj) => ({
278
- ...obj,
279
- ...(obj.billingView && { billingView: BillingViewElementFilterSensitiveLog(obj.billingView) }),
280
- });
281
- const BillingViewListElementFilterSensitiveLog = (obj) => ({
282
- ...obj,
283
- ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
284
- ...(obj.description && { description: smithyClient.SENSITIVE_STRING }),
285
- });
286
- const ListBillingViewsResponseFilterSensitiveLog = (obj) => ({
287
- ...obj,
288
- ...(obj.billingViews && {
289
- billingViews: obj.billingViews.map((item) => BillingViewListElementFilterSensitiveLog(item)),
290
- }),
291
- });
292
- const UpdateBillingViewRequestFilterSensitiveLog = (obj) => ({
293
- ...obj,
294
- ...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
295
- ...(obj.description && { description: smithyClient.SENSITIVE_STRING }),
296
- });
297
266
 
298
- const se_AssociateSourceViewsCommand = async (input, context) => {
299
- const headers = sharedHeaders("AssociateSourceViews");
300
- let body;
301
- body = JSON.stringify(smithyClient._json(input));
302
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
303
- };
304
- const se_CreateBillingViewCommand = async (input, context) => {
305
- const headers = sharedHeaders("CreateBillingView");
306
- let body;
307
- body = JSON.stringify(se_CreateBillingViewRequest(input));
308
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
309
- };
310
- const se_DeleteBillingViewCommand = async (input, context) => {
311
- const headers = sharedHeaders("DeleteBillingView");
312
- let body;
313
- body = JSON.stringify(smithyClient._json(input));
314
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
315
- };
316
- const se_DisassociateSourceViewsCommand = async (input, context) => {
317
- const headers = sharedHeaders("DisassociateSourceViews");
318
- let body;
319
- body = JSON.stringify(smithyClient._json(input));
320
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
321
- };
322
- const se_GetBillingViewCommand = async (input, context) => {
323
- const headers = sharedHeaders("GetBillingView");
324
- let body;
325
- body = JSON.stringify(smithyClient._json(input));
326
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
327
- };
328
- const se_GetResourcePolicyCommand = async (input, context) => {
329
- const headers = sharedHeaders("GetResourcePolicy");
330
- let body;
331
- body = JSON.stringify(smithyClient._json(input));
332
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
333
- };
334
- const se_ListBillingViewsCommand = async (input, context) => {
335
- const headers = sharedHeaders("ListBillingViews");
336
- let body;
337
- body = JSON.stringify(se_ListBillingViewsRequest(input));
338
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
339
- };
340
- const se_ListSourceViewsForBillingViewCommand = async (input, context) => {
341
- const headers = sharedHeaders("ListSourceViewsForBillingView");
342
- let body;
343
- body = JSON.stringify(smithyClient._json(input));
344
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
345
- };
346
- const se_ListTagsForResourceCommand = async (input, context) => {
347
- const headers = sharedHeaders("ListTagsForResource");
348
- let body;
349
- body = JSON.stringify(smithyClient._json(input));
350
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
351
- };
352
- const se_TagResourceCommand = async (input, context) => {
353
- const headers = sharedHeaders("TagResource");
354
- let body;
355
- body = JSON.stringify(smithyClient._json(input));
356
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
- };
358
- const se_UntagResourceCommand = async (input, context) => {
359
- const headers = sharedHeaders("UntagResource");
360
- let body;
361
- body = JSON.stringify(smithyClient._json(input));
362
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
363
- };
364
- const se_UpdateBillingViewCommand = async (input, context) => {
365
- const headers = sharedHeaders("UpdateBillingView");
366
- let body;
367
- body = JSON.stringify(se_UpdateBillingViewRequest(input));
368
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
369
- };
370
- const de_AssociateSourceViewsCommand = async (output, context) => {
371
- if (output.statusCode >= 300) {
372
- return de_CommandError(output, context);
373
- }
374
- const data = await core$1.parseJsonBody(output.body, context);
375
- let contents = {};
376
- contents = smithyClient._json(data);
377
- const response = {
378
- $metadata: deserializeMetadata(output),
379
- ...contents,
380
- };
381
- return response;
382
- };
383
- const de_CreateBillingViewCommand = async (output, context) => {
384
- if (output.statusCode >= 300) {
385
- return de_CommandError(output, context);
386
- }
387
- const data = await core$1.parseJsonBody(output.body, context);
388
- let contents = {};
389
- contents = de_CreateBillingViewResponse(data);
390
- const response = {
391
- $metadata: deserializeMetadata(output),
392
- ...contents,
393
- };
394
- return response;
395
- };
396
- const de_DeleteBillingViewCommand = async (output, context) => {
397
- if (output.statusCode >= 300) {
398
- return de_CommandError(output, context);
399
- }
400
- const data = await core$1.parseJsonBody(output.body, context);
401
- let contents = {};
402
- contents = smithyClient._json(data);
403
- const response = {
404
- $metadata: deserializeMetadata(output),
405
- ...contents,
406
- };
407
- return response;
408
- };
409
- const de_DisassociateSourceViewsCommand = async (output, context) => {
410
- if (output.statusCode >= 300) {
411
- return de_CommandError(output, context);
412
- }
413
- const data = await core$1.parseJsonBody(output.body, context);
414
- let contents = {};
415
- contents = smithyClient._json(data);
416
- const response = {
417
- $metadata: deserializeMetadata(output),
418
- ...contents,
419
- };
420
- return response;
421
- };
422
- const de_GetBillingViewCommand = async (output, context) => {
423
- if (output.statusCode >= 300) {
424
- return de_CommandError(output, context);
425
- }
426
- const data = await core$1.parseJsonBody(output.body, context);
427
- let contents = {};
428
- contents = de_GetBillingViewResponse(data);
429
- const response = {
430
- $metadata: deserializeMetadata(output),
431
- ...contents,
432
- };
433
- return response;
434
- };
435
- const de_GetResourcePolicyCommand = async (output, context) => {
436
- if (output.statusCode >= 300) {
437
- return de_CommandError(output, context);
438
- }
439
- const data = await core$1.parseJsonBody(output.body, context);
440
- let contents = {};
441
- contents = smithyClient._json(data);
442
- const response = {
443
- $metadata: deserializeMetadata(output),
444
- ...contents,
445
- };
446
- return response;
447
- };
448
- const de_ListBillingViewsCommand = async (output, context) => {
449
- if (output.statusCode >= 300) {
450
- return de_CommandError(output, context);
451
- }
452
- const data = await core$1.parseJsonBody(output.body, context);
453
- let contents = {};
454
- contents = smithyClient._json(data);
455
- const response = {
456
- $metadata: deserializeMetadata(output),
457
- ...contents,
458
- };
459
- return response;
460
- };
461
- const de_ListSourceViewsForBillingViewCommand = async (output, context) => {
462
- if (output.statusCode >= 300) {
463
- return de_CommandError(output, context);
464
- }
465
- const data = await core$1.parseJsonBody(output.body, context);
466
- let contents = {};
467
- contents = smithyClient._json(data);
468
- const response = {
469
- $metadata: deserializeMetadata(output),
470
- ...contents,
471
- };
472
- return response;
473
- };
474
- const de_ListTagsForResourceCommand = async (output, context) => {
475
- if (output.statusCode >= 300) {
476
- return de_CommandError(output, context);
477
- }
478
- const data = await core$1.parseJsonBody(output.body, context);
479
- let contents = {};
480
- contents = smithyClient._json(data);
481
- const response = {
482
- $metadata: deserializeMetadata(output),
483
- ...contents,
484
- };
485
- return response;
486
- };
487
- const de_TagResourceCommand = async (output, context) => {
488
- if (output.statusCode >= 300) {
489
- return de_CommandError(output, context);
490
- }
491
- const data = await core$1.parseJsonBody(output.body, context);
492
- let contents = {};
493
- contents = smithyClient._json(data);
494
- const response = {
495
- $metadata: deserializeMetadata(output),
496
- ...contents,
497
- };
498
- return response;
499
- };
500
- const de_UntagResourceCommand = async (output, context) => {
501
- if (output.statusCode >= 300) {
502
- return de_CommandError(output, context);
503
- }
504
- const data = await core$1.parseJsonBody(output.body, context);
505
- let contents = {};
506
- contents = smithyClient._json(data);
507
- const response = {
508
- $metadata: deserializeMetadata(output),
509
- ...contents,
510
- };
511
- return response;
512
- };
513
- const de_UpdateBillingViewCommand = async (output, context) => {
514
- if (output.statusCode >= 300) {
515
- return de_CommandError(output, context);
516
- }
517
- const data = await core$1.parseJsonBody(output.body, context);
518
- let contents = {};
519
- contents = de_UpdateBillingViewResponse(data);
520
- const response = {
521
- $metadata: deserializeMetadata(output),
522
- ...contents,
523
- };
524
- return response;
525
- };
526
- const de_CommandError = async (output, context) => {
527
- const parsedOutput = {
528
- ...output,
529
- body: await core$1.parseJsonErrorBody(output.body, context),
530
- };
531
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
532
- switch (errorCode) {
533
- case "AccessDeniedException":
534
- case "com.amazonaws.billing#AccessDeniedException":
535
- throw await de_AccessDeniedExceptionRes(parsedOutput);
536
- case "BillingViewHealthStatusException":
537
- case "com.amazonaws.billing#BillingViewHealthStatusException":
538
- throw await de_BillingViewHealthStatusExceptionRes(parsedOutput);
539
- case "ConflictException":
540
- case "com.amazonaws.billing#ConflictException":
541
- throw await de_ConflictExceptionRes(parsedOutput);
542
- case "InternalServerException":
543
- case "com.amazonaws.billing#InternalServerException":
544
- throw await de_InternalServerExceptionRes(parsedOutput);
545
- case "ResourceNotFoundException":
546
- case "com.amazonaws.billing#ResourceNotFoundException":
547
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
548
- case "ServiceQuotaExceededException":
549
- case "com.amazonaws.billing#ServiceQuotaExceededException":
550
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
551
- case "ThrottlingException":
552
- case "com.amazonaws.billing#ThrottlingException":
553
- throw await de_ThrottlingExceptionRes(parsedOutput);
554
- case "ValidationException":
555
- case "com.amazonaws.billing#ValidationException":
556
- throw await de_ValidationExceptionRes(parsedOutput);
557
- default:
558
- const parsedBody = parsedOutput.body;
559
- return throwDefaultError({
560
- output,
561
- parsedBody,
562
- errorCode,
563
- });
564
- }
565
- };
566
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
567
- const body = parsedOutput.body;
568
- const deserialized = smithyClient._json(body);
569
- const exception = new AccessDeniedException({
570
- $metadata: deserializeMetadata(parsedOutput),
571
- ...deserialized,
572
- });
573
- return smithyClient.decorateServiceException(exception, body);
574
- };
575
- const de_BillingViewHealthStatusExceptionRes = async (parsedOutput, context) => {
576
- const body = parsedOutput.body;
577
- const deserialized = smithyClient._json(body);
578
- const exception = new BillingViewHealthStatusException({
579
- $metadata: deserializeMetadata(parsedOutput),
580
- ...deserialized,
581
- });
582
- return smithyClient.decorateServiceException(exception, body);
583
- };
584
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
585
- const body = parsedOutput.body;
586
- const deserialized = smithyClient._json(body);
587
- const exception = new ConflictException({
588
- $metadata: deserializeMetadata(parsedOutput),
589
- ...deserialized,
590
- });
591
- return smithyClient.decorateServiceException(exception, body);
592
- };
593
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
594
- const body = parsedOutput.body;
595
- const deserialized = smithyClient._json(body);
596
- const exception = new InternalServerException({
597
- $metadata: deserializeMetadata(parsedOutput),
598
- ...deserialized,
599
- });
600
- return smithyClient.decorateServiceException(exception, body);
601
- };
602
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
603
- const body = parsedOutput.body;
604
- const deserialized = smithyClient._json(body);
605
- const exception = new ResourceNotFoundException({
606
- $metadata: deserializeMetadata(parsedOutput),
607
- ...deserialized,
608
- });
609
- return smithyClient.decorateServiceException(exception, body);
610
- };
611
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
612
- const body = parsedOutput.body;
613
- const deserialized = smithyClient._json(body);
614
- const exception = new ServiceQuotaExceededException({
615
- $metadata: deserializeMetadata(parsedOutput),
616
- ...deserialized,
617
- });
618
- return smithyClient.decorateServiceException(exception, body);
619
- };
620
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
621
- const body = parsedOutput.body;
622
- const deserialized = smithyClient._json(body);
623
- const exception = new ThrottlingException({
624
- $metadata: deserializeMetadata(parsedOutput),
625
- ...deserialized,
626
- });
627
- return smithyClient.decorateServiceException(exception, body);
628
- };
629
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
630
- const body = parsedOutput.body;
631
- const deserialized = smithyClient._json(body);
632
- const exception = new ValidationException({
633
- $metadata: deserializeMetadata(parsedOutput),
634
- ...deserialized,
635
- });
636
- return smithyClient.decorateServiceException(exception, body);
637
- };
638
- const se_ActiveTimeRange = (input, context) => {
639
- return smithyClient.take(input, {
640
- activeAfterInclusive: (_) => _.getTime() / 1_000,
641
- activeBeforeInclusive: (_) => _.getTime() / 1_000,
642
- });
643
- };
644
- const se_CreateBillingViewRequest = (input, context) => {
645
- return smithyClient.take(input, {
646
- clientToken: [true, (_) => _ ?? uuid.v4()],
647
- dataFilterExpression: (_) => se_Expression(_),
648
- description: [],
649
- name: [],
650
- resourceTags: smithyClient._json,
651
- sourceViews: smithyClient._json,
652
- });
653
- };
654
- const se_Expression = (input, context) => {
655
- return smithyClient.take(input, {
656
- dimensions: smithyClient._json,
657
- tags: smithyClient._json,
658
- timeRange: (_) => se_TimeRange(_),
659
- });
660
- };
661
- const se_ListBillingViewsRequest = (input, context) => {
662
- return smithyClient.take(input, {
663
- activeTimeRange: (_) => se_ActiveTimeRange(_),
664
- arns: smithyClient._json,
665
- billingViewTypes: smithyClient._json,
666
- maxResults: [],
667
- nextToken: [],
668
- ownerAccountId: [],
669
- sourceAccountId: [],
670
- });
671
- };
672
- const se_TimeRange = (input, context) => {
673
- return smithyClient.take(input, {
674
- beginDateInclusive: (_) => _.getTime() / 1_000,
675
- endDateInclusive: (_) => _.getTime() / 1_000,
676
- });
677
- };
678
- const se_UpdateBillingViewRequest = (input, context) => {
679
- return smithyClient.take(input, {
680
- arn: [],
681
- dataFilterExpression: (_) => se_Expression(_),
682
- description: [],
683
- name: [],
684
- });
685
- };
686
- const de_BillingViewElement = (output, context) => {
687
- return smithyClient.take(output, {
688
- arn: smithyClient.expectString,
689
- billingViewType: smithyClient.expectString,
690
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
691
- dataFilterExpression: (_) => de_Expression(_),
692
- derivedViewCount: smithyClient.expectInt32,
693
- description: smithyClient.expectString,
694
- healthStatus: smithyClient._json,
695
- name: smithyClient.expectString,
696
- ownerAccountId: smithyClient.expectString,
697
- sourceAccountId: smithyClient.expectString,
698
- sourceViewCount: smithyClient.expectInt32,
699
- updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
700
- viewDefinitionLastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
701
- });
702
- };
703
- const de_CreateBillingViewResponse = (output, context) => {
704
- return smithyClient.take(output, {
705
- arn: smithyClient.expectString,
706
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
707
- });
708
- };
709
- const de_Expression = (output, context) => {
710
- return smithyClient.take(output, {
711
- dimensions: smithyClient._json,
712
- tags: smithyClient._json,
713
- timeRange: (_) => de_TimeRange(_),
714
- });
715
- };
716
- const de_GetBillingViewResponse = (output, context) => {
717
- return smithyClient.take(output, {
718
- billingView: (_) => de_BillingViewElement(_),
719
- });
720
- };
721
- const de_TimeRange = (output, context) => {
722
- return smithyClient.take(output, {
723
- beginDateInclusive: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
724
- endDateInclusive: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
725
- });
726
- };
727
- const de_UpdateBillingViewResponse = (output, context) => {
728
- return smithyClient.take(output, {
729
- arn: smithyClient.expectString,
730
- updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
731
- });
732
- };
733
- const deserializeMetadata = (output) => ({
734
- httpStatusCode: output.statusCode,
735
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
736
- extendedRequestId: output.headers["x-amz-id-2"],
737
- cfId: output.headers["x-amz-cf-id"],
738
- });
739
- const throwDefaultError = smithyClient.withBaseException(BillingServiceException);
740
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
741
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
742
- const contents = {
743
- protocol,
744
- hostname,
745
- port,
746
- method: "POST",
747
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
748
- headers,
749
- };
750
- if (body !== undefined) {
751
- contents.body = body;
752
- }
753
- return new protocolHttp.HttpRequest(contents);
754
- };
755
- function sharedHeaders(operation) {
756
- return {
757
- "content-type": "application/x-amz-json-1.0",
758
- "x-amz-target": `AWSBilling.${operation}`,
759
- };
760
- }
267
+ const _ADE = "AccessDeniedException";
268
+ const _ASV = "AssociateSourceViews";
269
+ const _ASVR = "AssociateSourceViewsRequest";
270
+ const _ASVRs = "AssociateSourceViewsResponse";
271
+ const _ATR = "ActiveTimeRange";
272
+ const _BVD = "BillingViewDescription";
273
+ const _BVE = "BillingViewElement";
274
+ const _BVHS = "BillingViewHealthStatus";
275
+ const _BVHSE = "BillingViewHealthStatusException";
276
+ const _BVL = "BillingViewList";
277
+ const _BVLE = "BillingViewListElement";
278
+ const _BVN = "BillingViewName";
279
+ const _CBV = "CreateBillingView";
280
+ const _CBVR = "CreateBillingViewRequest";
281
+ const _CBVRr = "CreateBillingViewResponse";
282
+ const _CE = "ConflictException";
283
+ const _DBV = "DeleteBillingView";
284
+ const _DBVR = "DeleteBillingViewRequest";
285
+ const _DBVRe = "DeleteBillingViewResponse";
286
+ const _DSV = "DisassociateSourceViews";
287
+ const _DSVR = "DisassociateSourceViewsRequest";
288
+ const _DSVRi = "DisassociateSourceViewsResponse";
289
+ const _DV = "DimensionValues";
290
+ const _E = "Expression";
291
+ const _GBV = "GetBillingView";
292
+ const _GBVR = "GetBillingViewRequest";
293
+ const _GBVRe = "GetBillingViewResponse";
294
+ const _GRP = "GetResourcePolicy";
295
+ const _GRPR = "GetResourcePolicyRequest";
296
+ const _GRPRe = "GetResourcePolicyResponse";
297
+ const _ISE = "InternalServerException";
298
+ const _LBV = "ListBillingViews";
299
+ const _LBVR = "ListBillingViewsRequest";
300
+ const _LBVRi = "ListBillingViewsResponse";
301
+ const _LSVFBV = "ListSourceViewsForBillingView";
302
+ const _LSVFBVR = "ListSourceViewsForBillingViewRequest";
303
+ const _LSVFBVRi = "ListSourceViewsForBillingViewResponse";
304
+ const _LTFR = "ListTagsForResource";
305
+ const _LTFRR = "ListTagsForResourceRequest";
306
+ const _LTFRRi = "ListTagsForResourceResponse";
307
+ const _RNFE = "ResourceNotFoundException";
308
+ const _RT = "ResourceTag";
309
+ const _RTL = "ResourceTagList";
310
+ const _SQEE = "ServiceQuotaExceededException";
311
+ const _TE = "ThrottlingException";
312
+ const _TR = "TimeRange";
313
+ const _TRR = "TagResourceRequest";
314
+ const _TRRa = "TagResourceResponse";
315
+ const _TRa = "TagResource";
316
+ const _TV = "TagValues";
317
+ const _UBV = "UpdateBillingView";
318
+ const _UBVR = "UpdateBillingViewRequest";
319
+ const _UBVRp = "UpdateBillingViewResponse";
320
+ const _UR = "UntagResource";
321
+ const _URR = "UntagResourceRequest";
322
+ const _URRn = "UntagResourceResponse";
323
+ const _VE = "ValidationException";
324
+ const _VEF = "ValidationExceptionField";
325
+ const _VEFL = "ValidationExceptionFieldList";
326
+ const _XACT = "X-Amzn-Client-Token";
327
+ const _a = "arn";
328
+ const _aAI = "activeAfterInclusive";
329
+ const _aBI = "activeBeforeInclusive";
330
+ const _aQE = "awsQueryError";
331
+ const _aTR = "activeTimeRange";
332
+ const _ar = "arns";
333
+ const _bDI = "beginDateInclusive";
334
+ const _bV = "billingView";
335
+ const _bVT = "billingViewType";
336
+ const _bVTi = "billingViewTypes";
337
+ const _bVi = "billingViews";
338
+ const _c = "client";
339
+ const _cA = "createdAt";
340
+ const _cT = "clientToken";
341
+ const _d = "description";
342
+ const _dFE = "dataFilterExpression";
343
+ const _dVC = "derivedViewCount";
344
+ const _di = "dimensions";
345
+ const _e = "error";
346
+ const _eDI = "endDateInclusive";
347
+ const _f = "force";
348
+ const _fL = "fieldList";
349
+ const _h = "http";
350
+ const _hE = "httpError";
351
+ const _hH = "httpHeader";
352
+ const _hS = "healthStatus";
353
+ const _iT = "idempotencyToken";
354
+ const _k = "key";
355
+ const _m = "message";
356
+ const _mR = "maxResults";
357
+ const _n = "name";
358
+ const _nT = "nextToken";
359
+ const _oAI = "ownerAccountId";
360
+ const _p = "policy";
361
+ const _qC = "quotaCode";
362
+ const _r = "reason";
363
+ const _rA = "resourceArn";
364
+ const _rI = "resourceId";
365
+ const _rT = "resourceType";
366
+ const _rTK = "resourceTagKeys";
367
+ const _rTe = "resourceTags";
368
+ const _s = "server";
369
+ const _sAI = "sourceAccountId";
370
+ const _sC = "statusCode";
371
+ const _sCe = "serviceCode";
372
+ const _sR = "statusReasons";
373
+ const _sV = "sourceViews";
374
+ const _sVC = "sourceViewCount";
375
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.billing";
376
+ const _t = "tags";
377
+ const _tR = "timeRange";
378
+ const _uA = "updatedAt";
379
+ const _v = "values";
380
+ const _vDLUA = "viewDefinitionLastUpdatedAt";
381
+ const _va = "value";
382
+ const n0 = "com.amazonaws.billing";
383
+ var BillingViewDescription = [0, n0, _BVD, 8, 0];
384
+ var BillingViewName = [0, n0, _BVN, 8, 0];
385
+ var AccessDeniedException = [
386
+ -3,
387
+ n0,
388
+ _ADE,
389
+ {
390
+ [_e]: _c,
391
+ [_hE]: 403,
392
+ [_aQE]: [`BillingAccessDenied`, 403],
393
+ },
394
+ [_m],
395
+ [0],
396
+ ];
397
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
398
+ var ActiveTimeRange = [3, n0, _ATR, 0, [_aAI, _aBI], [4, 4]];
399
+ var AssociateSourceViewsRequest = [3, n0, _ASVR, 0, [_a, _sV], [0, 64 | 0]];
400
+ var AssociateSourceViewsResponse = [3, n0, _ASVRs, 0, [_a], [0]];
401
+ var BillingViewElement = [
402
+ 3,
403
+ n0,
404
+ _BVE,
405
+ 0,
406
+ [_a, _n, _d, _bVT, _oAI, _sAI, _dFE, _cA, _uA, _dVC, _sVC, _vDLUA, _hS],
407
+ [
408
+ 0,
409
+ [() => BillingViewName, 0],
410
+ [() => BillingViewDescription, 0],
411
+ 0,
412
+ 0,
413
+ 0,
414
+ () => Expression,
415
+ 4,
416
+ 4,
417
+ 1,
418
+ 1,
419
+ 4,
420
+ () => BillingViewHealthStatus,
421
+ ],
422
+ ];
423
+ var BillingViewHealthStatus = [3, n0, _BVHS, 0, [_sC, _sR], [0, 64 | 0]];
424
+ var BillingViewHealthStatusException = [
425
+ -3,
426
+ n0,
427
+ _BVHSE,
428
+ {
429
+ [_e]: _c,
430
+ [_hE]: 400,
431
+ },
432
+ [_m],
433
+ [0],
434
+ ];
435
+ schema.TypeRegistry.for(n0).registerError(BillingViewHealthStatusException, BillingViewHealthStatusException$1);
436
+ var BillingViewListElement = [
437
+ 3,
438
+ n0,
439
+ _BVLE,
440
+ 0,
441
+ [_a, _n, _d, _oAI, _sAI, _bVT, _hS],
442
+ [0, [() => BillingViewName, 0], [() => BillingViewDescription, 0], 0, 0, 0, () => BillingViewHealthStatus],
443
+ ];
444
+ var ConflictException = [
445
+ -3,
446
+ n0,
447
+ _CE,
448
+ {
449
+ [_e]: _c,
450
+ [_hE]: 409,
451
+ [_aQE]: [`BillingConflict`, 409],
452
+ },
453
+ [_m, _rI, _rT],
454
+ [0, 0, 0],
455
+ ];
456
+ schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
457
+ var CreateBillingViewRequest = [
458
+ 3,
459
+ n0,
460
+ _CBVR,
461
+ 0,
462
+ [_n, _d, _sV, _dFE, _cT, _rTe],
463
+ [
464
+ [() => BillingViewName, 0],
465
+ [() => BillingViewDescription, 0],
466
+ 64 | 0,
467
+ () => Expression,
468
+ [
469
+ 0,
470
+ {
471
+ [_hH]: _XACT,
472
+ [_iT]: 1,
473
+ },
474
+ ],
475
+ () => ResourceTagList,
476
+ ],
477
+ ];
478
+ var CreateBillingViewResponse = [3, n0, _CBVRr, 0, [_a, _cA], [0, 4]];
479
+ var DeleteBillingViewRequest = [3, n0, _DBVR, 0, [_a, _f], [0, 2]];
480
+ var DeleteBillingViewResponse = [3, n0, _DBVRe, 0, [_a], [0]];
481
+ var DimensionValues = [3, n0, _DV, 0, [_k, _v], [0, 64 | 0]];
482
+ var DisassociateSourceViewsRequest = [3, n0, _DSVR, 0, [_a, _sV], [0, 64 | 0]];
483
+ var DisassociateSourceViewsResponse = [3, n0, _DSVRi, 0, [_a], [0]];
484
+ var Expression = [
485
+ 3,
486
+ n0,
487
+ _E,
488
+ 0,
489
+ [_di, _t, _tR],
490
+ [() => DimensionValues, () => TagValues, () => TimeRange],
491
+ ];
492
+ var GetBillingViewRequest = [3, n0, _GBVR, 0, [_a], [0]];
493
+ var GetBillingViewResponse = [3, n0, _GBVRe, 0, [_bV], [[() => BillingViewElement, 0]]];
494
+ var GetResourcePolicyRequest = [3, n0, _GRPR, 0, [_rA], [0]];
495
+ var GetResourcePolicyResponse = [3, n0, _GRPRe, 0, [_rA, _p], [0, 0]];
496
+ var InternalServerException = [
497
+ -3,
498
+ n0,
499
+ _ISE,
500
+ {
501
+ [_e]: _s,
502
+ [_hE]: 500,
503
+ [_aQE]: [`BillingInternalServer`, 500],
504
+ },
505
+ [_m],
506
+ [0],
507
+ ];
508
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
509
+ var ListBillingViewsRequest = [
510
+ 3,
511
+ n0,
512
+ _LBVR,
513
+ 0,
514
+ [_aTR, _ar, _bVTi, _oAI, _sAI, _mR, _nT],
515
+ [() => ActiveTimeRange, 64 | 0, 64 | 0, 0, 0, 1, 0],
516
+ ];
517
+ var ListBillingViewsResponse = [
518
+ 3,
519
+ n0,
520
+ _LBVRi,
521
+ 0,
522
+ [_bVi, _nT],
523
+ [[() => BillingViewList, 0], 0],
524
+ ];
525
+ var ListSourceViewsForBillingViewRequest = [
526
+ 3,
527
+ n0,
528
+ _LSVFBVR,
529
+ 0,
530
+ [_a, _mR, _nT],
531
+ [0, 1, 0],
532
+ ];
533
+ var ListSourceViewsForBillingViewResponse = [
534
+ 3,
535
+ n0,
536
+ _LSVFBVRi,
537
+ 0,
538
+ [_sV, _nT],
539
+ [64 | 0, 0],
540
+ ];
541
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rA], [0]];
542
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_rTe], [() => ResourceTagList]];
543
+ var ResourceNotFoundException = [
544
+ -3,
545
+ n0,
546
+ _RNFE,
547
+ {
548
+ [_e]: _c,
549
+ [_hE]: 404,
550
+ [_aQE]: [`BillingResourceNotFound`, 404],
551
+ },
552
+ [_m, _rI, _rT],
553
+ [0, 0, 0],
554
+ ];
555
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
556
+ var ResourceTag = [3, n0, _RT, 0, [_k, _va], [0, 0]];
557
+ var ServiceQuotaExceededException = [
558
+ -3,
559
+ n0,
560
+ _SQEE,
561
+ {
562
+ [_e]: _c,
563
+ [_hE]: 402,
564
+ [_aQE]: [`BillingServiceQuotaExceeded`, 402],
565
+ },
566
+ [_m, _rI, _rT, _sCe, _qC],
567
+ [0, 0, 0, 0, 0],
568
+ ];
569
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
570
+ var TagResourceRequest = [3, n0, _TRR, 0, [_rA, _rTe], [0, () => ResourceTagList]];
571
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
572
+ var TagValues = [3, n0, _TV, 0, [_k, _v], [0, 64 | 0]];
573
+ var ThrottlingException = [
574
+ -3,
575
+ n0,
576
+ _TE,
577
+ {
578
+ [_e]: _c,
579
+ [_hE]: 429,
580
+ [_aQE]: [`BillingThrottling`, 429],
581
+ },
582
+ [_m],
583
+ [0],
584
+ ];
585
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
586
+ var TimeRange = [3, n0, _TR, 0, [_bDI, _eDI], [4, 4]];
587
+ var UntagResourceRequest = [3, n0, _URR, 0, [_rA, _rTK], [0, 64 | 0]];
588
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
589
+ var UpdateBillingViewRequest = [
590
+ 3,
591
+ n0,
592
+ _UBVR,
593
+ 0,
594
+ [_a, _n, _d, _dFE],
595
+ [0, [() => BillingViewName, 0], [() => BillingViewDescription, 0], () => Expression],
596
+ ];
597
+ var UpdateBillingViewResponse = [3, n0, _UBVRp, 0, [_a, _uA], [0, 4]];
598
+ var ValidationException = [
599
+ -3,
600
+ n0,
601
+ _VE,
602
+ {
603
+ [_e]: _c,
604
+ [_hE]: 400,
605
+ [_aQE]: [`BillingValidation`, 400],
606
+ },
607
+ [_m, _r, _fL],
608
+ [0, 0, () => ValidationExceptionFieldList],
609
+ ];
610
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
611
+ var ValidationExceptionField = [3, n0, _VEF, 0, [_n, _m], [0, 0]];
612
+ var BillingServiceException = [-3, _sm, "BillingServiceException", 0, [], []];
613
+ schema.TypeRegistry.for(_sm).registerError(BillingServiceException, BillingServiceException$1);
614
+ var BillingViewList = [1, n0, _BVL, 0, [() => BillingViewListElement, 0]];
615
+ var ResourceTagList = [1, n0, _RTL, 0, () => ResourceTag];
616
+ var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
617
+ var AssociateSourceViews = [
618
+ 9,
619
+ n0,
620
+ _ASV,
621
+ 2,
622
+ () => AssociateSourceViewsRequest,
623
+ () => AssociateSourceViewsResponse,
624
+ ];
625
+ var CreateBillingView = [
626
+ 9,
627
+ n0,
628
+ _CBV,
629
+ 2,
630
+ () => CreateBillingViewRequest,
631
+ () => CreateBillingViewResponse,
632
+ ];
633
+ var DeleteBillingView = [
634
+ 9,
635
+ n0,
636
+ _DBV,
637
+ 2,
638
+ () => DeleteBillingViewRequest,
639
+ () => DeleteBillingViewResponse,
640
+ ];
641
+ var DisassociateSourceViews = [
642
+ 9,
643
+ n0,
644
+ _DSV,
645
+ 2,
646
+ () => DisassociateSourceViewsRequest,
647
+ () => DisassociateSourceViewsResponse,
648
+ ];
649
+ var GetBillingView = [
650
+ 9,
651
+ n0,
652
+ _GBV,
653
+ 0,
654
+ () => GetBillingViewRequest,
655
+ () => GetBillingViewResponse,
656
+ ];
657
+ var GetResourcePolicy = [
658
+ 9,
659
+ n0,
660
+ _GRP,
661
+ 0,
662
+ () => GetResourcePolicyRequest,
663
+ () => GetResourcePolicyResponse,
664
+ ];
665
+ var ListBillingViews = [
666
+ 9,
667
+ n0,
668
+ _LBV,
669
+ {
670
+ [_h]: ["POST", "/", 200],
671
+ },
672
+ () => ListBillingViewsRequest,
673
+ () => ListBillingViewsResponse,
674
+ ];
675
+ var ListSourceViewsForBillingView = [
676
+ 9,
677
+ n0,
678
+ _LSVFBV,
679
+ 0,
680
+ () => ListSourceViewsForBillingViewRequest,
681
+ () => ListSourceViewsForBillingViewResponse,
682
+ ];
683
+ var ListTagsForResource = [
684
+ 9,
685
+ n0,
686
+ _LTFR,
687
+ 0,
688
+ () => ListTagsForResourceRequest,
689
+ () => ListTagsForResourceResponse,
690
+ ];
691
+ var TagResource = [9, n0, _TRa, 0, () => TagResourceRequest, () => TagResourceResponse];
692
+ var UntagResource = [
693
+ 9,
694
+ n0,
695
+ _UR,
696
+ 0,
697
+ () => UntagResourceRequest,
698
+ () => UntagResourceResponse,
699
+ ];
700
+ var UpdateBillingView = [
701
+ 9,
702
+ n0,
703
+ _UBV,
704
+ 2,
705
+ () => UpdateBillingViewRequest,
706
+ () => UpdateBillingViewResponse,
707
+ ];
761
708
 
762
709
  class AssociateSourceViewsCommand extends smithyClient.Command
763
710
  .classBuilder()
764
711
  .ep(commonParams)
765
712
  .m(function (Command, cs, config, o) {
766
- return [
767
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
768
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
769
- ];
713
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
770
714
  })
771
715
  .s("AWSBilling", "AssociateSourceViews", {})
772
716
  .n("BillingClient", "AssociateSourceViewsCommand")
773
- .f(void 0, void 0)
774
- .ser(se_AssociateSourceViewsCommand)
775
- .de(de_AssociateSourceViewsCommand)
717
+ .sc(AssociateSourceViews)
776
718
  .build() {
777
719
  }
778
720
 
@@ -780,16 +722,11 @@ class CreateBillingViewCommand extends smithyClient.Command
780
722
  .classBuilder()
781
723
  .ep(commonParams)
782
724
  .m(function (Command, cs, config, o) {
783
- return [
784
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
785
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
786
- ];
725
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
787
726
  })
788
727
  .s("AWSBilling", "CreateBillingView", {})
789
728
  .n("BillingClient", "CreateBillingViewCommand")
790
- .f(CreateBillingViewRequestFilterSensitiveLog, void 0)
791
- .ser(se_CreateBillingViewCommand)
792
- .de(de_CreateBillingViewCommand)
729
+ .sc(CreateBillingView)
793
730
  .build() {
794
731
  }
795
732
 
@@ -797,16 +734,11 @@ class DeleteBillingViewCommand extends smithyClient.Command
797
734
  .classBuilder()
798
735
  .ep(commonParams)
799
736
  .m(function (Command, cs, config, o) {
800
- return [
801
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
802
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
803
- ];
737
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
804
738
  })
805
739
  .s("AWSBilling", "DeleteBillingView", {})
806
740
  .n("BillingClient", "DeleteBillingViewCommand")
807
- .f(void 0, void 0)
808
- .ser(se_DeleteBillingViewCommand)
809
- .de(de_DeleteBillingViewCommand)
741
+ .sc(DeleteBillingView)
810
742
  .build() {
811
743
  }
812
744
 
@@ -814,16 +746,11 @@ class DisassociateSourceViewsCommand extends smithyClient.Command
814
746
  .classBuilder()
815
747
  .ep(commonParams)
816
748
  .m(function (Command, cs, config, o) {
817
- return [
818
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
819
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
820
- ];
749
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
821
750
  })
822
751
  .s("AWSBilling", "DisassociateSourceViews", {})
823
752
  .n("BillingClient", "DisassociateSourceViewsCommand")
824
- .f(void 0, void 0)
825
- .ser(se_DisassociateSourceViewsCommand)
826
- .de(de_DisassociateSourceViewsCommand)
753
+ .sc(DisassociateSourceViews)
827
754
  .build() {
828
755
  }
829
756
 
@@ -831,16 +758,11 @@ class GetBillingViewCommand extends smithyClient.Command
831
758
  .classBuilder()
832
759
  .ep(commonParams)
833
760
  .m(function (Command, cs, config, o) {
834
- return [
835
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
836
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
837
- ];
761
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
838
762
  })
839
763
  .s("AWSBilling", "GetBillingView", {})
840
764
  .n("BillingClient", "GetBillingViewCommand")
841
- .f(void 0, GetBillingViewResponseFilterSensitiveLog)
842
- .ser(se_GetBillingViewCommand)
843
- .de(de_GetBillingViewCommand)
765
+ .sc(GetBillingView)
844
766
  .build() {
845
767
  }
846
768
 
@@ -848,16 +770,11 @@ class GetResourcePolicyCommand extends smithyClient.Command
848
770
  .classBuilder()
849
771
  .ep(commonParams)
850
772
  .m(function (Command, cs, config, o) {
851
- return [
852
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
853
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
854
- ];
773
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
855
774
  })
856
775
  .s("AWSBilling", "GetResourcePolicy", {})
857
776
  .n("BillingClient", "GetResourcePolicyCommand")
858
- .f(void 0, void 0)
859
- .ser(se_GetResourcePolicyCommand)
860
- .de(de_GetResourcePolicyCommand)
777
+ .sc(GetResourcePolicy)
861
778
  .build() {
862
779
  }
863
780
 
@@ -865,16 +782,11 @@ class ListBillingViewsCommand extends smithyClient.Command
865
782
  .classBuilder()
866
783
  .ep(commonParams)
867
784
  .m(function (Command, cs, config, o) {
868
- return [
869
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
870
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
871
- ];
785
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
872
786
  })
873
787
  .s("AWSBilling", "ListBillingViews", {})
874
788
  .n("BillingClient", "ListBillingViewsCommand")
875
- .f(void 0, ListBillingViewsResponseFilterSensitiveLog)
876
- .ser(se_ListBillingViewsCommand)
877
- .de(de_ListBillingViewsCommand)
789
+ .sc(ListBillingViews)
878
790
  .build() {
879
791
  }
880
792
 
@@ -882,16 +794,11 @@ class ListSourceViewsForBillingViewCommand extends smithyClient.Command
882
794
  .classBuilder()
883
795
  .ep(commonParams)
884
796
  .m(function (Command, cs, config, o) {
885
- return [
886
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
887
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
888
- ];
797
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
889
798
  })
890
799
  .s("AWSBilling", "ListSourceViewsForBillingView", {})
891
800
  .n("BillingClient", "ListSourceViewsForBillingViewCommand")
892
- .f(void 0, void 0)
893
- .ser(se_ListSourceViewsForBillingViewCommand)
894
- .de(de_ListSourceViewsForBillingViewCommand)
801
+ .sc(ListSourceViewsForBillingView)
895
802
  .build() {
896
803
  }
897
804
 
@@ -899,16 +806,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
899
806
  .classBuilder()
900
807
  .ep(commonParams)
901
808
  .m(function (Command, cs, config, o) {
902
- return [
903
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
904
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
905
- ];
809
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
906
810
  })
907
811
  .s("AWSBilling", "ListTagsForResource", {})
908
812
  .n("BillingClient", "ListTagsForResourceCommand")
909
- .f(void 0, void 0)
910
- .ser(se_ListTagsForResourceCommand)
911
- .de(de_ListTagsForResourceCommand)
813
+ .sc(ListTagsForResource)
912
814
  .build() {
913
815
  }
914
816
 
@@ -916,16 +818,11 @@ class TagResourceCommand extends smithyClient.Command
916
818
  .classBuilder()
917
819
  .ep(commonParams)
918
820
  .m(function (Command, cs, config, o) {
919
- return [
920
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
921
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
922
- ];
821
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
923
822
  })
924
823
  .s("AWSBilling", "TagResource", {})
925
824
  .n("BillingClient", "TagResourceCommand")
926
- .f(void 0, void 0)
927
- .ser(se_TagResourceCommand)
928
- .de(de_TagResourceCommand)
825
+ .sc(TagResource)
929
826
  .build() {
930
827
  }
931
828
 
@@ -933,16 +830,11 @@ class UntagResourceCommand extends smithyClient.Command
933
830
  .classBuilder()
934
831
  .ep(commonParams)
935
832
  .m(function (Command, cs, config, o) {
936
- return [
937
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
938
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
939
- ];
833
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
940
834
  })
941
835
  .s("AWSBilling", "UntagResource", {})
942
836
  .n("BillingClient", "UntagResourceCommand")
943
- .f(void 0, void 0)
944
- .ser(se_UntagResourceCommand)
945
- .de(de_UntagResourceCommand)
837
+ .sc(UntagResource)
946
838
  .build() {
947
839
  }
948
840
 
@@ -950,16 +842,11 @@ class UpdateBillingViewCommand extends smithyClient.Command
950
842
  .classBuilder()
951
843
  .ep(commonParams)
952
844
  .m(function (Command, cs, config, o) {
953
- return [
954
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
955
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
956
- ];
845
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
957
846
  })
958
847
  .s("AWSBilling", "UpdateBillingView", {})
959
848
  .n("BillingClient", "UpdateBillingViewCommand")
960
- .f(UpdateBillingViewRequestFilterSensitiveLog, void 0)
961
- .ser(se_UpdateBillingViewCommand)
962
- .de(de_UpdateBillingViewCommand)
849
+ .sc(UpdateBillingView)
963
850
  .build() {
964
851
  }
965
852
 
@@ -993,39 +880,33 @@ Object.defineProperty(exports, "__Client", {
993
880
  enumerable: true,
994
881
  get: function () { return smithyClient.Client; }
995
882
  });
996
- exports.AccessDeniedException = AccessDeniedException;
883
+ exports.AccessDeniedException = AccessDeniedException$1;
997
884
  exports.AssociateSourceViewsCommand = AssociateSourceViewsCommand;
998
885
  exports.Billing = Billing;
999
886
  exports.BillingClient = BillingClient;
1000
- exports.BillingServiceException = BillingServiceException;
1001
- exports.BillingViewElementFilterSensitiveLog = BillingViewElementFilterSensitiveLog;
1002
- exports.BillingViewHealthStatusException = BillingViewHealthStatusException;
1003
- exports.BillingViewListElementFilterSensitiveLog = BillingViewListElementFilterSensitiveLog;
887
+ exports.BillingServiceException = BillingServiceException$1;
888
+ exports.BillingViewHealthStatusException = BillingViewHealthStatusException$1;
1004
889
  exports.BillingViewStatus = BillingViewStatus;
1005
890
  exports.BillingViewStatusReason = BillingViewStatusReason;
1006
891
  exports.BillingViewType = BillingViewType;
1007
- exports.ConflictException = ConflictException;
892
+ exports.ConflictException = ConflictException$1;
1008
893
  exports.CreateBillingViewCommand = CreateBillingViewCommand;
1009
- exports.CreateBillingViewRequestFilterSensitiveLog = CreateBillingViewRequestFilterSensitiveLog;
1010
894
  exports.DeleteBillingViewCommand = DeleteBillingViewCommand;
1011
895
  exports.Dimension = Dimension;
1012
896
  exports.DisassociateSourceViewsCommand = DisassociateSourceViewsCommand;
1013
897
  exports.GetBillingViewCommand = GetBillingViewCommand;
1014
- exports.GetBillingViewResponseFilterSensitiveLog = GetBillingViewResponseFilterSensitiveLog;
1015
898
  exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
1016
- exports.InternalServerException = InternalServerException;
899
+ exports.InternalServerException = InternalServerException$1;
1017
900
  exports.ListBillingViewsCommand = ListBillingViewsCommand;
1018
- exports.ListBillingViewsResponseFilterSensitiveLog = ListBillingViewsResponseFilterSensitiveLog;
1019
901
  exports.ListSourceViewsForBillingViewCommand = ListSourceViewsForBillingViewCommand;
1020
902
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1021
- exports.ResourceNotFoundException = ResourceNotFoundException;
1022
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
903
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
904
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1023
905
  exports.TagResourceCommand = TagResourceCommand;
1024
- exports.ThrottlingException = ThrottlingException;
906
+ exports.ThrottlingException = ThrottlingException$1;
1025
907
  exports.UntagResourceCommand = UntagResourceCommand;
1026
908
  exports.UpdateBillingViewCommand = UpdateBillingViewCommand;
1027
- exports.UpdateBillingViewRequestFilterSensitiveLog = UpdateBillingViewRequestFilterSensitiveLog;
1028
- exports.ValidationException = ValidationException;
909
+ exports.ValidationException = ValidationException$1;
1029
910
  exports.ValidationExceptionReason = ValidationExceptionReason;
1030
911
  exports.paginateListBillingViews = paginateListBillingViews;
1031
912
  exports.paginateListSourceViewsForBillingView = paginateListSourceViewsForBillingView;