@aws-sdk/client-quicksight 3.450.0 → 3.453.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 (112) hide show
  1. package/README.md +48 -0
  2. package/dist-cjs/QuickSight.js +12 -0
  3. package/dist-cjs/commands/CreateRoleMembershipCommand.js +51 -0
  4. package/dist-cjs/commands/CreateTopicCommand.js +2 -2
  5. package/dist-cjs/commands/DeleteRoleCustomPermissionCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteRoleMembershipCommand.js +51 -0
  7. package/dist-cjs/commands/DescribeAssetBundleExportJobCommand.js +2 -1
  8. package/dist-cjs/commands/DescribeRoleCustomPermissionCommand.js +51 -0
  9. package/dist-cjs/commands/ListRoleMembershipsCommand.js +51 -0
  10. package/dist-cjs/commands/UpdateRoleCustomPermissionCommand.js +51 -0
  11. package/dist-cjs/commands/index.js +6 -0
  12. package/dist-cjs/models/models_0.js +10 -10
  13. package/dist-cjs/models/models_2.js +17 -104
  14. package/dist-cjs/models/models_3.js +112 -1
  15. package/dist-cjs/pagination/ListRoleMembershipsPaginator.js +29 -0
  16. package/dist-cjs/pagination/index.js +1 -0
  17. package/dist-cjs/protocols/Aws_restJson1.js +488 -10
  18. package/dist-es/QuickSight.js +12 -0
  19. package/dist-es/commands/CreateRoleMembershipCommand.js +47 -0
  20. package/dist-es/commands/CreateTopicCommand.js +1 -1
  21. package/dist-es/commands/DeleteRoleCustomPermissionCommand.js +47 -0
  22. package/dist-es/commands/DeleteRoleMembershipCommand.js +47 -0
  23. package/dist-es/commands/DescribeAssetBundleExportJobCommand.js +2 -1
  24. package/dist-es/commands/DescribeRoleCustomPermissionCommand.js +47 -0
  25. package/dist-es/commands/ListRoleMembershipsCommand.js +47 -0
  26. package/dist-es/commands/UpdateRoleCustomPermissionCommand.js +47 -0
  27. package/dist-es/commands/index.js +6 -0
  28. package/dist-es/models/models_0.js +9 -9
  29. package/dist-es/models/models_2.js +14 -94
  30. package/dist-es/models/models_3.js +102 -1
  31. package/dist-es/pagination/ListRoleMembershipsPaginator.js +25 -0
  32. package/dist-es/pagination/index.js +1 -0
  33. package/dist-es/protocols/Aws_restJson1.js +469 -3
  34. package/dist-types/QuickSight.d.ts +42 -0
  35. package/dist-types/QuickSightClient.d.ts +8 -2
  36. package/dist-types/commands/CreateDashboardCommand.d.ts +10 -0
  37. package/dist-types/commands/CreateDataSourceCommand.d.ts +9 -1
  38. package/dist-types/commands/CreateRoleMembershipCommand.d.ts +101 -0
  39. package/dist-types/commands/CreateTopicCommand.d.ts +1 -1
  40. package/dist-types/commands/CreateTopicRefreshScheduleCommand.d.ts +1 -1
  41. package/dist-types/commands/CreateVPCConnectionCommand.d.ts +1 -2
  42. package/dist-types/commands/DeleteRoleCustomPermissionCommand.d.ts +100 -0
  43. package/dist-types/commands/DeleteRoleMembershipCommand.d.ts +101 -0
  44. package/dist-types/commands/DescribeAnalysisCommand.d.ts +0 -4
  45. package/dist-types/commands/DescribeAssetBundleExportJobCommand.d.ts +18 -7
  46. package/dist-types/commands/DescribeAssetBundleImportJobCommand.d.ts +150 -0
  47. package/dist-types/commands/DescribeDashboardCommand.d.ts +0 -4
  48. package/dist-types/commands/DescribeDataSourceCommand.d.ts +9 -1
  49. package/dist-types/commands/DescribeRoleCustomPermissionCommand.d.ts +101 -0
  50. package/dist-types/commands/DescribeTemplateCommand.d.ts +0 -4
  51. package/dist-types/commands/ListAssetBundleExportJobsCommand.d.ts +2 -0
  52. package/dist-types/commands/ListDataSourcesCommand.d.ts +9 -1
  53. package/dist-types/commands/ListRoleMembershipsCommand.d.ts +112 -0
  54. package/dist-types/commands/ListThemeVersionsCommand.d.ts +1 -1
  55. package/dist-types/commands/ListThemesCommand.d.ts +1 -1
  56. package/dist-types/commands/ListTopicRefreshSchedulesCommand.d.ts +1 -1
  57. package/dist-types/commands/ListTopicsCommand.d.ts +1 -1
  58. package/dist-types/commands/ListUserGroupsCommand.d.ts +1 -1
  59. package/dist-types/commands/ListUsersCommand.d.ts +1 -1
  60. package/dist-types/commands/ListVPCConnectionsCommand.d.ts +1 -1
  61. package/dist-types/commands/PutDataSetRefreshPropertiesCommand.d.ts +1 -1
  62. package/dist-types/commands/RegisterUserCommand.d.ts +1 -1
  63. package/dist-types/commands/RestoreAnalysisCommand.d.ts +1 -1
  64. package/dist-types/commands/SearchAnalysesCommand.d.ts +1 -1
  65. package/dist-types/commands/SearchDashboardsCommand.d.ts +1 -1
  66. package/dist-types/commands/SearchDataSetsCommand.d.ts +1 -2
  67. package/dist-types/commands/SearchDataSourcesCommand.d.ts +1 -1
  68. package/dist-types/commands/StartAssetBundleExportJobCommand.d.ts +12 -7
  69. package/dist-types/commands/StartAssetBundleImportJobCommand.d.ts +150 -0
  70. package/dist-types/commands/UpdateDataSourceCommand.d.ts +8 -0
  71. package/dist-types/commands/UpdateRoleCustomPermissionCommand.d.ts +101 -0
  72. package/dist-types/commands/index.d.ts +6 -0
  73. package/dist-types/models/models_0.d.ts +33 -38
  74. package/dist-types/models/models_2.d.ts +573 -773
  75. package/dist-types/models/models_3.d.ts +3973 -4050
  76. package/dist-types/models/models_4.d.ts +1012 -4
  77. package/dist-types/pagination/ListRoleMembershipsPaginator.d.ts +7 -0
  78. package/dist-types/pagination/index.d.ts +1 -0
  79. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  80. package/dist-types/ts3.4/QuickSight.d.ts +102 -0
  81. package/dist-types/ts3.4/QuickSightClient.d.ts +36 -0
  82. package/dist-types/ts3.4/commands/CreateRoleMembershipCommand.d.ts +42 -0
  83. package/dist-types/ts3.4/commands/CreateTopicCommand.d.ts +1 -1
  84. package/dist-types/ts3.4/commands/CreateTopicRefreshScheduleCommand.d.ts +1 -1
  85. package/dist-types/ts3.4/commands/CreateVPCConnectionCommand.d.ts +4 -2
  86. package/dist-types/ts3.4/commands/DeleteRoleCustomPermissionCommand.d.ts +42 -0
  87. package/dist-types/ts3.4/commands/DeleteRoleMembershipCommand.d.ts +42 -0
  88. package/dist-types/ts3.4/commands/DescribeRoleCustomPermissionCommand.d.ts +42 -0
  89. package/dist-types/ts3.4/commands/ListRoleMembershipsCommand.d.ts +39 -0
  90. package/dist-types/ts3.4/commands/ListThemeVersionsCommand.d.ts +1 -1
  91. package/dist-types/ts3.4/commands/ListThemesCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/ListTopicRefreshSchedulesCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/ListTopicsCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/ListUserGroupsCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/ListVPCConnectionsCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/PutDataSetRefreshPropertiesCommand.d.ts +1 -1
  98. package/dist-types/ts3.4/commands/RegisterUserCommand.d.ts +1 -1
  99. package/dist-types/ts3.4/commands/RestoreAnalysisCommand.d.ts +1 -1
  100. package/dist-types/ts3.4/commands/SearchAnalysesCommand.d.ts +1 -1
  101. package/dist-types/ts3.4/commands/SearchDashboardsCommand.d.ts +1 -1
  102. package/dist-types/ts3.4/commands/SearchDataSetsCommand.d.ts +4 -2
  103. package/dist-types/ts3.4/commands/UpdateRoleCustomPermissionCommand.d.ts +42 -0
  104. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  105. package/dist-types/ts3.4/models/models_0.d.ts +14 -15
  106. package/dist-types/ts3.4/models/models_2.d.ts +177 -206
  107. package/dist-types/ts3.4/models/models_3.d.ts +264 -201
  108. package/dist-types/ts3.4/models/models_4.d.ts +229 -4
  109. package/dist-types/ts3.4/pagination/ListRoleMembershipsPaginator.d.ts +11 -0
  110. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  111. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +72 -0
  112. package/package.json +35 -35
@@ -129,6 +129,7 @@ export const se_CreateDashboardCommand = async (input, context) => {
129
129
  DashboardPublishOptions: (_) => _json(_),
130
130
  Definition: (_) => se_DashboardVersionDefinition(_, context),
131
131
  FolderArns: (_) => _json(_),
132
+ LinkSharingConfiguration: (_) => _json(_),
132
133
  Name: [],
133
134
  Parameters: (_) => se__Parameters(_, context),
134
135
  Permissions: (_) => _json(_),
@@ -401,6 +402,26 @@ export const se_CreateRefreshScheduleCommand = async (input, context) => {
401
402
  body,
402
403
  });
403
404
  };
405
+ export const se_CreateRoleMembershipCommand = async (input, context) => {
406
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
407
+ const headers = {};
408
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
409
+ "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}";
410
+ resolvedPath = __resolvedPath(resolvedPath, input, "MemberName", () => input.MemberName, "{MemberName}", false);
411
+ resolvedPath = __resolvedPath(resolvedPath, input, "AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
412
+ resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace, "{Namespace}", false);
413
+ resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role, "{Role}", false);
414
+ let body;
415
+ return new __HttpRequest({
416
+ protocol,
417
+ hostname,
418
+ port,
419
+ method: "POST",
420
+ headers,
421
+ path: resolvedPath,
422
+ body,
423
+ });
424
+ };
404
425
  export const se_CreateTemplateCommand = async (input, context) => {
405
426
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
406
427
  const headers = {
@@ -854,6 +875,45 @@ export const se_DeleteRefreshScheduleCommand = async (input, context) => {
854
875
  body,
855
876
  });
856
877
  };
878
+ export const se_DeleteRoleCustomPermissionCommand = async (input, context) => {
879
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
880
+ const headers = {};
881
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
882
+ "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission";
883
+ resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role, "{Role}", false);
884
+ resolvedPath = __resolvedPath(resolvedPath, input, "AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
885
+ resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace, "{Namespace}", false);
886
+ let body;
887
+ return new __HttpRequest({
888
+ protocol,
889
+ hostname,
890
+ port,
891
+ method: "DELETE",
892
+ headers,
893
+ path: resolvedPath,
894
+ body,
895
+ });
896
+ };
897
+ export const se_DeleteRoleMembershipCommand = async (input, context) => {
898
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
899
+ const headers = {};
900
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
901
+ "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}";
902
+ resolvedPath = __resolvedPath(resolvedPath, input, "MemberName", () => input.MemberName, "{MemberName}", false);
903
+ resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role, "{Role}", false);
904
+ resolvedPath = __resolvedPath(resolvedPath, input, "AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
905
+ resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace, "{Namespace}", false);
906
+ let body;
907
+ return new __HttpRequest({
908
+ protocol,
909
+ hostname,
910
+ port,
911
+ method: "DELETE",
912
+ headers,
913
+ path: resolvedPath,
914
+ body,
915
+ });
916
+ };
857
917
  export const se_DeleteTemplateCommand = async (input, context) => {
858
918
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
859
919
  const headers = {};
@@ -1558,6 +1618,25 @@ export const se_DescribeRefreshScheduleCommand = async (input, context) => {
1558
1618
  body,
1559
1619
  });
1560
1620
  };
1621
+ export const se_DescribeRoleCustomPermissionCommand = async (input, context) => {
1622
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1623
+ const headers = {};
1624
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1625
+ "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission";
1626
+ resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role, "{Role}", false);
1627
+ resolvedPath = __resolvedPath(resolvedPath, input, "AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
1628
+ resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace, "{Namespace}", false);
1629
+ let body;
1630
+ return new __HttpRequest({
1631
+ protocol,
1632
+ hostname,
1633
+ port,
1634
+ method: "GET",
1635
+ headers,
1636
+ path: resolvedPath,
1637
+ body,
1638
+ });
1639
+ };
1561
1640
  export const se_DescribeTemplateCommand = async (input, context) => {
1562
1641
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1563
1642
  const headers = {};
@@ -2278,6 +2357,30 @@ export const se_ListRefreshSchedulesCommand = async (input, context) => {
2278
2357
  body,
2279
2358
  });
2280
2359
  };
2360
+ export const se_ListRoleMembershipsCommand = async (input, context) => {
2361
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2362
+ const headers = {};
2363
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
2364
+ "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members";
2365
+ resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role, "{Role}", false);
2366
+ resolvedPath = __resolvedPath(resolvedPath, input, "AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
2367
+ resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace, "{Namespace}", false);
2368
+ const query = map({
2369
+ "next-token": [, input.NextToken],
2370
+ "max-results": [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
2371
+ });
2372
+ let body;
2373
+ return new __HttpRequest({
2374
+ protocol,
2375
+ hostname,
2376
+ port,
2377
+ method: "GET",
2378
+ headers,
2379
+ path: resolvedPath,
2380
+ query,
2381
+ body,
2382
+ });
2383
+ };
2281
2384
  export const se_ListTagsForResourceCommand = async (input, context) => {
2282
2385
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2283
2386
  const headers = {};
@@ -2769,7 +2872,10 @@ export const se_StartAssetBundleExportJobCommand = async (input, context) => {
2769
2872
  CloudFormationOverridePropertyConfiguration: (_) => _json(_),
2770
2873
  ExportFormat: [],
2771
2874
  IncludeAllDependencies: [],
2875
+ IncludePermissions: [],
2876
+ IncludeTags: [],
2772
2877
  ResourceArns: (_) => _json(_),
2878
+ ValidationStrategy: (_) => _json(_),
2773
2879
  }));
2774
2880
  return new __HttpRequest({
2775
2881
  protocol,
@@ -2795,6 +2901,9 @@ export const se_StartAssetBundleImportJobCommand = async (input, context) => {
2795
2901
  AssetBundleImportSource: (_) => se_AssetBundleImportSource(_, context),
2796
2902
  FailureAction: [],
2797
2903
  OverrideParameters: (_) => se_AssetBundleImportJobOverrideParameters(_, context),
2904
+ OverridePermissions: (_) => _json(_),
2905
+ OverrideTags: (_) => _json(_),
2906
+ OverrideValidationStrategy: (_) => _json(_),
2798
2907
  }));
2799
2908
  return new __HttpRequest({
2800
2909
  protocol,
@@ -3322,6 +3431,30 @@ export const se_UpdateRefreshScheduleCommand = async (input, context) => {
3322
3431
  body,
3323
3432
  });
3324
3433
  };
3434
+ export const se_UpdateRoleCustomPermissionCommand = async (input, context) => {
3435
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3436
+ const headers = {
3437
+ "content-type": "application/json",
3438
+ };
3439
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
3440
+ "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission";
3441
+ resolvedPath = __resolvedPath(resolvedPath, input, "Role", () => input.Role, "{Role}", false);
3442
+ resolvedPath = __resolvedPath(resolvedPath, input, "AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
3443
+ resolvedPath = __resolvedPath(resolvedPath, input, "Namespace", () => input.Namespace, "{Namespace}", false);
3444
+ let body;
3445
+ body = JSON.stringify(take(input, {
3446
+ CustomPermissionsName: [],
3447
+ }));
3448
+ return new __HttpRequest({
3449
+ protocol,
3450
+ hostname,
3451
+ port,
3452
+ method: "PUT",
3453
+ headers,
3454
+ path: resolvedPath,
3455
+ body,
3456
+ });
3457
+ };
3325
3458
  export const se_UpdateTemplateCommand = async (input, context) => {
3326
3459
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3327
3460
  const headers = {
@@ -4494,6 +4627,60 @@ const de_CreateRefreshScheduleCommandError = async (output, context) => {
4494
4627
  });
4495
4628
  }
4496
4629
  };
4630
+ export const de_CreateRoleMembershipCommand = async (output, context) => {
4631
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4632
+ return de_CreateRoleMembershipCommandError(output, context);
4633
+ }
4634
+ const contents = map({
4635
+ $metadata: deserializeMetadata(output),
4636
+ });
4637
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4638
+ const doc = take(data, {
4639
+ RequestId: __expectString,
4640
+ });
4641
+ Object.assign(contents, doc);
4642
+ map(contents, {
4643
+ Status: [, output.statusCode],
4644
+ });
4645
+ return contents;
4646
+ };
4647
+ const de_CreateRoleMembershipCommandError = async (output, context) => {
4648
+ const parsedOutput = {
4649
+ ...output,
4650
+ body: await parseErrorBody(output.body, context),
4651
+ };
4652
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4653
+ switch (errorCode) {
4654
+ case "AccessDeniedException":
4655
+ case "com.amazonaws.quicksight#AccessDeniedException":
4656
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
4657
+ case "InternalFailureException":
4658
+ case "com.amazonaws.quicksight#InternalFailureException":
4659
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
4660
+ case "InvalidParameterValueException":
4661
+ case "com.amazonaws.quicksight#InvalidParameterValueException":
4662
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
4663
+ case "PreconditionNotMetException":
4664
+ case "com.amazonaws.quicksight#PreconditionNotMetException":
4665
+ throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
4666
+ case "ResourceNotFoundException":
4667
+ case "com.amazonaws.quicksight#ResourceNotFoundException":
4668
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
4669
+ case "ResourceUnavailableException":
4670
+ case "com.amazonaws.quicksight#ResourceUnavailableException":
4671
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
4672
+ case "ThrottlingException":
4673
+ case "com.amazonaws.quicksight#ThrottlingException":
4674
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
4675
+ default:
4676
+ const parsedBody = parsedOutput.body;
4677
+ return throwDefaultError({
4678
+ output,
4679
+ parsedBody,
4680
+ errorCode,
4681
+ });
4682
+ }
4683
+ };
4497
4684
  export const de_CreateTemplateCommand = async (output, context) => {
4498
4685
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4499
4686
  return de_CreateTemplateCommandError(output, context);
@@ -5666,6 +5853,112 @@ const de_DeleteRefreshScheduleCommandError = async (output, context) => {
5666
5853
  });
5667
5854
  }
5668
5855
  };
5856
+ export const de_DeleteRoleCustomPermissionCommand = async (output, context) => {
5857
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5858
+ return de_DeleteRoleCustomPermissionCommandError(output, context);
5859
+ }
5860
+ const contents = map({
5861
+ $metadata: deserializeMetadata(output),
5862
+ });
5863
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5864
+ const doc = take(data, {
5865
+ RequestId: __expectString,
5866
+ Status: __expectInt32,
5867
+ });
5868
+ Object.assign(contents, doc);
5869
+ return contents;
5870
+ };
5871
+ const de_DeleteRoleCustomPermissionCommandError = async (output, context) => {
5872
+ const parsedOutput = {
5873
+ ...output,
5874
+ body: await parseErrorBody(output.body, context),
5875
+ };
5876
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5877
+ switch (errorCode) {
5878
+ case "AccessDeniedException":
5879
+ case "com.amazonaws.quicksight#AccessDeniedException":
5880
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5881
+ case "InternalFailureException":
5882
+ case "com.amazonaws.quicksight#InternalFailureException":
5883
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
5884
+ case "InvalidParameterValueException":
5885
+ case "com.amazonaws.quicksight#InvalidParameterValueException":
5886
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
5887
+ case "PreconditionNotMetException":
5888
+ case "com.amazonaws.quicksight#PreconditionNotMetException":
5889
+ throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
5890
+ case "ResourceNotFoundException":
5891
+ case "com.amazonaws.quicksight#ResourceNotFoundException":
5892
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5893
+ case "ResourceUnavailableException":
5894
+ case "com.amazonaws.quicksight#ResourceUnavailableException":
5895
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
5896
+ case "ThrottlingException":
5897
+ case "com.amazonaws.quicksight#ThrottlingException":
5898
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5899
+ default:
5900
+ const parsedBody = parsedOutput.body;
5901
+ return throwDefaultError({
5902
+ output,
5903
+ parsedBody,
5904
+ errorCode,
5905
+ });
5906
+ }
5907
+ };
5908
+ export const de_DeleteRoleMembershipCommand = async (output, context) => {
5909
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5910
+ return de_DeleteRoleMembershipCommandError(output, context);
5911
+ }
5912
+ const contents = map({
5913
+ $metadata: deserializeMetadata(output),
5914
+ });
5915
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5916
+ const doc = take(data, {
5917
+ RequestId: __expectString,
5918
+ });
5919
+ Object.assign(contents, doc);
5920
+ map(contents, {
5921
+ Status: [, output.statusCode],
5922
+ });
5923
+ return contents;
5924
+ };
5925
+ const de_DeleteRoleMembershipCommandError = async (output, context) => {
5926
+ const parsedOutput = {
5927
+ ...output,
5928
+ body: await parseErrorBody(output.body, context),
5929
+ };
5930
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5931
+ switch (errorCode) {
5932
+ case "AccessDeniedException":
5933
+ case "com.amazonaws.quicksight#AccessDeniedException":
5934
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
5935
+ case "InternalFailureException":
5936
+ case "com.amazonaws.quicksight#InternalFailureException":
5937
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
5938
+ case "InvalidParameterValueException":
5939
+ case "com.amazonaws.quicksight#InvalidParameterValueException":
5940
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
5941
+ case "PreconditionNotMetException":
5942
+ case "com.amazonaws.quicksight#PreconditionNotMetException":
5943
+ throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
5944
+ case "ResourceNotFoundException":
5945
+ case "com.amazonaws.quicksight#ResourceNotFoundException":
5946
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
5947
+ case "ResourceUnavailableException":
5948
+ case "com.amazonaws.quicksight#ResourceUnavailableException":
5949
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
5950
+ case "ThrottlingException":
5951
+ case "com.amazonaws.quicksight#ThrottlingException":
5952
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
5953
+ default:
5954
+ const parsedBody = parsedOutput.body;
5955
+ return throwDefaultError({
5956
+ output,
5957
+ parsedBody,
5958
+ errorCode,
5959
+ });
5960
+ }
5961
+ };
5669
5962
  export const de_DeleteTemplateCommand = async (output, context) => {
5670
5963
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5671
5964
  return de_DeleteTemplateCommandError(output, context);
@@ -6505,9 +6798,13 @@ export const de_DescribeAssetBundleExportJobCommand = async (output, context) =>
6505
6798
  Errors: _json,
6506
6799
  ExportFormat: __expectString,
6507
6800
  IncludeAllDependencies: __expectBoolean,
6801
+ IncludePermissions: __expectBoolean,
6802
+ IncludeTags: __expectBoolean,
6508
6803
  JobStatus: __expectString,
6509
6804
  RequestId: __expectString,
6510
6805
  ResourceArns: _json,
6806
+ ValidationStrategy: _json,
6807
+ Warnings: _json,
6511
6808
  });
6512
6809
  Object.assign(contents, doc);
6513
6810
  map(contents, {
@@ -6558,6 +6855,9 @@ export const de_DescribeAssetBundleImportJobCommand = async (output, context) =>
6558
6855
  FailureAction: __expectString,
6559
6856
  JobStatus: __expectString,
6560
6857
  OverrideParameters: (_) => de_AssetBundleImportJobOverrideParameters(_, context),
6858
+ OverridePermissions: _json,
6859
+ OverrideTags: _json,
6860
+ OverrideValidationStrategy: _json,
6561
6861
  RequestId: __expectString,
6562
6862
  RollbackErrors: _json,
6563
6863
  });
@@ -7668,6 +7968,59 @@ const de_DescribeRefreshScheduleCommandError = async (output, context) => {
7668
7968
  });
7669
7969
  }
7670
7970
  };
7971
+ export const de_DescribeRoleCustomPermissionCommand = async (output, context) => {
7972
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
7973
+ return de_DescribeRoleCustomPermissionCommandError(output, context);
7974
+ }
7975
+ const contents = map({
7976
+ $metadata: deserializeMetadata(output),
7977
+ });
7978
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
7979
+ const doc = take(data, {
7980
+ CustomPermissionsName: __expectString,
7981
+ RequestId: __expectString,
7982
+ Status: __expectInt32,
7983
+ });
7984
+ Object.assign(contents, doc);
7985
+ return contents;
7986
+ };
7987
+ const de_DescribeRoleCustomPermissionCommandError = async (output, context) => {
7988
+ const parsedOutput = {
7989
+ ...output,
7990
+ body: await parseErrorBody(output.body, context),
7991
+ };
7992
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
7993
+ switch (errorCode) {
7994
+ case "AccessDeniedException":
7995
+ case "com.amazonaws.quicksight#AccessDeniedException":
7996
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
7997
+ case "InternalFailureException":
7998
+ case "com.amazonaws.quicksight#InternalFailureException":
7999
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
8000
+ case "InvalidParameterValueException":
8001
+ case "com.amazonaws.quicksight#InvalidParameterValueException":
8002
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
8003
+ case "PreconditionNotMetException":
8004
+ case "com.amazonaws.quicksight#PreconditionNotMetException":
8005
+ throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
8006
+ case "ResourceNotFoundException":
8007
+ case "com.amazonaws.quicksight#ResourceNotFoundException":
8008
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
8009
+ case "ResourceUnavailableException":
8010
+ case "com.amazonaws.quicksight#ResourceUnavailableException":
8011
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
8012
+ case "ThrottlingException":
8013
+ case "com.amazonaws.quicksight#ThrottlingException":
8014
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
8015
+ default:
8016
+ const parsedBody = parsedOutput.body;
8017
+ return throwDefaultError({
8018
+ output,
8019
+ parsedBody,
8020
+ errorCode,
8021
+ });
8022
+ }
8023
+ };
7671
8024
  export const de_DescribeTemplateCommand = async (output, context) => {
7672
8025
  if (output.statusCode !== 200 && output.statusCode >= 300) {
7673
8026
  return de_DescribeTemplateCommandError(output, context);
@@ -9471,6 +9824,68 @@ const de_ListRefreshSchedulesCommandError = async (output, context) => {
9471
9824
  });
9472
9825
  }
9473
9826
  };
9827
+ export const de_ListRoleMembershipsCommand = async (output, context) => {
9828
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
9829
+ return de_ListRoleMembershipsCommandError(output, context);
9830
+ }
9831
+ const contents = map({
9832
+ $metadata: deserializeMetadata(output),
9833
+ });
9834
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
9835
+ const doc = take(data, {
9836
+ MembersList: _json,
9837
+ NextToken: __expectString,
9838
+ RequestId: __expectString,
9839
+ });
9840
+ Object.assign(contents, doc);
9841
+ map(contents, {
9842
+ Status: [, output.statusCode],
9843
+ });
9844
+ return contents;
9845
+ };
9846
+ const de_ListRoleMembershipsCommandError = async (output, context) => {
9847
+ const parsedOutput = {
9848
+ ...output,
9849
+ body: await parseErrorBody(output.body, context),
9850
+ };
9851
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
9852
+ switch (errorCode) {
9853
+ case "AccessDeniedException":
9854
+ case "com.amazonaws.quicksight#AccessDeniedException":
9855
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
9856
+ case "InternalFailureException":
9857
+ case "com.amazonaws.quicksight#InternalFailureException":
9858
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
9859
+ case "InvalidNextTokenException":
9860
+ case "com.amazonaws.quicksight#InvalidNextTokenException":
9861
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
9862
+ case "InvalidParameterValueException":
9863
+ case "com.amazonaws.quicksight#InvalidParameterValueException":
9864
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
9865
+ case "LimitExceededException":
9866
+ case "com.amazonaws.quicksight#LimitExceededException":
9867
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
9868
+ case "PreconditionNotMetException":
9869
+ case "com.amazonaws.quicksight#PreconditionNotMetException":
9870
+ throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
9871
+ case "ResourceNotFoundException":
9872
+ case "com.amazonaws.quicksight#ResourceNotFoundException":
9873
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
9874
+ case "ResourceUnavailableException":
9875
+ case "com.amazonaws.quicksight#ResourceUnavailableException":
9876
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
9877
+ case "ThrottlingException":
9878
+ case "com.amazonaws.quicksight#ThrottlingException":
9879
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
9880
+ default:
9881
+ const parsedBody = parsedOutput.body;
9882
+ return throwDefaultError({
9883
+ output,
9884
+ parsedBody,
9885
+ errorCode,
9886
+ });
9887
+ }
9888
+ };
9474
9889
  export const de_ListTagsForResourceCommand = async (output, context) => {
9475
9890
  if (output.statusCode !== 200 && output.statusCode >= 300) {
9476
9891
  return de_ListTagsForResourceCommandError(output, context);
@@ -11895,6 +12310,58 @@ const de_UpdateRefreshScheduleCommandError = async (output, context) => {
11895
12310
  });
11896
12311
  }
11897
12312
  };
12313
+ export const de_UpdateRoleCustomPermissionCommand = async (output, context) => {
12314
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
12315
+ return de_UpdateRoleCustomPermissionCommandError(output, context);
12316
+ }
12317
+ const contents = map({
12318
+ $metadata: deserializeMetadata(output),
12319
+ });
12320
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
12321
+ const doc = take(data, {
12322
+ RequestId: __expectString,
12323
+ Status: __expectInt32,
12324
+ });
12325
+ Object.assign(contents, doc);
12326
+ return contents;
12327
+ };
12328
+ const de_UpdateRoleCustomPermissionCommandError = async (output, context) => {
12329
+ const parsedOutput = {
12330
+ ...output,
12331
+ body: await parseErrorBody(output.body, context),
12332
+ };
12333
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
12334
+ switch (errorCode) {
12335
+ case "AccessDeniedException":
12336
+ case "com.amazonaws.quicksight#AccessDeniedException":
12337
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
12338
+ case "InternalFailureException":
12339
+ case "com.amazonaws.quicksight#InternalFailureException":
12340
+ throw await de_InternalFailureExceptionRes(parsedOutput, context);
12341
+ case "InvalidParameterValueException":
12342
+ case "com.amazonaws.quicksight#InvalidParameterValueException":
12343
+ throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
12344
+ case "PreconditionNotMetException":
12345
+ case "com.amazonaws.quicksight#PreconditionNotMetException":
12346
+ throw await de_PreconditionNotMetExceptionRes(parsedOutput, context);
12347
+ case "ResourceNotFoundException":
12348
+ case "com.amazonaws.quicksight#ResourceNotFoundException":
12349
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
12350
+ case "ResourceUnavailableException":
12351
+ case "com.amazonaws.quicksight#ResourceUnavailableException":
12352
+ throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
12353
+ case "ThrottlingException":
12354
+ case "com.amazonaws.quicksight#ThrottlingException":
12355
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
12356
+ default:
12357
+ const parsedBody = parsedOutput.body;
12358
+ return throwDefaultError({
12359
+ output,
12360
+ parsedBody,
12361
+ errorCode,
12362
+ });
12363
+ }
12364
+ };
11898
12365
  export const de_UpdateTemplateCommand = async (output, context) => {
11899
12366
  if (output.statusCode !== 200 && output.statusCode >= 300) {
11900
12367
  return de_UpdateTemplateCommandError(output, context);
@@ -15112,7 +15579,6 @@ const de_Analysis = (output, context) => {
15112
15579
  Errors: _json,
15113
15580
  LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
15114
15581
  Name: __expectString,
15115
- Options: _json,
15116
15582
  Sheets: _json,
15117
15583
  Status: __expectString,
15118
15584
  ThemeArn: __expectString,
@@ -15173,6 +15639,8 @@ const de_AssetBundleExportJobSummary = (output, context) => {
15173
15639
  CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
15174
15640
  ExportFormat: __expectString,
15175
15641
  IncludeAllDependencies: __expectBoolean,
15642
+ IncludePermissions: __expectBoolean,
15643
+ IncludeTags: __expectBoolean,
15176
15644
  JobStatus: __expectString,
15177
15645
  });
15178
15646
  };
@@ -15584,7 +16052,6 @@ const de_DashboardVersion = (output, context) => {
15584
16052
  DataSetArns: _json,
15585
16053
  Description: __expectString,
15586
16054
  Errors: _json,
15587
- Options: _json,
15588
16055
  Sheets: _json,
15589
16056
  SourceEntityArn: __expectString,
15590
16057
  Status: __expectString,
@@ -17333,7 +17800,6 @@ const de_TemplateVersion = (output, context) => {
17333
17800
  DataSetConfigurations: _json,
17334
17801
  Description: __expectString,
17335
17802
  Errors: _json,
17336
- Options: _json,
17337
17803
  Sheets: _json,
17338
17804
  SourceEntityArn: __expectString,
17339
17805
  Status: __expectString,