@aws-sdk/client-bcm-dashboards 3.927.0 → 3.928.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 (30) hide show
  1. package/dist-cjs/index.js +456 -643
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/BCMDashboardsClient.js +2 -0
  4. package/dist-es/commands/CreateDashboardCommand.js +3 -9
  5. package/dist-es/commands/DeleteDashboardCommand.js +3 -9
  6. package/dist-es/commands/GetDashboardCommand.js +3 -9
  7. package/dist-es/commands/GetResourcePolicyCommand.js +3 -9
  8. package/dist-es/commands/ListDashboardsCommand.js +3 -9
  9. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  10. package/dist-es/commands/TagResourceCommand.js +3 -9
  11. package/dist-es/commands/UntagResourceCommand.js +3 -9
  12. package/dist-es/commands/UpdateDashboardCommand.js +3 -9
  13. package/dist-es/runtimeConfig.shared.js +7 -0
  14. package/dist-es/schemas/schemas_0.js +423 -0
  15. package/dist-types/BCMDashboardsClient.d.ts +10 -1
  16. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  17. package/dist-types/runtimeConfig.d.ts +1 -0
  18. package/dist-types/runtimeConfig.native.d.ts +1 -0
  19. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  20. package/dist-types/schemas/schemas_0.d.ts +67 -0
  21. package/dist-types/ts3.4/BCMDashboardsClient.d.ts +4 -0
  22. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  23. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  24. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  25. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  26. package/dist-types/ts3.4/schemas/schemas_0.d.ts +73 -0
  27. package/package.json +5 -5
  28. package/dist-es/protocols/Aws_json1_0.js +0 -566
  29. package/dist-types/protocols/Aws_json1_0.d.ts +0 -83
  30. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -113
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,8 +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
18
 
20
19
  const resolveClientEndpointParameters = (options) => {
21
20
  return Object.assign(options, {
@@ -89,6 +88,7 @@ class BCMDashboardsClient extends smithyClient.Client {
89
88
  const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
90
89
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
91
90
  this.config = _config_8;
91
+ this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
92
92
  this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
93
93
  this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
94
94
  this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
@@ -108,14 +108,14 @@ class BCMDashboardsClient extends smithyClient.Client {
108
108
  }
109
109
  }
110
110
 
111
- class BCMDashboardsServiceException extends smithyClient.ServiceException {
111
+ let BCMDashboardsServiceException$1 = class BCMDashboardsServiceException extends smithyClient.ServiceException {
112
112
  constructor(options) {
113
113
  super(options);
114
114
  Object.setPrototypeOf(this, BCMDashboardsServiceException.prototype);
115
115
  }
116
- }
116
+ };
117
117
 
118
- class AccessDeniedException extends BCMDashboardsServiceException {
118
+ let AccessDeniedException$1 = class AccessDeniedException extends BCMDashboardsServiceException$1 {
119
119
  name = "AccessDeniedException";
120
120
  $fault = "client";
121
121
  constructor(opts) {
@@ -126,7 +126,7 @@ class AccessDeniedException extends BCMDashboardsServiceException {
126
126
  });
127
127
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
128
128
  }
129
- }
129
+ };
130
130
  const VisualType = {
131
131
  BAR: "BAR",
132
132
  LINE: "LINE",
@@ -207,7 +207,7 @@ const DateTimeType = {
207
207
  ABSOLUTE: "ABSOLUTE",
208
208
  RELATIVE: "RELATIVE",
209
209
  };
210
- class InternalServerException extends BCMDashboardsServiceException {
210
+ let InternalServerException$1 = class InternalServerException extends BCMDashboardsServiceException$1 {
211
211
  name = "InternalServerException";
212
212
  $fault = "server";
213
213
  constructor(opts) {
@@ -218,8 +218,8 @@ class InternalServerException extends BCMDashboardsServiceException {
218
218
  });
219
219
  Object.setPrototypeOf(this, InternalServerException.prototype);
220
220
  }
221
- }
222
- class ServiceQuotaExceededException extends BCMDashboardsServiceException {
221
+ };
222
+ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends BCMDashboardsServiceException$1 {
223
223
  name = "ServiceQuotaExceededException";
224
224
  $fault = "client";
225
225
  constructor(opts) {
@@ -230,8 +230,8 @@ class ServiceQuotaExceededException extends BCMDashboardsServiceException {
230
230
  });
231
231
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
232
232
  }
233
- }
234
- class ThrottlingException extends BCMDashboardsServiceException {
233
+ };
234
+ let ThrottlingException$1 = class ThrottlingException extends BCMDashboardsServiceException$1 {
235
235
  name = "ThrottlingException";
236
236
  $fault = "client";
237
237
  constructor(opts) {
@@ -242,8 +242,8 @@ class ThrottlingException extends BCMDashboardsServiceException {
242
242
  });
243
243
  Object.setPrototypeOf(this, ThrottlingException.prototype);
244
244
  }
245
- }
246
- class ValidationException extends BCMDashboardsServiceException {
245
+ };
246
+ let ValidationException$1 = class ValidationException extends BCMDashboardsServiceException$1 {
247
247
  name = "ValidationException";
248
248
  $fault = "client";
249
249
  constructor(opts) {
@@ -254,11 +254,11 @@ class ValidationException extends BCMDashboardsServiceException {
254
254
  });
255
255
  Object.setPrototypeOf(this, ValidationException.prototype);
256
256
  }
257
- }
257
+ };
258
258
  const DashboardType = {
259
259
  CUSTOM: "CUSTOM",
260
260
  };
261
- class ResourceNotFoundException extends BCMDashboardsServiceException {
261
+ let ResourceNotFoundException$1 = class ResourceNotFoundException extends BCMDashboardsServiceException$1 {
262
262
  name = "ResourceNotFoundException";
263
263
  $fault = "client";
264
264
  constructor(opts) {
@@ -269,7 +269,7 @@ class ResourceNotFoundException extends BCMDashboardsServiceException {
269
269
  });
270
270
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
271
271
  }
272
- }
272
+ };
273
273
  exports.QueryParameters = void 0;
274
274
  (function (QueryParameters) {
275
275
  QueryParameters.visit = (value, visitor) => {
@@ -287,578 +287,431 @@ exports.QueryParameters = void 0;
287
287
  };
288
288
  })(exports.QueryParameters || (exports.QueryParameters = {}));
289
289
 
290
- const se_CreateDashboardCommand = async (input, context) => {
291
- const headers = sharedHeaders("CreateDashboard");
292
- let body;
293
- body = JSON.stringify(se_CreateDashboardRequest(input));
294
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
- };
296
- const se_DeleteDashboardCommand = async (input, context) => {
297
- const headers = sharedHeaders("DeleteDashboard");
298
- let body;
299
- body = JSON.stringify(smithyClient._json(input));
300
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
- };
302
- const se_GetDashboardCommand = async (input, context) => {
303
- const headers = sharedHeaders("GetDashboard");
304
- let body;
305
- body = JSON.stringify(smithyClient._json(input));
306
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
307
- };
308
- const se_GetResourcePolicyCommand = async (input, context) => {
309
- const headers = sharedHeaders("GetResourcePolicy");
310
- let body;
311
- body = JSON.stringify(smithyClient._json(input));
312
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
313
- };
314
- const se_ListDashboardsCommand = async (input, context) => {
315
- const headers = sharedHeaders("ListDashboards");
316
- let body;
317
- body = JSON.stringify(smithyClient._json(input));
318
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
319
- };
320
- const se_ListTagsForResourceCommand = async (input, context) => {
321
- const headers = sharedHeaders("ListTagsForResource");
322
- let body;
323
- body = JSON.stringify(smithyClient._json(input));
324
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
325
- };
326
- const se_TagResourceCommand = async (input, context) => {
327
- const headers = sharedHeaders("TagResource");
328
- let body;
329
- body = JSON.stringify(smithyClient._json(input));
330
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
331
- };
332
- const se_UntagResourceCommand = async (input, context) => {
333
- const headers = sharedHeaders("UntagResource");
334
- let body;
335
- body = JSON.stringify(smithyClient._json(input));
336
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
337
- };
338
- const se_UpdateDashboardCommand = async (input, context) => {
339
- const headers = sharedHeaders("UpdateDashboard");
340
- let body;
341
- body = JSON.stringify(se_UpdateDashboardRequest(input));
342
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
343
- };
344
- const de_CreateDashboardCommand = async (output, context) => {
345
- if (output.statusCode >= 300) {
346
- return de_CommandError(output, context);
347
- }
348
- const data = await core$1.parseJsonBody(output.body, context);
349
- let contents = {};
350
- contents = smithyClient._json(data);
351
- const response = {
352
- $metadata: deserializeMetadata(output),
353
- ...contents,
354
- };
355
- return response;
356
- };
357
- const de_DeleteDashboardCommand = async (output, context) => {
358
- if (output.statusCode >= 300) {
359
- return de_CommandError(output, context);
360
- }
361
- const data = await core$1.parseJsonBody(output.body, context);
362
- let contents = {};
363
- contents = smithyClient._json(data);
364
- const response = {
365
- $metadata: deserializeMetadata(output),
366
- ...contents,
367
- };
368
- return response;
369
- };
370
- const de_GetDashboardCommand = 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 = de_GetDashboardResponse(data);
377
- const response = {
378
- $metadata: deserializeMetadata(output),
379
- ...contents,
380
- };
381
- return response;
382
- };
383
- const de_GetResourcePolicyCommand = 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 = smithyClient._json(data);
390
- const response = {
391
- $metadata: deserializeMetadata(output),
392
- ...contents,
393
- };
394
- return response;
395
- };
396
- const de_ListDashboardsCommand = 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 = de_ListDashboardsResponse(data);
403
- const response = {
404
- $metadata: deserializeMetadata(output),
405
- ...contents,
406
- };
407
- return response;
408
- };
409
- const de_ListTagsForResourceCommand = 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_TagResourceCommand = 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 = smithyClient._json(data);
429
- const response = {
430
- $metadata: deserializeMetadata(output),
431
- ...contents,
432
- };
433
- return response;
434
- };
435
- const de_UntagResourceCommand = 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_UpdateDashboardCommand = 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_CommandError = async (output, context) => {
462
- const parsedOutput = {
463
- ...output,
464
- body: await core$1.parseJsonErrorBody(output.body, context),
465
- };
466
- const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
467
- switch (errorCode) {
468
- case "AccessDeniedException":
469
- case "com.amazonaws.bcmdashboards#AccessDeniedException":
470
- throw await de_AccessDeniedExceptionRes(parsedOutput);
471
- case "InternalServerException":
472
- case "com.amazonaws.bcmdashboards#InternalServerException":
473
- throw await de_InternalServerExceptionRes(parsedOutput);
474
- case "ServiceQuotaExceededException":
475
- case "com.amazonaws.bcmdashboards#ServiceQuotaExceededException":
476
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
477
- case "ThrottlingException":
478
- case "com.amazonaws.bcmdashboards#ThrottlingException":
479
- throw await de_ThrottlingExceptionRes(parsedOutput);
480
- case "ValidationException":
481
- case "com.amazonaws.bcmdashboards#ValidationException":
482
- throw await de_ValidationExceptionRes(parsedOutput);
483
- case "ResourceNotFoundException":
484
- case "com.amazonaws.bcmdashboards#ResourceNotFoundException":
485
- throw await de_ResourceNotFoundExceptionRes(parsedOutput);
486
- default:
487
- const parsedBody = parsedOutput.body;
488
- return throwDefaultError({
489
- output,
490
- parsedBody,
491
- errorCode,
492
- });
493
- }
494
- };
495
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
496
- const body = parsedOutput.body;
497
- const deserialized = smithyClient._json(body);
498
- const exception = new AccessDeniedException({
499
- $metadata: deserializeMetadata(parsedOutput),
500
- ...deserialized,
501
- });
502
- return smithyClient.decorateServiceException(exception, body);
503
- };
504
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
505
- const body = parsedOutput.body;
506
- const deserialized = smithyClient._json(body);
507
- const exception = new InternalServerException({
508
- $metadata: deserializeMetadata(parsedOutput),
509
- ...deserialized,
510
- });
511
- return smithyClient.decorateServiceException(exception, body);
512
- };
513
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
514
- const body = parsedOutput.body;
515
- const deserialized = smithyClient._json(body);
516
- const exception = new ResourceNotFoundException({
517
- $metadata: deserializeMetadata(parsedOutput),
518
- ...deserialized,
519
- });
520
- return smithyClient.decorateServiceException(exception, body);
521
- };
522
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
523
- const body = parsedOutput.body;
524
- const deserialized = smithyClient._json(body);
525
- const exception = new ServiceQuotaExceededException({
526
- $metadata: deserializeMetadata(parsedOutput),
527
- ...deserialized,
528
- });
529
- return smithyClient.decorateServiceException(exception, body);
530
- };
531
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
532
- const body = parsedOutput.body;
533
- const deserialized = smithyClient._json(body);
534
- const exception = new ThrottlingException({
535
- $metadata: deserializeMetadata(parsedOutput),
536
- ...deserialized,
537
- });
538
- return smithyClient.decorateServiceException(exception, body);
539
- };
540
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
541
- const body = parsedOutput.body;
542
- const deserialized = smithyClient._json(body);
543
- const exception = new ValidationException({
544
- $metadata: deserializeMetadata(parsedOutput),
545
- ...deserialized,
546
- });
547
- return smithyClient.decorateServiceException(exception, body);
548
- };
549
- const se_CostAndUsageQuery = (input, context) => {
550
- return smithyClient.take(input, {
551
- filter: (_) => se_Expression(_),
552
- granularity: [],
553
- groupBy: smithyClient._json,
554
- metrics: smithyClient._json,
555
- timeRange: smithyClient._json,
556
- });
557
- };
558
- const se_CreateDashboardRequest = (input, context) => {
559
- return smithyClient.take(input, {
560
- description: [],
561
- name: [],
562
- resourceTags: smithyClient._json,
563
- widgets: (_) => se_WidgetList(_),
564
- });
565
- };
566
- const se_Expression = (input, context) => {
567
- return smithyClient.take(input, {
568
- and: (_) => se_Expressions(_),
569
- costCategories: smithyClient._json,
570
- dimensions: smithyClient._json,
571
- not: (_) => se_Expression(_),
572
- or: (_) => se_Expressions(_),
573
- tags: smithyClient._json,
574
- });
575
- };
576
- const se_Expressions = (input, context) => {
577
- return input
578
- .filter((e) => e != null)
579
- .map((entry) => {
580
- return se_Expression(entry);
581
- });
582
- };
583
- const se_QueryParameters = (input, context) => {
584
- return exports.QueryParameters.visit(input, {
585
- costAndUsage: (value) => ({ costAndUsage: se_CostAndUsageQuery(value) }),
586
- reservationCoverage: (value) => ({ reservationCoverage: se_ReservationCoverageQuery(value) }),
587
- reservationUtilization: (value) => ({ reservationUtilization: se_ReservationUtilizationQuery(value) }),
588
- savingsPlansCoverage: (value) => ({ savingsPlansCoverage: se_SavingsPlansCoverageQuery(value) }),
589
- savingsPlansUtilization: (value) => ({ savingsPlansUtilization: se_SavingsPlansUtilizationQuery(value) }),
590
- _: (name, value) => ({ [name]: value }),
591
- });
592
- };
593
- const se_ReservationCoverageQuery = (input, context) => {
594
- return smithyClient.take(input, {
595
- filter: (_) => se_Expression(_),
596
- granularity: [],
597
- groupBy: smithyClient._json,
598
- metrics: smithyClient._json,
599
- timeRange: smithyClient._json,
600
- });
601
- };
602
- const se_ReservationUtilizationQuery = (input, context) => {
603
- return smithyClient.take(input, {
604
- filter: (_) => se_Expression(_),
605
- granularity: [],
606
- groupBy: smithyClient._json,
607
- timeRange: smithyClient._json,
608
- });
609
- };
610
- const se_SavingsPlansCoverageQuery = (input, context) => {
611
- return smithyClient.take(input, {
612
- filter: (_) => se_Expression(_),
613
- granularity: [],
614
- groupBy: smithyClient._json,
615
- metrics: smithyClient._json,
616
- timeRange: smithyClient._json,
617
- });
618
- };
619
- const se_SavingsPlansUtilizationQuery = (input, context) => {
620
- return smithyClient.take(input, {
621
- filter: (_) => se_Expression(_),
622
- granularity: [],
623
- timeRange: smithyClient._json,
624
- });
625
- };
626
- const se_UpdateDashboardRequest = (input, context) => {
627
- return smithyClient.take(input, {
628
- arn: [],
629
- description: [],
630
- name: [],
631
- widgets: (_) => se_WidgetList(_),
632
- });
633
- };
634
- const se_Widget = (input, context) => {
635
- return smithyClient.take(input, {
636
- configs: (_) => se_WidgetConfigList(_),
637
- description: [],
638
- height: [],
639
- horizontalOffset: [],
640
- title: [],
641
- width: [],
642
- });
643
- };
644
- const se_WidgetConfig = (input, context) => {
645
- return smithyClient.take(input, {
646
- displayConfig: smithyClient._json,
647
- queryParameters: (_) => se_QueryParameters(_),
648
- });
649
- };
650
- const se_WidgetConfigList = (input, context) => {
651
- return input
652
- .filter((e) => e != null)
653
- .map((entry) => {
654
- return se_WidgetConfig(entry);
655
- });
656
- };
657
- const se_WidgetList = (input, context) => {
658
- return input
659
- .filter((e) => e != null)
660
- .map((entry) => {
661
- return se_Widget(entry);
662
- });
663
- };
664
- const de_CostAndUsageQuery = (output, context) => {
665
- return smithyClient.take(output, {
666
- filter: (_) => de_Expression(_),
667
- granularity: smithyClient.expectString,
668
- groupBy: smithyClient._json,
669
- metrics: smithyClient._json,
670
- timeRange: smithyClient._json,
671
- });
672
- };
673
- const de_DashboardReference = (output, context) => {
674
- return smithyClient.take(output, {
675
- arn: smithyClient.expectString,
676
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
677
- description: smithyClient.expectString,
678
- name: smithyClient.expectString,
679
- type: smithyClient.expectString,
680
- updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
681
- });
682
- };
683
- const de_DashboardReferenceList = (output, context) => {
684
- const retVal = (output || [])
685
- .filter((e) => e != null)
686
- .map((entry) => {
687
- return de_DashboardReference(entry);
688
- });
689
- return retVal;
690
- };
691
- const de_Expression = (output, context) => {
692
- return smithyClient.take(output, {
693
- and: (_) => de_Expressions(_),
694
- costCategories: smithyClient._json,
695
- dimensions: smithyClient._json,
696
- not: (_) => de_Expression(_),
697
- or: (_) => de_Expressions(_),
698
- tags: smithyClient._json,
699
- });
700
- };
701
- const de_Expressions = (output, context) => {
702
- const retVal = (output || [])
703
- .filter((e) => e != null)
704
- .map((entry) => {
705
- return de_Expression(entry);
706
- });
707
- return retVal;
708
- };
709
- const de_GetDashboardResponse = (output, context) => {
710
- return smithyClient.take(output, {
711
- arn: smithyClient.expectString,
712
- createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
713
- description: smithyClient.expectString,
714
- name: smithyClient.expectString,
715
- type: smithyClient.expectString,
716
- updatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
717
- widgets: (_) => de_WidgetList(_),
718
- });
719
- };
720
- const de_ListDashboardsResponse = (output, context) => {
721
- return smithyClient.take(output, {
722
- dashboards: (_) => de_DashboardReferenceList(_),
723
- nextToken: smithyClient.expectString,
724
- });
725
- };
726
- const de_QueryParameters = (output, context) => {
727
- if (output.costAndUsage != null) {
728
- return {
729
- costAndUsage: de_CostAndUsageQuery(output.costAndUsage),
730
- };
731
- }
732
- if (output.reservationCoverage != null) {
733
- return {
734
- reservationCoverage: de_ReservationCoverageQuery(output.reservationCoverage),
735
- };
736
- }
737
- if (output.reservationUtilization != null) {
738
- return {
739
- reservationUtilization: de_ReservationUtilizationQuery(output.reservationUtilization),
740
- };
741
- }
742
- if (output.savingsPlansCoverage != null) {
743
- return {
744
- savingsPlansCoverage: de_SavingsPlansCoverageQuery(output.savingsPlansCoverage),
745
- };
746
- }
747
- if (output.savingsPlansUtilization != null) {
748
- return {
749
- savingsPlansUtilization: de_SavingsPlansUtilizationQuery(output.savingsPlansUtilization),
750
- };
751
- }
752
- return { $unknown: Object.entries(output)[0] };
753
- };
754
- const de_ReservationCoverageQuery = (output, context) => {
755
- return smithyClient.take(output, {
756
- filter: (_) => de_Expression(_),
757
- granularity: smithyClient.expectString,
758
- groupBy: smithyClient._json,
759
- metrics: smithyClient._json,
760
- timeRange: smithyClient._json,
761
- });
762
- };
763
- const de_ReservationUtilizationQuery = (output, context) => {
764
- return smithyClient.take(output, {
765
- filter: (_) => de_Expression(_),
766
- granularity: smithyClient.expectString,
767
- groupBy: smithyClient._json,
768
- timeRange: smithyClient._json,
769
- });
770
- };
771
- const de_SavingsPlansCoverageQuery = (output, context) => {
772
- return smithyClient.take(output, {
773
- filter: (_) => de_Expression(_),
774
- granularity: smithyClient.expectString,
775
- groupBy: smithyClient._json,
776
- metrics: smithyClient._json,
777
- timeRange: smithyClient._json,
778
- });
779
- };
780
- const de_SavingsPlansUtilizationQuery = (output, context) => {
781
- return smithyClient.take(output, {
782
- filter: (_) => de_Expression(_),
783
- granularity: smithyClient.expectString,
784
- timeRange: smithyClient._json,
785
- });
786
- };
787
- const de_Widget = (output, context) => {
788
- return smithyClient.take(output, {
789
- configs: (_) => de_WidgetConfigList(_),
790
- description: smithyClient.expectString,
791
- height: smithyClient.expectInt32,
792
- horizontalOffset: smithyClient.expectInt32,
793
- title: smithyClient.expectString,
794
- width: smithyClient.expectInt32,
795
- });
796
- };
797
- const de_WidgetConfig = (output, context) => {
798
- return smithyClient.take(output, {
799
- displayConfig: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
800
- queryParameters: (_) => de_QueryParameters(core$1.awsExpectUnion(_)),
801
- });
802
- };
803
- const de_WidgetConfigList = (output, context) => {
804
- const retVal = (output || [])
805
- .filter((e) => e != null)
806
- .map((entry) => {
807
- return de_WidgetConfig(entry);
808
- });
809
- return retVal;
810
- };
811
- const de_WidgetList = (output, context) => {
812
- const retVal = (output || [])
813
- .filter((e) => e != null)
814
- .map((entry) => {
815
- return de_Widget(entry);
816
- });
817
- return retVal;
818
- };
819
- const deserializeMetadata = (output) => ({
820
- httpStatusCode: output.statusCode,
821
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
822
- extendedRequestId: output.headers["x-amz-id-2"],
823
- cfId: output.headers["x-amz-cf-id"],
824
- });
825
- const throwDefaultError = smithyClient.withBaseException(BCMDashboardsServiceException);
826
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
827
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
828
- const contents = {
829
- protocol,
830
- hostname,
831
- port,
832
- method: "POST",
833
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
834
- headers,
835
- };
836
- if (body !== undefined) {
837
- contents.body = body;
838
- }
839
- return new protocolHttp.HttpRequest(contents);
840
- };
841
- function sharedHeaders(operation) {
842
- return {
843
- "content-type": "application/x-amz-json-1.0",
844
- "x-amz-target": `AWSBCMDashboardsService.${operation}`,
845
- };
846
- }
290
+ const _ADE = "AccessDeniedException";
291
+ const _CAUQ = "CostAndUsageQuery";
292
+ const _CCV = "CostCategoryValues";
293
+ const _CD = "CreateDashboard";
294
+ const _CDR = "CreateDashboardRequest";
295
+ const _CDRr = "CreateDashboardResponse";
296
+ const _DC = "DisplayConfig";
297
+ const _DD = "DeleteDashboard";
298
+ const _DDR = "DeleteDashboardRequest";
299
+ const _DDRe = "DeleteDashboardResponse";
300
+ const _DR = "DashboardReference";
301
+ const _DRL = "DashboardReferenceList";
302
+ const _DTR = "DateTimeRange";
303
+ const _DTV = "DateTimeValue";
304
+ const _DV = "DimensionValues";
305
+ const _E = "Expression";
306
+ const _Ex = "Expressions";
307
+ const _GD = "GroupDefinition";
308
+ const _GDC = "GraphDisplayConfig";
309
+ const _GDCM = "GraphDisplayConfigMap";
310
+ const _GDR = "GetDashboardRequest";
311
+ const _GDRe = "GetDashboardResponse";
312
+ const _GDe = "GetDashboard";
313
+ const _GDr = "GroupDefinitions";
314
+ const _GRP = "GetResourcePolicy";
315
+ const _GRPR = "GetResourcePolicyRequest";
316
+ const _GRPRe = "GetResourcePolicyResponse";
317
+ const _ISE = "InternalServerException";
318
+ const _LD = "ListDashboards";
319
+ const _LDR = "ListDashboardsRequest";
320
+ const _LDRi = "ListDashboardsResponse";
321
+ const _LTFR = "ListTagsForResource";
322
+ const _LTFRR = "ListTagsForResourceRequest";
323
+ const _LTFRRi = "ListTagsForResourceResponse";
324
+ const _QP = "QueryParameters";
325
+ const _RCQ = "ReservationCoverageQuery";
326
+ const _RNFE = "ResourceNotFoundException";
327
+ const _RT = "ResourceTag";
328
+ const _RTL = "ResourceTagList";
329
+ const _RUQ = "ReservationUtilizationQuery";
330
+ const _SPCQ = "SavingsPlansCoverageQuery";
331
+ const _SPUQ = "SavingsPlansUtilizationQuery";
332
+ const _SQEE = "ServiceQuotaExceededException";
333
+ const _TDCS = "TableDisplayConfigStruct";
334
+ const _TE = "ThrottlingException";
335
+ const _TR = "TagResource";
336
+ const _TRR = "TagResourceRequest";
337
+ const _TRRa = "TagResourceResponse";
338
+ const _TV = "TagValues";
339
+ const _UD = "UpdateDashboard";
340
+ const _UDR = "UpdateDashboardRequest";
341
+ const _UDRp = "UpdateDashboardResponse";
342
+ const _UR = "UntagResource";
343
+ const _URR = "UntagResourceRequest";
344
+ const _URRn = "UntagResourceResponse";
345
+ const _VE = "ValidationException";
346
+ const _W = "Widget";
347
+ const _WC = "WidgetConfig";
348
+ const _WCL = "WidgetConfigList";
349
+ const _WL = "WidgetList";
350
+ const _a = "arn";
351
+ const _an = "and";
352
+ const _c = "client";
353
+ const _cA = "createdAt";
354
+ const _cAU = "costAndUsage";
355
+ const _cC = "costCategories";
356
+ const _co = "configs";
357
+ const _d = "description";
358
+ const _dC = "displayConfig";
359
+ const _da = "dashboards";
360
+ const _di = "dimensions";
361
+ const _e = "error";
362
+ const _eT = "endTime";
363
+ const _f = "filter";
364
+ const _g = "granularity";
365
+ const _gB = "groupBy";
366
+ const _gr = "graph";
367
+ const _h = "height";
368
+ const _hE = "httpError";
369
+ const _hO = "horizontalOffset";
370
+ const _k = "key";
371
+ const _m = "message";
372
+ const _mO = "matchOptions";
373
+ const _mR = "maxResults";
374
+ const _me = "metrics";
375
+ const _n = "name";
376
+ const _nT = "nextToken";
377
+ const _no = "not";
378
+ const _o = "or";
379
+ const _pD = "policyDocument";
380
+ const _qP = "queryParameters";
381
+ const _rA = "resourceArn";
382
+ const _rC = "reservationCoverage";
383
+ const _rT = "resourceTags";
384
+ const _rTK = "resourceTagKeys";
385
+ const _rU = "reservationUtilization";
386
+ const _s = "server";
387
+ const _sPC = "savingsPlansCoverage";
388
+ const _sPU = "savingsPlansUtilization";
389
+ const _sT = "startTime";
390
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.bcmdashboards";
391
+ const _t = "type";
392
+ const _tR = "timeRange";
393
+ const _ta = "tags";
394
+ const _tab = "table";
395
+ const _ti = "title";
396
+ const _uA = "updatedAt";
397
+ const _v = "values";
398
+ const _vT = "visualType";
399
+ const _va = "value";
400
+ const _w = "widgets";
401
+ const _wi = "width";
402
+ const n0 = "com.amazonaws.bcmdashboards";
403
+ var AccessDeniedException = [
404
+ -3,
405
+ n0,
406
+ _ADE,
407
+ {
408
+ [_e]: _c,
409
+ [_hE]: 403,
410
+ },
411
+ [_m],
412
+ [0],
413
+ ];
414
+ schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
415
+ var CostAndUsageQuery = [
416
+ 3,
417
+ n0,
418
+ _CAUQ,
419
+ 0,
420
+ [_me, _tR, _g, _gB, _f],
421
+ [64 | 0, () => DateTimeRange, 0, () => GroupDefinitions, () => Expression],
422
+ ];
423
+ var CostCategoryValues = [3, n0, _CCV, 0, [_k, _v, _mO], [0, 64 | 0, 64 | 0]];
424
+ var CreateDashboardRequest = [
425
+ 3,
426
+ n0,
427
+ _CDR,
428
+ 0,
429
+ [_n, _d, _w, _rT],
430
+ [0, 0, () => WidgetList, () => ResourceTagList],
431
+ ];
432
+ var CreateDashboardResponse = [3, n0, _CDRr, 0, [_a], [0]];
433
+ var DashboardReference = [3, n0, _DR, 0, [_a, _n, _d, _t, _cA, _uA], [0, 0, 0, 0, 4, 4]];
434
+ var DateTimeRange = [
435
+ 3,
436
+ n0,
437
+ _DTR,
438
+ 0,
439
+ [_sT, _eT],
440
+ [() => DateTimeValue, () => DateTimeValue],
441
+ ];
442
+ var DateTimeValue = [3, n0, _DTV, 0, [_t, _va], [0, 0]];
443
+ var DeleteDashboardRequest = [3, n0, _DDR, 0, [_a], [0]];
444
+ var DeleteDashboardResponse = [3, n0, _DDRe, 0, [_a], [0]];
445
+ var DimensionValues = [3, n0, _DV, 0, [_k, _v, _mO], [0, 64 | 0, 64 | 0]];
446
+ var Expression = [
447
+ 3,
448
+ n0,
449
+ _E,
450
+ 0,
451
+ [_o, _an, _no, _di, _ta, _cC],
452
+ [
453
+ () => Expressions,
454
+ () => Expressions,
455
+ () => Expression,
456
+ () => DimensionValues,
457
+ () => TagValues,
458
+ () => CostCategoryValues,
459
+ ],
460
+ ];
461
+ var GetDashboardRequest = [3, n0, _GDR, 0, [_a], [0]];
462
+ var GetDashboardResponse = [
463
+ 3,
464
+ n0,
465
+ _GDRe,
466
+ 0,
467
+ [_a, _n, _d, _t, _w, _cA, _uA],
468
+ [0, 0, 0, 0, () => WidgetList, 4, 4],
469
+ ];
470
+ var GetResourcePolicyRequest = [3, n0, _GRPR, 0, [_rA], [0]];
471
+ var GetResourcePolicyResponse = [3, n0, _GRPRe, 0, [_rA, _pD], [0, 0]];
472
+ var GraphDisplayConfig = [3, n0, _GDC, 0, [_vT], [0]];
473
+ var GroupDefinition = [3, n0, _GD, 0, [_k, _t], [0, 0]];
474
+ var InternalServerException = [
475
+ -3,
476
+ n0,
477
+ _ISE,
478
+ {
479
+ [_e]: _s,
480
+ [_hE]: 500,
481
+ },
482
+ [_m],
483
+ [0],
484
+ ];
485
+ schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
486
+ var ListDashboardsRequest = [3, n0, _LDR, 0, [_mR, _nT], [1, 0]];
487
+ var ListDashboardsResponse = [
488
+ 3,
489
+ n0,
490
+ _LDRi,
491
+ 0,
492
+ [_da, _nT],
493
+ [() => DashboardReferenceList, 0],
494
+ ];
495
+ var ListTagsForResourceRequest = [3, n0, _LTFRR, 0, [_rA], [0]];
496
+ var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_rT], [() => ResourceTagList]];
497
+ var ReservationCoverageQuery = [
498
+ 3,
499
+ n0,
500
+ _RCQ,
501
+ 0,
502
+ [_tR, _gB, _g, _f, _me],
503
+ [() => DateTimeRange, () => GroupDefinitions, 0, () => Expression, 64 | 0],
504
+ ];
505
+ var ReservationUtilizationQuery = [
506
+ 3,
507
+ n0,
508
+ _RUQ,
509
+ 0,
510
+ [_tR, _gB, _g, _f],
511
+ [() => DateTimeRange, () => GroupDefinitions, 0, () => Expression],
512
+ ];
513
+ var ResourceNotFoundException = [
514
+ -3,
515
+ n0,
516
+ _RNFE,
517
+ {
518
+ [_e]: _c,
519
+ [_hE]: 404,
520
+ },
521
+ [_m],
522
+ [0],
523
+ ];
524
+ schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
525
+ var ResourceTag = [3, n0, _RT, 0, [_k, _va], [0, 0]];
526
+ var SavingsPlansCoverageQuery = [
527
+ 3,
528
+ n0,
529
+ _SPCQ,
530
+ 0,
531
+ [_tR, _me, _g, _gB, _f],
532
+ [() => DateTimeRange, 64 | 0, 0, () => GroupDefinitions, () => Expression],
533
+ ];
534
+ var SavingsPlansUtilizationQuery = [
535
+ 3,
536
+ n0,
537
+ _SPUQ,
538
+ 0,
539
+ [_tR, _g, _f],
540
+ [() => DateTimeRange, 0, () => Expression],
541
+ ];
542
+ var ServiceQuotaExceededException = [
543
+ -3,
544
+ n0,
545
+ _SQEE,
546
+ {
547
+ [_e]: _c,
548
+ [_hE]: 402,
549
+ },
550
+ [_m],
551
+ [0],
552
+ ];
553
+ schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
554
+ var TableDisplayConfigStruct = [3, n0, _TDCS, 0, [], []];
555
+ var TagResourceRequest = [3, n0, _TRR, 0, [_rA, _rT], [0, () => ResourceTagList]];
556
+ var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
557
+ var TagValues = [3, n0, _TV, 0, [_k, _v, _mO], [0, 64 | 0, 64 | 0]];
558
+ var ThrottlingException = [
559
+ -3,
560
+ n0,
561
+ _TE,
562
+ {
563
+ [_e]: _c,
564
+ [_hE]: 429,
565
+ },
566
+ [_m],
567
+ [0],
568
+ ];
569
+ schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
570
+ var UntagResourceRequest = [3, n0, _URR, 0, [_rA, _rTK], [0, 64 | 0]];
571
+ var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
572
+ var UpdateDashboardRequest = [
573
+ 3,
574
+ n0,
575
+ _UDR,
576
+ 0,
577
+ [_a, _n, _d, _w],
578
+ [0, 0, 0, () => WidgetList],
579
+ ];
580
+ var UpdateDashboardResponse = [3, n0, _UDRp, 0, [_a], [0]];
581
+ var ValidationException = [
582
+ -3,
583
+ n0,
584
+ _VE,
585
+ {
586
+ [_e]: _c,
587
+ [_hE]: 400,
588
+ },
589
+ [_m],
590
+ [0],
591
+ ];
592
+ schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
593
+ var Widget = [
594
+ 3,
595
+ n0,
596
+ _W,
597
+ 0,
598
+ [_ti, _d, _wi, _h, _hO, _co],
599
+ [0, 0, 1, 1, 1, () => WidgetConfigList],
600
+ ];
601
+ var WidgetConfig = [
602
+ 3,
603
+ n0,
604
+ _WC,
605
+ 0,
606
+ [_qP, _dC],
607
+ [() => QueryParameters, () => DisplayConfig],
608
+ ];
609
+ var BCMDashboardsServiceException = [-3, _sm, "BCMDashboardsServiceException", 0, [], []];
610
+ schema.TypeRegistry.for(_sm).registerError(BCMDashboardsServiceException, BCMDashboardsServiceException$1);
611
+ var DashboardReferenceList = [1, n0, _DRL, 0, () => DashboardReference];
612
+ var Expressions = [1, n0, _Ex, 0, () => Expression];
613
+ var GroupDefinitions = [1, n0, _GDr, 0, () => GroupDefinition];
614
+ var ResourceTagList = [1, n0, _RTL, 0, () => ResourceTag];
615
+ var WidgetConfigList = [1, n0, _WCL, 0, () => WidgetConfig];
616
+ var WidgetList = [1, n0, _WL, 0, () => Widget];
617
+ var GraphDisplayConfigMap = [2, n0, _GDCM, 0, 0, () => GraphDisplayConfig];
618
+ var DisplayConfig = [
619
+ 3,
620
+ n0,
621
+ _DC,
622
+ 0,
623
+ [_gr, _tab],
624
+ [() => GraphDisplayConfigMap, () => TableDisplayConfigStruct],
625
+ ];
626
+ var QueryParameters = [
627
+ 3,
628
+ n0,
629
+ _QP,
630
+ 0,
631
+ [_cAU, _sPC, _sPU, _rC, _rU],
632
+ [
633
+ () => CostAndUsageQuery,
634
+ () => SavingsPlansCoverageQuery,
635
+ () => SavingsPlansUtilizationQuery,
636
+ () => ReservationCoverageQuery,
637
+ () => ReservationUtilizationQuery,
638
+ ],
639
+ ];
640
+ var CreateDashboard = [
641
+ 9,
642
+ n0,
643
+ _CD,
644
+ 0,
645
+ () => CreateDashboardRequest,
646
+ () => CreateDashboardResponse,
647
+ ];
648
+ var DeleteDashboard = [
649
+ 9,
650
+ n0,
651
+ _DD,
652
+ 0,
653
+ () => DeleteDashboardRequest,
654
+ () => DeleteDashboardResponse,
655
+ ];
656
+ var GetDashboard = [
657
+ 9,
658
+ n0,
659
+ _GDe,
660
+ 0,
661
+ () => GetDashboardRequest,
662
+ () => GetDashboardResponse,
663
+ ];
664
+ var GetResourcePolicy = [
665
+ 9,
666
+ n0,
667
+ _GRP,
668
+ 0,
669
+ () => GetResourcePolicyRequest,
670
+ () => GetResourcePolicyResponse,
671
+ ];
672
+ var ListDashboards = [
673
+ 9,
674
+ n0,
675
+ _LD,
676
+ 0,
677
+ () => ListDashboardsRequest,
678
+ () => ListDashboardsResponse,
679
+ ];
680
+ var ListTagsForResource = [
681
+ 9,
682
+ n0,
683
+ _LTFR,
684
+ 0,
685
+ () => ListTagsForResourceRequest,
686
+ () => ListTagsForResourceResponse,
687
+ ];
688
+ var TagResource = [9, n0, _TR, 0, () => TagResourceRequest, () => TagResourceResponse];
689
+ var UntagResource = [
690
+ 9,
691
+ n0,
692
+ _UR,
693
+ 0,
694
+ () => UntagResourceRequest,
695
+ () => UntagResourceResponse,
696
+ ];
697
+ var UpdateDashboard = [
698
+ 9,
699
+ n0,
700
+ _UD,
701
+ 0,
702
+ () => UpdateDashboardRequest,
703
+ () => UpdateDashboardResponse,
704
+ ];
847
705
 
848
706
  class CreateDashboardCommand extends smithyClient.Command
849
707
  .classBuilder()
850
708
  .ep(commonParams)
851
709
  .m(function (Command, cs, config, o) {
852
- return [
853
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
854
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
855
- ];
710
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
856
711
  })
857
712
  .s("AWSBCMDashboardsService", "CreateDashboard", {})
858
713
  .n("BCMDashboardsClient", "CreateDashboardCommand")
859
- .f(void 0, void 0)
860
- .ser(se_CreateDashboardCommand)
861
- .de(de_CreateDashboardCommand)
714
+ .sc(CreateDashboard)
862
715
  .build() {
863
716
  }
864
717
 
@@ -866,16 +719,11 @@ class DeleteDashboardCommand extends smithyClient.Command
866
719
  .classBuilder()
867
720
  .ep(commonParams)
868
721
  .m(function (Command, cs, config, o) {
869
- return [
870
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
871
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
872
- ];
722
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
873
723
  })
874
724
  .s("AWSBCMDashboardsService", "DeleteDashboard", {})
875
725
  .n("BCMDashboardsClient", "DeleteDashboardCommand")
876
- .f(void 0, void 0)
877
- .ser(se_DeleteDashboardCommand)
878
- .de(de_DeleteDashboardCommand)
726
+ .sc(DeleteDashboard)
879
727
  .build() {
880
728
  }
881
729
 
@@ -883,16 +731,11 @@ class GetDashboardCommand extends smithyClient.Command
883
731
  .classBuilder()
884
732
  .ep(commonParams)
885
733
  .m(function (Command, cs, config, o) {
886
- return [
887
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
888
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
889
- ];
734
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
890
735
  })
891
736
  .s("AWSBCMDashboardsService", "GetDashboard", {})
892
737
  .n("BCMDashboardsClient", "GetDashboardCommand")
893
- .f(void 0, void 0)
894
- .ser(se_GetDashboardCommand)
895
- .de(de_GetDashboardCommand)
738
+ .sc(GetDashboard)
896
739
  .build() {
897
740
  }
898
741
 
@@ -900,16 +743,11 @@ class GetResourcePolicyCommand extends smithyClient.Command
900
743
  .classBuilder()
901
744
  .ep(commonParams)
902
745
  .m(function (Command, cs, config, o) {
903
- return [
904
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
905
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
906
- ];
746
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
907
747
  })
908
748
  .s("AWSBCMDashboardsService", "GetResourcePolicy", {})
909
749
  .n("BCMDashboardsClient", "GetResourcePolicyCommand")
910
- .f(void 0, void 0)
911
- .ser(se_GetResourcePolicyCommand)
912
- .de(de_GetResourcePolicyCommand)
750
+ .sc(GetResourcePolicy)
913
751
  .build() {
914
752
  }
915
753
 
@@ -917,16 +755,11 @@ class ListDashboardsCommand extends smithyClient.Command
917
755
  .classBuilder()
918
756
  .ep(commonParams)
919
757
  .m(function (Command, cs, config, o) {
920
- return [
921
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
922
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
923
- ];
758
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
924
759
  })
925
760
  .s("AWSBCMDashboardsService", "ListDashboards", {})
926
761
  .n("BCMDashboardsClient", "ListDashboardsCommand")
927
- .f(void 0, void 0)
928
- .ser(se_ListDashboardsCommand)
929
- .de(de_ListDashboardsCommand)
762
+ .sc(ListDashboards)
930
763
  .build() {
931
764
  }
932
765
 
@@ -934,16 +767,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
934
767
  .classBuilder()
935
768
  .ep(commonParams)
936
769
  .m(function (Command, cs, config, o) {
937
- return [
938
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
939
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
940
- ];
770
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
941
771
  })
942
772
  .s("AWSBCMDashboardsService", "ListTagsForResource", {})
943
773
  .n("BCMDashboardsClient", "ListTagsForResourceCommand")
944
- .f(void 0, void 0)
945
- .ser(se_ListTagsForResourceCommand)
946
- .de(de_ListTagsForResourceCommand)
774
+ .sc(ListTagsForResource)
947
775
  .build() {
948
776
  }
949
777
 
@@ -951,16 +779,11 @@ class TagResourceCommand extends smithyClient.Command
951
779
  .classBuilder()
952
780
  .ep(commonParams)
953
781
  .m(function (Command, cs, config, o) {
954
- return [
955
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
956
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
957
- ];
782
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
958
783
  })
959
784
  .s("AWSBCMDashboardsService", "TagResource", {})
960
785
  .n("BCMDashboardsClient", "TagResourceCommand")
961
- .f(void 0, void 0)
962
- .ser(se_TagResourceCommand)
963
- .de(de_TagResourceCommand)
786
+ .sc(TagResource)
964
787
  .build() {
965
788
  }
966
789
 
@@ -968,16 +791,11 @@ class UntagResourceCommand extends smithyClient.Command
968
791
  .classBuilder()
969
792
  .ep(commonParams)
970
793
  .m(function (Command, cs, config, o) {
971
- return [
972
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
973
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
974
- ];
794
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
975
795
  })
976
796
  .s("AWSBCMDashboardsService", "UntagResource", {})
977
797
  .n("BCMDashboardsClient", "UntagResourceCommand")
978
- .f(void 0, void 0)
979
- .ser(se_UntagResourceCommand)
980
- .de(de_UntagResourceCommand)
798
+ .sc(UntagResource)
981
799
  .build() {
982
800
  }
983
801
 
@@ -985,16 +803,11 @@ class UpdateDashboardCommand extends smithyClient.Command
985
803
  .classBuilder()
986
804
  .ep(commonParams)
987
805
  .m(function (Command, cs, config, o) {
988
- return [
989
- middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
990
- middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
991
- ];
806
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
992
807
  })
993
808
  .s("AWSBCMDashboardsService", "UpdateDashboard", {})
994
809
  .n("BCMDashboardsClient", "UpdateDashboardCommand")
995
- .f(void 0, void 0)
996
- .ser(se_UpdateDashboardCommand)
997
- .de(de_UpdateDashboardCommand)
810
+ .sc(UpdateDashboard)
998
811
  .build() {
999
812
  }
1000
813
 
@@ -1023,10 +836,10 @@ Object.defineProperty(exports, "__Client", {
1023
836
  enumerable: true,
1024
837
  get: function () { return smithyClient.Client; }
1025
838
  });
1026
- exports.AccessDeniedException = AccessDeniedException;
839
+ exports.AccessDeniedException = AccessDeniedException$1;
1027
840
  exports.BCMDashboards = BCMDashboards;
1028
841
  exports.BCMDashboardsClient = BCMDashboardsClient;
1029
- exports.BCMDashboardsServiceException = BCMDashboardsServiceException;
842
+ exports.BCMDashboardsServiceException = BCMDashboardsServiceException$1;
1030
843
  exports.CreateDashboardCommand = CreateDashboardCommand;
1031
844
  exports.DashboardType = DashboardType;
1032
845
  exports.DateTimeType = DateTimeType;
@@ -1036,17 +849,17 @@ exports.GetDashboardCommand = GetDashboardCommand;
1036
849
  exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
1037
850
  exports.Granularity = Granularity;
1038
851
  exports.GroupDefinitionType = GroupDefinitionType;
1039
- exports.InternalServerException = InternalServerException;
852
+ exports.InternalServerException = InternalServerException$1;
1040
853
  exports.ListDashboardsCommand = ListDashboardsCommand;
1041
854
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1042
855
  exports.MatchOption = MatchOption;
1043
856
  exports.MetricName = MetricName;
1044
- exports.ResourceNotFoundException = ResourceNotFoundException;
1045
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
857
+ exports.ResourceNotFoundException = ResourceNotFoundException$1;
858
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
1046
859
  exports.TagResourceCommand = TagResourceCommand;
1047
- exports.ThrottlingException = ThrottlingException;
860
+ exports.ThrottlingException = ThrottlingException$1;
1048
861
  exports.UntagResourceCommand = UntagResourceCommand;
1049
862
  exports.UpdateDashboardCommand = UpdateDashboardCommand;
1050
- exports.ValidationException = ValidationException;
863
+ exports.ValidationException = ValidationException$1;
1051
864
  exports.VisualType = VisualType;
1052
865
  exports.paginateListDashboards = paginateListDashboards;