aws-sdk-kendra 1.64.0 → 1.66.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8db83296966f4238a91ac05402466f928b50af51695321c9571639c510b48221
4
- data.tar.gz: bc738c1e1a85a8675575e003f0d8515abbfd2e50666480311cb3c3d2ba41bb0a
3
+ metadata.gz: af2f9514388d9284be2b0d7bb44d282a6363f30efed93f52a8e545d1cd080c71
4
+ data.tar.gz: 186df6ced079724421e6653732a7c9043a25d5e7496c477c148ff36ba1ba4891
5
5
  SHA512:
6
- metadata.gz: 997f04f694b9983e7334352516beb38f1ad1410130da64b23430740d1fb9cc667af5f9787fc481dff83b966b7ab5b1e2b0ac4327df3f5c65de1b393e47a4468e
7
- data.tar.gz: 3f99d218d06043f4db393d04ee0616404ed0dfb6820130ad9498e34f7b9bac66c30f73a2a08568968baef0b9b3a962bd108dd44b9b9b14a00599a877ffb5c685
6
+ metadata.gz: 4af4556449705d36ca788ab080cb9e57911e85b95afb3bfcae1978479bd694265d61e158fcb7e2a9736efb466f6b8a23b55c2b23ce90c97d6c2e3da77954cc94
7
+ data.tar.gz: 728eaf5a6ccadafff788931be6da6f0df0a02d65f87a29929dfe570b2acb567caf7d5f4ab297e345306f9d9807360869d3f2f5257baf06d570f1bbdf62468aa7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.66.0 (2023-05-31)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.65.0 (2023-05-02)
10
+ ------------------
11
+
12
+ * Feature - AWS Kendra now supports configuring document fields/attributes via the GetQuerySuggestions API. You can now base query suggestions on the contents of document fields.
13
+
4
14
  1.64.0 (2023-03-30)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.64.0
1
+ 1.66.0
@@ -275,6 +275,11 @@ module Aws::Kendra
275
275
  # in the future.
276
276
  #
277
277
  #
278
+ # @option options [String] :sdk_ua_app_id
279
+ # A unique and opaque application ID that is appended to the
280
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
281
+ # maximum length of 50.
282
+ #
278
283
  # @option options [String] :secret_access_key
279
284
  #
280
285
  # @option options [String] :session_token
@@ -2306,7 +2311,7 @@ module Aws::Kendra
2306
2311
  #
2307
2312
  #
2308
2313
  # [1]: https://docs.aws.amazon.com/kendra/latest/dg/quotas.html
2309
- # [2]: https://docs.aws.amazon.com/kendra/latest/dg/query-suggestions.html#suggestions-block-list
2314
+ # [2]: https://docs.aws.amazon.com/kendra/latest/dg/query-suggestions.html#query-suggestions-blocklist
2310
2315
  #
2311
2316
  # @option params [required, String] :index_id
2312
2317
  # The identifier of the index you want to create a query suggestions
@@ -3767,6 +3772,7 @@ module Aws::Kendra
3767
3772
  # * {Types::DescribeQuerySuggestionsConfigResponse#last_suggestions_build_time #last_suggestions_build_time} => Time
3768
3773
  # * {Types::DescribeQuerySuggestionsConfigResponse#last_clear_time #last_clear_time} => Time
3769
3774
  # * {Types::DescribeQuerySuggestionsConfigResponse#total_suggestions_count #total_suggestions_count} => Integer
3775
+ # * {Types::DescribeQuerySuggestionsConfigResponse#attribute_suggestions_config #attribute_suggestions_config} => Types::AttributeSuggestionsDescribeConfig
3770
3776
  #
3771
3777
  # @example Request syntax with placeholder values
3772
3778
  #
@@ -3785,6 +3791,10 @@ module Aws::Kendra
3785
3791
  # resp.last_suggestions_build_time #=> Time
3786
3792
  # resp.last_clear_time #=> Time
3787
3793
  # resp.total_suggestions_count #=> Integer
3794
+ # resp.attribute_suggestions_config.suggestable_config_list #=> Array
3795
+ # resp.attribute_suggestions_config.suggestable_config_list[0].attribute_name #=> String
3796
+ # resp.attribute_suggestions_config.suggestable_config_list[0].suggestable #=> Boolean
3797
+ # resp.attribute_suggestions_config.attribute_suggestions_mode #=> String, one of "ACTIVE", "INACTIVE"
3788
3798
  #
3789
3799
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeQuerySuggestionsConfig AWS API Documentation
3790
3800
  #
@@ -3974,6 +3984,23 @@ module Aws::Kendra
3974
3984
  # The maximum number of query suggestions you want to show to your
3975
3985
  # users.
3976
3986
  #
3987
+ # @option params [Array<String>] :suggestion_types
3988
+ # The suggestions type to base query suggestions on. The suggestion
3989
+ # types are query history or document fields/attributes. You can set one
3990
+ # type or the other.
3991
+ #
3992
+ # If you set query history as your suggestions type, Amazon Kendra
3993
+ # suggests queries relevant to your users based on popular queries in
3994
+ # the query history.
3995
+ #
3996
+ # If you set document fields/attributes as your suggestions type, Amazon
3997
+ # Kendra suggests queries relevant to your users based on the contents
3998
+ # of document fields.
3999
+ #
4000
+ # @option params [Types::AttributeSuggestionsGetConfig] :attribute_suggestions_config
4001
+ # Configuration information for the document fields/attributes that you
4002
+ # want to base query suggestions on.
4003
+ #
3977
4004
  # @return [Types::GetQuerySuggestionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3978
4005
  #
3979
4006
  # * {Types::GetQuerySuggestionsResponse#query_suggestions_id #query_suggestions_id} => String
@@ -3985,6 +4012,100 @@ module Aws::Kendra
3985
4012
  # index_id: "IndexId", # required
3986
4013
  # query_text: "SuggestionQueryText", # required
3987
4014
  # max_suggestions_count: 1,
4015
+ # suggestion_types: ["QUERY"], # accepts QUERY, DOCUMENT_ATTRIBUTES
4016
+ # attribute_suggestions_config: {
4017
+ # suggestion_attributes: ["DocumentAttributeKey"],
4018
+ # additional_response_attributes: ["DocumentAttributeKey"],
4019
+ # attribute_filter: {
4020
+ # and_all_filters: [
4021
+ # {
4022
+ # # recursive AttributeFilter
4023
+ # },
4024
+ # ],
4025
+ # or_all_filters: [
4026
+ # {
4027
+ # # recursive AttributeFilter
4028
+ # },
4029
+ # ],
4030
+ # not_filter: {
4031
+ # # recursive AttributeFilter
4032
+ # },
4033
+ # equals_to: {
4034
+ # key: "DocumentAttributeKey", # required
4035
+ # value: { # required
4036
+ # string_value: "DocumentAttributeStringValue",
4037
+ # string_list_value: ["String"],
4038
+ # long_value: 1,
4039
+ # date_value: Time.now,
4040
+ # },
4041
+ # },
4042
+ # contains_all: {
4043
+ # key: "DocumentAttributeKey", # required
4044
+ # value: { # required
4045
+ # string_value: "DocumentAttributeStringValue",
4046
+ # string_list_value: ["String"],
4047
+ # long_value: 1,
4048
+ # date_value: Time.now,
4049
+ # },
4050
+ # },
4051
+ # contains_any: {
4052
+ # key: "DocumentAttributeKey", # required
4053
+ # value: { # required
4054
+ # string_value: "DocumentAttributeStringValue",
4055
+ # string_list_value: ["String"],
4056
+ # long_value: 1,
4057
+ # date_value: Time.now,
4058
+ # },
4059
+ # },
4060
+ # greater_than: {
4061
+ # key: "DocumentAttributeKey", # required
4062
+ # value: { # required
4063
+ # string_value: "DocumentAttributeStringValue",
4064
+ # string_list_value: ["String"],
4065
+ # long_value: 1,
4066
+ # date_value: Time.now,
4067
+ # },
4068
+ # },
4069
+ # greater_than_or_equals: {
4070
+ # key: "DocumentAttributeKey", # required
4071
+ # value: { # required
4072
+ # string_value: "DocumentAttributeStringValue",
4073
+ # string_list_value: ["String"],
4074
+ # long_value: 1,
4075
+ # date_value: Time.now,
4076
+ # },
4077
+ # },
4078
+ # less_than: {
4079
+ # key: "DocumentAttributeKey", # required
4080
+ # value: { # required
4081
+ # string_value: "DocumentAttributeStringValue",
4082
+ # string_list_value: ["String"],
4083
+ # long_value: 1,
4084
+ # date_value: Time.now,
4085
+ # },
4086
+ # },
4087
+ # less_than_or_equals: {
4088
+ # key: "DocumentAttributeKey", # required
4089
+ # value: { # required
4090
+ # string_value: "DocumentAttributeStringValue",
4091
+ # string_list_value: ["String"],
4092
+ # long_value: 1,
4093
+ # date_value: Time.now,
4094
+ # },
4095
+ # },
4096
+ # },
4097
+ # user_context: {
4098
+ # token: "Token",
4099
+ # user_id: "PrincipalName",
4100
+ # groups: ["PrincipalName"],
4101
+ # data_source_groups: [
4102
+ # {
4103
+ # group_id: "PrincipalName", # required
4104
+ # data_source_id: "DataSourceId", # required
4105
+ # },
4106
+ # ],
4107
+ # },
4108
+ # },
3988
4109
  # })
3989
4110
  #
3990
4111
  # @example Response structure
@@ -3996,6 +4117,17 @@ module Aws::Kendra
3996
4117
  # resp.suggestions[0].value.text.highlights #=> Array
3997
4118
  # resp.suggestions[0].value.text.highlights[0].begin_offset #=> Integer
3998
4119
  # resp.suggestions[0].value.text.highlights[0].end_offset #=> Integer
4120
+ # resp.suggestions[0].source_documents #=> Array
4121
+ # resp.suggestions[0].source_documents[0].document_id #=> String
4122
+ # resp.suggestions[0].source_documents[0].suggestion_attributes #=> Array
4123
+ # resp.suggestions[0].source_documents[0].suggestion_attributes[0] #=> String
4124
+ # resp.suggestions[0].source_documents[0].additional_attributes #=> Array
4125
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].key #=> String
4126
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].value.string_value #=> String
4127
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].value.string_list_value #=> Array
4128
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].value.string_list_value[0] #=> String
4129
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].value.long_value #=> Integer
4130
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].value.date_value #=> Time
3999
4131
  #
4000
4132
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/GetQuerySuggestions AWS API Documentation
4001
4133
  #
@@ -6385,7 +6517,7 @@ module Aws::Kendra
6385
6517
  # The identifier of the index used for featuring results.
6386
6518
  #
6387
6519
  # @option params [required, String] :featured_results_set_id
6388
- # The identifier of the index used for featuring results.
6520
+ # The identifier of the set of featured results that you want to update.
6389
6521
  #
6390
6522
  # @option params [String] :featured_results_set_name
6391
6523
  # A new name for the set of featured results.
@@ -6645,8 +6777,8 @@ module Aws::Kendra
6645
6777
  # Amazon Kendra supports partial updates, so you only need to provide
6646
6778
  # the fields you want to update.
6647
6779
  #
6648
- # If an update is currently processing (i.e. 'happening'), you need to
6649
- # wait for the update to finish before making another update.
6780
+ # If an update is currently processing, you need to wait for the update
6781
+ # to finish before making another update.
6650
6782
  #
6651
6783
  # Updates to query suggestions settings might not take effect right
6652
6784
  # away. The time for your updated settings to take effect depends on the
@@ -6714,6 +6846,10 @@ module Aws::Kendra
6714
6846
  #
6715
6847
  # How you tune this setting depends on your specific needs.
6716
6848
  #
6849
+ # @option params [Types::AttributeSuggestionsUpdateConfig] :attribute_suggestions_config
6850
+ # Configuration information for the document fields/attributes that you
6851
+ # want to base query suggestions on.
6852
+ #
6717
6853
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
6718
6854
  #
6719
6855
  # @example Request syntax with placeholder values
@@ -6725,6 +6861,15 @@ module Aws::Kendra
6725
6861
  # include_queries_without_user_information: false,
6726
6862
  # minimum_number_of_querying_users: 1,
6727
6863
  # minimum_query_count: 1,
6864
+ # attribute_suggestions_config: {
6865
+ # suggestable_config_list: [
6866
+ # {
6867
+ # attribute_name: "DocumentAttributeKey",
6868
+ # suggestable: false,
6869
+ # },
6870
+ # ],
6871
+ # attribute_suggestions_mode: "ACTIVE", # accepts ACTIVE, INACTIVE
6872
+ # },
6728
6873
  # })
6729
6874
  #
6730
6875
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/UpdateQuerySuggestionsConfig AWS API Documentation
@@ -6795,7 +6940,7 @@ module Aws::Kendra
6795
6940
  params: params,
6796
6941
  config: config)
6797
6942
  context[:gem_name] = 'aws-sdk-kendra'
6798
- context[:gem_version] = '1.64.0'
6943
+ context[:gem_version] = '1.66.0'
6799
6944
  Seahorse::Client::Request.new(handlers, context)
6800
6945
  end
6801
6946
 
@@ -35,6 +35,10 @@ module Aws::Kendra
35
35
  AssociatePersonasToEntitiesResponse = Shapes::StructureShape.new(name: 'AssociatePersonasToEntitiesResponse')
36
36
  AttributeFilter = Shapes::StructureShape.new(name: 'AttributeFilter')
37
37
  AttributeFilterList = Shapes::ListShape.new(name: 'AttributeFilterList')
38
+ AttributeSuggestionsDescribeConfig = Shapes::StructureShape.new(name: 'AttributeSuggestionsDescribeConfig')
39
+ AttributeSuggestionsGetConfig = Shapes::StructureShape.new(name: 'AttributeSuggestionsGetConfig')
40
+ AttributeSuggestionsMode = Shapes::StringShape.new(name: 'AttributeSuggestionsMode')
41
+ AttributeSuggestionsUpdateConfig = Shapes::StructureShape.new(name: 'AttributeSuggestionsUpdateConfig')
38
42
  AuthenticationConfiguration = Shapes::StructureShape.new(name: 'AuthenticationConfiguration')
39
43
  BasicAuthenticationConfiguration = Shapes::StructureShape.new(name: 'BasicAuthenticationConfiguration')
40
44
  BasicAuthenticationConfigurationList = Shapes::ListShape.new(name: 'BasicAuthenticationConfigurationList')
@@ -492,6 +496,8 @@ module Aws::Kendra
492
496
  SnapshotsDataRecords = Shapes::ListShape.new(name: 'SnapshotsDataRecords')
493
497
  SortOrder = Shapes::StringShape.new(name: 'SortOrder')
494
498
  SortingConfiguration = Shapes::StructureShape.new(name: 'SortingConfiguration')
499
+ SourceDocument = Shapes::StructureShape.new(name: 'SourceDocument')
500
+ SourceDocuments = Shapes::ListShape.new(name: 'SourceDocuments')
495
501
  SpellCorrectedQuery = Shapes::StructureShape.new(name: 'SpellCorrectedQuery')
496
502
  SpellCorrectedQueryList = Shapes::ListShape.new(name: 'SpellCorrectedQueryList')
497
503
  SpellCorrectionConfiguration = Shapes::StructureShape.new(name: 'SpellCorrectionConfiguration')
@@ -506,6 +512,8 @@ module Aws::Kendra
506
512
  SubmitFeedbackRequest = Shapes::StructureShape.new(name: 'SubmitFeedbackRequest')
507
513
  SubnetId = Shapes::StringShape.new(name: 'SubnetId')
508
514
  SubnetIdList = Shapes::ListShape.new(name: 'SubnetIdList')
515
+ SuggestableConfig = Shapes::StructureShape.new(name: 'SuggestableConfig')
516
+ SuggestableConfigList = Shapes::ListShape.new(name: 'SuggestableConfigList')
509
517
  SuggestedQueryText = Shapes::StringShape.new(name: 'SuggestedQueryText')
510
518
  Suggestion = Shapes::StructureShape.new(name: 'Suggestion')
511
519
  SuggestionHighlight = Shapes::StructureShape.new(name: 'SuggestionHighlight')
@@ -513,6 +521,8 @@ module Aws::Kendra
513
521
  SuggestionList = Shapes::ListShape.new(name: 'SuggestionList')
514
522
  SuggestionQueryText = Shapes::StringShape.new(name: 'SuggestionQueryText')
515
523
  SuggestionTextWithHighlights = Shapes::StructureShape.new(name: 'SuggestionTextWithHighlights')
524
+ SuggestionType = Shapes::StringShape.new(name: 'SuggestionType')
525
+ SuggestionTypes = Shapes::ListShape.new(name: 'SuggestionTypes')
516
526
  SuggestionValue = Shapes::StructureShape.new(name: 'SuggestionValue')
517
527
  TableCell = Shapes::StructureShape.new(name: 'TableCell')
518
528
  TableCellList = Shapes::ListShape.new(name: 'TableCellList')
@@ -655,6 +665,20 @@ module Aws::Kendra
655
665
 
656
666
  AttributeFilterList.member = Shapes::ShapeRef.new(shape: AttributeFilter)
657
667
 
668
+ AttributeSuggestionsDescribeConfig.add_member(:suggestable_config_list, Shapes::ShapeRef.new(shape: SuggestableConfigList, location_name: "SuggestableConfigList"))
669
+ AttributeSuggestionsDescribeConfig.add_member(:attribute_suggestions_mode, Shapes::ShapeRef.new(shape: AttributeSuggestionsMode, location_name: "AttributeSuggestionsMode"))
670
+ AttributeSuggestionsDescribeConfig.struct_class = Types::AttributeSuggestionsDescribeConfig
671
+
672
+ AttributeSuggestionsGetConfig.add_member(:suggestion_attributes, Shapes::ShapeRef.new(shape: DocumentAttributeKeyList, location_name: "SuggestionAttributes"))
673
+ AttributeSuggestionsGetConfig.add_member(:additional_response_attributes, Shapes::ShapeRef.new(shape: DocumentAttributeKeyList, location_name: "AdditionalResponseAttributes"))
674
+ AttributeSuggestionsGetConfig.add_member(:attribute_filter, Shapes::ShapeRef.new(shape: AttributeFilter, location_name: "AttributeFilter"))
675
+ AttributeSuggestionsGetConfig.add_member(:user_context, Shapes::ShapeRef.new(shape: UserContext, location_name: "UserContext"))
676
+ AttributeSuggestionsGetConfig.struct_class = Types::AttributeSuggestionsGetConfig
677
+
678
+ AttributeSuggestionsUpdateConfig.add_member(:suggestable_config_list, Shapes::ShapeRef.new(shape: SuggestableConfigList, location_name: "SuggestableConfigList"))
679
+ AttributeSuggestionsUpdateConfig.add_member(:attribute_suggestions_mode, Shapes::ShapeRef.new(shape: AttributeSuggestionsMode, location_name: "AttributeSuggestionsMode"))
680
+ AttributeSuggestionsUpdateConfig.struct_class = Types::AttributeSuggestionsUpdateConfig
681
+
658
682
  AuthenticationConfiguration.add_member(:basic_authentication, Shapes::ShapeRef.new(shape: BasicAuthenticationConfigurationList, location_name: "BasicAuthentication"))
659
683
  AuthenticationConfiguration.struct_class = Types::AuthenticationConfiguration
660
684
 
@@ -1228,6 +1252,7 @@ module Aws::Kendra
1228
1252
  DescribeQuerySuggestionsConfigResponse.add_member(:last_suggestions_build_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastSuggestionsBuildTime"))
1229
1253
  DescribeQuerySuggestionsConfigResponse.add_member(:last_clear_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastClearTime"))
1230
1254
  DescribeQuerySuggestionsConfigResponse.add_member(:total_suggestions_count, Shapes::ShapeRef.new(shape: Integer, location_name: "TotalSuggestionsCount"))
1255
+ DescribeQuerySuggestionsConfigResponse.add_member(:attribute_suggestions_config, Shapes::ShapeRef.new(shape: AttributeSuggestionsDescribeConfig, location_name: "AttributeSuggestionsConfig"))
1231
1256
  DescribeQuerySuggestionsConfigResponse.struct_class = Types::DescribeQuerySuggestionsConfigResponse
1232
1257
 
1233
1258
  DescribeThesaurusRequest.add_member(:id, Shapes::ShapeRef.new(shape: ThesaurusId, required: true, location_name: "Id"))
@@ -1498,6 +1523,8 @@ module Aws::Kendra
1498
1523
  GetQuerySuggestionsRequest.add_member(:index_id, Shapes::ShapeRef.new(shape: IndexId, required: true, location_name: "IndexId"))
1499
1524
  GetQuerySuggestionsRequest.add_member(:query_text, Shapes::ShapeRef.new(shape: SuggestionQueryText, required: true, location_name: "QueryText"))
1500
1525
  GetQuerySuggestionsRequest.add_member(:max_suggestions_count, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxSuggestionsCount"))
1526
+ GetQuerySuggestionsRequest.add_member(:suggestion_types, Shapes::ShapeRef.new(shape: SuggestionTypes, location_name: "SuggestionTypes"))
1527
+ GetQuerySuggestionsRequest.add_member(:attribute_suggestions_config, Shapes::ShapeRef.new(shape: AttributeSuggestionsGetConfig, location_name: "AttributeSuggestionsConfig"))
1501
1528
  GetQuerySuggestionsRequest.struct_class = Types::GetQuerySuggestionsRequest
1502
1529
 
1503
1530
  GetQuerySuggestionsResponse.add_member(:query_suggestions_id, Shapes::ShapeRef.new(shape: QuerySuggestionsId, location_name: "QuerySuggestionsId"))
@@ -2106,6 +2133,13 @@ module Aws::Kendra
2106
2133
  SortingConfiguration.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, required: true, location_name: "SortOrder"))
2107
2134
  SortingConfiguration.struct_class = Types::SortingConfiguration
2108
2135
 
2136
+ SourceDocument.add_member(:document_id, Shapes::ShapeRef.new(shape: String, location_name: "DocumentId"))
2137
+ SourceDocument.add_member(:suggestion_attributes, Shapes::ShapeRef.new(shape: DocumentAttributeKeyList, location_name: "SuggestionAttributes"))
2138
+ SourceDocument.add_member(:additional_attributes, Shapes::ShapeRef.new(shape: DocumentAttributeList, location_name: "AdditionalAttributes"))
2139
+ SourceDocument.struct_class = Types::SourceDocument
2140
+
2141
+ SourceDocuments.member = Shapes::ShapeRef.new(shape: SourceDocument)
2142
+
2109
2143
  SpellCorrectedQuery.add_member(:suggested_query_text, Shapes::ShapeRef.new(shape: SuggestedQueryText, location_name: "SuggestedQueryText"))
2110
2144
  SpellCorrectedQuery.add_member(:corrections, Shapes::ShapeRef.new(shape: CorrectionList, location_name: "Corrections"))
2111
2145
  SpellCorrectedQuery.struct_class = Types::SpellCorrectedQuery
@@ -2145,8 +2179,15 @@ module Aws::Kendra
2145
2179
 
2146
2180
  SubnetIdList.member = Shapes::ShapeRef.new(shape: SubnetId)
2147
2181
 
2182
+ SuggestableConfig.add_member(:attribute_name, Shapes::ShapeRef.new(shape: DocumentAttributeKey, location_name: "AttributeName"))
2183
+ SuggestableConfig.add_member(:suggestable, Shapes::ShapeRef.new(shape: ObjectBoolean, location_name: "Suggestable"))
2184
+ SuggestableConfig.struct_class = Types::SuggestableConfig
2185
+
2186
+ SuggestableConfigList.member = Shapes::ShapeRef.new(shape: SuggestableConfig)
2187
+
2148
2188
  Suggestion.add_member(:id, Shapes::ShapeRef.new(shape: ResultId, location_name: "Id"))
2149
2189
  Suggestion.add_member(:value, Shapes::ShapeRef.new(shape: SuggestionValue, location_name: "Value"))
2190
+ Suggestion.add_member(:source_documents, Shapes::ShapeRef.new(shape: SourceDocuments, location_name: "SourceDocuments"))
2150
2191
  Suggestion.struct_class = Types::Suggestion
2151
2192
 
2152
2193
  SuggestionHighlight.add_member(:begin_offset, Shapes::ShapeRef.new(shape: Integer, location_name: "BeginOffset"))
@@ -2161,6 +2202,8 @@ module Aws::Kendra
2161
2202
  SuggestionTextWithHighlights.add_member(:highlights, Shapes::ShapeRef.new(shape: SuggestionHighlightList, location_name: "Highlights"))
2162
2203
  SuggestionTextWithHighlights.struct_class = Types::SuggestionTextWithHighlights
2163
2204
 
2205
+ SuggestionTypes.member = Shapes::ShapeRef.new(shape: SuggestionType)
2206
+
2164
2207
  SuggestionValue.add_member(:text, Shapes::ShapeRef.new(shape: SuggestionTextWithHighlights, location_name: "Text"))
2165
2208
  SuggestionValue.struct_class = Types::SuggestionValue
2166
2209
 
@@ -2295,6 +2338,7 @@ module Aws::Kendra
2295
2338
  UpdateQuerySuggestionsConfigRequest.add_member(:include_queries_without_user_information, Shapes::ShapeRef.new(shape: ObjectBoolean, location_name: "IncludeQueriesWithoutUserInformation"))
2296
2339
  UpdateQuerySuggestionsConfigRequest.add_member(:minimum_number_of_querying_users, Shapes::ShapeRef.new(shape: MinimumNumberOfQueryingUsers, location_name: "MinimumNumberOfQueryingUsers"))
2297
2340
  UpdateQuerySuggestionsConfigRequest.add_member(:minimum_query_count, Shapes::ShapeRef.new(shape: MinimumQueryCount, location_name: "MinimumQueryCount"))
2341
+ UpdateQuerySuggestionsConfigRequest.add_member(:attribute_suggestions_config, Shapes::ShapeRef.new(shape: AttributeSuggestionsUpdateConfig, location_name: "AttributeSuggestionsConfig"))
2298
2342
  UpdateQuerySuggestionsConfigRequest.struct_class = Types::UpdateQuerySuggestionsConfigRequest
2299
2343
 
2300
2344
  UpdateThesaurusRequest.add_member(:id, Shapes::ShapeRef.new(shape: ThesaurusId, required: true, location_name: "Id"))
@@ -433,6 +433,125 @@ module Aws::Kendra
433
433
  include Aws::Structure
434
434
  end
435
435
 
436
+ # Gets information on the configuration of document fields/attributes
437
+ # that you want to base query suggestions on. To change your
438
+ # configuration, use [AttributeSuggestionsUpdateConfig][1] and then call
439
+ # [UpdateQuerySuggestionsConfig][2].
440
+ #
441
+ #
442
+ #
443
+ # [1]: https://docs.aws.amazon.com/kendra/latest/dg/API_AttributeSuggestionsUpdateConfig.html
444
+ # [2]: https://docs.aws.amazon.com/kendra/latest/dg/API_UpdateQuerySuggestionsConfig.html
445
+ #
446
+ # @!attribute [rw] suggestable_config_list
447
+ # The list of fields/attributes that you want to set as suggestible
448
+ # for query suggestions.
449
+ # @return [Array<Types::SuggestableConfig>]
450
+ #
451
+ # @!attribute [rw] attribute_suggestions_mode
452
+ # The mode is set to either `ACTIVE` or `INACTIVE`. If the `Mode` for
453
+ # query history is set to `ENABLED` when calling
454
+ # [UpdateQuerySuggestionsConfig][1] and `AttributeSuggestionsMode` to
455
+ # use fields/attributes is set to `ACTIVE`, and you haven't set your
456
+ # `SuggestionTypes` preference to `DOCUMENT_ATTRIBUTES`, then Amazon
457
+ # Kendra uses the query history.
458
+ #
459
+ #
460
+ #
461
+ # [1]: https://docs.aws.amazon.com/kendra/latest/dg/API_UpdateQuerySuggestionsConfig.html
462
+ # @return [String]
463
+ #
464
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/AttributeSuggestionsDescribeConfig AWS API Documentation
465
+ #
466
+ class AttributeSuggestionsDescribeConfig < Struct.new(
467
+ :suggestable_config_list,
468
+ :attribute_suggestions_mode)
469
+ SENSITIVE = []
470
+ include Aws::Structure
471
+ end
472
+
473
+ # Provides the configuration information for the document
474
+ # fields/attributes that you want to base query suggestions on.
475
+ #
476
+ # @!attribute [rw] suggestion_attributes
477
+ # The list of document field/attribute keys or field names to use for
478
+ # query suggestions. If the content within any of the fields match
479
+ # what your user starts typing as their query, then the field content
480
+ # is returned as a query suggestion.
481
+ # @return [Array<String>]
482
+ #
483
+ # @!attribute [rw] additional_response_attributes
484
+ # The list of additional document field/attribute keys or field names
485
+ # to include in the response. You can use additional fields to provide
486
+ # extra information in the response. Additional fields are not used to
487
+ # based suggestions on.
488
+ # @return [Array<String>]
489
+ #
490
+ # @!attribute [rw] attribute_filter
491
+ # Filters the search results based on document fields/attributes.
492
+ # @return [Types::AttributeFilter]
493
+ #
494
+ # @!attribute [rw] user_context
495
+ # Applies user context filtering so that only users who are given
496
+ # access to certain documents see these document in their search
497
+ # results.
498
+ # @return [Types::UserContext]
499
+ #
500
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/AttributeSuggestionsGetConfig AWS API Documentation
501
+ #
502
+ class AttributeSuggestionsGetConfig < Struct.new(
503
+ :suggestion_attributes,
504
+ :additional_response_attributes,
505
+ :attribute_filter,
506
+ :user_context)
507
+ SENSITIVE = []
508
+ include Aws::Structure
509
+ end
510
+
511
+ # Updates the configuration information for the document
512
+ # fields/attributes that you want to base query suggestions on.
513
+ #
514
+ # To deactivate using documents fields for query suggestions, set the
515
+ # mode to `INACTIVE`. You must also set `SuggestionTypes` as either
516
+ # `QUERY` or `DOCUMENT_ATTRIBUTES` and then call
517
+ # [GetQuerySuggestions][1]. If you set to `QUERY`, then Amazon Kendra
518
+ # uses the query history to base suggestions on. If you set to
519
+ # `DOCUMENT_ATTRIBUTES`, then Amazon Kendra uses the contents of
520
+ # document fields to base suggestions on.
521
+ #
522
+ #
523
+ #
524
+ # [1]: https://docs.aws.amazon.com/kendra/latest/dg/API_GetQuerySuggestions.html
525
+ #
526
+ # @!attribute [rw] suggestable_config_list
527
+ # The list of fields/attributes that you want to set as suggestible
528
+ # for query suggestions.
529
+ # @return [Array<Types::SuggestableConfig>]
530
+ #
531
+ # @!attribute [rw] attribute_suggestions_mode
532
+ # You can set the mode to `ACTIVE` or `INACTIVE`. You must also set
533
+ # `SuggestionTypes` as either `QUERY` or `DOCUMENT_ATTRIBUTES` and
534
+ # then call [GetQuerySuggestions][1]. If `Mode` to use query history
535
+ # is set to `ENABLED` when calling [UpdateQuerySuggestionsConfig][2]
536
+ # and `AttributeSuggestionsMode` to use fields/attributes is set to
537
+ # `ACTIVE`, and you haven't set your `SuggestionTypes` preference to
538
+ # `DOCUMENT_ATTRIBUTES`, then Amazon Kendra uses the query history.
539
+ #
540
+ #
541
+ #
542
+ # [1]: https://docs.aws.amazon.com/kendra/latest/dg/API_GetQuerySuggestions.html
543
+ # [2]: https://docs.aws.amazon.com/kendra/latest/dg/API_UpdateQuerySuggestionsConfig.html
544
+ # @return [String]
545
+ #
546
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/AttributeSuggestionsUpdateConfig AWS API Documentation
547
+ #
548
+ class AttributeSuggestionsUpdateConfig < Struct.new(
549
+ :suggestable_config_list,
550
+ :attribute_suggestions_mode)
551
+ SENSITIVE = []
552
+ include Aws::Structure
553
+ end
554
+
436
555
  # Provides the configuration information to connect to websites that
437
556
  # require user authentication.
438
557
  #
@@ -3841,6 +3960,13 @@ module Aws::Kendra
3841
3960
  # @!attribute [rw] last_suggestions_build_time
3842
3961
  # The Unix timestamp when query suggestions for an index was last
3843
3962
  # updated.
3963
+ #
3964
+ # Amazon Kendra automatically updates suggestions every 24 hours,
3965
+ # after you change a setting or after you apply a [block list][1].
3966
+ #
3967
+ #
3968
+ #
3969
+ # [1]: https://docs.aws.amazon.com/kendra/latest/dg/query-suggestions.html#query-suggestions-blocklist
3844
3970
  # @return [Time]
3845
3971
  #
3846
3972
  # @!attribute [rw] last_clear_time
@@ -3860,8 +3986,17 @@ module Aws::Kendra
3860
3986
  # settings, if you filter out certain queries from suggestions using a
3861
3987
  # block list, and as the query log accumulates more queries for Amazon
3862
3988
  # Kendra to learn from.
3989
+ #
3990
+ # If the count is much lower than you expected, it could be because
3991
+ # Amazon Kendra needs more queries in the query history to learn from
3992
+ # or your current query suggestions settings are too strict.
3863
3993
  # @return [Integer]
3864
3994
  #
3995
+ # @!attribute [rw] attribute_suggestions_config
3996
+ # Configuration information for the document fields/attributes that
3997
+ # you want to base query suggestions on.
3998
+ # @return [Types::AttributeSuggestionsDescribeConfig]
3999
+ #
3865
4000
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeQuerySuggestionsConfigResponse AWS API Documentation
3866
4001
  #
3867
4002
  class DescribeQuerySuggestionsConfigResponse < Struct.new(
@@ -3873,7 +4008,8 @@ module Aws::Kendra
3873
4008
  :minimum_query_count,
3874
4009
  :last_suggestions_build_time,
3875
4010
  :last_clear_time,
3876
- :total_suggestions_count)
4011
+ :total_suggestions_count,
4012
+ :attribute_suggestions_config)
3877
4013
  SENSITIVE = []
3878
4014
  include Aws::Structure
3879
4015
  end
@@ -5263,12 +5399,33 @@ module Aws::Kendra
5263
5399
  # users.
5264
5400
  # @return [Integer]
5265
5401
  #
5402
+ # @!attribute [rw] suggestion_types
5403
+ # The suggestions type to base query suggestions on. The suggestion
5404
+ # types are query history or document fields/attributes. You can set
5405
+ # one type or the other.
5406
+ #
5407
+ # If you set query history as your suggestions type, Amazon Kendra
5408
+ # suggests queries relevant to your users based on popular queries in
5409
+ # the query history.
5410
+ #
5411
+ # If you set document fields/attributes as your suggestions type,
5412
+ # Amazon Kendra suggests queries relevant to your users based on the
5413
+ # contents of document fields.
5414
+ # @return [Array<String>]
5415
+ #
5416
+ # @!attribute [rw] attribute_suggestions_config
5417
+ # Configuration information for the document fields/attributes that
5418
+ # you want to base query suggestions on.
5419
+ # @return [Types::AttributeSuggestionsGetConfig]
5420
+ #
5266
5421
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/GetQuerySuggestionsRequest AWS API Documentation
5267
5422
  #
5268
5423
  class GetQuerySuggestionsRequest < Struct.new(
5269
5424
  :index_id,
5270
5425
  :query_text,
5271
- :max_suggestions_count)
5426
+ :max_suggestions_count,
5427
+ :suggestion_types,
5428
+ :attribute_suggestions_config)
5272
5429
  SENSITIVE = []
5273
5430
  include Aws::Structure
5274
5431
  end
@@ -9084,6 +9241,33 @@ module Aws::Kendra
9084
9241
  include Aws::Structure
9085
9242
  end
9086
9243
 
9244
+ # The document ID and its fields/attributes that are used for a query
9245
+ # suggestion, if document fields set to use for query suggestions.
9246
+ #
9247
+ # @!attribute [rw] document_id
9248
+ # The identifier of the document used for a query suggestion.
9249
+ # @return [String]
9250
+ #
9251
+ # @!attribute [rw] suggestion_attributes
9252
+ # The document fields/attributes used for a query suggestion.
9253
+ # @return [Array<String>]
9254
+ #
9255
+ # @!attribute [rw] additional_attributes
9256
+ # The additional fields/attributes to include in the response. You can
9257
+ # use additional fields to provide extra information in the response.
9258
+ # Additional fields are not used to based suggestions on.
9259
+ # @return [Array<Types::DocumentAttribute>]
9260
+ #
9261
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/SourceDocument AWS API Documentation
9262
+ #
9263
+ class SourceDocument < Struct.new(
9264
+ :document_id,
9265
+ :suggestion_attributes,
9266
+ :additional_attributes)
9267
+ SENSITIVE = []
9268
+ include Aws::Structure
9269
+ end
9270
+
9087
9271
  # A query with suggested spell corrections.
9088
9272
  #
9089
9273
  # @!attribute [rw] suggested_query_text
@@ -9270,6 +9454,27 @@ module Aws::Kendra
9270
9454
  include Aws::Structure
9271
9455
  end
9272
9456
 
9457
+ # Provides the configuration information for a document field/attribute
9458
+ # that you want to base query suggestions on.
9459
+ #
9460
+ # @!attribute [rw] attribute_name
9461
+ # The name of the document field/attribute.
9462
+ # @return [String]
9463
+ #
9464
+ # @!attribute [rw] suggestable
9465
+ # `TRUE` means the document field/attribute is suggestible, so the
9466
+ # contents within the field can be used for query suggestions.
9467
+ # @return [Boolean]
9468
+ #
9469
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/SuggestableConfig AWS API Documentation
9470
+ #
9471
+ class SuggestableConfig < Struct.new(
9472
+ :attribute_name,
9473
+ :suggestable)
9474
+ SENSITIVE = []
9475
+ include Aws::Structure
9476
+ end
9477
+
9273
9478
  # A single query suggestion.
9274
9479
  #
9275
9480
  # @!attribute [rw] id
@@ -9284,11 +9489,18 @@ module Aws::Kendra
9284
9489
  # The value is the text string of a suggestion.
9285
9490
  # @return [Types::SuggestionValue]
9286
9491
  #
9492
+ # @!attribute [rw] source_documents
9493
+ # The list of document IDs and their fields/attributes that are used
9494
+ # for a single query suggestion, if document fields set to use for
9495
+ # query suggestions.
9496
+ # @return [Array<Types::SourceDocument>]
9497
+ #
9287
9498
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/Suggestion AWS API Documentation
9288
9499
  #
9289
9500
  class Suggestion < Struct.new(
9290
9501
  :id,
9291
- :value)
9502
+ :value,
9503
+ :source_documents)
9292
9504
  SENSITIVE = []
9293
9505
  include Aws::Structure
9294
9506
  end
@@ -9808,7 +10020,8 @@ module Aws::Kendra
9808
10020
  # @return [String]
9809
10021
  #
9810
10022
  # @!attribute [rw] featured_results_set_id
9811
- # The identifier of the index used for featuring results.
10023
+ # The identifier of the set of featured results that you want to
10024
+ # update.
9812
10025
  # @return [String]
9813
10026
  #
9814
10027
  # @!attribute [rw] featured_results_set_name
@@ -10056,6 +10269,11 @@ module Aws::Kendra
10056
10269
  # How you tune this setting depends on your specific needs.
10057
10270
  # @return [Integer]
10058
10271
  #
10272
+ # @!attribute [rw] attribute_suggestions_config
10273
+ # Configuration information for the document fields/attributes that
10274
+ # you want to base query suggestions on.
10275
+ # @return [Types::AttributeSuggestionsUpdateConfig]
10276
+ #
10059
10277
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/UpdateQuerySuggestionsConfigRequest AWS API Documentation
10060
10278
  #
10061
10279
  class UpdateQuerySuggestionsConfigRequest < Struct.new(
@@ -10064,7 +10282,8 @@ module Aws::Kendra
10064
10282
  :query_log_look_back_window_in_days,
10065
10283
  :include_queries_without_user_information,
10066
10284
  :minimum_number_of_querying_users,
10067
- :minimum_query_count)
10285
+ :minimum_query_count,
10286
+ :attribute_suggestions_config)
10068
10287
  SENSITIVE = []
10069
10288
  include Aws::Structure
10070
10289
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-kendra/customizations'
52
52
  # @!group service
53
53
  module Aws::Kendra
54
54
 
55
- GEM_VERSION = '1.64.0'
55
+ GEM_VERSION = '1.66.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kendra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.64.0
4
+ version: 1.66.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-30 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.165.0
22
+ version: 3.174.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.165.0
32
+ version: 3.174.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement