@aws-sdk/client-quicksight 3.42.0 → 3.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/models/models_0.js +21 -18
- package/dist-cjs/models/models_1.js +17 -3
- package/dist-cjs/protocols/Aws_restJson1.js +80 -0
- package/dist-es/models/models_0.js +13 -12
- package/dist-es/models/models_1.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +189 -115
- package/dist-types/QuickSight.d.ts +40 -33
- package/dist-types/commands/CreateAccountCustomizationCommand.d.ts +7 -5
- package/dist-types/commands/CreateDashboardCommand.d.ts +5 -3
- package/dist-types/commands/CreateIAMPolicyAssignmentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteIAMPolicyAssignmentCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAccountCustomizationCommand.d.ts +4 -4
- package/dist-types/commands/DescribeIAMPolicyAssignmentCommand.d.ts +1 -1
- package/dist-types/commands/DescribeIpRestrictionCommand.d.ts +1 -1
- package/dist-types/commands/GetSessionEmbedUrlCommand.d.ts +4 -3
- package/dist-types/commands/ListIAMPolicyAssignmentsCommand.d.ts +1 -1
- package/dist-types/commands/ListIAMPolicyAssignmentsForUserCommand.d.ts +1 -1
- package/dist-types/commands/RegisterUserCommand.d.ts +1 -2
- package/dist-types/commands/TagResourceCommand.d.ts +8 -7
- package/dist-types/commands/UpdateDashboardCommand.d.ts +3 -1
- package/dist-types/commands/UpdateIAMPolicyAssignmentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateIpRestrictionCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +189 -176
- package/dist-types/models/models_1.d.ts +213 -83
- package/dist-types/ts3.4/models/models_0.d.ts +78 -37
- package/dist-types/ts3.4/models/models_1.d.ts +43 -1
- package/package.json +2 -2
|
@@ -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.
|
|
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
|
|
5467
|
-
return __generator(this, function (
|
|
5468
|
-
switch (
|
|
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
|
-
|
|
5477
|
+
_l = {};
|
|
5472
5478
|
return [4, parseBody(output.body, context)];
|
|
5473
5479
|
case 1:
|
|
5474
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
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 "
|
|
5482
|
-
case "com.amazonaws.quicksight#
|
|
5483
|
-
case "
|
|
5484
|
-
case "com.amazonaws.quicksight#
|
|
5485
|
-
case "
|
|
5486
|
-
case "com.amazonaws.quicksight#
|
|
5487
|
-
case "
|
|
5488
|
-
case "com.amazonaws.quicksight#
|
|
5489
|
-
case "
|
|
5490
|
-
case "com.amazonaws.quicksight#
|
|
5491
|
-
case "
|
|
5492
|
-
case "com.amazonaws.quicksight#
|
|
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,
|
|
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([(
|
|
5500
|
-
return [3,
|
|
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,
|
|
5511
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
5504
5512
|
case 5:
|
|
5505
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
5506
|
-
return [3,
|
|
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,
|
|
5517
|
+
return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
5510
5518
|
case 7:
|
|
5511
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
5512
|
-
return [3,
|
|
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,
|
|
5523
|
+
return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
5516
5524
|
case 9:
|
|
5517
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
5518
|
-
return [3,
|
|
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,
|
|
5529
|
+
return [4, deserializeAws_restJson1ResourceExistsExceptionResponse(parsedOutput, context)];
|
|
5522
5530
|
case 11:
|
|
5523
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
5524
|
-
return [3,
|
|
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,
|
|
5535
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5528
5536
|
case 13:
|
|
5529
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
5530
|
-
return [3,
|
|
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,
|
|
5541
|
+
return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
|
|
5534
5542
|
case 15:
|
|
5535
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _j.concat([(
|
|
5536
|
-
return [3,
|
|
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
|
-
|
|
5542
|
-
case
|
|
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
|
|
7579
|
-
return __generator(this, function (
|
|
7580
|
-
switch (
|
|
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
|
-
|
|
7597
|
+
_k = {};
|
|
7584
7598
|
return [4, parseBody(output.body, context)];
|
|
7585
7599
|
case 1:
|
|
7586
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
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 "
|
|
7594
|
-
case "com.amazonaws.quicksight#
|
|
7595
|
-
case "
|
|
7596
|
-
case "com.amazonaws.quicksight#
|
|
7597
|
-
case "
|
|
7598
|
-
case "com.amazonaws.quicksight#
|
|
7599
|
-
case "
|
|
7600
|
-
case "com.amazonaws.quicksight#
|
|
7601
|
-
case "
|
|
7602
|
-
case "com.amazonaws.quicksight#
|
|
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,
|
|
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([(
|
|
7610
|
-
return [3,
|
|
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,
|
|
7629
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
7614
7630
|
case 5:
|
|
7615
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
7616
|
-
return [3,
|
|
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,
|
|
7635
|
+
return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
7620
7636
|
case 7:
|
|
7621
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
7622
|
-
return [3,
|
|
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,
|
|
7641
|
+
return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
7626
7642
|
case 9:
|
|
7627
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
7628
|
-
return [3,
|
|
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,
|
|
7647
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
7632
7648
|
case 11:
|
|
7633
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
7634
|
-
return [3,
|
|
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,
|
|
7653
|
+
return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
|
|
7638
7654
|
case 13:
|
|
7639
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
7640
|
-
return [3,
|
|
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
|
-
|
|
7646
|
-
case
|
|
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
|
|
16269
|
-
return __generator(this, function (
|
|
16270
|
-
switch (
|
|
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
|
-
|
|
16299
|
+
_k = {};
|
|
16274
16300
|
return [4, parseBody(output.body, context)];
|
|
16275
16301
|
case 1:
|
|
16276
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
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 "
|
|
16284
|
-
case "com.amazonaws.quicksight#
|
|
16285
|
-
case "
|
|
16286
|
-
case "com.amazonaws.quicksight#
|
|
16287
|
-
case "
|
|
16288
|
-
case "com.amazonaws.quicksight#
|
|
16289
|
-
case "
|
|
16290
|
-
case "com.amazonaws.quicksight#
|
|
16291
|
-
case "
|
|
16292
|
-
case "com.amazonaws.quicksight#
|
|
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,
|
|
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([(
|
|
16300
|
-
return [3,
|
|
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,
|
|
16331
|
+
return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
16304
16332
|
case 5:
|
|
16305
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(
|
|
16306
|
-
return [3,
|
|
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,
|
|
16337
|
+
return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
16310
16338
|
case 7:
|
|
16311
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(
|
|
16312
|
-
return [3,
|
|
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,
|
|
16343
|
+
return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
|
|
16316
16344
|
case 9:
|
|
16317
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(
|
|
16318
|
-
return [3,
|
|
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,
|
|
16349
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
16322
16350
|
case 11:
|
|
16323
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(
|
|
16324
|
-
return [3,
|
|
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,
|
|
16355
|
+
return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
|
|
16328
16356
|
case 13:
|
|
16329
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(
|
|
16330
|
-
return [3,
|
|
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
|
-
|
|
16336
|
-
case
|
|
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.
|
|
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),
|