@aws-sdk/client-kendra 3.321.1 → 3.325.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.
@@ -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
  };
@@ -32,7 +32,7 @@ export interface CreateQuerySuggestionsBlockListCommandOutput extends CreateQuer
32
32
  * <code>CreateQuerySuggestionsBlockList</code> is currently not supported in the
33
33
  * Amazon Web Services GovCloud (US-West) region.</p>
34
34
  * <p>For an example of creating a block list for query suggestions using the
35
- * Python SDK, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/query-suggestions.html#suggestions-block-list">Query
35
+ * Python SDK, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/query-suggestions.html#query-suggestions-blocklist">Query
36
36
  * suggestions block list</a>.</p>
37
37
  * @example
38
38
  * Use a bare-bones client and the command you need to make an API call.
@@ -2,7 +2,8 @@ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
3
  import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
4
  import { KendraClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraClient";
5
- import { GetQuerySuggestionsRequest, GetQuerySuggestionsResponse } from "../models/models_0";
5
+ import { GetQuerySuggestionsResponse } from "../models/models_0";
6
+ import { GetQuerySuggestionsRequest } from "../models/models_1";
6
7
  /**
7
8
  * @public
8
9
  *
@@ -33,6 +34,111 @@ export interface GetQuerySuggestionsCommandOutput extends GetQuerySuggestionsRes
33
34
  * IndexId: "STRING_VALUE", // required
34
35
  * QueryText: "STRING_VALUE", // required
35
36
  * MaxSuggestionsCount: Number("int"),
37
+ * SuggestionTypes: [ // SuggestionTypes
38
+ * "QUERY" || "DOCUMENT_ATTRIBUTES",
39
+ * ],
40
+ * AttributeSuggestionsConfig: { // AttributeSuggestionsGetConfig
41
+ * SuggestionAttributes: [ // DocumentAttributeKeyList
42
+ * "STRING_VALUE",
43
+ * ],
44
+ * AdditionalResponseAttributes: [
45
+ * "STRING_VALUE",
46
+ * ],
47
+ * AttributeFilter: { // AttributeFilter
48
+ * AndAllFilters: [ // AttributeFilterList
49
+ * {
50
+ * AndAllFilters: [
51
+ * "<AttributeFilter>",
52
+ * ],
53
+ * OrAllFilters: [
54
+ * "<AttributeFilter>",
55
+ * ],
56
+ * NotFilter: "<AttributeFilter>",
57
+ * EqualsTo: { // DocumentAttribute
58
+ * Key: "STRING_VALUE", // required
59
+ * Value: { // DocumentAttributeValue
60
+ * StringValue: "STRING_VALUE",
61
+ * StringListValue: [ // DocumentAttributeStringListValue
62
+ * "STRING_VALUE",
63
+ * ],
64
+ * LongValue: Number("long"),
65
+ * DateValue: new Date("TIMESTAMP"),
66
+ * },
67
+ * },
68
+ * ContainsAll: {
69
+ * Key: "STRING_VALUE", // required
70
+ * Value: {
71
+ * StringValue: "STRING_VALUE",
72
+ * StringListValue: [
73
+ * "STRING_VALUE",
74
+ * ],
75
+ * LongValue: Number("long"),
76
+ * DateValue: new Date("TIMESTAMP"),
77
+ * },
78
+ * },
79
+ * ContainsAny: {
80
+ * Key: "STRING_VALUE", // required
81
+ * Value: {
82
+ * StringValue: "STRING_VALUE",
83
+ * StringListValue: [
84
+ * "STRING_VALUE",
85
+ * ],
86
+ * LongValue: Number("long"),
87
+ * DateValue: new Date("TIMESTAMP"),
88
+ * },
89
+ * },
90
+ * GreaterThan: {
91
+ * Key: "STRING_VALUE", // required
92
+ * Value: {
93
+ * StringValue: "STRING_VALUE",
94
+ * StringListValue: [
95
+ * "STRING_VALUE",
96
+ * ],
97
+ * LongValue: Number("long"),
98
+ * DateValue: new Date("TIMESTAMP"),
99
+ * },
100
+ * },
101
+ * GreaterThanOrEquals: {
102
+ * Key: "STRING_VALUE", // required
103
+ * Value: {
104
+ * StringValue: "STRING_VALUE",
105
+ * StringListValue: [
106
+ * "STRING_VALUE",
107
+ * ],
108
+ * LongValue: Number("long"),
109
+ * DateValue: new Date("TIMESTAMP"),
110
+ * },
111
+ * },
112
+ * LessThan: "<DocumentAttribute>",
113
+ * LessThanOrEquals: "<DocumentAttribute>",
114
+ * },
115
+ * ],
116
+ * OrAllFilters: [
117
+ * "<AttributeFilter>",
118
+ * ],
119
+ * NotFilter: "<AttributeFilter>",
120
+ * EqualsTo: "<DocumentAttribute>",
121
+ * ContainsAll: "<DocumentAttribute>",
122
+ * ContainsAny: "<DocumentAttribute>",
123
+ * GreaterThan: "<DocumentAttribute>",
124
+ * GreaterThanOrEquals: "<DocumentAttribute>",
125
+ * LessThan: "<DocumentAttribute>",
126
+ * LessThanOrEquals: "<DocumentAttribute>",
127
+ * },
128
+ * UserContext: { // UserContext
129
+ * Token: "STRING_VALUE",
130
+ * UserId: "STRING_VALUE",
131
+ * Groups: [ // Groups
132
+ * "STRING_VALUE",
133
+ * ],
134
+ * DataSourceGroups: [ // DataSourceGroups
135
+ * { // DataSourceGroup
136
+ * GroupId: "STRING_VALUE", // required
137
+ * DataSourceId: "STRING_VALUE", // required
138
+ * },
139
+ * ],
140
+ * },
141
+ * },
36
142
  * };
37
143
  * const command = new GetQuerySuggestionsCommand(input);
38
144
  * const response = await client.send(command);
@@ -22,7 +22,7 @@ export interface UpdateQuerySuggestionsConfigCommandOutput extends __MetadataBea
22
22
  * <p>Updates the settings of query suggestions for an index.</p>
23
23
  * <p>Amazon Kendra supports partial updates, so you only need to provide
24
24
  * the fields you want to update.</p>
25
- * <p>If an update is currently processing (i.e. 'happening'), you
25
+ * <p>If an update is currently processing, you
26
26
  * need to wait for the update to finish before making another update.</p>
27
27
  * <p>Updates to query suggestions settings might not take effect right away.
28
28
  * The time for your updated settings to take effect depends on the updates
@@ -44,6 +44,15 @@ export interface UpdateQuerySuggestionsConfigCommandOutput extends __MetadataBea
44
44
  * IncludeQueriesWithoutUserInformation: true || false,
45
45
  * MinimumNumberOfQueryingUsers: Number("int"),
46
46
  * MinimumQueryCount: Number("int"),
47
+ * AttributeSuggestionsConfig: { // AttributeSuggestionsUpdateConfig
48
+ * SuggestableConfigList: [ // SuggestableConfigList
49
+ * { // SuggestableConfig
50
+ * AttributeName: "STRING_VALUE",
51
+ * Suggestable: true || false,
52
+ * },
53
+ * ],
54
+ * AttributeSuggestionsMode: "ACTIVE" || "INACTIVE",
55
+ * },
47
56
  * };
48
57
  * const command = new UpdateQuerySuggestionsConfigCommand(input);
49
58
  * const response = await client.send(command);