@aws-sdk/client-kendra 3.321.1 → 3.326.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 (77) hide show
  1. package/dist-cjs/models/models_0.js +10 -5
  2. package/dist-cjs/models/models_1.js +4 -1
  3. package/dist-cjs/protocols/Aws_json1_1.js +56 -2
  4. package/dist-es/models/models_0.js +8 -3
  5. package/dist-es/models/models_1.js +3 -0
  6. package/dist-es/protocols/Aws_json1_1.js +56 -2
  7. package/dist-types/commands/AssociateEntitiesToExperienceCommand.d.ts +11 -0
  8. package/dist-types/commands/AssociatePersonasToEntitiesCommand.d.ts +11 -0
  9. package/dist-types/commands/BatchDeleteDocumentCommand.d.ts +12 -0
  10. package/dist-types/commands/BatchDeleteFeaturedResultsSetCommand.d.ts +12 -0
  11. package/dist-types/commands/BatchGetDocumentStatusCommand.d.ts +20 -0
  12. package/dist-types/commands/BatchPutDocumentCommand.d.ts +12 -0
  13. package/dist-types/commands/ClearQuerySuggestionsCommand.d.ts +4 -0
  14. package/dist-types/commands/CreateAccessControlConfigurationCommand.d.ts +6 -0
  15. package/dist-types/commands/CreateDataSourceCommand.d.ts +6 -0
  16. package/dist-types/commands/CreateExperienceCommand.d.ts +6 -0
  17. package/dist-types/commands/CreateFaqCommand.d.ts +6 -0
  18. package/dist-types/commands/CreateFeaturedResultsSetCommand.d.ts +21 -0
  19. package/dist-types/commands/CreateIndexCommand.d.ts +6 -0
  20. package/dist-types/commands/CreateQuerySuggestionsBlockListCommand.d.ts +7 -1
  21. package/dist-types/commands/CreateThesaurusCommand.d.ts +6 -0
  22. package/dist-types/commands/DeleteAccessControlConfigurationCommand.d.ts +4 -0
  23. package/dist-types/commands/DeleteDataSourceCommand.d.ts +4 -0
  24. package/dist-types/commands/DeleteExperienceCommand.d.ts +4 -0
  25. package/dist-types/commands/DeleteFaqCommand.d.ts +4 -0
  26. package/dist-types/commands/DeleteIndexCommand.d.ts +4 -0
  27. package/dist-types/commands/DeletePrincipalMappingCommand.d.ts +4 -0
  28. package/dist-types/commands/DeleteQuerySuggestionsBlockListCommand.d.ts +4 -0
  29. package/dist-types/commands/DeleteThesaurusCommand.d.ts +4 -0
  30. package/dist-types/commands/DescribeAccessControlConfigurationCommand.d.ts +28 -0
  31. package/dist-types/commands/DescribeDataSourceCommand.d.ts +570 -0
  32. package/dist-types/commands/DescribeExperienceCommand.d.ts +34 -0
  33. package/dist-types/commands/DescribeFaqCommand.d.ts +20 -0
  34. package/dist-types/commands/DescribeFeaturedResultsSetCommand.d.ts +26 -0
  35. package/dist-types/commands/DescribeIndexCommand.d.ts +72 -0
  36. package/dist-types/commands/DescribePrincipalMappingCommand.d.ts +17 -0
  37. package/dist-types/commands/DescribeQuerySuggestionsBlockListCommand.d.ts +20 -0
  38. package/dist-types/commands/DescribeQuerySuggestionsConfigCommand.d.ts +14 -0
  39. package/dist-types/commands/DescribeThesaurusCommand.d.ts +21 -0
  40. package/dist-types/commands/DisassociateEntitiesFromExperienceCommand.d.ts +11 -0
  41. package/dist-types/commands/DisassociatePersonasFromEntitiesCommand.d.ts +11 -0
  42. package/dist-types/commands/GetQuerySuggestionsCommand.d.ts +129 -1
  43. package/dist-types/commands/GetSnapshotsCommand.d.ts +18 -0
  44. package/dist-types/commands/ListAccessControlConfigurationsCommand.d.ts +11 -0
  45. package/dist-types/commands/ListDataSourceSyncJobsCommand.d.ts +24 -0
  46. package/dist-types/commands/ListDataSourcesCommand.d.ts +17 -0
  47. package/dist-types/commands/ListEntityPersonasCommand.d.ts +14 -0
  48. package/dist-types/commands/ListExperienceEntitiesCommand.d.ts +19 -0
  49. package/dist-types/commands/ListExperiencesCommand.d.ts +20 -0
  50. package/dist-types/commands/ListFaqsCommand.d.ts +17 -0
  51. package/dist-types/commands/ListFeaturedResultsSetsCommand.d.ts +15 -0
  52. package/dist-types/commands/ListGroupsOlderThanOrderingIdCommand.d.ts +12 -0
  53. package/dist-types/commands/ListIndicesCommand.d.ts +16 -0
  54. package/dist-types/commands/ListQuerySuggestionsBlockListsCommand.d.ts +16 -0
  55. package/dist-types/commands/ListTagsForResourceCommand.d.ts +11 -0
  56. package/dist-types/commands/ListThesauriCommand.d.ts +15 -0
  57. package/dist-types/commands/PutPrincipalMappingCommand.d.ts +4 -0
  58. package/dist-types/commands/QueryCommand.d.ts +200 -0
  59. package/dist-types/commands/StartDataSourceSyncJobCommand.d.ts +6 -0
  60. package/dist-types/commands/StopDataSourceSyncJobCommand.d.ts +4 -0
  61. package/dist-types/commands/SubmitFeedbackCommand.d.ts +4 -0
  62. package/dist-types/commands/TagResourceCommand.d.ts +4 -0
  63. package/dist-types/commands/UntagResourceCommand.d.ts +4 -0
  64. package/dist-types/commands/UpdateAccessControlConfigurationCommand.d.ts +4 -0
  65. package/dist-types/commands/UpdateDataSourceCommand.d.ts +4 -0
  66. package/dist-types/commands/UpdateExperienceCommand.d.ts +4 -0
  67. package/dist-types/commands/UpdateFeaturedResultsSetCommand.d.ts +21 -0
  68. package/dist-types/commands/UpdateIndexCommand.d.ts +4 -0
  69. package/dist-types/commands/UpdateQuerySuggestionsBlockListCommand.d.ts +4 -0
  70. package/dist-types/commands/UpdateQuerySuggestionsConfigCommand.d.ts +14 -1
  71. package/dist-types/commands/UpdateThesaurusCommand.d.ts +4 -0
  72. package/dist-types/models/models_0.d.ts +173 -210
  73. package/dist-types/models/models_1.d.ts +213 -2
  74. package/dist-types/ts3.4/commands/GetQuerySuggestionsCommand.d.ts +2 -4
  75. package/dist-types/ts3.4/models/models_0.d.ts +40 -46
  76. package/dist-types/ts3.4/models/models_1.d.ts +53 -3
  77. package/package.json +16 -16
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExperienceStatus = exports.EndpointType = exports.DataSourceStatus = exports.KeyLocation = exports.UserGroupResolutionMode = exports.UserContextPolicy = exports.IndexEdition = exports.FeaturedResultsConflictException = exports.FeaturedResultsSetStatus = exports.FaqFileFormat = exports.DataSourceType = exports.WebCrawlerMode = exports.SlackEntity = exports.SharePointVersion = exports.SharePointOnlineAuthenticationType = exports.ServiceNowBuildVersionType = exports.ServiceNowAuthenticationType = exports.SalesforceStandardObjectName = exports.SalesforceKnowledgeArticleState = exports.SalesforceChatterFeedIncludeFilterType = exports.IssueSubEntity = exports.Type = exports.FsxFileSystemType = exports.QueryIdentifiersEnclosingOption = exports.DatabaseEngineType = exports.ConfluenceVersion = exports.ConfluenceSpaceFieldName = exports.ConfluencePageFieldName = exports.ConfluenceBlogFieldName = exports.ConfluenceAuthenticationType = exports.ConfluenceAttachmentFieldName = exports.ServiceQuotaExceededException = exports.ContentType = exports.PrincipalType = exports.ReadAccessType = exports.ConditionOperator = exports.DocumentStatus = exports.ConflictException = exports.ErrorCode = exports.Persona = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ResourceAlreadyExistException = exports.InternalServerException = exports.EntityType = exports.AlfrescoEntity = exports.AdditionalResultAttributeValueType = exports.HighlightType = exports.AccessDeniedException = void 0;
4
- exports.ListExperienceEntitiesResponseFilterSensitiveLog = exports.ExperienceEntitiesSummaryFilterSensitiveLog = exports.EntityDisplayDataFilterSensitiveLog = exports.DescribeIndexResponseFilterSensitiveLog = exports.CreateIndexRequestFilterSensitiveLog = exports.ServerSideEncryptionConfigurationFilterSensitiveLog = exports.WarningCode = exports.ScoreConfidence = exports.QueryResultFormat = exports.SortOrder = exports.QueryResultType = exports.ResourceUnavailableException = exports.DataSourceSyncJobStatus = exports.InvalidRequestException = exports.MetricType = exports.Interval = exports.ThesaurusStatus = exports.QuerySuggestionsStatus = exports.Mode = exports.QuerySuggestionsBlockListStatus = exports.PrincipalMappingStatus = exports.IndexStatus = exports.DocumentAttributeValueType = exports.Order = exports.FaqStatus = void 0;
3
+ exports.EndpointType = exports.DataSourceStatus = exports.KeyLocation = exports.UserGroupResolutionMode = exports.UserContextPolicy = exports.IndexEdition = exports.FeaturedResultsConflictException = exports.FeaturedResultsSetStatus = exports.FaqFileFormat = exports.DataSourceType = exports.WebCrawlerMode = exports.SlackEntity = exports.SharePointVersion = exports.SharePointOnlineAuthenticationType = exports.ServiceNowBuildVersionType = exports.ServiceNowAuthenticationType = exports.SalesforceStandardObjectName = exports.SalesforceKnowledgeArticleState = exports.SalesforceChatterFeedIncludeFilterType = exports.IssueSubEntity = exports.Type = exports.FsxFileSystemType = exports.QueryIdentifiersEnclosingOption = exports.DatabaseEngineType = exports.ConfluenceVersion = exports.ConfluenceSpaceFieldName = exports.ConfluencePageFieldName = exports.ConfluenceBlogFieldName = exports.ConfluenceAuthenticationType = exports.ConfluenceAttachmentFieldName = exports.ServiceQuotaExceededException = exports.ContentType = exports.PrincipalType = exports.ReadAccessType = exports.ConditionOperator = exports.DocumentStatus = exports.ConflictException = exports.ErrorCode = exports.AttributeSuggestionsMode = exports.Persona = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.ResourceAlreadyExistException = exports.InternalServerException = exports.EntityType = exports.AlfrescoEntity = exports.AdditionalResultAttributeValueType = exports.HighlightType = exports.AccessDeniedException = void 0;
4
+ exports.ListExperienceEntitiesResponseFilterSensitiveLog = exports.ExperienceEntitiesSummaryFilterSensitiveLog = exports.EntityDisplayDataFilterSensitiveLog = exports.DescribeIndexResponseFilterSensitiveLog = exports.CreateIndexRequestFilterSensitiveLog = exports.ServerSideEncryptionConfigurationFilterSensitiveLog = exports.ScoreConfidence = exports.QueryResultFormat = exports.SortOrder = exports.QueryResultType = exports.ResourceUnavailableException = exports.DataSourceSyncJobStatus = exports.InvalidRequestException = exports.MetricType = exports.Interval = exports.SuggestionType = exports.ThesaurusStatus = exports.QuerySuggestionsStatus = exports.Mode = exports.QuerySuggestionsBlockListStatus = exports.PrincipalMappingStatus = exports.IndexStatus = exports.DocumentAttributeValueType = exports.Order = exports.FaqStatus = exports.ExperienceStatus = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const KendraServiceException_1 = require("./KendraServiceException");
7
7
  class AccessDeniedException extends KendraServiceException_1.KendraServiceException {
@@ -108,6 +108,10 @@ exports.Persona = {
108
108
  OWNER: "OWNER",
109
109
  VIEWER: "VIEWER",
110
110
  };
111
+ exports.AttributeSuggestionsMode = {
112
+ ACTIVE: "ACTIVE",
113
+ INACTIVE: "INACTIVE",
114
+ };
111
115
  exports.ErrorCode = {
112
116
  INTERNAL_ERROR: "InternalError",
113
117
  INVALID_REQUEST: "InvalidRequest",
@@ -447,6 +451,10 @@ exports.ThesaurusStatus = {
447
451
  FAILED: "FAILED",
448
452
  UPDATING: "UPDATING",
449
453
  };
454
+ exports.SuggestionType = {
455
+ DOCUMENT_ATTRIBUTES: "DOCUMENT_ATTRIBUTES",
456
+ QUERY: "QUERY",
457
+ };
450
458
  exports.Interval = {
451
459
  ONE_MONTH_AGO: "ONE_MONTH_AGO",
452
460
  ONE_WEEK_AGO: "ONE_WEEK_AGO",
@@ -520,9 +528,6 @@ exports.ScoreConfidence = {
520
528
  NOT_AVAILABLE: "NOT_AVAILABLE",
521
529
  VERY_HIGH: "VERY_HIGH",
522
530
  };
523
- exports.WarningCode = {
524
- QUERY_LANGUAGE_INVALID_SYNTAX: "QUERY_LANGUAGE_INVALID_SYNTAX",
525
- };
526
531
  const ServerSideEncryptionConfigurationFilterSensitiveLog = (obj) => ({
527
532
  ...obj,
528
533
  ...(obj.KmsKeyId && { KmsKeyId: smithy_client_1.SENSITIVE_STRING }),
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RelevanceType = exports.ResourceInUseException = void 0;
3
+ exports.RelevanceType = exports.ResourceInUseException = exports.WarningCode = void 0;
4
4
  const KendraServiceException_1 = require("./KendraServiceException");
5
+ exports.WarningCode = {
6
+ QUERY_LANGUAGE_INVALID_SYNTAX: "QUERY_LANGUAGE_INVALID_SYNTAX",
7
+ };
5
8
  class ResourceInUseException extends KendraServiceException_1.KendraServiceException {
6
9
  constructor(opts) {
7
10
  super({
@@ -257,7 +257,7 @@ exports.se_DisassociatePersonasFromEntitiesCommand = se_DisassociatePersonasFrom
257
257
  const se_GetQuerySuggestionsCommand = async (input, context) => {
258
258
  const headers = sharedHeaders("GetQuerySuggestions");
259
259
  let body;
260
- body = JSON.stringify((0, smithy_client_1._json)(input));
260
+ body = JSON.stringify(se_GetQuerySuggestionsRequest(input, context));
261
261
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
262
262
  };
263
263
  exports.se_GetQuerySuggestionsCommand = se_GetQuerySuggestionsCommand;
@@ -2120,7 +2120,7 @@ const de_GetQuerySuggestionsCommand = async (output, context) => {
2120
2120
  }
2121
2121
  const data = await parseBody(output.body, context);
2122
2122
  let contents = {};
2123
- contents = (0, smithy_client_1._json)(data);
2123
+ contents = de_GetQuerySuggestionsResponse(data, context);
2124
2124
  const response = {
2125
2125
  $metadata: deserializeMetadata(output),
2126
2126
  ...contents,
@@ -3623,6 +3623,14 @@ const se_AttributeFilterList = (input, context) => {
3623
3623
  return se_AttributeFilter(entry, context);
3624
3624
  });
3625
3625
  };
3626
+ const se_AttributeSuggestionsGetConfig = (input, context) => {
3627
+ return (0, smithy_client_1.take)(input, {
3628
+ AdditionalResponseAttributes: smithy_client_1._json,
3629
+ AttributeFilter: (_) => se_AttributeFilter(_, context),
3630
+ SuggestionAttributes: smithy_client_1._json,
3631
+ UserContext: smithy_client_1._json,
3632
+ });
3633
+ };
3626
3634
  const se_BatchGetDocumentStatusRequest = (input, context) => {
3627
3635
  return (0, smithy_client_1.take)(input, {
3628
3636
  DocumentInfoList: (_) => se_DocumentInfoList(_, context),
@@ -3847,6 +3855,15 @@ const se_FacetList = (input, context) => {
3847
3855
  return se_Facet(entry, context);
3848
3856
  });
3849
3857
  };
3858
+ const se_GetQuerySuggestionsRequest = (input, context) => {
3859
+ return (0, smithy_client_1.take)(input, {
3860
+ AttributeSuggestionsConfig: (_) => se_AttributeSuggestionsGetConfig(_, context),
3861
+ IndexId: [],
3862
+ MaxSuggestionsCount: [],
3863
+ QueryText: [],
3864
+ SuggestionTypes: smithy_client_1._json,
3865
+ });
3866
+ };
3850
3867
  const se_HookConfiguration = (input, context) => {
3851
3868
  return (0, smithy_client_1.take)(input, {
3852
3869
  InvocationCondition: (_) => se_DocumentAttributeCondition(_, context),
@@ -4109,6 +4126,7 @@ const de_DescribeQuerySuggestionsBlockListResponse = (output, context) => {
4109
4126
  };
4110
4127
  const de_DescribeQuerySuggestionsConfigResponse = (output, context) => {
4111
4128
  return (0, smithy_client_1.take)(output, {
4129
+ AttributeSuggestionsConfig: smithy_client_1._json,
4112
4130
  IncludeQueriesWithoutUserInformation: smithy_client_1.expectBoolean,
4113
4131
  LastClearTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
4114
4132
  LastSuggestionsBuildTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
@@ -4260,6 +4278,12 @@ const de_FeaturedResultsItemList = (output, context) => {
4260
4278
  });
4261
4279
  return retVal;
4262
4280
  };
4281
+ const de_GetQuerySuggestionsResponse = (output, context) => {
4282
+ return (0, smithy_client_1.take)(output, {
4283
+ QuerySuggestionsId: smithy_client_1.expectString,
4284
+ Suggestions: (_) => de_SuggestionList(_, context),
4285
+ });
4286
+ };
4263
4287
  const de_GetSnapshotsResponse = (output, context) => {
4264
4288
  return (0, smithy_client_1.take)(output, {
4265
4289
  NextToken: smithy_client_1.expectString,
@@ -4442,6 +4466,36 @@ const de_QuerySuggestionsBlockListSummaryItems = (output, context) => {
4442
4466
  });
4443
4467
  return retVal;
4444
4468
  };
4469
+ const de_SourceDocument = (output, context) => {
4470
+ return (0, smithy_client_1.take)(output, {
4471
+ AdditionalAttributes: (_) => de_DocumentAttributeList(_, context),
4472
+ DocumentId: smithy_client_1.expectString,
4473
+ SuggestionAttributes: smithy_client_1._json,
4474
+ });
4475
+ };
4476
+ const de_SourceDocuments = (output, context) => {
4477
+ const retVal = (output || [])
4478
+ .filter((e) => e != null)
4479
+ .map((entry) => {
4480
+ return de_SourceDocument(entry, context);
4481
+ });
4482
+ return retVal;
4483
+ };
4484
+ const de_Suggestion = (output, context) => {
4485
+ return (0, smithy_client_1.take)(output, {
4486
+ Id: smithy_client_1.expectString,
4487
+ SourceDocuments: (_) => de_SourceDocuments(_, context),
4488
+ Value: smithy_client_1._json,
4489
+ });
4490
+ };
4491
+ const de_SuggestionList = (output, context) => {
4492
+ const retVal = (output || [])
4493
+ .filter((e) => e != null)
4494
+ .map((entry) => {
4495
+ return de_Suggestion(entry, context);
4496
+ });
4497
+ return retVal;
4498
+ };
4445
4499
  const de_Template = (output, context) => {
4446
4500
  return output;
4447
4501
  };
@@ -98,6 +98,10 @@ export const Persona = {
98
98
  OWNER: "OWNER",
99
99
  VIEWER: "VIEWER",
100
100
  };
101
+ export const AttributeSuggestionsMode = {
102
+ ACTIVE: "ACTIVE",
103
+ INACTIVE: "INACTIVE",
104
+ };
101
105
  export const ErrorCode = {
102
106
  INTERNAL_ERROR: "InternalError",
103
107
  INVALID_REQUEST: "InvalidRequest",
@@ -434,6 +438,10 @@ export const ThesaurusStatus = {
434
438
  FAILED: "FAILED",
435
439
  UPDATING: "UPDATING",
436
440
  };
441
+ export const SuggestionType = {
442
+ DOCUMENT_ATTRIBUTES: "DOCUMENT_ATTRIBUTES",
443
+ QUERY: "QUERY",
444
+ };
437
445
  export const Interval = {
438
446
  ONE_MONTH_AGO: "ONE_MONTH_AGO",
439
447
  ONE_WEEK_AGO: "ONE_WEEK_AGO",
@@ -505,9 +513,6 @@ export const ScoreConfidence = {
505
513
  NOT_AVAILABLE: "NOT_AVAILABLE",
506
514
  VERY_HIGH: "VERY_HIGH",
507
515
  };
508
- export const WarningCode = {
509
- QUERY_LANGUAGE_INVALID_SYNTAX: "QUERY_LANGUAGE_INVALID_SYNTAX",
510
- };
511
516
  export const ServerSideEncryptionConfigurationFilterSensitiveLog = (obj) => ({
512
517
  ...obj,
513
518
  ...(obj.KmsKeyId && { KmsKeyId: SENSITIVE_STRING }),
@@ -1,4 +1,7 @@
1
1
  import { KendraServiceException as __BaseException } from "./KendraServiceException";
2
+ export const WarningCode = {
3
+ QUERY_LANGUAGE_INVALID_SYNTAX: "QUERY_LANGUAGE_INVALID_SYNTAX",
4
+ };
2
5
  export class ResourceInUseException extends __BaseException {
3
6
  constructor(opts) {
4
7
  super({
@@ -217,7 +217,7 @@ export const se_DisassociatePersonasFromEntitiesCommand = async (input, context)
217
217
  export const se_GetQuerySuggestionsCommand = async (input, context) => {
218
218
  const headers = sharedHeaders("GetQuerySuggestions");
219
219
  let body;
220
- body = JSON.stringify(_json(input));
220
+ body = JSON.stringify(se_GetQuerySuggestionsRequest(input, context));
221
221
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
222
222
  };
223
223
  export const se_GetSnapshotsCommand = async (input, context) => {
@@ -2015,7 +2015,7 @@ export const de_GetQuerySuggestionsCommand = async (output, context) => {
2015
2015
  }
2016
2016
  const data = await parseBody(output.body, context);
2017
2017
  let contents = {};
2018
- contents = _json(data);
2018
+ contents = de_GetQuerySuggestionsResponse(data, context);
2019
2019
  const response = {
2020
2020
  $metadata: deserializeMetadata(output),
2021
2021
  ...contents,
@@ -3488,6 +3488,14 @@ const se_AttributeFilterList = (input, context) => {
3488
3488
  return se_AttributeFilter(entry, context);
3489
3489
  });
3490
3490
  };
3491
+ const se_AttributeSuggestionsGetConfig = (input, context) => {
3492
+ return take(input, {
3493
+ AdditionalResponseAttributes: _json,
3494
+ AttributeFilter: (_) => se_AttributeFilter(_, context),
3495
+ SuggestionAttributes: _json,
3496
+ UserContext: _json,
3497
+ });
3498
+ };
3491
3499
  const se_BatchGetDocumentStatusRequest = (input, context) => {
3492
3500
  return take(input, {
3493
3501
  DocumentInfoList: (_) => se_DocumentInfoList(_, context),
@@ -3712,6 +3720,15 @@ const se_FacetList = (input, context) => {
3712
3720
  return se_Facet(entry, context);
3713
3721
  });
3714
3722
  };
3723
+ const se_GetQuerySuggestionsRequest = (input, context) => {
3724
+ return take(input, {
3725
+ AttributeSuggestionsConfig: (_) => se_AttributeSuggestionsGetConfig(_, context),
3726
+ IndexId: [],
3727
+ MaxSuggestionsCount: [],
3728
+ QueryText: [],
3729
+ SuggestionTypes: _json,
3730
+ });
3731
+ };
3715
3732
  const se_HookConfiguration = (input, context) => {
3716
3733
  return take(input, {
3717
3734
  InvocationCondition: (_) => se_DocumentAttributeCondition(_, context),
@@ -3974,6 +3991,7 @@ const de_DescribeQuerySuggestionsBlockListResponse = (output, context) => {
3974
3991
  };
3975
3992
  const de_DescribeQuerySuggestionsConfigResponse = (output, context) => {
3976
3993
  return take(output, {
3994
+ AttributeSuggestionsConfig: _json,
3977
3995
  IncludeQueriesWithoutUserInformation: __expectBoolean,
3978
3996
  LastClearTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
3979
3997
  LastSuggestionsBuildTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -4125,6 +4143,12 @@ const de_FeaturedResultsItemList = (output, context) => {
4125
4143
  });
4126
4144
  return retVal;
4127
4145
  };
4146
+ const de_GetQuerySuggestionsResponse = (output, context) => {
4147
+ return take(output, {
4148
+ QuerySuggestionsId: __expectString,
4149
+ Suggestions: (_) => de_SuggestionList(_, context),
4150
+ });
4151
+ };
4128
4152
  const de_GetSnapshotsResponse = (output, context) => {
4129
4153
  return take(output, {
4130
4154
  NextToken: __expectString,
@@ -4307,6 +4331,36 @@ const de_QuerySuggestionsBlockListSummaryItems = (output, context) => {
4307
4331
  });
4308
4332
  return retVal;
4309
4333
  };
4334
+ const de_SourceDocument = (output, context) => {
4335
+ return take(output, {
4336
+ AdditionalAttributes: (_) => de_DocumentAttributeList(_, context),
4337
+ DocumentId: __expectString,
4338
+ SuggestionAttributes: _json,
4339
+ });
4340
+ };
4341
+ const de_SourceDocuments = (output, context) => {
4342
+ const retVal = (output || [])
4343
+ .filter((e) => e != null)
4344
+ .map((entry) => {
4345
+ return de_SourceDocument(entry, context);
4346
+ });
4347
+ return retVal;
4348
+ };
4349
+ const de_Suggestion = (output, context) => {
4350
+ return take(output, {
4351
+ Id: __expectString,
4352
+ SourceDocuments: (_) => de_SourceDocuments(_, context),
4353
+ Value: _json,
4354
+ });
4355
+ };
4356
+ const de_SuggestionList = (output, context) => {
4357
+ const retVal = (output || [])
4358
+ .filter((e) => e != null)
4359
+ .map((entry) => {
4360
+ return de_Suggestion(entry, context);
4361
+ });
4362
+ return retVal;
4363
+ };
4310
4364
  const de_Template = (output, context) => {
4311
4365
  return output;
4312
4366
  };
@@ -42,6 +42,15 @@ export interface AssociateEntitiesToExperienceCommandOutput extends AssociateEnt
42
42
  * };
43
43
  * const command = new AssociateEntitiesToExperienceCommand(input);
44
44
  * const response = await client.send(command);
45
+ * // { // AssociateEntitiesToExperienceResponse
46
+ * // FailedEntityList: [ // AssociateEntitiesToExperienceFailedEntityList
47
+ * // { // FailedEntity
48
+ * // EntityId: "STRING_VALUE",
49
+ * // ErrorMessage: "STRING_VALUE",
50
+ * // },
51
+ * // ],
52
+ * // };
53
+ *
45
54
  * ```
46
55
  *
47
56
  * @param AssociateEntitiesToExperienceCommandInput - {@link AssociateEntitiesToExperienceCommandInput}
@@ -74,6 +83,8 @@ export interface AssociateEntitiesToExperienceCommandOutput extends AssociateEnt
74
83
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
75
84
  * Please provide the correct input and try again.</p>
76
85
  *
86
+ * @throws {@link KendraServiceException}
87
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
77
88
  *
78
89
  */
79
90
  export declare class AssociateEntitiesToExperienceCommand extends $Command<AssociateEntitiesToExperienceCommandInput, AssociateEntitiesToExperienceCommandOutput, KendraClientResolvedConfig> {
@@ -42,6 +42,15 @@ export interface AssociatePersonasToEntitiesCommandOutput extends AssociatePerso
42
42
  * };
43
43
  * const command = new AssociatePersonasToEntitiesCommand(input);
44
44
  * const response = await client.send(command);
45
+ * // { // AssociatePersonasToEntitiesResponse
46
+ * // FailedEntityList: [ // FailedEntityList
47
+ * // { // FailedEntity
48
+ * // EntityId: "STRING_VALUE",
49
+ * // ErrorMessage: "STRING_VALUE",
50
+ * // },
51
+ * // ],
52
+ * // };
53
+ *
45
54
  * ```
46
55
  *
47
56
  * @param AssociatePersonasToEntitiesCommandInput - {@link AssociatePersonasToEntitiesCommandInput}
@@ -74,6 +83,8 @@ export interface AssociatePersonasToEntitiesCommandOutput extends AssociatePerso
74
83
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
75
84
  * Please provide the correct input and try again.</p>
76
85
  *
86
+ * @throws {@link KendraServiceException}
87
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
77
88
  *
78
89
  */
79
90
  export declare class AssociatePersonasToEntitiesCommand extends $Command<AssociatePersonasToEntitiesCommandInput, AssociatePersonasToEntitiesCommandOutput, KendraClientResolvedConfig> {
@@ -42,6 +42,16 @@ export interface BatchDeleteDocumentCommandOutput extends BatchDeleteDocumentRes
42
42
  * };
43
43
  * const command = new BatchDeleteDocumentCommand(input);
44
44
  * const response = await client.send(command);
45
+ * // { // BatchDeleteDocumentResponse
46
+ * // FailedDocuments: [ // BatchDeleteDocumentResponseFailedDocuments
47
+ * // { // BatchDeleteDocumentResponseFailedDocument
48
+ * // Id: "STRING_VALUE",
49
+ * // ErrorCode: "InternalError" || "InvalidRequest",
50
+ * // ErrorMessage: "STRING_VALUE",
51
+ * // },
52
+ * // ],
53
+ * // };
54
+ *
45
55
  * ```
46
56
  *
47
57
  * @param BatchDeleteDocumentCommandInput - {@link BatchDeleteDocumentCommandInput}
@@ -74,6 +84,8 @@ export interface BatchDeleteDocumentCommandOutput extends BatchDeleteDocumentRes
74
84
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
75
85
  * Please provide the correct input and try again.</p>
76
86
  *
87
+ * @throws {@link KendraServiceException}
88
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
77
89
  *
78
90
  */
79
91
  export declare class BatchDeleteDocumentCommand extends $Command<BatchDeleteDocumentCommandInput, BatchDeleteDocumentCommandOutput, KendraClientResolvedConfig> {
@@ -36,6 +36,16 @@ export interface BatchDeleteFeaturedResultsSetCommandOutput extends BatchDeleteF
36
36
  * };
37
37
  * const command = new BatchDeleteFeaturedResultsSetCommand(input);
38
38
  * const response = await client.send(command);
39
+ * // { // BatchDeleteFeaturedResultsSetResponse
40
+ * // Errors: [ // BatchDeleteFeaturedResultsSetErrors // required
41
+ * // { // BatchDeleteFeaturedResultsSetError
42
+ * // Id: "STRING_VALUE", // required
43
+ * // ErrorCode: "InternalError" || "InvalidRequest", // required
44
+ * // ErrorMessage: "STRING_VALUE", // required
45
+ * // },
46
+ * // ],
47
+ * // };
48
+ *
39
49
  * ```
40
50
  *
41
51
  * @param BatchDeleteFeaturedResultsSetCommandInput - {@link BatchDeleteFeaturedResultsSetCommandInput}
@@ -64,6 +74,8 @@ export interface BatchDeleteFeaturedResultsSetCommandOutput extends BatchDeleteF
64
74
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
65
75
  * Please provide the correct input and try again.</p>
66
76
  *
77
+ * @throws {@link KendraServiceException}
78
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
67
79
  *
68
80
  */
69
81
  export declare class BatchDeleteFeaturedResultsSetCommand extends $Command<BatchDeleteFeaturedResultsSetCommandInput, BatchDeleteFeaturedResultsSetCommandOutput, KendraClientResolvedConfig> {
@@ -57,6 +57,24 @@ export interface BatchGetDocumentStatusCommandOutput extends BatchGetDocumentSta
57
57
  * };
58
58
  * const command = new BatchGetDocumentStatusCommand(input);
59
59
  * const response = await client.send(command);
60
+ * // { // BatchGetDocumentStatusResponse
61
+ * // Errors: [ // BatchGetDocumentStatusResponseErrors
62
+ * // { // BatchGetDocumentStatusResponseError
63
+ * // DocumentId: "STRING_VALUE",
64
+ * // ErrorCode: "InternalError" || "InvalidRequest",
65
+ * // ErrorMessage: "STRING_VALUE",
66
+ * // },
67
+ * // ],
68
+ * // DocumentStatusList: [ // DocumentStatusList
69
+ * // { // Status
70
+ * // DocumentId: "STRING_VALUE",
71
+ * // DocumentStatus: "NOT_FOUND" || "PROCESSING" || "INDEXED" || "UPDATED" || "FAILED" || "UPDATE_FAILED",
72
+ * // FailureCode: "STRING_VALUE",
73
+ * // FailureReason: "STRING_VALUE",
74
+ * // },
75
+ * // ],
76
+ * // };
77
+ *
60
78
  * ```
61
79
  *
62
80
  * @param BatchGetDocumentStatusCommandInput - {@link BatchGetDocumentStatusCommandInput}
@@ -89,6 +107,8 @@ export interface BatchGetDocumentStatusCommandOutput extends BatchGetDocumentSta
89
107
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
90
108
  * Please provide the correct input and try again.</p>
91
109
  *
110
+ * @throws {@link KendraServiceException}
111
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
92
112
  *
93
113
  */
94
114
  export declare class BatchGetDocumentStatusCommand extends $Command<BatchGetDocumentStatusCommandInput, BatchGetDocumentStatusCommandOutput, KendraClientResolvedConfig> {
@@ -153,6 +153,16 @@ export interface BatchPutDocumentCommandOutput extends BatchPutDocumentResponse,
153
153
  * };
154
154
  * const command = new BatchPutDocumentCommand(input);
155
155
  * const response = await client.send(command);
156
+ * // { // BatchPutDocumentResponse
157
+ * // FailedDocuments: [ // BatchPutDocumentResponseFailedDocuments
158
+ * // { // BatchPutDocumentResponseFailedDocument
159
+ * // Id: "STRING_VALUE",
160
+ * // ErrorCode: "InternalError" || "InvalidRequest",
161
+ * // ErrorMessage: "STRING_VALUE",
162
+ * // },
163
+ * // ],
164
+ * // };
165
+ *
156
166
  * ```
157
167
  *
158
168
  * @param BatchPutDocumentCommandInput - {@link BatchPutDocumentCommandInput}
@@ -191,6 +201,8 @@ export interface BatchPutDocumentCommandOutput extends BatchPutDocumentResponse,
191
201
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
192
202
  * Please provide the correct input and try again.</p>
193
203
  *
204
+ * @throws {@link KendraServiceException}
205
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
194
206
  *
195
207
  */
196
208
  export declare class BatchPutDocumentCommand extends $Command<BatchPutDocumentCommandInput, BatchPutDocumentCommandOutput, KendraClientResolvedConfig> {
@@ -40,6 +40,8 @@ export interface ClearQuerySuggestionsCommandOutput extends __MetadataBearer {
40
40
  * };
41
41
  * const command = new ClearQuerySuggestionsCommand(input);
42
42
  * const response = await client.send(command);
43
+ * // {};
44
+ *
43
45
  * ```
44
46
  *
45
47
  * @param ClearQuerySuggestionsCommandInput - {@link ClearQuerySuggestionsCommandInput}
@@ -72,6 +74,8 @@ export interface ClearQuerySuggestionsCommandOutput extends __MetadataBearer {
72
74
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
73
75
  * Please provide the correct input and try again.</p>
74
76
  *
77
+ * @throws {@link KendraServiceException}
78
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
75
79
  *
76
80
  */
77
81
  export declare class ClearQuerySuggestionsCommand extends $Command<ClearQuerySuggestionsCommandInput, ClearQuerySuggestionsCommandOutput, KendraClientResolvedConfig> {
@@ -72,6 +72,10 @@ export interface CreateAccessControlConfigurationCommandOutput extends CreateAcc
72
72
  * };
73
73
  * const command = new CreateAccessControlConfigurationCommand(input);
74
74
  * const response = await client.send(command);
75
+ * // { // CreateAccessControlConfigurationResponse
76
+ * // Id: "STRING_VALUE", // required
77
+ * // };
78
+ *
75
79
  * ```
76
80
  *
77
81
  * @param CreateAccessControlConfigurationCommandInput - {@link CreateAccessControlConfigurationCommandInput}
@@ -110,6 +114,8 @@ export interface CreateAccessControlConfigurationCommandOutput extends CreateAcc
110
114
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
111
115
  * Please provide the correct input and try again.</p>
112
116
  *
117
+ * @throws {@link KendraServiceException}
118
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
113
119
  *
114
120
  */
115
121
  export declare class CreateAccessControlConfigurationCommand extends $Command<CreateAccessControlConfigurationCommandInput, CreateAccessControlConfigurationCommandOutput, KendraClientResolvedConfig> {
@@ -607,6 +607,10 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
607
607
  * };
608
608
  * const command = new CreateDataSourceCommand(input);
609
609
  * const response = await client.send(command);
610
+ * // { // CreateDataSourceResponse
611
+ * // Id: "STRING_VALUE", // required
612
+ * // };
613
+ *
610
614
  * ```
611
615
  *
612
616
  * @param CreateDataSourceCommandInput - {@link CreateDataSourceCommandInput}
@@ -649,6 +653,8 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
649
653
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
650
654
  * Please provide the correct input and try again.</p>
651
655
  *
656
+ * @throws {@link KendraServiceException}
657
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
652
658
  *
653
659
  */
654
660
  export declare class CreateDataSourceCommand extends $Command<CreateDataSourceCommandInput, CreateDataSourceCommandOutput, KendraClientResolvedConfig> {
@@ -52,6 +52,10 @@ export interface CreateExperienceCommandOutput extends CreateExperienceResponse,
52
52
  * };
53
53
  * const command = new CreateExperienceCommand(input);
54
54
  * const response = await client.send(command);
55
+ * // { // CreateExperienceResponse
56
+ * // Id: "STRING_VALUE", // required
57
+ * // };
58
+ *
55
59
  * ```
56
60
  *
57
61
  * @param CreateExperienceCommandInput - {@link CreateExperienceCommandInput}
@@ -90,6 +94,8 @@ export interface CreateExperienceCommandOutput extends CreateExperienceResponse,
90
94
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
91
95
  * Please provide the correct input and try again.</p>
92
96
  *
97
+ * @throws {@link KendraServiceException}
98
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
93
99
  *
94
100
  */
95
101
  export declare class CreateExperienceCommand extends $Command<CreateExperienceCommandInput, CreateExperienceCommandOutput, KendraClientResolvedConfig> {
@@ -50,6 +50,10 @@ export interface CreateFaqCommandOutput extends CreateFaqResponse, __MetadataBea
50
50
  * };
51
51
  * const command = new CreateFaqCommand(input);
52
52
  * const response = await client.send(command);
53
+ * // { // CreateFaqResponse
54
+ * // Id: "STRING_VALUE",
55
+ * // };
56
+ *
53
57
  * ```
54
58
  *
55
59
  * @param CreateFaqCommandInput - {@link CreateFaqCommandInput}
@@ -88,6 +92,8 @@ export interface CreateFaqCommandOutput extends CreateFaqResponse, __MetadataBea
88
92
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
89
93
  * Please provide the correct input and try again.</p>
90
94
  *
95
+ * @throws {@link KendraServiceException}
96
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
91
97
  *
92
98
  */
93
99
  export declare class CreateFaqCommand extends $Command<CreateFaqCommandInput, CreateFaqCommandOutput, KendraClientResolvedConfig> {
@@ -55,6 +55,25 @@ export interface CreateFeaturedResultsSetCommandOutput extends CreateFeaturedRes
55
55
  * };
56
56
  * const command = new CreateFeaturedResultsSetCommand(input);
57
57
  * const response = await client.send(command);
58
+ * // { // CreateFeaturedResultsSetResponse
59
+ * // FeaturedResultsSet: { // FeaturedResultsSet
60
+ * // FeaturedResultsSetId: "STRING_VALUE",
61
+ * // FeaturedResultsSetName: "STRING_VALUE",
62
+ * // Description: "STRING_VALUE",
63
+ * // Status: "ACTIVE" || "INACTIVE",
64
+ * // QueryTexts: [ // QueryTextList
65
+ * // "STRING_VALUE",
66
+ * // ],
67
+ * // FeaturedDocuments: [ // FeaturedDocumentList
68
+ * // { // FeaturedDocument
69
+ * // Id: "STRING_VALUE",
70
+ * // },
71
+ * // ],
72
+ * // LastUpdatedTimestamp: Number("long"),
73
+ * // CreationTimestamp: Number("long"),
74
+ * // },
75
+ * // };
76
+ *
58
77
  * ```
59
78
  *
60
79
  * @param CreateFeaturedResultsSetCommandInput - {@link CreateFeaturedResultsSetCommandInput}
@@ -93,6 +112,8 @@ export interface CreateFeaturedResultsSetCommandOutput extends CreateFeaturedRes
93
112
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
94
113
  * Please provide the correct input and try again.</p>
95
114
  *
115
+ * @throws {@link KendraServiceException}
116
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
96
117
  *
97
118
  */
98
119
  export declare class CreateFeaturedResultsSetCommand extends $Command<CreateFeaturedResultsSetCommandInput, CreateFeaturedResultsSetCommandOutput, KendraClientResolvedConfig> {
@@ -74,6 +74,10 @@ export interface CreateIndexCommandOutput extends CreateIndexResponse, __Metadat
74
74
  * };
75
75
  * const command = new CreateIndexCommand(input);
76
76
  * const response = await client.send(command);
77
+ * // { // CreateIndexResponse
78
+ * // Id: "STRING_VALUE",
79
+ * // };
80
+ *
77
81
  * ```
78
82
  *
79
83
  * @param CreateIndexCommandInput - {@link CreateIndexCommandInput}
@@ -112,6 +116,8 @@ export interface CreateIndexCommandOutput extends CreateIndexResponse, __Metadat
112
116
  * <p>The input fails to satisfy the constraints set by the Amazon Kendra service.
113
117
  * Please provide the correct input and try again.</p>
114
118
  *
119
+ * @throws {@link KendraServiceException}
120
+ * <p>Base exception class for all service exceptions from Kendra service.</p>
115
121
  *
116
122
  */
117
123
  export declare class CreateIndexCommand extends $Command<CreateIndexCommandInput, CreateIndexCommandOutput, KendraClientResolvedConfig> {