@aws-sdk/client-quicksight 3.42.0 → 3.47.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 (46) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist-cjs/endpoints.js +1 -0
  3. package/dist-cjs/models/models_0.js +21 -96
  4. package/dist-cjs/models/models_1.js +17 -33
  5. package/dist-cjs/protocols/Aws_restJson1.js +80 -0
  6. package/dist-cjs/runtimeConfig.browser.js +7 -2
  7. package/dist-cjs/runtimeConfig.js +9 -3
  8. package/dist-es/endpoints.js +1 -0
  9. package/dist-es/models/models_0.js +13 -64
  10. package/dist-es/models/models_1.js +12 -20
  11. package/dist-es/protocols/Aws_restJson1.js +189 -115
  12. package/dist-es/runtimeConfig.browser.js +12 -3
  13. package/dist-es/runtimeConfig.js +13 -6
  14. package/dist-types/QuickSight.d.ts +47 -37
  15. package/dist-types/QuickSightClient.d.ts +5 -1
  16. package/dist-types/commands/CreateAccountCustomizationCommand.d.ts +7 -5
  17. package/dist-types/commands/CreateDashboardCommand.d.ts +5 -3
  18. package/dist-types/commands/CreateDataSetCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateIAMPolicyAssignmentCommand.d.ts +1 -1
  20. package/dist-types/commands/CreateIngestionCommand.d.ts +4 -1
  21. package/dist-types/commands/DeleteIAMPolicyAssignmentCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeAccountCustomizationCommand.d.ts +4 -4
  23. package/dist-types/commands/DescribeDataSetCommand.d.ts +1 -1
  24. package/dist-types/commands/DescribeIAMPolicyAssignmentCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeIpRestrictionCommand.d.ts +1 -1
  26. package/dist-types/commands/GetSessionEmbedUrlCommand.d.ts +4 -3
  27. package/dist-types/commands/ListIAMPolicyAssignmentsCommand.d.ts +1 -1
  28. package/dist-types/commands/ListIAMPolicyAssignmentsForUserCommand.d.ts +1 -1
  29. package/dist-types/commands/RegisterUserCommand.d.ts +1 -2
  30. package/dist-types/commands/TagResourceCommand.d.ts +8 -7
  31. package/dist-types/commands/UpdateDashboardCommand.d.ts +3 -1
  32. package/dist-types/commands/UpdateDataSetCommand.d.ts +1 -1
  33. package/dist-types/commands/UpdateIAMPolicyAssignmentCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateIpRestrictionCommand.d.ts +1 -1
  35. package/dist-types/models/models_0.d.ts +185 -250
  36. package/dist-types/models/models_1.d.ts +213 -113
  37. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  38. package/dist-types/runtimeConfig.d.ts +4 -3
  39. package/dist-types/runtimeConfig.native.d.ts +1 -0
  40. package/dist-types/ts3.4/QuickSightClient.d.ts +3 -1
  41. package/dist-types/ts3.4/models/models_0.d.ts +76 -87
  42. package/dist-types/ts3.4/models/models_1.d.ts +43 -21
  43. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  44. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  45. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  46. package/package.json +38 -45
@@ -4386,9 +4386,15 @@ export var serializeAws_restJson1UpdateDashboardPermissionsCommand = function (i
4386
4386
  else {
4387
4387
  throw new Error("No value provided for input HTTP label: DashboardId.");
4388
4388
  }
4389
- body = JSON.stringify(__assign(__assign({}, (input.GrantPermissions !== undefined &&
4389
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.GrantLinkPermissions !== undefined &&
4390
+ input.GrantLinkPermissions !== null && {
4391
+ GrantLinkPermissions: serializeAws_restJson1UpdateLinkPermissionList(input.GrantLinkPermissions, context),
4392
+ })), (input.GrantPermissions !== undefined &&
4390
4393
  input.GrantPermissions !== null && {
4391
4394
  GrantPermissions: serializeAws_restJson1UpdateResourcePermissionList(input.GrantPermissions, context),
4395
+ })), (input.RevokeLinkPermissions !== undefined &&
4396
+ input.RevokeLinkPermissions !== null && {
4397
+ RevokeLinkPermissions: serializeAws_restJson1UpdateLinkPermissionList(input.RevokeLinkPermissions, context),
4392
4398
  })), (input.RevokePermissions !== undefined &&
4393
4399
  input.RevokePermissions !== null && {
4394
4400
  RevokePermissions: serializeAws_restJson1UpdateResourcePermissionList(input.RevokePermissions, context),
@@ -5462,84 +5468,92 @@ export var deserializeAws_restJson1CreateAccountCustomizationCommand = function
5462
5468
  });
5463
5469
  }); };
5464
5470
  var deserializeAws_restJson1CreateAccountCustomizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5465
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
5466
- var _k;
5467
- return __generator(this, function (_l) {
5468
- switch (_l.label) {
5471
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, _k, parsedBody, message;
5472
+ var _l;
5473
+ return __generator(this, function (_m) {
5474
+ switch (_m.label) {
5469
5475
  case 0:
5470
5476
  _a = [__assign({}, output)];
5471
- _k = {};
5477
+ _l = {};
5472
5478
  return [4, parseBody(output.body, context)];
5473
5479
  case 1:
5474
- parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
5480
+ parsedOutput = __assign.apply(void 0, _a.concat([(_l.body = _m.sent(), _l)]));
5475
5481
  errorCode = "UnknownError";
5476
5482
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5477
5483
  _b = errorCode;
5478
5484
  switch (_b) {
5479
5485
  case "AccessDeniedException": return [3, 2];
5480
5486
  case "com.amazonaws.quicksight#AccessDeniedException": return [3, 2];
5481
- case "InternalFailureException": return [3, 4];
5482
- case "com.amazonaws.quicksight#InternalFailureException": return [3, 4];
5483
- case "InvalidParameterValueException": return [3, 6];
5484
- case "com.amazonaws.quicksight#InvalidParameterValueException": return [3, 6];
5485
- case "ResourceExistsException": return [3, 8];
5486
- case "com.amazonaws.quicksight#ResourceExistsException": return [3, 8];
5487
- case "ResourceNotFoundException": return [3, 10];
5488
- case "com.amazonaws.quicksight#ResourceNotFoundException": return [3, 10];
5489
- case "ResourceUnavailableException": return [3, 12];
5490
- case "com.amazonaws.quicksight#ResourceUnavailableException": return [3, 12];
5491
- case "ThrottlingException": return [3, 14];
5492
- case "com.amazonaws.quicksight#ThrottlingException": return [3, 14];
5487
+ case "ConflictException": return [3, 4];
5488
+ case "com.amazonaws.quicksight#ConflictException": return [3, 4];
5489
+ case "InternalFailureException": return [3, 6];
5490
+ case "com.amazonaws.quicksight#InternalFailureException": return [3, 6];
5491
+ case "InvalidParameterValueException": return [3, 8];
5492
+ case "com.amazonaws.quicksight#InvalidParameterValueException": return [3, 8];
5493
+ case "ResourceExistsException": return [3, 10];
5494
+ case "com.amazonaws.quicksight#ResourceExistsException": return [3, 10];
5495
+ case "ResourceNotFoundException": return [3, 12];
5496
+ case "com.amazonaws.quicksight#ResourceNotFoundException": return [3, 12];
5497
+ case "ResourceUnavailableException": return [3, 14];
5498
+ case "com.amazonaws.quicksight#ResourceUnavailableException": return [3, 14];
5499
+ case "ThrottlingException": return [3, 16];
5500
+ case "com.amazonaws.quicksight#ThrottlingException": return [3, 16];
5493
5501
  }
5494
- return [3, 16];
5502
+ return [3, 18];
5495
5503
  case 2:
5496
5504
  _c = [{}];
5497
5505
  return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
5498
5506
  case 3:
5499
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5500
- return [3, 17];
5507
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5508
+ return [3, 19];
5501
5509
  case 4:
5502
5510
  _d = [{}];
5503
- return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
5511
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
5504
5512
  case 5:
5505
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5506
- return [3, 17];
5513
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5514
+ return [3, 19];
5507
5515
  case 6:
5508
5516
  _e = [{}];
5509
- return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
5517
+ return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
5510
5518
  case 7:
5511
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5512
- return [3, 17];
5519
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5520
+ return [3, 19];
5513
5521
  case 8:
5514
5522
  _f = [{}];
5515
- return [4, deserializeAws_restJson1ResourceExistsExceptionResponse(parsedOutput, context)];
5523
+ return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
5516
5524
  case 9:
5517
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5518
- return [3, 17];
5525
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5526
+ return [3, 19];
5519
5527
  case 10:
5520
5528
  _g = [{}];
5521
- return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5529
+ return [4, deserializeAws_restJson1ResourceExistsExceptionResponse(parsedOutput, context)];
5522
5530
  case 11:
5523
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5524
- return [3, 17];
5531
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5532
+ return [3, 19];
5525
5533
  case 12:
5526
5534
  _h = [{}];
5527
- return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
5535
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5528
5536
  case 13:
5529
- response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5530
- return [3, 17];
5537
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5538
+ return [3, 19];
5531
5539
  case 14:
5532
5540
  _j = [{}];
5533
- return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
5541
+ return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
5534
5542
  case 15:
5535
- response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5536
- return [3, 17];
5543
+ response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5544
+ return [3, 19];
5537
5545
  case 16:
5546
+ _k = [{}];
5547
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
5548
+ case 17:
5549
+ response = __assign.apply(void 0, [__assign.apply(void 0, _k.concat([(_m.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
5550
+ return [3, 19];
5551
+ case 18:
5538
5552
  parsedBody = parsedOutput.body;
5539
5553
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
5540
5554
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
5541
- _l.label = 17;
5542
- case 17:
5555
+ _m.label = 19;
5556
+ case 19:
5543
5557
  message = response.message || response.Message || errorCode;
5544
5558
  response.message = message;
5545
5559
  delete response.Message;
@@ -7574,76 +7588,84 @@ export var deserializeAws_restJson1DeleteAccountCustomizationCommand = function
7574
7588
  });
7575
7589
  }); };
7576
7590
  var deserializeAws_restJson1DeleteAccountCustomizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
7577
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
7578
- var _j;
7579
- return __generator(this, function (_k) {
7580
- switch (_k.label) {
7591
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
7592
+ var _k;
7593
+ return __generator(this, function (_l) {
7594
+ switch (_l.label) {
7581
7595
  case 0:
7582
7596
  _a = [__assign({}, output)];
7583
- _j = {};
7597
+ _k = {};
7584
7598
  return [4, parseBody(output.body, context)];
7585
7599
  case 1:
7586
- parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
7600
+ parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
7587
7601
  errorCode = "UnknownError";
7588
7602
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7589
7603
  _b = errorCode;
7590
7604
  switch (_b) {
7591
7605
  case "AccessDeniedException": return [3, 2];
7592
7606
  case "com.amazonaws.quicksight#AccessDeniedException": return [3, 2];
7593
- case "InternalFailureException": return [3, 4];
7594
- case "com.amazonaws.quicksight#InternalFailureException": return [3, 4];
7595
- case "InvalidParameterValueException": return [3, 6];
7596
- case "com.amazonaws.quicksight#InvalidParameterValueException": return [3, 6];
7597
- case "ResourceNotFoundException": return [3, 8];
7598
- case "com.amazonaws.quicksight#ResourceNotFoundException": return [3, 8];
7599
- case "ResourceUnavailableException": return [3, 10];
7600
- case "com.amazonaws.quicksight#ResourceUnavailableException": return [3, 10];
7601
- case "ThrottlingException": return [3, 12];
7602
- case "com.amazonaws.quicksight#ThrottlingException": return [3, 12];
7607
+ case "ConflictException": return [3, 4];
7608
+ case "com.amazonaws.quicksight#ConflictException": return [3, 4];
7609
+ case "InternalFailureException": return [3, 6];
7610
+ case "com.amazonaws.quicksight#InternalFailureException": return [3, 6];
7611
+ case "InvalidParameterValueException": return [3, 8];
7612
+ case "com.amazonaws.quicksight#InvalidParameterValueException": return [3, 8];
7613
+ case "ResourceNotFoundException": return [3, 10];
7614
+ case "com.amazonaws.quicksight#ResourceNotFoundException": return [3, 10];
7615
+ case "ResourceUnavailableException": return [3, 12];
7616
+ case "com.amazonaws.quicksight#ResourceUnavailableException": return [3, 12];
7617
+ case "ThrottlingException": return [3, 14];
7618
+ case "com.amazonaws.quicksight#ThrottlingException": return [3, 14];
7603
7619
  }
7604
- return [3, 14];
7620
+ return [3, 16];
7605
7621
  case 2:
7606
7622
  _c = [{}];
7607
7623
  return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
7608
7624
  case 3:
7609
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7610
- return [3, 15];
7625
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7626
+ return [3, 17];
7611
7627
  case 4:
7612
7628
  _d = [{}];
7613
- return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
7629
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
7614
7630
  case 5:
7615
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7616
- return [3, 15];
7631
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7632
+ return [3, 17];
7617
7633
  case 6:
7618
7634
  _e = [{}];
7619
- return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
7635
+ return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
7620
7636
  case 7:
7621
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7622
- return [3, 15];
7637
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7638
+ return [3, 17];
7623
7639
  case 8:
7624
7640
  _f = [{}];
7625
- return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
7641
+ return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
7626
7642
  case 9:
7627
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7628
- return [3, 15];
7643
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7644
+ return [3, 17];
7629
7645
  case 10:
7630
7646
  _g = [{}];
7631
- return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
7647
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
7632
7648
  case 11:
7633
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7634
- return [3, 15];
7649
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7650
+ return [3, 17];
7635
7651
  case 12:
7636
7652
  _h = [{}];
7637
- return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
7653
+ return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
7638
7654
  case 13:
7639
- response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7640
- return [3, 15];
7655
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7656
+ return [3, 17];
7641
7657
  case 14:
7658
+ _j = [{}];
7659
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
7660
+ case 15:
7661
+ response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
7662
+ return [3, 17];
7663
+ case 16:
7642
7664
  parsedBody = parsedOutput.body;
7643
7665
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
7644
7666
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
7645
- _k.label = 15;
7646
- case 15:
7667
+ _l.label = 17;
7668
+ case 17:
7647
7669
  message = response.message || response.Message || errorCode;
7648
7670
  response.message = message;
7649
7671
  delete response.Message;
@@ -10065,6 +10087,7 @@ export var deserializeAws_restJson1DescribeDashboardPermissionsCommand = functio
10065
10087
  $metadata: deserializeMetadata(output),
10066
10088
  DashboardArn: undefined,
10067
10089
  DashboardId: undefined,
10090
+ LinkSharingConfiguration: undefined,
10068
10091
  Permissions: undefined,
10069
10092
  RequestId: undefined,
10070
10093
  Status: undefined,
@@ -10080,6 +10103,9 @@ export var deserializeAws_restJson1DescribeDashboardPermissionsCommand = functio
10080
10103
  if (data.DashboardId !== undefined && data.DashboardId !== null) {
10081
10104
  contents.DashboardId = __expectString(data.DashboardId);
10082
10105
  }
10106
+ if (data.LinkSharingConfiguration !== undefined && data.LinkSharingConfiguration !== null) {
10107
+ contents.LinkSharingConfiguration = deserializeAws_restJson1LinkSharingConfiguration(data.LinkSharingConfiguration, context);
10108
+ }
10083
10109
  if (data.Permissions !== undefined && data.Permissions !== null) {
10084
10110
  contents.Permissions = deserializeAws_restJson1ResourcePermissionList(data.Permissions, context);
10085
10111
  }
@@ -16264,76 +16290,84 @@ export var deserializeAws_restJson1UpdateAccountCustomizationCommand = function
16264
16290
  });
16265
16291
  }); };
16266
16292
  var deserializeAws_restJson1UpdateAccountCustomizationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
16267
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
16268
- var _j;
16269
- return __generator(this, function (_k) {
16270
- switch (_k.label) {
16293
+ var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, _j, parsedBody, message;
16294
+ var _k;
16295
+ return __generator(this, function (_l) {
16296
+ switch (_l.label) {
16271
16297
  case 0:
16272
16298
  _a = [__assign({}, output)];
16273
- _j = {};
16299
+ _k = {};
16274
16300
  return [4, parseBody(output.body, context)];
16275
16301
  case 1:
16276
- parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
16302
+ parsedOutput = __assign.apply(void 0, _a.concat([(_k.body = _l.sent(), _k)]));
16277
16303
  errorCode = "UnknownError";
16278
16304
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
16279
16305
  _b = errorCode;
16280
16306
  switch (_b) {
16281
16307
  case "AccessDeniedException": return [3, 2];
16282
16308
  case "com.amazonaws.quicksight#AccessDeniedException": return [3, 2];
16283
- case "InternalFailureException": return [3, 4];
16284
- case "com.amazonaws.quicksight#InternalFailureException": return [3, 4];
16285
- case "InvalidParameterValueException": return [3, 6];
16286
- case "com.amazonaws.quicksight#InvalidParameterValueException": return [3, 6];
16287
- case "ResourceNotFoundException": return [3, 8];
16288
- case "com.amazonaws.quicksight#ResourceNotFoundException": return [3, 8];
16289
- case "ResourceUnavailableException": return [3, 10];
16290
- case "com.amazonaws.quicksight#ResourceUnavailableException": return [3, 10];
16291
- case "ThrottlingException": return [3, 12];
16292
- case "com.amazonaws.quicksight#ThrottlingException": return [3, 12];
16309
+ case "ConflictException": return [3, 4];
16310
+ case "com.amazonaws.quicksight#ConflictException": return [3, 4];
16311
+ case "InternalFailureException": return [3, 6];
16312
+ case "com.amazonaws.quicksight#InternalFailureException": return [3, 6];
16313
+ case "InvalidParameterValueException": return [3, 8];
16314
+ case "com.amazonaws.quicksight#InvalidParameterValueException": return [3, 8];
16315
+ case "ResourceNotFoundException": return [3, 10];
16316
+ case "com.amazonaws.quicksight#ResourceNotFoundException": return [3, 10];
16317
+ case "ResourceUnavailableException": return [3, 12];
16318
+ case "com.amazonaws.quicksight#ResourceUnavailableException": return [3, 12];
16319
+ case "ThrottlingException": return [3, 14];
16320
+ case "com.amazonaws.quicksight#ThrottlingException": return [3, 14];
16293
16321
  }
16294
- return [3, 14];
16322
+ return [3, 16];
16295
16323
  case 2:
16296
16324
  _c = [{}];
16297
16325
  return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
16298
16326
  case 3:
16299
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16300
- return [3, 15];
16327
+ response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16328
+ return [3, 17];
16301
16329
  case 4:
16302
16330
  _d = [{}];
16303
- return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
16331
+ return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
16304
16332
  case 5:
16305
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16306
- return [3, 15];
16333
+ response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16334
+ return [3, 17];
16307
16335
  case 6:
16308
16336
  _e = [{}];
16309
- return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
16337
+ return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
16310
16338
  case 7:
16311
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16312
- return [3, 15];
16339
+ response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16340
+ return [3, 17];
16313
16341
  case 8:
16314
16342
  _f = [{}];
16315
- return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
16343
+ return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
16316
16344
  case 9:
16317
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16318
- return [3, 15];
16345
+ response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16346
+ return [3, 17];
16319
16347
  case 10:
16320
16348
  _g = [{}];
16321
- return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
16349
+ return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
16322
16350
  case 11:
16323
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16324
- return [3, 15];
16351
+ response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16352
+ return [3, 17];
16325
16353
  case 12:
16326
16354
  _h = [{}];
16327
- return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
16355
+ return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
16328
16356
  case 13:
16329
- response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16330
- return [3, 15];
16357
+ response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16358
+ return [3, 17];
16331
16359
  case 14:
16360
+ _j = [{}];
16361
+ return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
16362
+ case 15:
16363
+ response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(_l.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
16364
+ return [3, 17];
16365
+ case 16:
16332
16366
  parsedBody = parsedOutput.body;
16333
16367
  errorCode = parsedBody.code || parsedBody.Code || errorCode;
16334
16368
  response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
16335
- _k.label = 15;
16336
- case 15:
16369
+ _l.label = 17;
16370
+ case 17:
16337
16371
  message = response.message || response.Message || errorCode;
16338
16372
  response.message = message;
16339
16373
  delete response.Message;
@@ -16833,6 +16867,7 @@ export var deserializeAws_restJson1UpdateDashboardPermissionsCommand = function
16833
16867
  $metadata: deserializeMetadata(output),
16834
16868
  DashboardArn: undefined,
16835
16869
  DashboardId: undefined,
16870
+ LinkSharingConfiguration: undefined,
16836
16871
  Permissions: undefined,
16837
16872
  RequestId: undefined,
16838
16873
  Status: undefined,
@@ -16848,6 +16883,9 @@ export var deserializeAws_restJson1UpdateDashboardPermissionsCommand = function
16848
16883
  if (data.DashboardId !== undefined && data.DashboardId !== null) {
16849
16884
  contents.DashboardId = __expectString(data.DashboardId);
16850
16885
  }
16886
+ if (data.LinkSharingConfiguration !== undefined && data.LinkSharingConfiguration !== null) {
16887
+ contents.LinkSharingConfiguration = deserializeAws_restJson1LinkSharingConfiguration(data.LinkSharingConfiguration, context);
16888
+ }
16851
16889
  if (data.Permissions !== undefined && data.Permissions !== null) {
16852
16890
  contents.Permissions = deserializeAws_restJson1ResourcePermissionList(data.Permissions, context);
16853
16891
  }
@@ -19382,7 +19420,10 @@ var deserializeAws_restJson1UnsupportedUserEditionExceptionResponse = function (
19382
19420
  });
19383
19421
  }); };
19384
19422
  var serializeAws_restJson1AccountCustomization = function (input, context) {
19385
- return __assign({}, (input.DefaultTheme !== undefined && input.DefaultTheme !== null && { DefaultTheme: input.DefaultTheme }));
19423
+ return __assign(__assign({}, (input.DefaultEmailCustomizationTemplate !== undefined &&
19424
+ input.DefaultEmailCustomizationTemplate !== null && {
19425
+ DefaultEmailCustomizationTemplate: input.DefaultEmailCustomizationTemplate,
19426
+ })), (input.DefaultTheme !== undefined && input.DefaultTheme !== null && { DefaultTheme: input.DefaultTheme }));
19386
19427
  };
19387
19428
  var serializeAws_restJson1ActionList = function (input, context) {
19388
19429
  return input
@@ -19673,6 +19714,7 @@ var serializeAws_restJson1DataSourceParameters = function (input, context) {
19673
19714
  AwsIotAnalyticsParameters: function (value) { return ({
19674
19715
  AwsIotAnalyticsParameters: serializeAws_restJson1AwsIotAnalyticsParameters(value, context),
19675
19716
  }); },
19717
+ ExasolParameters: function (value) { return ({ ExasolParameters: serializeAws_restJson1ExasolParameters(value, context) }); },
19676
19718
  JiraParameters: function (value) { return ({ JiraParameters: serializeAws_restJson1JiraParameters(value, context) }); },
19677
19719
  MariaDbParameters: function (value) { return ({ MariaDbParameters: serializeAws_restJson1MariaDbParameters(value, context) }); },
19678
19720
  MySqlParameters: function (value) { return ({ MySqlParameters: serializeAws_restJson1MySqlParameters(value, context) }); },
@@ -19747,6 +19789,9 @@ var serializeAws_restJson1DoubleList = function (input, context) {
19747
19789
  return __serializeFloat(entry);
19748
19790
  });
19749
19791
  };
19792
+ var serializeAws_restJson1ExasolParameters = function (input, context) {
19793
+ return __assign(__assign({}, (input.Host !== undefined && input.Host !== null && { Host: input.Host })), (input.Port !== undefined && input.Port !== null && { Port: input.Port }));
19794
+ };
19750
19795
  var serializeAws_restJson1ExportToCSVOption = function (input, context) {
19751
19796
  return __assign({}, (input.AvailabilityStatus !== undefined &&
19752
19797
  input.AvailabilityStatus !== null && { AvailabilityStatus: input.AvailabilityStatus }));
@@ -20254,6 +20299,16 @@ var serializeAws_restJson1UntagColumnOperation = function (input, context) {
20254
20299
  return __assign(__assign({}, (input.ColumnName !== undefined && input.ColumnName !== null && { ColumnName: input.ColumnName })), (input.TagNames !== undefined &&
20255
20300
  input.TagNames !== null && { TagNames: serializeAws_restJson1ColumnTagNames(input.TagNames, context) }));
20256
20301
  };
20302
+ var serializeAws_restJson1UpdateLinkPermissionList = function (input, context) {
20303
+ return input
20304
+ .filter(function (e) { return e != null; })
20305
+ .map(function (entry) {
20306
+ if (entry === null) {
20307
+ return null;
20308
+ }
20309
+ return serializeAws_restJson1ResourcePermission(entry, context);
20310
+ });
20311
+ };
20257
20312
  var serializeAws_restJson1UpdateResourcePermissionList = function (input, context) {
20258
20313
  return input
20259
20314
  .filter(function (e) { return e != null; })
@@ -20274,6 +20329,7 @@ var serializeAws_restJson1VpcConnectionProperties = function (input, context) {
20274
20329
  };
20275
20330
  var deserializeAws_restJson1AccountCustomization = function (output, context) {
20276
20331
  return {
20332
+ DefaultEmailCustomizationTemplate: __expectString(output.DefaultEmailCustomizationTemplate),
20277
20333
  DefaultTheme: __expectString(output.DefaultTheme),
20278
20334
  };
20279
20335
  };
@@ -20914,6 +20970,11 @@ var deserializeAws_restJson1DataSourceParameters = function (output, context) {
20914
20970
  AwsIotAnalyticsParameters: deserializeAws_restJson1AwsIotAnalyticsParameters(output.AwsIotAnalyticsParameters, context),
20915
20971
  };
20916
20972
  }
20973
+ if (output.ExasolParameters !== undefined && output.ExasolParameters !== null) {
20974
+ return {
20975
+ ExasolParameters: deserializeAws_restJson1ExasolParameters(output.ExasolParameters, context),
20976
+ };
20977
+ }
20917
20978
  if (output.JiraParameters !== undefined && output.JiraParameters !== null) {
20918
20979
  return {
20919
20980
  JiraParameters: deserializeAws_restJson1JiraParameters(output.JiraParameters, context),
@@ -21007,6 +21068,12 @@ var deserializeAws_restJson1ErrorInfo = function (output, context) {
21007
21068
  Type: __expectString(output.Type),
21008
21069
  };
21009
21070
  };
21071
+ var deserializeAws_restJson1ExasolParameters = function (output, context) {
21072
+ return {
21073
+ Host: __expectString(output.Host),
21074
+ Port: __expectInt32(output.Port),
21075
+ };
21076
+ };
21010
21077
  var deserializeAws_restJson1FieldFolder = function (output, context) {
21011
21078
  return {
21012
21079
  columns: output.columns !== undefined && output.columns !== null
@@ -21276,6 +21343,13 @@ var deserializeAws_restJson1JoinKeyProperties = function (output, context) {
21276
21343
  UniqueKey: __expectBoolean(output.UniqueKey),
21277
21344
  };
21278
21345
  };
21346
+ var deserializeAws_restJson1LinkSharingConfiguration = function (output, context) {
21347
+ return {
21348
+ Permissions: output.Permissions !== undefined && output.Permissions !== null
21349
+ ? deserializeAws_restJson1ResourcePermissionList(output.Permissions, context)
21350
+ : undefined,
21351
+ };
21352
+ };
21279
21353
  var deserializeAws_restJson1LogicalTable = function (output, context) {
21280
21354
  return {
21281
21355
  Alias: __expectString(output.Alias),
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,21 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
16
17
  export var getRuntimeConfig = function (config) {
17
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
- emitWarningIfUnsupportedVersion(process.version);
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
21
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
21
28
  };