@aws-sdk/client-quicksight 3.658.0 → 3.660.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 (28) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +114 -13
  3. package/dist-es/QuickSight.js +4 -0
  4. package/dist-es/commands/DescribeQPersonalizationConfigurationCommand.js +22 -0
  5. package/dist-es/commands/UpdateQPersonalizationConfigurationCommand.js +22 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_3.js +4 -10
  8. package/dist-es/models/models_4.js +10 -0
  9. package/dist-es/protocols/Aws_restJson1.js +61 -7
  10. package/dist-types/QuickSight.d.ts +14 -0
  11. package/dist-types/QuickSightClient.d.ts +4 -2
  12. package/dist-types/commands/DescribeQPersonalizationConfigurationCommand.d.ts +94 -0
  13. package/dist-types/commands/DescribeUserCommand.d.ts +2 -1
  14. package/dist-types/commands/UpdateQPersonalizationConfigurationCommand.d.ts +98 -0
  15. package/dist-types/commands/index.d.ts +2 -0
  16. package/dist-types/models/models_3.d.ts +42 -152
  17. package/dist-types/models/models_4.d.ts +188 -1
  18. package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
  19. package/dist-types/ts3.4/QuickSight.d.ts +46 -0
  20. package/dist-types/ts3.4/QuickSightClient.d.ts +12 -0
  21. package/dist-types/ts3.4/commands/DescribeQPersonalizationConfigurationCommand.d.ts +51 -0
  22. package/dist-types/ts3.4/commands/DescribeUserCommand.d.ts +2 -1
  23. package/dist-types/ts3.4/commands/UpdateQPersonalizationConfigurationCommand.d.ts +51 -0
  24. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  25. package/dist-types/ts3.4/models/models_3.d.ts +14 -29
  26. package/dist-types/ts3.4/models/models_4.d.ts +39 -2
  27. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
  28. package/package.json +12 -12
package/README.md CHANGED
@@ -839,6 +839,14 @@ DescribeNamespace
839
839
 
840
840
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/quicksight/command/DescribeNamespaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-quicksight/Interface/DescribeNamespaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-quicksight/Interface/DescribeNamespaceCommandOutput/)
841
841
 
842
+ </details>
843
+ <details>
844
+ <summary>
845
+ DescribeQPersonalizationConfiguration
846
+ </summary>
847
+
848
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/quicksight/command/DescribeQPersonalizationConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-quicksight/Interface/DescribeQPersonalizationConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-quicksight/Interface/DescribeQPersonalizationConfigurationCommandOutput/)
849
+
842
850
  </details>
843
851
  <details>
844
852
  <summary>
@@ -1519,6 +1527,14 @@ UpdatePublicSharingSettings
1519
1527
 
1520
1528
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/quicksight/command/UpdatePublicSharingSettingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-quicksight/Interface/UpdatePublicSharingSettingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-quicksight/Interface/UpdatePublicSharingSettingsCommandOutput/)
1521
1529
 
1530
+ </details>
1531
+ <details>
1532
+ <summary>
1533
+ UpdateQPersonalizationConfiguration
1534
+ </summary>
1535
+
1536
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/quicksight/command/UpdateQPersonalizationConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-quicksight/Interface/UpdateQPersonalizationConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-quicksight/Interface/UpdateQPersonalizationConfigurationCommandOutput/)
1537
+
1522
1538
  </details>
1523
1539
  <details>
1524
1540
  <summary>
package/dist-cjs/index.js CHANGED
@@ -257,6 +257,7 @@ __export(src_exports, {
257
257
  DescribeIpRestrictionCommand: () => DescribeIpRestrictionCommand,
258
258
  DescribeKeyRegistrationCommand: () => DescribeKeyRegistrationCommand,
259
259
  DescribeNamespaceCommand: () => DescribeNamespaceCommand,
260
+ DescribeQPersonalizationConfigurationCommand: () => DescribeQPersonalizationConfigurationCommand,
260
261
  DescribeRefreshScheduleCommand: () => DescribeRefreshScheduleCommand,
261
262
  DescribeRoleCustomPermissionCommand: () => DescribeRoleCustomPermissionCommand,
262
263
  DescribeTemplateAliasCommand: () => DescribeTemplateAliasCommand,
@@ -467,6 +468,7 @@ __export(src_exports, {
467
468
  PercentageDisplayFormatConfigurationFilterSensitiveLog: () => PercentageDisplayFormatConfigurationFilterSensitiveLog,
468
469
  PeriodOverPeriodComputationFilterSensitiveLog: () => PeriodOverPeriodComputationFilterSensitiveLog,
469
470
  PeriodToDateComputationFilterSensitiveLog: () => PeriodToDateComputationFilterSensitiveLog,
471
+ PersonalizationMode: () => PersonalizationMode,
470
472
  PhysicalTable: () => PhysicalTable,
471
473
  PieChartAggregatedFieldWellsFilterSensitiveLog: () => PieChartAggregatedFieldWellsFilterSensitiveLog,
472
474
  PieChartConfigurationFilterSensitiveLog: () => PieChartConfigurationFilterSensitiveLog,
@@ -700,6 +702,7 @@ __export(src_exports, {
700
702
  UpdateIpRestrictionCommand: () => UpdateIpRestrictionCommand,
701
703
  UpdateKeyRegistrationCommand: () => UpdateKeyRegistrationCommand,
702
704
  UpdatePublicSharingSettingsCommand: () => UpdatePublicSharingSettingsCommand,
705
+ UpdateQPersonalizationConfigurationCommand: () => UpdateQPersonalizationConfigurationCommand,
703
706
  UpdateRefreshScheduleCommand: () => UpdateRefreshScheduleCommand,
704
707
  UpdateRoleCustomPermissionCommand: () => UpdateRoleCustomPermissionCommand,
705
708
  UpdateSPICECapacityConfigurationCommand: () => UpdateSPICECapacityConfigurationCommand,
@@ -3501,6 +3504,16 @@ var CreateDataSetRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
3501
3504
  }), "CreateDataSetRequestFilterSensitiveLog");
3502
3505
 
3503
3506
  // src/models/models_4.ts
3507
+ var UserRole = {
3508
+ ADMIN: "ADMIN",
3509
+ ADMIN_PRO: "ADMIN_PRO",
3510
+ AUTHOR: "AUTHOR",
3511
+ AUTHOR_PRO: "AUTHOR_PRO",
3512
+ READER: "READER",
3513
+ READER_PRO: "READER_PRO",
3514
+ RESTRICTED_AUTHOR: "RESTRICTED_AUTHOR",
3515
+ RESTRICTED_READER: "RESTRICTED_READER"
3516
+ };
3504
3517
  var NetworkInterfaceStatus = {
3505
3518
  ATTACHMENT_FAILED_ROLLBACK_FAILED: "ATTACHMENT_FAILED_ROLLBACK_FAILED",
3506
3519
  AVAILABLE: "AVAILABLE",
@@ -4099,6 +4112,10 @@ var NamespaceErrorType = {
4099
4112
  INTERNAL_SERVICE_ERROR: "INTERNAL_SERVICE_ERROR",
4100
4113
  PERMISSION_DENIED: "PERMISSION_DENIED"
4101
4114
  };
4115
+ var PersonalizationMode = {
4116
+ DISABLED: "DISABLED",
4117
+ ENABLED: "ENABLED"
4118
+ };
4102
4119
  var TemplateErrorType = {
4103
4120
  ACCESS_DENIED: "ACCESS_DENIED",
4104
4121
  DATA_SET_NOT_FOUND: "DATA_SET_NOT_FOUND",
@@ -4125,16 +4142,6 @@ var IdentityType = {
4125
4142
  IAM_IDENTITY_CENTER: "IAM_IDENTITY_CENTER",
4126
4143
  QUICKSIGHT: "QUICKSIGHT"
4127
4144
  };
4128
- var UserRole = {
4129
- ADMIN: "ADMIN",
4130
- ADMIN_PRO: "ADMIN_PRO",
4131
- AUTHOR: "AUTHOR",
4132
- AUTHOR_PRO: "AUTHOR_PRO",
4133
- READER: "READER",
4134
- READER_PRO: "READER_PRO",
4135
- RESTRICTED_AUTHOR: "RESTRICTED_AUTHOR",
4136
- RESTRICTED_READER: "RESTRICTED_READER"
4137
- };
4138
4145
  var DataSourceCredentialsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4139
4146
  ...obj,
4140
4147
  ...obj.CredentialPair && { CredentialPair: obj.CredentialPair }
@@ -5390,6 +5397,15 @@ var se_DescribeNamespaceCommand = /* @__PURE__ */ __name(async (input, context)
5390
5397
  b.m("GET").h(headers).b(body);
5391
5398
  return b.build();
5392
5399
  }, "se_DescribeNamespaceCommand");
5400
+ var se_DescribeQPersonalizationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
5401
+ const b = (0, import_core.requestBuilder)(input, context);
5402
+ const headers = {};
5403
+ b.bp("/accounts/{AwsAccountId}/q-personalization-configuration");
5404
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
5405
+ let body;
5406
+ b.m("GET").h(headers).b(body);
5407
+ return b.build();
5408
+ }, "se_DescribeQPersonalizationConfigurationCommand");
5393
5409
  var se_DescribeRefreshScheduleCommand = /* @__PURE__ */ __name(async (input, context) => {
5394
5410
  const b = (0, import_core.requestBuilder)(input, context);
5395
5411
  const headers = {};
@@ -5613,7 +5629,7 @@ var se_GetDashboardEmbedUrlCommand = /* @__PURE__ */ __name(async (input, contex
5613
5629
  [_spe]: [() => input.StatePersistenceEnabled !== void 0, () => input[_SPE].toString()],
5614
5630
  [_ua]: [, input[_UA]],
5615
5631
  [_n]: [, input[_N]],
5616
- [_adi]: [() => input.AdditionalDashboardIds !== void 0, () => (input[_ADI] || []).map((_entry) => _entry)]
5632
+ [_adi]: [() => input.AdditionalDashboardIds !== void 0, () => input[_ADI] || []]
5617
5633
  });
5618
5634
  let body;
5619
5635
  b.m("GET").h(headers).q(query).b(body);
@@ -6308,7 +6324,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
6308
6324
  b.bp("/resources/{ResourceArn}/tags");
6309
6325
  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
6310
6326
  const query = (0, import_smithy_client.map)({
6311
- [_k]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => (input[_TK] || []).map((_entry) => _entry)]
6327
+ [_k]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
6312
6328
  });
6313
6329
  let body;
6314
6330
  b.m("DELETE").h(headers).q(query).b(body);
@@ -6688,6 +6704,22 @@ var se_UpdatePublicSharingSettingsCommand = /* @__PURE__ */ __name(async (input,
6688
6704
  b.m("PUT").h(headers).b(body);
6689
6705
  return b.build();
6690
6706
  }, "se_UpdatePublicSharingSettingsCommand");
6707
+ var se_UpdateQPersonalizationConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
6708
+ const b = (0, import_core.requestBuilder)(input, context);
6709
+ const headers = {
6710
+ "content-type": "application/json"
6711
+ };
6712
+ b.bp("/accounts/{AwsAccountId}/q-personalization-configuration");
6713
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
6714
+ let body;
6715
+ body = JSON.stringify(
6716
+ (0, import_smithy_client.take)(input, {
6717
+ PersonalizationMode: []
6718
+ })
6719
+ );
6720
+ b.m("PUT").h(headers).b(body);
6721
+ return b.build();
6722
+ }, "se_UpdateQPersonalizationConfigurationCommand");
6691
6723
  var se_UpdateRefreshScheduleCommand = /* @__PURE__ */ __name(async (input, context) => {
6692
6724
  const b = (0, import_core.requestBuilder)(input, context);
6693
6725
  const headers = {
@@ -8487,6 +8519,24 @@ var de_DescribeNamespaceCommand = /* @__PURE__ */ __name(async (output, context)
8487
8519
  });
8488
8520
  return contents;
8489
8521
  }, "de_DescribeNamespaceCommand");
8522
+ var de_DescribeQPersonalizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
8523
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
8524
+ return de_CommandError(output, context);
8525
+ }
8526
+ const contents = (0, import_smithy_client.map)({
8527
+ $metadata: deserializeMetadata(output)
8528
+ });
8529
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
8530
+ const doc = (0, import_smithy_client.take)(data, {
8531
+ PersonalizationMode: import_smithy_client.expectString,
8532
+ RequestId: import_smithy_client.expectString
8533
+ });
8534
+ Object.assign(contents, doc);
8535
+ (0, import_smithy_client.map)(contents, {
8536
+ Status: [, output.statusCode]
8537
+ });
8538
+ return contents;
8539
+ }, "de_DescribeQPersonalizationConfigurationCommand");
8490
8540
  var de_DescribeRefreshScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
8491
8541
  if (output.statusCode !== 200 && output.statusCode >= 300) {
8492
8542
  return de_CommandError(output, context);
@@ -10091,6 +10141,24 @@ var de_UpdatePublicSharingSettingsCommand = /* @__PURE__ */ __name(async (output
10091
10141
  });
10092
10142
  return contents;
10093
10143
  }, "de_UpdatePublicSharingSettingsCommand");
10144
+ var de_UpdateQPersonalizationConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
10145
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
10146
+ return de_CommandError(output, context);
10147
+ }
10148
+ const contents = (0, import_smithy_client.map)({
10149
+ $metadata: deserializeMetadata(output)
10150
+ });
10151
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
10152
+ const doc = (0, import_smithy_client.take)(data, {
10153
+ PersonalizationMode: import_smithy_client.expectString,
10154
+ RequestId: import_smithy_client.expectString
10155
+ });
10156
+ Object.assign(contents, doc);
10157
+ (0, import_smithy_client.map)(contents, {
10158
+ Status: [, output.statusCode]
10159
+ });
10160
+ return contents;
10161
+ }, "de_UpdateQPersonalizationConfigurationCommand");
10094
10162
  var de_UpdateRefreshScheduleCommand = /* @__PURE__ */ __name(async (output, context) => {
10095
10163
  if (output.statusCode !== 200 && output.statusCode >= 300) {
10096
10164
  return de_CommandError(output, context);
@@ -17096,6 +17164,20 @@ var _DescribeNamespaceCommand = class _DescribeNamespaceCommand extends import_s
17096
17164
  __name(_DescribeNamespaceCommand, "DescribeNamespaceCommand");
17097
17165
  var DescribeNamespaceCommand = _DescribeNamespaceCommand;
17098
17166
 
17167
+ // src/commands/DescribeQPersonalizationConfigurationCommand.ts
17168
+
17169
+
17170
+
17171
+ var _DescribeQPersonalizationConfigurationCommand = class _DescribeQPersonalizationConfigurationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
17172
+ return [
17173
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
17174
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
17175
+ ];
17176
+ }).s("QuickSight_20180401", "DescribeQPersonalizationConfiguration", {}).n("QuickSightClient", "DescribeQPersonalizationConfigurationCommand").f(void 0, void 0).ser(se_DescribeQPersonalizationConfigurationCommand).de(de_DescribeQPersonalizationConfigurationCommand).build() {
17177
+ };
17178
+ __name(_DescribeQPersonalizationConfigurationCommand, "DescribeQPersonalizationConfigurationCommand");
17179
+ var DescribeQPersonalizationConfigurationCommand = _DescribeQPersonalizationConfigurationCommand;
17180
+
17099
17181
  // src/commands/DescribeRefreshScheduleCommand.ts
17100
17182
 
17101
17183
 
@@ -18289,6 +18371,20 @@ var _UpdatePublicSharingSettingsCommand = class _UpdatePublicSharingSettingsComm
18289
18371
  __name(_UpdatePublicSharingSettingsCommand, "UpdatePublicSharingSettingsCommand");
18290
18372
  var UpdatePublicSharingSettingsCommand = _UpdatePublicSharingSettingsCommand;
18291
18373
 
18374
+ // src/commands/UpdateQPersonalizationConfigurationCommand.ts
18375
+
18376
+
18377
+
18378
+ var _UpdateQPersonalizationConfigurationCommand = class _UpdateQPersonalizationConfigurationCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
18379
+ return [
18380
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
18381
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
18382
+ ];
18383
+ }).s("QuickSight_20180401", "UpdateQPersonalizationConfiguration", {}).n("QuickSightClient", "UpdateQPersonalizationConfigurationCommand").f(void 0, void 0).ser(se_UpdateQPersonalizationConfigurationCommand).de(de_UpdateQPersonalizationConfigurationCommand).build() {
18384
+ };
18385
+ __name(_UpdateQPersonalizationConfigurationCommand, "UpdateQPersonalizationConfigurationCommand");
18386
+ var UpdateQPersonalizationConfigurationCommand = _UpdateQPersonalizationConfigurationCommand;
18387
+
18292
18388
  // src/commands/UpdateRefreshScheduleCommand.ts
18293
18389
 
18294
18390
 
@@ -18566,6 +18662,7 @@ var commands = {
18566
18662
  DescribeIpRestrictionCommand,
18567
18663
  DescribeKeyRegistrationCommand,
18568
18664
  DescribeNamespaceCommand,
18665
+ DescribeQPersonalizationConfigurationCommand,
18569
18666
  DescribeRefreshScheduleCommand,
18570
18667
  DescribeRoleCustomPermissionCommand,
18571
18668
  DescribeTemplateCommand,
@@ -18651,6 +18748,7 @@ var commands = {
18651
18748
  UpdateIpRestrictionCommand,
18652
18749
  UpdateKeyRegistrationCommand,
18653
18750
  UpdatePublicSharingSettingsCommand,
18751
+ UpdateQPersonalizationConfigurationCommand,
18654
18752
  UpdateRefreshScheduleCommand,
18655
18753
  UpdateRoleCustomPermissionCommand,
18656
18754
  UpdateSPICECapacityConfigurationCommand,
@@ -18894,6 +18992,7 @@ var paginateSearchGroups = (0, import_core.createPaginator)(QuickSightClient, Se
18894
18992
  DescribeIpRestrictionCommand,
18895
18993
  DescribeKeyRegistrationCommand,
18896
18994
  DescribeNamespaceCommand,
18995
+ DescribeQPersonalizationConfigurationCommand,
18897
18996
  DescribeRefreshScheduleCommand,
18898
18997
  DescribeRoleCustomPermissionCommand,
18899
18998
  DescribeTemplateAliasCommand,
@@ -18979,6 +19078,7 @@ var paginateSearchGroups = (0, import_core.createPaginator)(QuickSightClient, Se
18979
19078
  UpdateIpRestrictionCommand,
18980
19079
  UpdateKeyRegistrationCommand,
18981
19080
  UpdatePublicSharingSettingsCommand,
19081
+ UpdateQPersonalizationConfigurationCommand,
18982
19082
  UpdateRefreshScheduleCommand,
18983
19083
  UpdateRoleCustomPermissionCommand,
18984
19084
  UpdateSPICECapacityConfigurationCommand,
@@ -19498,12 +19598,12 @@ var paginateSearchGroups = (0, import_core.createPaginator)(QuickSightClient, Se
19498
19598
  IngestionRequestSource,
19499
19599
  IngestionRequestType,
19500
19600
  NamespaceErrorType,
19601
+ PersonalizationMode,
19501
19602
  TemplateErrorType,
19502
19603
  ThemeType,
19503
19604
  ThemeErrorType,
19504
19605
  TopicRefreshStatus,
19505
19606
  IdentityType,
19506
- UserRole,
19507
19607
  DataSourceCredentialsFilterSensitiveLog,
19508
19608
  CreateDataSourceRequestFilterSensitiveLog,
19509
19609
  TemplateVersionDefinitionFilterSensitiveLog,
@@ -19536,6 +19636,7 @@ var paginateSearchGroups = (0, import_core.createPaginator)(QuickSightClient, Se
19536
19636
  DescribeDataSetResponseFilterSensitiveLog,
19537
19637
  DescribeTemplateDefinitionResponseFilterSensitiveLog,
19538
19638
  DescribeTopicResponseFilterSensitiveLog,
19639
+ UserRole,
19539
19640
  NetworkInterfaceStatus,
19540
19641
  DomainNotWhitelistedException,
19541
19642
  EmbeddingIdentityType,
@@ -78,6 +78,7 @@ import { DescribeIngestionCommand, } from "./commands/DescribeIngestionCommand";
78
78
  import { DescribeIpRestrictionCommand, } from "./commands/DescribeIpRestrictionCommand";
79
79
  import { DescribeKeyRegistrationCommand, } from "./commands/DescribeKeyRegistrationCommand";
80
80
  import { DescribeNamespaceCommand, } from "./commands/DescribeNamespaceCommand";
81
+ import { DescribeQPersonalizationConfigurationCommand, } from "./commands/DescribeQPersonalizationConfigurationCommand";
81
82
  import { DescribeRefreshScheduleCommand, } from "./commands/DescribeRefreshScheduleCommand";
82
83
  import { DescribeRoleCustomPermissionCommand, } from "./commands/DescribeRoleCustomPermissionCommand";
83
84
  import { DescribeTemplateAliasCommand, } from "./commands/DescribeTemplateAliasCommand";
@@ -163,6 +164,7 @@ import { UpdateIdentityPropagationConfigCommand, } from "./commands/UpdateIdenti
163
164
  import { UpdateIpRestrictionCommand, } from "./commands/UpdateIpRestrictionCommand";
164
165
  import { UpdateKeyRegistrationCommand, } from "./commands/UpdateKeyRegistrationCommand";
165
166
  import { UpdatePublicSharingSettingsCommand, } from "./commands/UpdatePublicSharingSettingsCommand";
167
+ import { UpdateQPersonalizationConfigurationCommand, } from "./commands/UpdateQPersonalizationConfigurationCommand";
166
168
  import { UpdateRefreshScheduleCommand, } from "./commands/UpdateRefreshScheduleCommand";
167
169
  import { UpdateRoleCustomPermissionCommand, } from "./commands/UpdateRoleCustomPermissionCommand";
168
170
  import { UpdateSPICECapacityConfigurationCommand, } from "./commands/UpdateSPICECapacityConfigurationCommand";
@@ -258,6 +260,7 @@ const commands = {
258
260
  DescribeIpRestrictionCommand,
259
261
  DescribeKeyRegistrationCommand,
260
262
  DescribeNamespaceCommand,
263
+ DescribeQPersonalizationConfigurationCommand,
261
264
  DescribeRefreshScheduleCommand,
262
265
  DescribeRoleCustomPermissionCommand,
263
266
  DescribeTemplateCommand,
@@ -343,6 +346,7 @@ const commands = {
343
346
  UpdateIpRestrictionCommand,
344
347
  UpdateKeyRegistrationCommand,
345
348
  UpdatePublicSharingSettingsCommand,
349
+ UpdateQPersonalizationConfigurationCommand,
346
350
  UpdateRefreshScheduleCommand,
347
351
  UpdateRoleCustomPermissionCommand,
348
352
  UpdateSPICECapacityConfigurationCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DescribeQPersonalizationConfigurationCommand, se_DescribeQPersonalizationConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class DescribeQPersonalizationConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("QuickSight_20180401", "DescribeQPersonalizationConfiguration", {})
17
+ .n("QuickSightClient", "DescribeQPersonalizationConfigurationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DescribeQPersonalizationConfigurationCommand)
20
+ .de(de_DescribeQPersonalizationConfigurationCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateQPersonalizationConfigurationCommand, se_UpdateQPersonalizationConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateQPersonalizationConfigurationCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("QuickSight_20180401", "UpdateQPersonalizationConfiguration", {})
17
+ .n("QuickSightClient", "UpdateQPersonalizationConfigurationCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateQPersonalizationConfigurationCommand)
20
+ .de(de_UpdateQPersonalizationConfigurationCommand)
21
+ .build() {
22
+ }
@@ -77,6 +77,7 @@ export * from "./DescribeIngestionCommand";
77
77
  export * from "./DescribeIpRestrictionCommand";
78
78
  export * from "./DescribeKeyRegistrationCommand";
79
79
  export * from "./DescribeNamespaceCommand";
80
+ export * from "./DescribeQPersonalizationConfigurationCommand";
80
81
  export * from "./DescribeRefreshScheduleCommand";
81
82
  export * from "./DescribeRoleCustomPermissionCommand";
82
83
  export * from "./DescribeTemplateAliasCommand";
@@ -162,6 +163,7 @@ export * from "./UpdateIdentityPropagationConfigCommand";
162
163
  export * from "./UpdateIpRestrictionCommand";
163
164
  export * from "./UpdateKeyRegistrationCommand";
164
165
  export * from "./UpdatePublicSharingSettingsCommand";
166
+ export * from "./UpdateQPersonalizationConfigurationCommand";
165
167
  export * from "./UpdateRefreshScheduleCommand";
166
168
  export * from "./UpdateRoleCustomPermissionCommand";
167
169
  export * from "./UpdateSPICECapacityConfigurationCommand";
@@ -331,6 +331,10 @@ export const NamespaceErrorType = {
331
331
  INTERNAL_SERVICE_ERROR: "INTERNAL_SERVICE_ERROR",
332
332
  PERMISSION_DENIED: "PERMISSION_DENIED",
333
333
  };
334
+ export const PersonalizationMode = {
335
+ DISABLED: "DISABLED",
336
+ ENABLED: "ENABLED",
337
+ };
334
338
  export const TemplateErrorType = {
335
339
  ACCESS_DENIED: "ACCESS_DENIED",
336
340
  DATA_SET_NOT_FOUND: "DATA_SET_NOT_FOUND",
@@ -357,16 +361,6 @@ export const IdentityType = {
357
361
  IAM_IDENTITY_CENTER: "IAM_IDENTITY_CENTER",
358
362
  QUICKSIGHT: "QUICKSIGHT",
359
363
  };
360
- export const UserRole = {
361
- ADMIN: "ADMIN",
362
- ADMIN_PRO: "ADMIN_PRO",
363
- AUTHOR: "AUTHOR",
364
- AUTHOR_PRO: "AUTHOR_PRO",
365
- READER: "READER",
366
- READER_PRO: "READER_PRO",
367
- RESTRICTED_AUTHOR: "RESTRICTED_AUTHOR",
368
- RESTRICTED_READER: "RESTRICTED_READER",
369
- };
370
364
  export const DataSourceCredentialsFilterSensitiveLog = (obj) => ({
371
365
  ...obj,
372
366
  ...(obj.CredentialPair && { CredentialPair: obj.CredentialPair }),
@@ -1,6 +1,16 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { _ParametersFilterSensitiveLog, AssetBundleImportSourceFilterSensitiveLog, LogicalTableFilterSensitiveLog, RowLevelPermissionTagConfigurationFilterSensitiveLog, TopicIRFilterSensitiveLog, } from "./models_2";
3
3
  import { QuickSightServiceException as __BaseException } from "./QuickSightServiceException";
4
+ export const UserRole = {
5
+ ADMIN: "ADMIN",
6
+ ADMIN_PRO: "ADMIN_PRO",
7
+ AUTHOR: "AUTHOR",
8
+ AUTHOR_PRO: "AUTHOR_PRO",
9
+ READER: "READER",
10
+ READER_PRO: "READER_PRO",
11
+ RESTRICTED_AUTHOR: "RESTRICTED_AUTHOR",
12
+ RESTRICTED_READER: "RESTRICTED_READER",
13
+ };
4
14
  export const NetworkInterfaceStatus = {
5
15
  ATTACHMENT_FAILED_ROLLBACK_FAILED: "ATTACHMENT_FAILED_ROLLBACK_FAILED",
6
16
  AVAILABLE: "AVAILABLE",
@@ -1056,6 +1056,15 @@ export const se_DescribeNamespaceCommand = async (input, context) => {
1056
1056
  b.m("GET").h(headers).b(body);
1057
1057
  return b.build();
1058
1058
  };
1059
+ export const se_DescribeQPersonalizationConfigurationCommand = async (input, context) => {
1060
+ const b = rb(input, context);
1061
+ const headers = {};
1062
+ b.bp("/accounts/{AwsAccountId}/q-personalization-configuration");
1063
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
1064
+ let body;
1065
+ b.m("GET").h(headers).b(body);
1066
+ return b.build();
1067
+ };
1059
1068
  export const se_DescribeRefreshScheduleCommand = async (input, context) => {
1060
1069
  const b = rb(input, context);
1061
1070
  const headers = {};
@@ -1275,7 +1284,7 @@ export const se_GetDashboardEmbedUrlCommand = async (input, context) => {
1275
1284
  [_spe]: [() => input.StatePersistenceEnabled !== void 0, () => input[_SPE].toString()],
1276
1285
  [_ua]: [, input[_UA]],
1277
1286
  [_n]: [, input[_N]],
1278
- [_adi]: [() => input.AdditionalDashboardIds !== void 0, () => (input[_ADI] || []).map((_entry) => _entry)],
1287
+ [_adi]: [() => input.AdditionalDashboardIds !== void 0, () => input[_ADI] || []],
1279
1288
  });
1280
1289
  let body;
1281
1290
  b.m("GET").h(headers).q(query).b(body);
@@ -1946,7 +1955,7 @@ export const se_UntagResourceCommand = async (input, context) => {
1946
1955
  b.bp("/resources/{ResourceArn}/tags");
1947
1956
  b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1948
1957
  const query = map({
1949
- [_k]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => (input[_TK] || []).map((_entry) => _entry)],
1958
+ [_k]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
1950
1959
  });
1951
1960
  let body;
1952
1961
  b.m("DELETE").h(headers).q(query).b(body);
@@ -2288,6 +2297,20 @@ export const se_UpdatePublicSharingSettingsCommand = async (input, context) => {
2288
2297
  b.m("PUT").h(headers).b(body);
2289
2298
  return b.build();
2290
2299
  };
2300
+ export const se_UpdateQPersonalizationConfigurationCommand = async (input, context) => {
2301
+ const b = rb(input, context);
2302
+ const headers = {
2303
+ "content-type": "application/json",
2304
+ };
2305
+ b.bp("/accounts/{AwsAccountId}/q-personalization-configuration");
2306
+ b.p("AwsAccountId", () => input.AwsAccountId, "{AwsAccountId}", false);
2307
+ let body;
2308
+ body = JSON.stringify(take(input, {
2309
+ PersonalizationMode: [],
2310
+ }));
2311
+ b.m("PUT").h(headers).b(body);
2312
+ return b.build();
2313
+ };
2291
2314
  export const se_UpdateRefreshScheduleCommand = async (input, context) => {
2292
2315
  const b = rb(input, context);
2293
2316
  const headers = {
@@ -4059,6 +4082,24 @@ export const de_DescribeNamespaceCommand = async (output, context) => {
4059
4082
  });
4060
4083
  return contents;
4061
4084
  };
4085
+ export const de_DescribeQPersonalizationConfigurationCommand = async (output, context) => {
4086
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4087
+ return de_CommandError(output, context);
4088
+ }
4089
+ const contents = map({
4090
+ $metadata: deserializeMetadata(output),
4091
+ });
4092
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
4093
+ const doc = take(data, {
4094
+ PersonalizationMode: __expectString,
4095
+ RequestId: __expectString,
4096
+ });
4097
+ Object.assign(contents, doc);
4098
+ map(contents, {
4099
+ Status: [, output.statusCode],
4100
+ });
4101
+ return contents;
4102
+ };
4062
4103
  export const de_DescribeRefreshScheduleCommand = async (output, context) => {
4063
4104
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4064
4105
  return de_CommandError(output, context);
@@ -5663,6 +5704,24 @@ export const de_UpdatePublicSharingSettingsCommand = async (output, context) =>
5663
5704
  });
5664
5705
  return contents;
5665
5706
  };
5707
+ export const de_UpdateQPersonalizationConfigurationCommand = async (output, context) => {
5708
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5709
+ return de_CommandError(output, context);
5710
+ }
5711
+ const contents = map({
5712
+ $metadata: deserializeMetadata(output),
5713
+ });
5714
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
5715
+ const doc = take(data, {
5716
+ PersonalizationMode: __expectString,
5717
+ RequestId: __expectString,
5718
+ });
5719
+ Object.assign(contents, doc);
5720
+ map(contents, {
5721
+ Status: [, output.statusCode],
5722
+ });
5723
+ return contents;
5724
+ };
5666
5725
  export const de_UpdateRefreshScheduleCommand = async (output, context) => {
5667
5726
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5668
5727
  return de_CommandError(output, context);
@@ -11771,11 +11830,6 @@ const deserializeMetadata = (output) => ({
11771
11830
  cfId: output.headers["x-amz-cf-id"],
11772
11831
  });
11773
11832
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
11774
- const isSerializableHeaderValue = (value) => value !== undefined &&
11775
- value !== null &&
11776
- value !== "" &&
11777
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
11778
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
11779
11833
  const _ADI = "AdditionalDashboardIds";
11780
11834
  const _AN = "AliasName";
11781
11835
  const _AS = "AssignmentStatus";
@@ -78,6 +78,7 @@ import { DescribeIngestionCommandInput, DescribeIngestionCommandOutput } from ".
78
78
  import { DescribeIpRestrictionCommandInput, DescribeIpRestrictionCommandOutput } from "./commands/DescribeIpRestrictionCommand";
79
79
  import { DescribeKeyRegistrationCommandInput, DescribeKeyRegistrationCommandOutput } from "./commands/DescribeKeyRegistrationCommand";
80
80
  import { DescribeNamespaceCommandInput, DescribeNamespaceCommandOutput } from "./commands/DescribeNamespaceCommand";
81
+ import { DescribeQPersonalizationConfigurationCommandInput, DescribeQPersonalizationConfigurationCommandOutput } from "./commands/DescribeQPersonalizationConfigurationCommand";
81
82
  import { DescribeRefreshScheduleCommandInput, DescribeRefreshScheduleCommandOutput } from "./commands/DescribeRefreshScheduleCommand";
82
83
  import { DescribeRoleCustomPermissionCommandInput, DescribeRoleCustomPermissionCommandOutput } from "./commands/DescribeRoleCustomPermissionCommand";
83
84
  import { DescribeTemplateAliasCommandInput, DescribeTemplateAliasCommandOutput } from "./commands/DescribeTemplateAliasCommand";
@@ -163,6 +164,7 @@ import { UpdateIdentityPropagationConfigCommandInput, UpdateIdentityPropagationC
163
164
  import { UpdateIpRestrictionCommandInput, UpdateIpRestrictionCommandOutput } from "./commands/UpdateIpRestrictionCommand";
164
165
  import { UpdateKeyRegistrationCommandInput, UpdateKeyRegistrationCommandOutput } from "./commands/UpdateKeyRegistrationCommand";
165
166
  import { UpdatePublicSharingSettingsCommandInput, UpdatePublicSharingSettingsCommandOutput } from "./commands/UpdatePublicSharingSettingsCommand";
167
+ import { UpdateQPersonalizationConfigurationCommandInput, UpdateQPersonalizationConfigurationCommandOutput } from "./commands/UpdateQPersonalizationConfigurationCommand";
166
168
  import { UpdateRefreshScheduleCommandInput, UpdateRefreshScheduleCommandOutput } from "./commands/UpdateRefreshScheduleCommand";
167
169
  import { UpdateRoleCustomPermissionCommandInput, UpdateRoleCustomPermissionCommandOutput } from "./commands/UpdateRoleCustomPermissionCommand";
168
170
  import { UpdateSPICECapacityConfigurationCommandInput, UpdateSPICECapacityConfigurationCommandOutput } from "./commands/UpdateSPICECapacityConfigurationCommand";
@@ -653,6 +655,12 @@ export interface QuickSight {
653
655
  describeNamespace(args: DescribeNamespaceCommandInput, options?: __HttpHandlerOptions): Promise<DescribeNamespaceCommandOutput>;
654
656
  describeNamespace(args: DescribeNamespaceCommandInput, cb: (err: any, data?: DescribeNamespaceCommandOutput) => void): void;
655
657
  describeNamespace(args: DescribeNamespaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeNamespaceCommandOutput) => void): void;
658
+ /**
659
+ * @see {@link DescribeQPersonalizationConfigurationCommand}
660
+ */
661
+ describeQPersonalizationConfiguration(args: DescribeQPersonalizationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<DescribeQPersonalizationConfigurationCommandOutput>;
662
+ describeQPersonalizationConfiguration(args: DescribeQPersonalizationConfigurationCommandInput, cb: (err: any, data?: DescribeQPersonalizationConfigurationCommandOutput) => void): void;
663
+ describeQPersonalizationConfiguration(args: DescribeQPersonalizationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeQPersonalizationConfigurationCommandOutput) => void): void;
656
664
  /**
657
665
  * @see {@link DescribeRefreshScheduleCommand}
658
666
  */
@@ -1163,6 +1171,12 @@ export interface QuickSight {
1163
1171
  updatePublicSharingSettings(args: UpdatePublicSharingSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePublicSharingSettingsCommandOutput>;
1164
1172
  updatePublicSharingSettings(args: UpdatePublicSharingSettingsCommandInput, cb: (err: any, data?: UpdatePublicSharingSettingsCommandOutput) => void): void;
1165
1173
  updatePublicSharingSettings(args: UpdatePublicSharingSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePublicSharingSettingsCommandOutput) => void): void;
1174
+ /**
1175
+ * @see {@link UpdateQPersonalizationConfigurationCommand}
1176
+ */
1177
+ updateQPersonalizationConfiguration(args: UpdateQPersonalizationConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateQPersonalizationConfigurationCommandOutput>;
1178
+ updateQPersonalizationConfiguration(args: UpdateQPersonalizationConfigurationCommandInput, cb: (err: any, data?: UpdateQPersonalizationConfigurationCommandOutput) => void): void;
1179
+ updateQPersonalizationConfiguration(args: UpdateQPersonalizationConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateQPersonalizationConfigurationCommandOutput) => void): void;
1166
1180
  /**
1167
1181
  * @see {@link UpdateRefreshScheduleCommand}
1168
1182
  */