@aws-sdk/client-quicksight 3.691.0 → 3.692.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 (117) hide show
  1. package/README.md +143 -7
  2. package/dist-cjs/index.js +1116 -216
  3. package/dist-es/QuickSight.js +34 -0
  4. package/dist-es/commands/CreateBrandCommand.js +22 -0
  5. package/dist-es/commands/CreateCustomPermissionsCommand.js +22 -0
  6. package/dist-es/commands/DeleteBrandAssignmentCommand.js +22 -0
  7. package/dist-es/commands/DeleteBrandCommand.js +22 -0
  8. package/dist-es/commands/DeleteCustomPermissionsCommand.js +22 -0
  9. package/dist-es/commands/DeleteUserCustomPermissionCommand.js +22 -0
  10. package/dist-es/commands/DescribeBrandAssignmentCommand.js +22 -0
  11. package/dist-es/commands/DescribeBrandCommand.js +22 -0
  12. package/dist-es/commands/DescribeBrandPublishedVersionCommand.js +22 -0
  13. package/dist-es/commands/DescribeCustomPermissionsCommand.js +22 -0
  14. package/dist-es/commands/DescribeTemplateDefinitionCommand.js +1 -1
  15. package/dist-es/commands/DescribeTopicCommand.js +1 -1
  16. package/dist-es/commands/ListBrandsCommand.js +22 -0
  17. package/dist-es/commands/ListCustomPermissionsCommand.js +22 -0
  18. package/dist-es/commands/UpdateBrandAssignmentCommand.js +22 -0
  19. package/dist-es/commands/UpdateBrandCommand.js +22 -0
  20. package/dist-es/commands/UpdateBrandPublishedVersionCommand.js +22 -0
  21. package/dist-es/commands/UpdateCustomPermissionsCommand.js +22 -0
  22. package/dist-es/commands/UpdateUserCustomPermissionCommand.js +22 -0
  23. package/dist-es/commands/index.js +17 -0
  24. package/dist-es/models/models_2.js +52 -107
  25. package/dist-es/models/models_3.js +108 -29
  26. package/dist-es/models/models_4.js +30 -16
  27. package/dist-es/pagination/ListBrandsPaginator.js +4 -0
  28. package/dist-es/pagination/ListCustomPermissionsPaginator.js +4 -0
  29. package/dist-es/pagination/index.js +2 -0
  30. package/dist-es/protocols/Aws_restJson1.js +540 -6
  31. package/dist-types/QuickSight.d.ts +119 -0
  32. package/dist-types/QuickSightClient.d.ts +19 -2
  33. package/dist-types/commands/CreateBrandCommand.d.ts +268 -0
  34. package/dist-types/commands/CreateCustomPermissionsCommand.d.ts +132 -0
  35. package/dist-types/commands/DeleteBrandAssignmentCommand.d.ts +92 -0
  36. package/dist-types/commands/DeleteBrandCommand.d.ts +93 -0
  37. package/dist-types/commands/DeleteCustomPermissionsCommand.d.ts +104 -0
  38. package/dist-types/commands/DeleteUserCustomPermissionCommand.d.ts +101 -0
  39. package/dist-types/commands/DescribeBrandAssignmentCommand.d.ts +93 -0
  40. package/dist-types/commands/DescribeBrandCommand.d.ts +204 -0
  41. package/dist-types/commands/DescribeBrandPublishedVersionCommand.d.ts +203 -0
  42. package/dist-types/commands/DescribeCustomPermissionsCommand.d.ts +120 -0
  43. package/dist-types/commands/DescribeIngestionCommand.d.ts +2 -1
  44. package/dist-types/commands/DescribeIpRestrictionCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeKeyRegistrationCommand.d.ts +1 -1
  46. package/dist-types/commands/DescribeNamespaceCommand.d.ts +1 -1
  47. package/dist-types/commands/DescribeQPersonalizationConfigurationCommand.d.ts +1 -1
  48. package/dist-types/commands/DescribeRefreshScheduleCommand.d.ts +1 -1
  49. package/dist-types/commands/DescribeRoleCustomPermissionCommand.d.ts +1 -1
  50. package/dist-types/commands/DescribeTemplateAliasCommand.d.ts +1 -1
  51. package/dist-types/commands/DescribeTemplateCommand.d.ts +1 -1
  52. package/dist-types/commands/DescribeTemplateDefinitionCommand.d.ts +1 -1
  53. package/dist-types/commands/DescribeTemplatePermissionsCommand.d.ts +1 -1
  54. package/dist-types/commands/DescribeThemeAliasCommand.d.ts +1 -1
  55. package/dist-types/commands/DescribeThemeCommand.d.ts +1 -1
  56. package/dist-types/commands/DescribeThemePermissionsCommand.d.ts +1 -1
  57. package/dist-types/commands/DescribeTopicCommand.d.ts +1 -1
  58. package/dist-types/commands/DescribeTopicPermissionsCommand.d.ts +1 -2
  59. package/dist-types/commands/ListBrandsCommand.d.ts +99 -0
  60. package/dist-types/commands/ListCustomPermissionsCommand.d.ts +124 -0
  61. package/dist-types/commands/UpdateBrandAssignmentCommand.d.ts +94 -0
  62. package/dist-types/commands/UpdateBrandCommand.d.ts +262 -0
  63. package/dist-types/commands/UpdateBrandPublishedVersionCommand.d.ts +95 -0
  64. package/dist-types/commands/UpdateCustomPermissionsCommand.d.ts +120 -0
  65. package/dist-types/commands/UpdateUserCustomPermissionCommand.d.ts +102 -0
  66. package/dist-types/commands/index.d.ts +17 -0
  67. package/dist-types/models/models_2.d.ts +1343 -1408
  68. package/dist-types/models/models_3.d.ts +4131 -4269
  69. package/dist-types/models/models_4.d.ts +1387 -21
  70. package/dist-types/pagination/ListBrandsPaginator.d.ts +7 -0
  71. package/dist-types/pagination/ListCustomPermissionsPaginator.d.ts +7 -0
  72. package/dist-types/pagination/index.d.ts +2 -0
  73. package/dist-types/protocols/Aws_restJson1.d.ts +153 -0
  74. package/dist-types/ts3.4/QuickSight.d.ts +289 -0
  75. package/dist-types/ts3.4/QuickSightClient.d.ts +102 -0
  76. package/dist-types/ts3.4/commands/CreateBrandCommand.d.ts +47 -0
  77. package/dist-types/ts3.4/commands/CreateCustomPermissionsCommand.d.ts +51 -0
  78. package/dist-types/ts3.4/commands/DeleteBrandAssignmentCommand.d.ts +51 -0
  79. package/dist-types/ts3.4/commands/DeleteBrandCommand.d.ts +47 -0
  80. package/dist-types/ts3.4/commands/DeleteCustomPermissionsCommand.d.ts +51 -0
  81. package/dist-types/ts3.4/commands/DeleteUserCustomPermissionCommand.d.ts +51 -0
  82. package/dist-types/ts3.4/commands/DescribeBrandAssignmentCommand.d.ts +51 -0
  83. package/dist-types/ts3.4/commands/DescribeBrandCommand.d.ts +50 -0
  84. package/dist-types/ts3.4/commands/DescribeBrandPublishedVersionCommand.d.ts +51 -0
  85. package/dist-types/ts3.4/commands/DescribeCustomPermissionsCommand.d.ts +51 -0
  86. package/dist-types/ts3.4/commands/DescribeIngestionCommand.d.ts +2 -4
  87. package/dist-types/ts3.4/commands/DescribeIpRestrictionCommand.d.ts +1 -1
  88. package/dist-types/ts3.4/commands/DescribeKeyRegistrationCommand.d.ts +1 -1
  89. package/dist-types/ts3.4/commands/DescribeNamespaceCommand.d.ts +1 -1
  90. package/dist-types/ts3.4/commands/DescribeQPersonalizationConfigurationCommand.d.ts +1 -1
  91. package/dist-types/ts3.4/commands/DescribeRefreshScheduleCommand.d.ts +1 -1
  92. package/dist-types/ts3.4/commands/DescribeRoleCustomPermissionCommand.d.ts +1 -1
  93. package/dist-types/ts3.4/commands/DescribeTemplateAliasCommand.d.ts +1 -1
  94. package/dist-types/ts3.4/commands/DescribeTemplateCommand.d.ts +1 -1
  95. package/dist-types/ts3.4/commands/DescribeTemplateDefinitionCommand.d.ts +1 -1
  96. package/dist-types/ts3.4/commands/DescribeTemplatePermissionsCommand.d.ts +1 -1
  97. package/dist-types/ts3.4/commands/DescribeThemeAliasCommand.d.ts +1 -1
  98. package/dist-types/ts3.4/commands/DescribeThemeCommand.d.ts +1 -1
  99. package/dist-types/ts3.4/commands/DescribeThemePermissionsCommand.d.ts +1 -1
  100. package/dist-types/ts3.4/commands/DescribeTopicCommand.d.ts +1 -1
  101. package/dist-types/ts3.4/commands/DescribeTopicPermissionsCommand.d.ts +4 -2
  102. package/dist-types/ts3.4/commands/ListBrandsCommand.d.ts +47 -0
  103. package/dist-types/ts3.4/commands/ListCustomPermissionsCommand.d.ts +51 -0
  104. package/dist-types/ts3.4/commands/UpdateBrandAssignmentCommand.d.ts +51 -0
  105. package/dist-types/ts3.4/commands/UpdateBrandCommand.d.ts +47 -0
  106. package/dist-types/ts3.4/commands/UpdateBrandPublishedVersionCommand.d.ts +51 -0
  107. package/dist-types/ts3.4/commands/UpdateCustomPermissionsCommand.d.ts +51 -0
  108. package/dist-types/ts3.4/commands/UpdateUserCustomPermissionCommand.d.ts +51 -0
  109. package/dist-types/ts3.4/commands/index.d.ts +17 -0
  110. package/dist-types/ts3.4/models/models_2.d.ts +188 -311
  111. package/dist-types/ts3.4/models/models_3.d.ts +389 -267
  112. package/dist-types/ts3.4/models/models_4.d.ts +342 -18
  113. package/dist-types/ts3.4/pagination/ListBrandsPaginator.d.ts +11 -0
  114. package/dist-types/ts3.4/pagination/ListCustomPermissionsPaginator.d.ts +11 -0
  115. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  116. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +204 -0
  117. package/package.json +35 -35
@@ -2,9 +2,9 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { AccessDeniedException, } from "../models/models_0";
5
- import { ConcurrentUpdatingException, ConflictException, InternalFailureException, InvalidParameterValueException, LimitExceededException, PreconditionNotMetException, ResourceExistsException, ResourceNotFoundException, ResourceUnavailableException, ThrottlingException, TransformOperation, UnsupportedUserEditionException, } from "../models/models_2";
6
- import { CustomerManagedKeyUnavailableException, InvalidNextTokenException, } from "../models/models_3";
7
- import { DomainNotWhitelistedException, IdentityTypeNotSupportedException, InvalidRequestException, QuickSightUserNotFoundException, SessionLifetimeInMinutesInvalidException, UnsupportedPricingPlanException, } from "../models/models_4";
5
+ import { ConcurrentUpdatingException, ConflictException, InternalFailureException, InternalServerException, InvalidParameterValueException, InvalidRequestException, LimitExceededException, PreconditionNotMetException, ResourceExistsException, ResourceNotFoundException, ResourceUnavailableException, ThrottlingException, UnsupportedUserEditionException, } from "../models/models_2";
6
+ import { CustomerManagedKeyUnavailableException, InvalidNextTokenException, TransformOperation, } from "../models/models_3";
7
+ import { DomainNotWhitelistedException, IdentityTypeNotSupportedException, QuickSightUserNotFoundException, SessionLifetimeInMinutesInvalidException, UnsupportedPricingPlanException, } from "../models/models_4";
8
8
  import { QuickSightServiceException as __BaseException } from "../models/QuickSightServiceException";
9
9
  export const se_BatchCreateTopicReviewedAnswerCommand = async (input, context) => {
10
10
  const b = rb(input, context);
@@ -119,6 +119,38 @@ export const se_CreateAnalysisCommand = async (input, context) => {
119
119
  b.m("POST").h(headers).b(body);
120
120
  return b.build();
121
121
  };
122
+ export const se_CreateBrandCommand = async (input, context) => {
123
+ const b = rb(input, context);
124
+ const headers = {
125
+ "content-type": "application/json",
126
+ };
127
+ b.bp("/accounts/{AwsAccountId}/brands/{BrandId}");
128
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
129
+ b.p("BrandId", () => input.BrandId, "{BrandId}", false);
130
+ let body;
131
+ body = JSON.stringify(take(input, {
132
+ BrandDefinition: (_) => _json(_),
133
+ Tags: (_) => _json(_),
134
+ }));
135
+ b.m("POST").h(headers).b(body);
136
+ return b.build();
137
+ };
138
+ export const se_CreateCustomPermissionsCommand = async (input, context) => {
139
+ const b = rb(input, context);
140
+ const headers = {
141
+ "content-type": "application/json",
142
+ };
143
+ b.bp("/accounts/{AwsAccountId}/custom-permissions");
144
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
145
+ let body;
146
+ body = JSON.stringify(take(input, {
147
+ Capabilities: (_) => _json(_),
148
+ CustomPermissionsName: [],
149
+ Tags: (_) => _json(_),
150
+ }));
151
+ b.m("POST").h(headers).b(body);
152
+ return b.build();
153
+ };
122
154
  export const se_CreateDashboardCommand = async (input, context) => {
123
155
  const b = rb(input, context);
124
156
  const headers = {
@@ -495,6 +527,35 @@ export const se_DeleteAnalysisCommand = async (input, context) => {
495
527
  b.m("DELETE").h(headers).q(query).b(body);
496
528
  return b.build();
497
529
  };
530
+ export const se_DeleteBrandCommand = async (input, context) => {
531
+ const b = rb(input, context);
532
+ const headers = {};
533
+ b.bp("/accounts/{AwsAccountId}/brands/{BrandId}");
534
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
535
+ b.p("BrandId", () => input.BrandId, "{BrandId}", false);
536
+ let body;
537
+ b.m("DELETE").h(headers).b(body);
538
+ return b.build();
539
+ };
540
+ export const se_DeleteBrandAssignmentCommand = async (input, context) => {
541
+ const b = rb(input, context);
542
+ const headers = {};
543
+ b.bp("/accounts/{AwsAccountId}/brandassignments");
544
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
545
+ let body;
546
+ b.m("DELETE").h(headers).b(body);
547
+ return b.build();
548
+ };
549
+ export const se_DeleteCustomPermissionsCommand = async (input, context) => {
550
+ const b = rb(input, context);
551
+ const headers = {};
552
+ b.bp("/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}");
553
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
554
+ b.p("CustomPermissionsName", () => input.CustomPermissionsName, "{CustomPermissionsName}", false);
555
+ let body;
556
+ b.m("DELETE").h(headers).b(body);
557
+ return b.build();
558
+ };
498
559
  export const se_DeleteDashboardCommand = async (input, context) => {
499
560
  const b = rb(input, context);
500
561
  const headers = {};
@@ -739,6 +800,17 @@ export const se_DeleteUserByPrincipalIdCommand = async (input, context) => {
739
800
  b.m("DELETE").h(headers).b(body);
740
801
  return b.build();
741
802
  };
803
+ export const se_DeleteUserCustomPermissionCommand = async (input, context) => {
804
+ const b = rb(input, context);
805
+ const headers = {};
806
+ b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/custom-permission");
807
+ b.p("UserName", () => input.UserName, "{UserName}", false);
808
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
809
+ b.p("Namespace", () => input.Namespace, "{Namespace}", false);
810
+ let body;
811
+ b.m("DELETE").h(headers).b(body);
812
+ return b.build();
813
+ };
742
814
  export const se_DeleteVPCConnectionCommand = async (input, context) => {
743
815
  const b = rb(input, context);
744
816
  const headers = {};
@@ -830,6 +902,48 @@ export const se_DescribeAssetBundleImportJobCommand = async (input, context) =>
830
902
  b.m("GET").h(headers).b(body);
831
903
  return b.build();
832
904
  };
905
+ export const se_DescribeBrandCommand = async (input, context) => {
906
+ const b = rb(input, context);
907
+ const headers = {};
908
+ b.bp("/accounts/{AwsAccountId}/brands/{BrandId}");
909
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
910
+ b.p("BrandId", () => input.BrandId, "{BrandId}", false);
911
+ const query = map({
912
+ [_vI]: [, input[_VI]],
913
+ });
914
+ let body;
915
+ b.m("GET").h(headers).q(query).b(body);
916
+ return b.build();
917
+ };
918
+ export const se_DescribeBrandAssignmentCommand = async (input, context) => {
919
+ const b = rb(input, context);
920
+ const headers = {};
921
+ b.bp("/accounts/{AwsAccountId}/brandassignments");
922
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
923
+ let body;
924
+ b.m("GET").h(headers).b(body);
925
+ return b.build();
926
+ };
927
+ export const se_DescribeBrandPublishedVersionCommand = async (input, context) => {
928
+ const b = rb(input, context);
929
+ const headers = {};
930
+ b.bp("/accounts/{AwsAccountId}/brands/{BrandId}/publishedversion");
931
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
932
+ b.p("BrandId", () => input.BrandId, "{BrandId}", false);
933
+ let body;
934
+ b.m("GET").h(headers).b(body);
935
+ return b.build();
936
+ };
937
+ export const se_DescribeCustomPermissionsCommand = async (input, context) => {
938
+ const b = rb(input, context);
939
+ const headers = {};
940
+ b.bp("/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}");
941
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
942
+ b.p("CustomPermissionsName", () => input.CustomPermissionsName, "{CustomPermissionsName}", false);
943
+ let body;
944
+ b.m("GET").h(headers).b(body);
945
+ return b.build();
946
+ };
833
947
  export const se_DescribeDashboardCommand = async (input, context) => {
834
948
  const b = rb(input, context);
835
949
  const headers = {};
@@ -1343,6 +1457,32 @@ export const se_ListAssetBundleImportJobsCommand = async (input, context) => {
1343
1457
  b.m("GET").h(headers).q(query).b(body);
1344
1458
  return b.build();
1345
1459
  };
1460
+ export const se_ListBrandsCommand = async (input, context) => {
1461
+ const b = rb(input, context);
1462
+ const headers = {};
1463
+ b.bp("/accounts/{AwsAccountId}/brands");
1464
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
1465
+ const query = map({
1466
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1467
+ [_nt]: [, input[_NT]],
1468
+ });
1469
+ let body;
1470
+ b.m("GET").h(headers).q(query).b(body);
1471
+ return b.build();
1472
+ };
1473
+ export const se_ListCustomPermissionsCommand = async (input, context) => {
1474
+ const b = rb(input, context);
1475
+ const headers = {};
1476
+ b.bp("/accounts/{AwsAccountId}/custom-permissions");
1477
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
1478
+ const query = map({
1479
+ [_mr]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
1480
+ [_nt]: [, input[_NT]],
1481
+ });
1482
+ let body;
1483
+ b.m("GET").h(headers).q(query).b(body);
1484
+ return b.build();
1485
+ };
1346
1486
  export const se_ListDashboardsCommand = async (input, context) => {
1347
1487
  const b = rb(input, context);
1348
1488
  const headers = {};
@@ -2046,6 +2186,65 @@ export const se_UpdateAnalysisPermissionsCommand = async (input, context) => {
2046
2186
  b.m("PUT").h(headers).b(body);
2047
2187
  return b.build();
2048
2188
  };
2189
+ export const se_UpdateBrandCommand = async (input, context) => {
2190
+ const b = rb(input, context);
2191
+ const headers = {
2192
+ "content-type": "application/json",
2193
+ };
2194
+ b.bp("/accounts/{AwsAccountId}/brands/{BrandId}");
2195
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
2196
+ b.p("BrandId", () => input.BrandId, "{BrandId}", false);
2197
+ let body;
2198
+ body = JSON.stringify(take(input, {
2199
+ BrandDefinition: (_) => _json(_),
2200
+ }));
2201
+ b.m("PUT").h(headers).b(body);
2202
+ return b.build();
2203
+ };
2204
+ export const se_UpdateBrandAssignmentCommand = async (input, context) => {
2205
+ const b = rb(input, context);
2206
+ const headers = {
2207
+ "content-type": "application/json",
2208
+ };
2209
+ b.bp("/accounts/{AwsAccountId}/brandassignments");
2210
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
2211
+ let body;
2212
+ body = JSON.stringify(take(input, {
2213
+ BrandArn: [],
2214
+ }));
2215
+ b.m("PUT").h(headers).b(body);
2216
+ return b.build();
2217
+ };
2218
+ export const se_UpdateBrandPublishedVersionCommand = async (input, context) => {
2219
+ const b = rb(input, context);
2220
+ const headers = {
2221
+ "content-type": "application/json",
2222
+ };
2223
+ b.bp("/accounts/{AwsAccountId}/brands/{BrandId}/publishedversion");
2224
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
2225
+ b.p("BrandId", () => input.BrandId, "{BrandId}", false);
2226
+ let body;
2227
+ body = JSON.stringify(take(input, {
2228
+ VersionId: [],
2229
+ }));
2230
+ b.m("PUT").h(headers).b(body);
2231
+ return b.build();
2232
+ };
2233
+ export const se_UpdateCustomPermissionsCommand = async (input, context) => {
2234
+ const b = rb(input, context);
2235
+ const headers = {
2236
+ "content-type": "application/json",
2237
+ };
2238
+ b.bp("/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}");
2239
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
2240
+ b.p("CustomPermissionsName", () => input.CustomPermissionsName, "{CustomPermissionsName}", false);
2241
+ let body;
2242
+ body = JSON.stringify(take(input, {
2243
+ Capabilities: (_) => _json(_),
2244
+ }));
2245
+ b.m("PUT").h(headers).b(body);
2246
+ return b.build();
2247
+ };
2049
2248
  export const se_UpdateDashboardCommand = async (input, context) => {
2050
2249
  const b = rb(input, context);
2051
2250
  const headers = {
@@ -2542,6 +2741,22 @@ export const se_UpdateUserCommand = async (input, context) => {
2542
2741
  b.m("PUT").h(headers).b(body);
2543
2742
  return b.build();
2544
2743
  };
2744
+ export const se_UpdateUserCustomPermissionCommand = async (input, context) => {
2745
+ const b = rb(input, context);
2746
+ const headers = {
2747
+ "content-type": "application/json",
2748
+ };
2749
+ b.bp("/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/custom-permission");
2750
+ b.p("UserName", () => input.UserName, "{UserName}", false);
2751
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
2752
+ b.p("Namespace", () => input.Namespace, "{Namespace}", false);
2753
+ let body;
2754
+ body = JSON.stringify(take(input, {
2755
+ CustomPermissionsName: [],
2756
+ }));
2757
+ b.m("PUT").h(headers).b(body);
2758
+ return b.build();
2759
+ };
2545
2760
  export const se_UpdateVPCConnectionCommand = async (input, context) => {
2546
2761
  const b = rb(input, context);
2547
2762
  const headers = {
@@ -2681,6 +2896,38 @@ export const de_CreateAnalysisCommand = async (output, context) => {
2681
2896
  });
2682
2897
  return contents;
2683
2898
  };
2899
+ export const de_CreateBrandCommand = async (output, context) => {
2900
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2901
+ return de_CommandError(output, context);
2902
+ }
2903
+ const contents = map({
2904
+ $metadata: deserializeMetadata(output),
2905
+ });
2906
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2907
+ const doc = take(data, {
2908
+ BrandDefinition: _json,
2909
+ BrandDetail: (_) => de_BrandDetail(_, context),
2910
+ RequestId: __expectString,
2911
+ });
2912
+ Object.assign(contents, doc);
2913
+ return contents;
2914
+ };
2915
+ export const de_CreateCustomPermissionsCommand = async (output, context) => {
2916
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2917
+ return de_CommandError(output, context);
2918
+ }
2919
+ const contents = map({
2920
+ $metadata: deserializeMetadata(output),
2921
+ });
2922
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2923
+ const doc = take(data, {
2924
+ Arn: __expectString,
2925
+ RequestId: __expectString,
2926
+ Status: __expectInt32,
2927
+ });
2928
+ Object.assign(contents, doc);
2929
+ return contents;
2930
+ };
2684
2931
  export const de_CreateDashboardCommand = async (output, context) => {
2685
2932
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2686
2933
  return de_CommandError(output, context);
@@ -3107,6 +3354,50 @@ export const de_DeleteAnalysisCommand = async (output, context) => {
3107
3354
  });
3108
3355
  return contents;
3109
3356
  };
3357
+ export const de_DeleteBrandCommand = async (output, context) => {
3358
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3359
+ return de_CommandError(output, context);
3360
+ }
3361
+ const contents = map({
3362
+ $metadata: deserializeMetadata(output),
3363
+ });
3364
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3365
+ const doc = take(data, {
3366
+ RequestId: __expectString,
3367
+ });
3368
+ Object.assign(contents, doc);
3369
+ return contents;
3370
+ };
3371
+ export const de_DeleteBrandAssignmentCommand = async (output, context) => {
3372
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3373
+ return de_CommandError(output, context);
3374
+ }
3375
+ const contents = map({
3376
+ $metadata: deserializeMetadata(output),
3377
+ });
3378
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3379
+ const doc = take(data, {
3380
+ RequestId: __expectString,
3381
+ });
3382
+ Object.assign(contents, doc);
3383
+ return contents;
3384
+ };
3385
+ export const de_DeleteCustomPermissionsCommand = async (output, context) => {
3386
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3387
+ return de_CommandError(output, context);
3388
+ }
3389
+ const contents = map({
3390
+ $metadata: deserializeMetadata(output),
3391
+ });
3392
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3393
+ const doc = take(data, {
3394
+ Arn: __expectString,
3395
+ RequestId: __expectString,
3396
+ Status: __expectInt32,
3397
+ });
3398
+ Object.assign(contents, doc);
3399
+ return contents;
3400
+ };
3110
3401
  export const de_DeleteDashboardCommand = async (output, context) => {
3111
3402
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3112
3403
  return de_CommandError(output, context);
@@ -3503,6 +3794,23 @@ export const de_DeleteUserByPrincipalIdCommand = async (output, context) => {
3503
3794
  });
3504
3795
  return contents;
3505
3796
  };
3797
+ export const de_DeleteUserCustomPermissionCommand = async (output, context) => {
3798
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3799
+ return de_CommandError(output, context);
3800
+ }
3801
+ const contents = map({
3802
+ $metadata: deserializeMetadata(output),
3803
+ });
3804
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3805
+ const doc = take(data, {
3806
+ RequestId: __expectString,
3807
+ });
3808
+ Object.assign(contents, doc);
3809
+ map(contents, {
3810
+ Status: [, output.statusCode],
3811
+ });
3812
+ return contents;
3813
+ };
3506
3814
  export const de_DeleteVPCConnectionCommand = async (output, context) => {
3507
3815
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3508
3816
  return de_CommandError(output, context);
@@ -3707,6 +4015,69 @@ export const de_DescribeAssetBundleImportJobCommand = async (output, context) =>
3707
4015
  });
3708
4016
  return contents;
3709
4017
  };
4018
+ export const de_DescribeBrandCommand = async (output, context) => {
4019
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4020
+ return de_CommandError(output, context);
4021
+ }
4022
+ const contents = map({
4023
+ $metadata: deserializeMetadata(output),
4024
+ });
4025
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4026
+ const doc = take(data, {
4027
+ BrandDefinition: _json,
4028
+ BrandDetail: (_) => de_BrandDetail(_, context),
4029
+ RequestId: __expectString,
4030
+ });
4031
+ Object.assign(contents, doc);
4032
+ return contents;
4033
+ };
4034
+ export const de_DescribeBrandAssignmentCommand = async (output, context) => {
4035
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4036
+ return de_CommandError(output, context);
4037
+ }
4038
+ const contents = map({
4039
+ $metadata: deserializeMetadata(output),
4040
+ });
4041
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4042
+ const doc = take(data, {
4043
+ BrandArn: __expectString,
4044
+ RequestId: __expectString,
4045
+ });
4046
+ Object.assign(contents, doc);
4047
+ return contents;
4048
+ };
4049
+ export const de_DescribeBrandPublishedVersionCommand = async (output, context) => {
4050
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4051
+ return de_CommandError(output, context);
4052
+ }
4053
+ const contents = map({
4054
+ $metadata: deserializeMetadata(output),
4055
+ });
4056
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4057
+ const doc = take(data, {
4058
+ BrandDefinition: _json,
4059
+ BrandDetail: (_) => de_BrandDetail(_, context),
4060
+ RequestId: __expectString,
4061
+ });
4062
+ Object.assign(contents, doc);
4063
+ return contents;
4064
+ };
4065
+ export const de_DescribeCustomPermissionsCommand = async (output, context) => {
4066
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4067
+ return de_CommandError(output, context);
4068
+ }
4069
+ const contents = map({
4070
+ $metadata: deserializeMetadata(output),
4071
+ });
4072
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4073
+ const doc = take(data, {
4074
+ CustomPermissions: _json,
4075
+ RequestId: __expectString,
4076
+ Status: __expectInt32,
4077
+ });
4078
+ Object.assign(contents, doc);
4079
+ return contents;
4080
+ };
3710
4081
  export const de_DescribeDashboardCommand = async (output, context) => {
3711
4082
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3712
4083
  return de_CommandError(output, context);
@@ -4531,6 +4902,40 @@ export const de_ListAssetBundleImportJobsCommand = async (output, context) => {
4531
4902
  });
4532
4903
  return contents;
4533
4904
  };
4905
+ export const de_ListBrandsCommand = async (output, context) => {
4906
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4907
+ return de_CommandError(output, context);
4908
+ }
4909
+ const contents = map({
4910
+ $metadata: deserializeMetadata(output),
4911
+ });
4912
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4913
+ const doc = take(data, {
4914
+ Brands: (_) => de_BrandSummaryList(_, context),
4915
+ NextToken: __expectString,
4916
+ });
4917
+ Object.assign(contents, doc);
4918
+ return contents;
4919
+ };
4920
+ export const de_ListCustomPermissionsCommand = async (output, context) => {
4921
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4922
+ return de_CommandError(output, context);
4923
+ }
4924
+ const contents = map({
4925
+ $metadata: deserializeMetadata(output),
4926
+ });
4927
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4928
+ const doc = take(data, {
4929
+ CustomPermissionsList: _json,
4930
+ NextToken: __expectString,
4931
+ RequestId: __expectString,
4932
+ });
4933
+ Object.assign(contents, doc);
4934
+ map(contents, {
4935
+ Status: [, output.statusCode],
4936
+ });
4937
+ return contents;
4938
+ };
4534
4939
  export const de_ListDashboardsCommand = async (output, context) => {
4535
4940
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4536
4941
  return de_CommandError(output, context);
@@ -5438,6 +5843,68 @@ export const de_UpdateAnalysisPermissionsCommand = async (output, context) => {
5438
5843
  });
5439
5844
  return contents;
5440
5845
  };
5846
+ export const de_UpdateBrandCommand = async (output, context) => {
5847
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5848
+ return de_CommandError(output, context);
5849
+ }
5850
+ const contents = map({
5851
+ $metadata: deserializeMetadata(output),
5852
+ });
5853
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5854
+ const doc = take(data, {
5855
+ BrandDefinition: _json,
5856
+ BrandDetail: (_) => de_BrandDetail(_, context),
5857
+ RequestId: __expectString,
5858
+ });
5859
+ Object.assign(contents, doc);
5860
+ return contents;
5861
+ };
5862
+ export const de_UpdateBrandAssignmentCommand = async (output, context) => {
5863
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5864
+ return de_CommandError(output, context);
5865
+ }
5866
+ const contents = map({
5867
+ $metadata: deserializeMetadata(output),
5868
+ });
5869
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5870
+ const doc = take(data, {
5871
+ BrandArn: __expectString,
5872
+ RequestId: __expectString,
5873
+ });
5874
+ Object.assign(contents, doc);
5875
+ return contents;
5876
+ };
5877
+ export const de_UpdateBrandPublishedVersionCommand = async (output, context) => {
5878
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5879
+ return de_CommandError(output, context);
5880
+ }
5881
+ const contents = map({
5882
+ $metadata: deserializeMetadata(output),
5883
+ });
5884
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5885
+ const doc = take(data, {
5886
+ RequestId: __expectString,
5887
+ VersionId: __expectString,
5888
+ });
5889
+ Object.assign(contents, doc);
5890
+ return contents;
5891
+ };
5892
+ export const de_UpdateCustomPermissionsCommand = async (output, context) => {
5893
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5894
+ return de_CommandError(output, context);
5895
+ }
5896
+ const contents = map({
5897
+ $metadata: deserializeMetadata(output),
5898
+ });
5899
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5900
+ const doc = take(data, {
5901
+ Arn: __expectString,
5902
+ RequestId: __expectString,
5903
+ Status: __expectInt32,
5904
+ });
5905
+ Object.assign(contents, doc);
5906
+ return contents;
5907
+ };
5441
5908
  export const de_UpdateDashboardCommand = async (output, context) => {
5442
5909
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5443
5910
  return de_CommandError(output, context);
@@ -6005,6 +6472,23 @@ export const de_UpdateUserCommand = async (output, context) => {
6005
6472
  });
6006
6473
  return contents;
6007
6474
  };
6475
+ export const de_UpdateUserCustomPermissionCommand = async (output, context) => {
6476
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
6477
+ return de_CommandError(output, context);
6478
+ }
6479
+ const contents = map({
6480
+ $metadata: deserializeMetadata(output),
6481
+ });
6482
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6483
+ const doc = take(data, {
6484
+ RequestId: __expectString,
6485
+ });
6486
+ Object.assign(contents, doc);
6487
+ map(contents, {
6488
+ Status: [, output.statusCode],
6489
+ });
6490
+ return contents;
6491
+ };
6008
6492
  export const de_UpdateVPCConnectionCommand = async (output, context) => {
6009
6493
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6010
6494
  return de_CommandError(output, context);
@@ -6066,6 +6550,12 @@ const de_CommandError = async (output, context) => {
6066
6550
  case "UnsupportedUserEditionException":
6067
6551
  case "com.amazonaws.quicksight#UnsupportedUserEditionException":
6068
6552
  throw await de_UnsupportedUserEditionExceptionRes(parsedOutput, context);
6553
+ case "InternalServerException":
6554
+ case "com.amazonaws.quicksight#InternalServerException":
6555
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
6556
+ case "InvalidRequestException":
6557
+ case "com.amazonaws.quicksight#InvalidRequestException":
6558
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6069
6559
  case "CustomerManagedKeyUnavailableException":
6070
6560
  case "com.amazonaws.quicksight#CustomerManagedKeyUnavailableException":
6071
6561
  throw await de_CustomerManagedKeyUnavailableExceptionRes(parsedOutput, context);
@@ -6090,9 +6580,6 @@ const de_CommandError = async (output, context) => {
6090
6580
  case "IdentityTypeNotSupportedException":
6091
6581
  case "com.amazonaws.quicksight#IdentityTypeNotSupportedException":
6092
6582
  throw await de_IdentityTypeNotSupportedExceptionRes(parsedOutput, context);
6093
- case "InvalidRequestException":
6094
- case "com.amazonaws.quicksight#InvalidRequestException":
6095
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
6096
6583
  default:
6097
6584
  const parsedBody = parsedOutput.body;
6098
6585
  return throwDefaultError({
@@ -6201,6 +6688,19 @@ const de_InternalFailureExceptionRes = async (parsedOutput, context) => {
6201
6688
  });
6202
6689
  return __decorateServiceException(exception, parsedOutput.body);
6203
6690
  };
6691
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
6692
+ const contents = map({});
6693
+ const data = parsedOutput.body;
6694
+ const doc = take(data, {
6695
+ Message: __expectString,
6696
+ });
6697
+ Object.assign(contents, doc);
6698
+ const exception = new InternalServerException({
6699
+ $metadata: deserializeMetadata(parsedOutput),
6700
+ ...contents,
6701
+ });
6702
+ return __decorateServiceException(exception, parsedOutput.body);
6703
+ };
6204
6704
  const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
6205
6705
  const contents = map({});
6206
6706
  const data = parsedOutput.body;
@@ -9233,6 +9733,38 @@ const de_BoxPlotVisual = (output, context) => {
9233
9733
  VisualId: __expectString,
9234
9734
  });
9235
9735
  };
9736
+ const de_BrandDetail = (output, context) => {
9737
+ return take(output, {
9738
+ Arn: __expectString,
9739
+ BrandId: __expectString,
9740
+ BrandStatus: __expectString,
9741
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9742
+ Errors: _json,
9743
+ LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9744
+ Logo: _json,
9745
+ VersionId: __expectString,
9746
+ VersionStatus: __expectString,
9747
+ });
9748
+ };
9749
+ const de_BrandSummary = (output, context) => {
9750
+ return take(output, {
9751
+ Arn: __expectString,
9752
+ BrandId: __expectString,
9753
+ BrandName: __expectString,
9754
+ BrandStatus: __expectString,
9755
+ CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9756
+ Description: __expectString,
9757
+ LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
9758
+ });
9759
+ };
9760
+ const de_BrandSummaryList = (output, context) => {
9761
+ const retVal = (output || [])
9762
+ .filter((e) => e != null)
9763
+ .map((entry) => {
9764
+ return de_BrandSummary(entry, context);
9765
+ });
9766
+ return retVal;
9767
+ };
9236
9768
  const de_CategoryFilter = (output, context) => {
9237
9769
  return take(output, {
9238
9770
  Column: _json,
@@ -11888,6 +12420,7 @@ const _T = "Type";
11888
12420
  const _TK = "TagKeys";
11889
12421
  const _UA = "UserArn";
11890
12422
  const _URD = "UndoRedoDisabled";
12423
+ const _VI = "VersionId";
11891
12424
  const _VN = "VersionNumber";
11892
12425
  const _adi = "additional-dashboard-ids";
11893
12426
  const _an = "alias-name";
@@ -11910,4 +12443,5 @@ const _spe = "state-persistence-enabled";
11910
12443
  const _t = "type";
11911
12444
  const _ua = "user-arn";
11912
12445
  const _urd = "undo-redo-disabled";
12446
+ const _vI = "versionId";
11913
12447
  const _vn = "version-number";