@aws-sdk/client-quicksight 3.121.0 → 3.123.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 (50) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/QuickSight.js +30 -0
  3. package/dist-cjs/commands/CreateAccountSubscriptionCommand.js +36 -0
  4. package/dist-cjs/commands/DescribeAccountSubscriptionCommand.js +36 -0
  5. package/dist-cjs/commands/DescribeThemeAliasCommand.js +3 -3
  6. package/dist-cjs/commands/DescribeThemeCommand.js +2 -1
  7. package/dist-cjs/commands/DescribeThemePermissionsCommand.js +3 -3
  8. package/dist-cjs/commands/index.js +2 -0
  9. package/dist-cjs/models/models_0.js +64 -63
  10. package/dist-cjs/models/models_1.js +46 -3
  11. package/dist-cjs/protocols/Aws_restJson1.js +247 -5
  12. package/dist-es/QuickSight.js +30 -0
  13. package/dist-es/commands/CreateAccountSubscriptionCommand.js +39 -0
  14. package/dist-es/commands/DescribeAccountSubscriptionCommand.js +39 -0
  15. package/dist-es/commands/DescribeThemeAliasCommand.js +1 -1
  16. package/dist-es/commands/DescribeThemeCommand.js +2 -1
  17. package/dist-es/commands/DescribeThemePermissionsCommand.js +1 -1
  18. package/dist-es/commands/index.js +2 -0
  19. package/dist-es/models/models_0.js +45 -42
  20. package/dist-es/models/models_1.js +28 -0
  21. package/dist-es/protocols/Aws_restJson1.js +288 -2
  22. package/dist-types/QuickSight.d.ts +62 -22
  23. package/dist-types/QuickSightClient.d.ts +4 -2
  24. package/dist-types/commands/CreateAccountCustomizationCommand.d.ts +4 -5
  25. package/dist-types/commands/CreateAccountSubscriptionCommand.d.ts +62 -0
  26. package/dist-types/commands/DescribeAccountSubscriptionCommand.d.ts +35 -0
  27. package/dist-types/commands/DescribeThemeAliasCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeThemeCommand.d.ts +2 -1
  29. package/dist-types/commands/DescribeThemePermissionsCommand.d.ts +1 -1
  30. package/dist-types/commands/GenerateEmbedUrlForAnonymousUserCommand.d.ts +2 -4
  31. package/dist-types/commands/GenerateEmbedUrlForRegisteredUserCommand.d.ts +2 -1
  32. package/dist-types/commands/GetDashboardEmbedUrlCommand.d.ts +3 -7
  33. package/dist-types/commands/UpdateAccountCustomizationCommand.d.ts +1 -2
  34. package/dist-types/commands/UpdatePublicSharingSettingsCommand.d.ts +9 -3
  35. package/dist-types/commands/index.d.ts +2 -0
  36. package/dist-types/models/models_0.d.ts +299 -213
  37. package/dist-types/models/models_1.d.ts +212 -18
  38. package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
  39. package/dist-types/ts3.4/QuickSight.d.ts +10 -0
  40. package/dist-types/ts3.4/QuickSightClient.d.ts +4 -2
  41. package/dist-types/ts3.4/commands/CreateAccountSubscriptionCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/DescribeAccountSubscriptionCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/DescribeThemeAliasCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/DescribeThemeCommand.d.ts +2 -1
  45. package/dist-types/ts3.4/commands/DescribeThemePermissionsCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  47. package/dist-types/ts3.4/models/models_0.d.ts +116 -116
  48. package/dist-types/ts3.4/models/models_1.d.ts +108 -1857
  49. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
  50. package/package.json +1 -1
@@ -22,8 +22,13 @@ export var AccountCustomization;
22
22
  export var Edition;
23
23
  (function (Edition) {
24
24
  Edition["ENTERPRISE"] = "ENTERPRISE";
25
+ Edition["ENTERPRISE_AND_Q"] = "ENTERPRISE_AND_Q";
25
26
  Edition["STANDARD"] = "STANDARD";
26
27
  })(Edition || (Edition = {}));
28
+ export var AccountInfo;
29
+ (function (AccountInfo) {
30
+ AccountInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
31
+ })(AccountInfo || (AccountInfo = {}));
27
32
  export var AccountSettings;
28
33
  (function (AccountSettings) {
29
34
  AccountSettings.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -138,6 +143,12 @@ export var AuroraPostgreSqlParameters;
138
143
  (function (AuroraPostgreSqlParameters) {
139
144
  AuroraPostgreSqlParameters.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
140
145
  })(AuroraPostgreSqlParameters || (AuroraPostgreSqlParameters = {}));
146
+ export var AuthenticationMethodOption;
147
+ (function (AuthenticationMethodOption) {
148
+ AuthenticationMethodOption["ACTIVE_DIRECTORY"] = "ACTIVE_DIRECTORY";
149
+ AuthenticationMethodOption["IAM_AND_QUICKSIGHT"] = "IAM_AND_QUICKSIGHT";
150
+ AuthenticationMethodOption["IAM_ONLY"] = "IAM_ONLY";
151
+ })(AuthenticationMethodOption || (AuthenticationMethodOption = {}));
141
152
  export var AwsIotAnalyticsParameters;
142
153
  (function (AwsIotAnalyticsParameters) {
143
154
  AwsIotAnalyticsParameters.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -359,6 +370,32 @@ var ResourceUnavailableException = (function (_super) {
359
370
  return ResourceUnavailableException;
360
371
  }(__BaseException));
361
372
  export { ResourceUnavailableException };
373
+ export var CreateAccountSubscriptionRequest;
374
+ (function (CreateAccountSubscriptionRequest) {
375
+ CreateAccountSubscriptionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
376
+ })(CreateAccountSubscriptionRequest || (CreateAccountSubscriptionRequest = {}));
377
+ export var SignupResponse;
378
+ (function (SignupResponse) {
379
+ SignupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
380
+ })(SignupResponse || (SignupResponse = {}));
381
+ export var CreateAccountSubscriptionResponse;
382
+ (function (CreateAccountSubscriptionResponse) {
383
+ CreateAccountSubscriptionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
384
+ })(CreateAccountSubscriptionResponse || (CreateAccountSubscriptionResponse = {}));
385
+ var PreconditionNotMetException = (function (_super) {
386
+ __extends(PreconditionNotMetException, _super);
387
+ function PreconditionNotMetException(opts) {
388
+ var _this = _super.call(this, __assign({ name: "PreconditionNotMetException", $fault: "client" }, opts)) || this;
389
+ _this.name = "PreconditionNotMetException";
390
+ _this.$fault = "client";
391
+ Object.setPrototypeOf(_this, PreconditionNotMetException.prototype);
392
+ _this.Message = opts.Message;
393
+ _this.RequestId = opts.RequestId;
394
+ return _this;
395
+ }
396
+ return PreconditionNotMetException;
397
+ }(__BaseException));
398
+ export { PreconditionNotMetException };
362
399
  export var DateTimeParameter;
363
400
  (function (DateTimeParameter) {
364
401
  DateTimeParameter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -943,20 +980,6 @@ export var CreateGroupResponse;
943
980
  (function (CreateGroupResponse) {
944
981
  CreateGroupResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
945
982
  })(CreateGroupResponse || (CreateGroupResponse = {}));
946
- var PreconditionNotMetException = (function (_super) {
947
- __extends(PreconditionNotMetException, _super);
948
- function PreconditionNotMetException(opts) {
949
- var _this = _super.call(this, __assign({ name: "PreconditionNotMetException", $fault: "client" }, opts)) || this;
950
- _this.name = "PreconditionNotMetException";
951
- _this.$fault = "client";
952
- Object.setPrototypeOf(_this, PreconditionNotMetException.prototype);
953
- _this.Message = opts.Message;
954
- _this.RequestId = opts.RequestId;
955
- return _this;
956
- }
957
- return PreconditionNotMetException;
958
- }(__BaseException));
959
- export { PreconditionNotMetException };
960
983
  export var CreateGroupMembershipRequest;
961
984
  (function (CreateGroupMembershipRequest) {
962
985
  CreateGroupMembershipRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1355,6 +1378,14 @@ export var DescribeAccountSettingsResponse;
1355
1378
  (function (DescribeAccountSettingsResponse) {
1356
1379
  DescribeAccountSettingsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1357
1380
  })(DescribeAccountSettingsResponse || (DescribeAccountSettingsResponse = {}));
1381
+ export var DescribeAccountSubscriptionRequest;
1382
+ (function (DescribeAccountSubscriptionRequest) {
1383
+ DescribeAccountSubscriptionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1384
+ })(DescribeAccountSubscriptionRequest || (DescribeAccountSubscriptionRequest = {}));
1385
+ export var DescribeAccountSubscriptionResponse;
1386
+ (function (DescribeAccountSubscriptionResponse) {
1387
+ DescribeAccountSubscriptionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1388
+ })(DescribeAccountSubscriptionResponse || (DescribeAccountSubscriptionResponse = {}));
1358
1389
  export var DescribeAnalysisRequest;
1359
1390
  (function (DescribeAnalysisRequest) {
1360
1391
  DescribeAnalysisRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1666,31 +1697,3 @@ export var ThemeError;
1666
1697
  (function (ThemeError) {
1667
1698
  ThemeError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1668
1699
  })(ThemeError || (ThemeError = {}));
1669
- export var ThemeVersion;
1670
- (function (ThemeVersion) {
1671
- ThemeVersion.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1672
- })(ThemeVersion || (ThemeVersion = {}));
1673
- export var Theme;
1674
- (function (Theme) {
1675
- Theme.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1676
- })(Theme || (Theme = {}));
1677
- export var DescribeThemeResponse;
1678
- (function (DescribeThemeResponse) {
1679
- DescribeThemeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1680
- })(DescribeThemeResponse || (DescribeThemeResponse = {}));
1681
- export var DescribeThemeAliasRequest;
1682
- (function (DescribeThemeAliasRequest) {
1683
- DescribeThemeAliasRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1684
- })(DescribeThemeAliasRequest || (DescribeThemeAliasRequest = {}));
1685
- export var DescribeThemeAliasResponse;
1686
- (function (DescribeThemeAliasResponse) {
1687
- DescribeThemeAliasResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1688
- })(DescribeThemeAliasResponse || (DescribeThemeAliasResponse = {}));
1689
- export var DescribeThemePermissionsRequest;
1690
- (function (DescribeThemePermissionsRequest) {
1691
- DescribeThemePermissionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1692
- })(DescribeThemePermissionsRequest || (DescribeThemePermissionsRequest = {}));
1693
- export var DescribeThemePermissionsResponse;
1694
- (function (DescribeThemePermissionsResponse) {
1695
- DescribeThemePermissionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
1696
- })(DescribeThemePermissionsResponse || (DescribeThemePermissionsResponse = {}));
@@ -2,6 +2,34 @@ import { __assign, __extends, __read } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
3
  import { DataSource, DataSourceParameters, LogicalTable, PhysicalTable, RowLevelPermissionTagConfiguration, } from "./models_0";
4
4
  import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException";
5
+ export var ThemeVersion;
6
+ (function (ThemeVersion) {
7
+ ThemeVersion.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
8
+ })(ThemeVersion || (ThemeVersion = {}));
9
+ export var Theme;
10
+ (function (Theme) {
11
+ Theme.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
12
+ })(Theme || (Theme = {}));
13
+ export var DescribeThemeResponse;
14
+ (function (DescribeThemeResponse) {
15
+ DescribeThemeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
16
+ })(DescribeThemeResponse || (DescribeThemeResponse = {}));
17
+ export var DescribeThemeAliasRequest;
18
+ (function (DescribeThemeAliasRequest) {
19
+ DescribeThemeAliasRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
20
+ })(DescribeThemeAliasRequest || (DescribeThemeAliasRequest = {}));
21
+ export var DescribeThemeAliasResponse;
22
+ (function (DescribeThemeAliasResponse) {
23
+ DescribeThemeAliasResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
24
+ })(DescribeThemeAliasResponse || (DescribeThemeAliasResponse = {}));
25
+ export var DescribeThemePermissionsRequest;
26
+ (function (DescribeThemePermissionsRequest) {
27
+ DescribeThemePermissionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
28
+ })(DescribeThemePermissionsRequest || (DescribeThemePermissionsRequest = {}));
29
+ export var DescribeThemePermissionsResponse;
30
+ (function (DescribeThemePermissionsResponse) {
31
+ DescribeThemePermissionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
32
+ })(DescribeThemePermissionsResponse || (DescribeThemePermissionsResponse = {}));
5
33
  export var DescribeUserRequest;
6
34
  (function (DescribeUserRequest) {
7
35
  DescribeUserRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -96,6 +96,46 @@ export var serializeAws_restJson1CreateAccountCustomizationCommand = function (i
96
96
  }
97
97
  });
98
98
  }); };
99
+ export var serializeAws_restJson1CreateAccountSubscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
100
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
101
+ return __generator(this, function (_c) {
102
+ switch (_c.label) {
103
+ case 0: return [4, context.endpoint()];
104
+ case 1:
105
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
106
+ headers = {
107
+ "content-type": "application/json",
108
+ };
109
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account/{AwsAccountId}";
110
+ if (input.AwsAccountId !== undefined) {
111
+ labelValue = input.AwsAccountId;
112
+ if (labelValue.length <= 0) {
113
+ throw new Error("Empty value provided for input HTTP label: AwsAccountId.");
114
+ }
115
+ resolvedPath = resolvedPath.replace("{AwsAccountId}", __extendedEncodeURIComponent(labelValue));
116
+ }
117
+ else {
118
+ throw new Error("No value provided for input HTTP label: AwsAccountId.");
119
+ }
120
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountName !== undefined && input.AccountName !== null && { AccountName: input.AccountName })), (input.ActiveDirectoryName !== undefined &&
121
+ input.ActiveDirectoryName !== null && { ActiveDirectoryName: input.ActiveDirectoryName })), (input.AdminGroup !== undefined &&
122
+ input.AdminGroup !== null && { AdminGroup: serializeAws_restJson1GroupsList(input.AdminGroup, context) })), (input.AuthenticationMethod !== undefined &&
123
+ input.AuthenticationMethod !== null && { AuthenticationMethod: input.AuthenticationMethod })), (input.AuthorGroup !== undefined &&
124
+ input.AuthorGroup !== null && { AuthorGroup: serializeAws_restJson1GroupsList(input.AuthorGroup, context) })), (input.ContactNumber !== undefined && input.ContactNumber !== null && { ContactNumber: input.ContactNumber })), (input.DirectoryId !== undefined && input.DirectoryId !== null && { DirectoryId: input.DirectoryId })), (input.Edition !== undefined && input.Edition !== null && { Edition: input.Edition })), (input.EmailAddress !== undefined && input.EmailAddress !== null && { EmailAddress: input.EmailAddress })), (input.FirstName !== undefined && input.FirstName !== null && { FirstName: input.FirstName })), (input.LastName !== undefined && input.LastName !== null && { LastName: input.LastName })), (input.NotificationEmail !== undefined &&
125
+ input.NotificationEmail !== null && { NotificationEmail: input.NotificationEmail })), (input.ReaderGroup !== undefined &&
126
+ input.ReaderGroup !== null && { ReaderGroup: serializeAws_restJson1GroupsList(input.ReaderGroup, context) })), (input.Realm !== undefined && input.Realm !== null && { Realm: input.Realm })));
127
+ return [2, new __HttpRequest({
128
+ protocol: protocol,
129
+ hostname: hostname,
130
+ port: port,
131
+ method: "POST",
132
+ headers: headers,
133
+ path: resolvedPath,
134
+ body: body,
135
+ })];
136
+ }
137
+ });
138
+ }); };
99
139
  export var serializeAws_restJson1CreateAnalysisCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
100
140
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
101
141
  return __generator(this, function (_c) {
@@ -1772,6 +1812,37 @@ export var serializeAws_restJson1DescribeAccountSettingsCommand = function (inpu
1772
1812
  }
1773
1813
  });
1774
1814
  }); };
1815
+ export var serializeAws_restJson1DescribeAccountSubscriptionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1816
+ var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
1817
+ return __generator(this, function (_c) {
1818
+ switch (_c.label) {
1819
+ case 0: return [4, context.endpoint()];
1820
+ case 1:
1821
+ _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1822
+ headers = {};
1823
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/account/{AwsAccountId}";
1824
+ if (input.AwsAccountId !== undefined) {
1825
+ labelValue = input.AwsAccountId;
1826
+ if (labelValue.length <= 0) {
1827
+ throw new Error("Empty value provided for input HTTP label: AwsAccountId.");
1828
+ }
1829
+ resolvedPath = resolvedPath.replace("{AwsAccountId}", __extendedEncodeURIComponent(labelValue));
1830
+ }
1831
+ else {
1832
+ throw new Error("No value provided for input HTTP label: AwsAccountId.");
1833
+ }
1834
+ return [2, new __HttpRequest({
1835
+ protocol: protocol,
1836
+ hostname: hostname,
1837
+ port: port,
1838
+ method: "GET",
1839
+ headers: headers,
1840
+ path: resolvedPath,
1841
+ body: body,
1842
+ })];
1843
+ }
1844
+ });
1845
+ }); };
1775
1846
  export var serializeAws_restJson1DescribeAnalysisCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
1776
1847
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
1777
1848
  return __generator(this, function (_c) {
@@ -2876,7 +2947,10 @@ export var serializeAws_restJson1GenerateEmbedUrlForAnonymousUserCommand = funct
2876
2947
  else {
2877
2948
  throw new Error("No value provided for input HTTP label: AwsAccountId.");
2878
2949
  }
2879
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AuthorizedResourceArns !== undefined &&
2950
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AllowedDomains !== undefined &&
2951
+ input.AllowedDomains !== null && {
2952
+ AllowedDomains: serializeAws_restJson1StringList(input.AllowedDomains, context),
2953
+ })), (input.AuthorizedResourceArns !== undefined &&
2880
2954
  input.AuthorizedResourceArns !== null && {
2881
2955
  AuthorizedResourceArns: serializeAws_restJson1ArnList(input.AuthorizedResourceArns, context),
2882
2956
  })), (input.ExperienceConfiguration !== undefined &&
@@ -2919,7 +2993,10 @@ export var serializeAws_restJson1GenerateEmbedUrlForRegisteredUserCommand = func
2919
2993
  else {
2920
2994
  throw new Error("No value provided for input HTTP label: AwsAccountId.");
2921
2995
  }
2922
- body = JSON.stringify(__assign(__assign(__assign({}, (input.ExperienceConfiguration !== undefined &&
2996
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AllowedDomains !== undefined &&
2997
+ input.AllowedDomains !== null && {
2998
+ AllowedDomains: serializeAws_restJson1StringList(input.AllowedDomains, context),
2999
+ })), (input.ExperienceConfiguration !== undefined &&
2923
3000
  input.ExperienceConfiguration !== null && {
2924
3001
  ExperienceConfiguration: serializeAws_restJson1RegisteredUserEmbeddingExperienceConfiguration(input.ExperienceConfiguration, context),
2925
3002
  })), (input.SessionLifetimeInMinutes !== undefined &&
@@ -5651,6 +5728,103 @@ var deserializeAws_restJson1CreateAccountCustomizationCommandError = function (o
5651
5728
  }
5652
5729
  });
5653
5730
  }); };
5731
+ export var deserializeAws_restJson1CreateAccountSubscriptionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5732
+ var contents, data, _a, _b;
5733
+ return __generator(this, function (_c) {
5734
+ switch (_c.label) {
5735
+ case 0:
5736
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5737
+ return [2, deserializeAws_restJson1CreateAccountSubscriptionCommandError(output, context)];
5738
+ }
5739
+ contents = {
5740
+ $metadata: deserializeMetadata(output),
5741
+ RequestId: undefined,
5742
+ SignupResponse: undefined,
5743
+ Status: undefined,
5744
+ };
5745
+ _a = __expectNonNull;
5746
+ _b = __expectObject;
5747
+ return [4, parseBody(output.body, context)];
5748
+ case 1:
5749
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5750
+ if (data.RequestId !== undefined && data.RequestId !== null) {
5751
+ contents.RequestId = __expectString(data.RequestId);
5752
+ }
5753
+ if (data.SignupResponse !== undefined && data.SignupResponse !== null) {
5754
+ contents.SignupResponse = deserializeAws_restJson1SignupResponse(data.SignupResponse, context);
5755
+ }
5756
+ if (contents.Status === undefined) {
5757
+ contents.Status = output.statusCode;
5758
+ }
5759
+ return [2, Promise.resolve(contents)];
5760
+ }
5761
+ });
5762
+ }); };
5763
+ var deserializeAws_restJson1CreateAccountSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5764
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
5765
+ var _c;
5766
+ return __generator(this, function (_d) {
5767
+ switch (_d.label) {
5768
+ case 0:
5769
+ _a = [__assign({}, output)];
5770
+ _c = {};
5771
+ return [4, parseBody(output.body, context)];
5772
+ case 1:
5773
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
5774
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5775
+ _b = errorCode;
5776
+ switch (_b) {
5777
+ case "AccessDeniedException": return [3, 2];
5778
+ case "com.amazonaws.quicksight#AccessDeniedException": return [3, 2];
5779
+ case "ConflictException": return [3, 4];
5780
+ case "com.amazonaws.quicksight#ConflictException": return [3, 4];
5781
+ case "InternalFailureException": return [3, 6];
5782
+ case "com.amazonaws.quicksight#InternalFailureException": return [3, 6];
5783
+ case "InvalidParameterValueException": return [3, 8];
5784
+ case "com.amazonaws.quicksight#InvalidParameterValueException": return [3, 8];
5785
+ case "PreconditionNotMetException": return [3, 10];
5786
+ case "com.amazonaws.quicksight#PreconditionNotMetException": return [3, 10];
5787
+ case "ResourceExistsException": return [3, 12];
5788
+ case "com.amazonaws.quicksight#ResourceExistsException": return [3, 12];
5789
+ case "ResourceNotFoundException": return [3, 14];
5790
+ case "com.amazonaws.quicksight#ResourceNotFoundException": return [3, 14];
5791
+ case "ResourceUnavailableException": return [3, 16];
5792
+ case "com.amazonaws.quicksight#ResourceUnavailableException": return [3, 16];
5793
+ case "ThrottlingException": return [3, 18];
5794
+ case "com.amazonaws.quicksight#ThrottlingException": return [3, 18];
5795
+ }
5796
+ return [3, 20];
5797
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
5798
+ case 3: throw _d.sent();
5799
+ case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
5800
+ case 5: throw _d.sent();
5801
+ case 6: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
5802
+ case 7: throw _d.sent();
5803
+ case 8: return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
5804
+ case 9: throw _d.sent();
5805
+ case 10: return [4, deserializeAws_restJson1PreconditionNotMetExceptionResponse(parsedOutput, context)];
5806
+ case 11: throw _d.sent();
5807
+ case 12: return [4, deserializeAws_restJson1ResourceExistsExceptionResponse(parsedOutput, context)];
5808
+ case 13: throw _d.sent();
5809
+ case 14: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
5810
+ case 15: throw _d.sent();
5811
+ case 16: return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
5812
+ case 17: throw _d.sent();
5813
+ case 18: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
5814
+ case 19: throw _d.sent();
5815
+ case 20:
5816
+ parsedBody = parsedOutput.body;
5817
+ $metadata = deserializeMetadata(output);
5818
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5819
+ response = new __BaseException({
5820
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5821
+ $fault: "client",
5822
+ $metadata: $metadata,
5823
+ });
5824
+ throw __decorateServiceException(response, parsedBody);
5825
+ }
5826
+ });
5827
+ }); };
5654
5828
  export var deserializeAws_restJson1CreateAnalysisCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5655
5829
  var contents, data, _a, _b;
5656
5830
  return __generator(this, function (_c) {
@@ -8833,6 +9007,91 @@ var deserializeAws_restJson1DescribeAccountSettingsCommandError = function (outp
8833
9007
  }
8834
9008
  });
8835
9009
  }); };
9010
+ export var deserializeAws_restJson1DescribeAccountSubscriptionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9011
+ var contents, data, _a, _b;
9012
+ return __generator(this, function (_c) {
9013
+ switch (_c.label) {
9014
+ case 0:
9015
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
9016
+ return [2, deserializeAws_restJson1DescribeAccountSubscriptionCommandError(output, context)];
9017
+ }
9018
+ contents = {
9019
+ $metadata: deserializeMetadata(output),
9020
+ AccountInfo: undefined,
9021
+ RequestId: undefined,
9022
+ Status: undefined,
9023
+ };
9024
+ _a = __expectNonNull;
9025
+ _b = __expectObject;
9026
+ return [4, parseBody(output.body, context)];
9027
+ case 1:
9028
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
9029
+ if (data.AccountInfo !== undefined && data.AccountInfo !== null) {
9030
+ contents.AccountInfo = deserializeAws_restJson1AccountInfo(data.AccountInfo, context);
9031
+ }
9032
+ if (data.RequestId !== undefined && data.RequestId !== null) {
9033
+ contents.RequestId = __expectString(data.RequestId);
9034
+ }
9035
+ if (contents.Status === undefined) {
9036
+ contents.Status = output.statusCode;
9037
+ }
9038
+ return [2, Promise.resolve(contents)];
9039
+ }
9040
+ });
9041
+ }); };
9042
+ var deserializeAws_restJson1DescribeAccountSubscriptionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
9043
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
9044
+ var _c;
9045
+ return __generator(this, function (_d) {
9046
+ switch (_d.label) {
9047
+ case 0:
9048
+ _a = [__assign({}, output)];
9049
+ _c = {};
9050
+ return [4, parseBody(output.body, context)];
9051
+ case 1:
9052
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
9053
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
9054
+ _b = errorCode;
9055
+ switch (_b) {
9056
+ case "AccessDeniedException": return [3, 2];
9057
+ case "com.amazonaws.quicksight#AccessDeniedException": return [3, 2];
9058
+ case "InternalFailureException": return [3, 4];
9059
+ case "com.amazonaws.quicksight#InternalFailureException": return [3, 4];
9060
+ case "InvalidParameterValueException": return [3, 6];
9061
+ case "com.amazonaws.quicksight#InvalidParameterValueException": return [3, 6];
9062
+ case "ResourceNotFoundException": return [3, 8];
9063
+ case "com.amazonaws.quicksight#ResourceNotFoundException": return [3, 8];
9064
+ case "ResourceUnavailableException": return [3, 10];
9065
+ case "com.amazonaws.quicksight#ResourceUnavailableException": return [3, 10];
9066
+ case "ThrottlingException": return [3, 12];
9067
+ case "com.amazonaws.quicksight#ThrottlingException": return [3, 12];
9068
+ }
9069
+ return [3, 14];
9070
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
9071
+ case 3: throw _d.sent();
9072
+ case 4: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
9073
+ case 5: throw _d.sent();
9074
+ case 6: return [4, deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)];
9075
+ case 7: throw _d.sent();
9076
+ case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
9077
+ case 9: throw _d.sent();
9078
+ case 10: return [4, deserializeAws_restJson1ResourceUnavailableExceptionResponse(parsedOutput, context)];
9079
+ case 11: throw _d.sent();
9080
+ case 12: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
9081
+ case 13: throw _d.sent();
9082
+ case 14:
9083
+ parsedBody = parsedOutput.body;
9084
+ $metadata = deserializeMetadata(output);
9085
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
9086
+ response = new __BaseException({
9087
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
9088
+ $fault: "client",
9089
+ $metadata: $metadata,
9090
+ });
9091
+ throw __decorateServiceException(response, parsedBody);
9092
+ }
9093
+ });
9094
+ }); };
8836
9095
  export var deserializeAws_restJson1DescribeAnalysisCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
8837
9096
  var contents, data, _a, _b;
8838
9097
  return __generator(this, function (_c) {
@@ -16996,6 +17255,16 @@ var serializeAws_restJson1GroupSearchFilterList = function (input, context) {
16996
17255
  return serializeAws_restJson1GroupSearchFilter(entry, context);
16997
17256
  });
16998
17257
  };
17258
+ var serializeAws_restJson1GroupsList = function (input, context) {
17259
+ return input
17260
+ .filter(function (e) { return e != null; })
17261
+ .map(function (entry) {
17262
+ if (entry === null) {
17263
+ return null;
17264
+ }
17265
+ return entry;
17266
+ });
17267
+ };
16999
17268
  var serializeAws_restJson1GutterStyle = function (input, context) {
17000
17269
  return __assign({}, (input.Show !== undefined && input.Show !== null && { Show: input.Show }));
17001
17270
  };
@@ -17488,6 +17757,15 @@ var deserializeAws_restJson1AccountCustomization = function (output, context) {
17488
17757
  DefaultTheme: __expectString(output.DefaultTheme),
17489
17758
  };
17490
17759
  };
17760
+ var deserializeAws_restJson1AccountInfo = function (output, context) {
17761
+ return {
17762
+ AccountName: __expectString(output.AccountName),
17763
+ AccountSubscriptionStatus: __expectString(output.AccountSubscriptionStatus),
17764
+ AuthenticationType: __expectString(output.AuthenticationType),
17765
+ Edition: __expectString(output.Edition),
17766
+ NotificationEmail: __expectString(output.NotificationEmail),
17767
+ };
17768
+ };
17491
17769
  var deserializeAws_restJson1AccountSettings = function (output, context) {
17492
17770
  return {
17493
17771
  AccountName: __expectString(output.AccountName),
@@ -18884,6 +19162,14 @@ var deserializeAws_restJson1SheetStyle = function (output, context) {
18884
19162
  : undefined,
18885
19163
  };
18886
19164
  };
19165
+ var deserializeAws_restJson1SignupResponse = function (output, context) {
19166
+ return {
19167
+ IAMUser: __expectBoolean(output.IAMUser),
19168
+ accountName: __expectString(output.accountName),
19169
+ directoryType: __expectString(output.directoryType),
19170
+ userLoginName: __expectString(output.userLoginName),
19171
+ };
19172
+ };
18887
19173
  var deserializeAws_restJson1SnowflakeParameters = function (output, context) {
18888
19174
  return {
18889
19175
  Database: __expectString(output.Database),