aws-sdk-kendra 1.64.0 → 1.65.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8db83296966f4238a91ac05402466f928b50af51695321c9571639c510b48221
4
- data.tar.gz: bc738c1e1a85a8675575e003f0d8515abbfd2e50666480311cb3c3d2ba41bb0a
3
+ metadata.gz: 47c641bfaeaaffe6143c74936684af6b81d42c53e937f2bd01c3f664e3d49a8b
4
+ data.tar.gz: c07b2dc22e1b2bd3d1497d509b13f9dde0907222fecb7c03367492709a2b6e5e
5
5
  SHA512:
6
- metadata.gz: 997f04f694b9983e7334352516beb38f1ad1410130da64b23430740d1fb9cc667af5f9787fc481dff83b966b7ab5b1e2b0ac4327df3f5c65de1b393e47a4468e
7
- data.tar.gz: 3f99d218d06043f4db393d04ee0616404ed0dfb6820130ad9498e34f7b9bac66c30f73a2a08568968baef0b9b3a962bd108dd44b9b9b14a00599a877ffb5c685
6
+ metadata.gz: 47cb9b708740ab526efb46e7518c31c35e129899b5a362a690438b81e0c7f3f49ccd91d915f20c2cced2e52ef66ec42c3eab088f4a9fdd405b2bcdef9455796a
7
+ data.tar.gz: c2d389d63546a1b1dfeca83cbe30587b87cef54cf4412ee867f771c5deef71577523bdd414c5d1b9d6e06be95dcdf0e6a9a6ea20306538ffce117a80693e2a00
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.65.0 (2023-05-02)
5
+ ------------------
6
+
7
+ * 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.
8
+
4
9
  1.64.0 (2023-03-30)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.64.0
1
+ 1.65.0
@@ -2306,7 +2306,7 @@ module Aws::Kendra
2306
2306
  #
2307
2307
  #
2308
2308
  # [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
2309
+ # [2]: https://docs.aws.amazon.com/kendra/latest/dg/query-suggestions.html#query-suggestions-blocklist
2310
2310
  #
2311
2311
  # @option params [required, String] :index_id
2312
2312
  # The identifier of the index you want to create a query suggestions
@@ -3767,6 +3767,7 @@ module Aws::Kendra
3767
3767
  # * {Types::DescribeQuerySuggestionsConfigResponse#last_suggestions_build_time #last_suggestions_build_time} => Time
3768
3768
  # * {Types::DescribeQuerySuggestionsConfigResponse#last_clear_time #last_clear_time} => Time
3769
3769
  # * {Types::DescribeQuerySuggestionsConfigResponse#total_suggestions_count #total_suggestions_count} => Integer
3770
+ # * {Types::DescribeQuerySuggestionsConfigResponse#attribute_suggestions_config #attribute_suggestions_config} => Types::AttributeSuggestionsDescribeConfig
3770
3771
  #
3771
3772
  # @example Request syntax with placeholder values
3772
3773
  #
@@ -3785,6 +3786,10 @@ module Aws::Kendra
3785
3786
  # resp.last_suggestions_build_time #=> Time
3786
3787
  # resp.last_clear_time #=> Time
3787
3788
  # resp.total_suggestions_count #=> Integer
3789
+ # resp.attribute_suggestions_config.suggestable_config_list #=> Array
3790
+ # resp.attribute_suggestions_config.suggestable_config_list[0].attribute_name #=> String
3791
+ # resp.attribute_suggestions_config.suggestable_config_list[0].suggestable #=> Boolean
3792
+ # resp.attribute_suggestions_config.attribute_suggestions_mode #=> String, one of "ACTIVE", "INACTIVE"
3788
3793
  #
3789
3794
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeQuerySuggestionsConfig AWS API Documentation
3790
3795
  #
@@ -3974,6 +3979,23 @@ module Aws::Kendra
3974
3979
  # The maximum number of query suggestions you want to show to your
3975
3980
  # users.
3976
3981
  #
3982
+ # @option params [Array<String>] :suggestion_types
3983
+ # The suggestions type to base query suggestions on. The suggestion
3984
+ # types are query history or document fields/attributes. You can set one
3985
+ # type or the other.
3986
+ #
3987
+ # If you set query history as your suggestions type, Amazon Kendra
3988
+ # suggests queries relevant to your users based on popular queries in
3989
+ # the query history.
3990
+ #
3991
+ # If you set document fields/attributes as your suggestions type, Amazon
3992
+ # Kendra suggests queries relevant to your users based on the contents
3993
+ # of document fields.
3994
+ #
3995
+ # @option params [Types::AttributeSuggestionsGetConfig] :attribute_suggestions_config
3996
+ # Configuration information for the document fields/attributes that you
3997
+ # want to base query suggestions on.
3998
+ #
3977
3999
  # @return [Types::GetQuerySuggestionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3978
4000
  #
3979
4001
  # * {Types::GetQuerySuggestionsResponse#query_suggestions_id #query_suggestions_id} => String
@@ -3985,6 +4007,100 @@ module Aws::Kendra
3985
4007
  # index_id: "IndexId", # required
3986
4008
  # query_text: "SuggestionQueryText", # required
3987
4009
  # max_suggestions_count: 1,
4010
+ # suggestion_types: ["QUERY"], # accepts QUERY, DOCUMENT_ATTRIBUTES
4011
+ # attribute_suggestions_config: {
4012
+ # suggestion_attributes: ["DocumentAttributeKey"],
4013
+ # additional_response_attributes: ["DocumentAttributeKey"],
4014
+ # attribute_filter: {
4015
+ # and_all_filters: [
4016
+ # {
4017
+ # # recursive AttributeFilter
4018
+ # },
4019
+ # ],
4020
+ # or_all_filters: [
4021
+ # {
4022
+ # # recursive AttributeFilter
4023
+ # },
4024
+ # ],
4025
+ # not_filter: {
4026
+ # # recursive AttributeFilter
4027
+ # },
4028
+ # equals_to: {
4029
+ # key: "DocumentAttributeKey", # required
4030
+ # value: { # required
4031
+ # string_value: "DocumentAttributeStringValue",
4032
+ # string_list_value: ["String"],
4033
+ # long_value: 1,
4034
+ # date_value: Time.now,
4035
+ # },
4036
+ # },
4037
+ # contains_all: {
4038
+ # key: "DocumentAttributeKey", # required
4039
+ # value: { # required
4040
+ # string_value: "DocumentAttributeStringValue",
4041
+ # string_list_value: ["String"],
4042
+ # long_value: 1,
4043
+ # date_value: Time.now,
4044
+ # },
4045
+ # },
4046
+ # contains_any: {
4047
+ # key: "DocumentAttributeKey", # required
4048
+ # value: { # required
4049
+ # string_value: "DocumentAttributeStringValue",
4050
+ # string_list_value: ["String"],
4051
+ # long_value: 1,
4052
+ # date_value: Time.now,
4053
+ # },
4054
+ # },
4055
+ # greater_than: {
4056
+ # key: "DocumentAttributeKey", # required
4057
+ # value: { # required
4058
+ # string_value: "DocumentAttributeStringValue",
4059
+ # string_list_value: ["String"],
4060
+ # long_value: 1,
4061
+ # date_value: Time.now,
4062
+ # },
4063
+ # },
4064
+ # greater_than_or_equals: {
4065
+ # key: "DocumentAttributeKey", # required
4066
+ # value: { # required
4067
+ # string_value: "DocumentAttributeStringValue",
4068
+ # string_list_value: ["String"],
4069
+ # long_value: 1,
4070
+ # date_value: Time.now,
4071
+ # },
4072
+ # },
4073
+ # less_than: {
4074
+ # key: "DocumentAttributeKey", # required
4075
+ # value: { # required
4076
+ # string_value: "DocumentAttributeStringValue",
4077
+ # string_list_value: ["String"],
4078
+ # long_value: 1,
4079
+ # date_value: Time.now,
4080
+ # },
4081
+ # },
4082
+ # less_than_or_equals: {
4083
+ # key: "DocumentAttributeKey", # required
4084
+ # value: { # required
4085
+ # string_value: "DocumentAttributeStringValue",
4086
+ # string_list_value: ["String"],
4087
+ # long_value: 1,
4088
+ # date_value: Time.now,
4089
+ # },
4090
+ # },
4091
+ # },
4092
+ # user_context: {
4093
+ # token: "Token",
4094
+ # user_id: "PrincipalName",
4095
+ # groups: ["PrincipalName"],
4096
+ # data_source_groups: [
4097
+ # {
4098
+ # group_id: "PrincipalName", # required
4099
+ # data_source_id: "DataSourceId", # required
4100
+ # },
4101
+ # ],
4102
+ # },
4103
+ # },
3988
4104
  # })
3989
4105
  #
3990
4106
  # @example Response structure
@@ -3996,6 +4112,17 @@ module Aws::Kendra
3996
4112
  # resp.suggestions[0].value.text.highlights #=> Array
3997
4113
  # resp.suggestions[0].value.text.highlights[0].begin_offset #=> Integer
3998
4114
  # resp.suggestions[0].value.text.highlights[0].end_offset #=> Integer
4115
+ # resp.suggestions[0].source_documents #=> Array
4116
+ # resp.suggestions[0].source_documents[0].document_id #=> String
4117
+ # resp.suggestions[0].source_documents[0].suggestion_attributes #=> Array
4118
+ # resp.suggestions[0].source_documents[0].suggestion_attributes[0] #=> String
4119
+ # resp.suggestions[0].source_documents[0].additional_attributes #=> Array
4120
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].key #=> String
4121
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].value.string_value #=> String
4122
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].value.string_list_value #=> Array
4123
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].value.string_list_value[0] #=> String
4124
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].value.long_value #=> Integer
4125
+ # resp.suggestions[0].source_documents[0].additional_attributes[0].value.date_value #=> Time
3999
4126
  #
4000
4127
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/GetQuerySuggestions AWS API Documentation
4001
4128
  #
@@ -6385,7 +6512,7 @@ module Aws::Kendra
6385
6512
  # The identifier of the index used for featuring results.
6386
6513
  #
6387
6514
  # @option params [required, String] :featured_results_set_id
6388
- # The identifier of the index used for featuring results.
6515
+ # The identifier of the set of featured results that you want to update.
6389
6516
  #
6390
6517
  # @option params [String] :featured_results_set_name
6391
6518
  # A new name for the set of featured results.
@@ -6645,8 +6772,8 @@ module Aws::Kendra
6645
6772
  # Amazon Kendra supports partial updates, so you only need to provide
6646
6773
  # the fields you want to update.
6647
6774
  #
6648
- # If an update is currently processing (i.e. 'happening'), you need to
6649
- # wait for the update to finish before making another update.
6775
+ # If an update is currently processing, you need to wait for the update
6776
+ # to finish before making another update.
6650
6777
  #
6651
6778
  # Updates to query suggestions settings might not take effect right
6652
6779
  # away. The time for your updated settings to take effect depends on the
@@ -6714,6 +6841,10 @@ module Aws::Kendra
6714
6841
  #
6715
6842
  # How you tune this setting depends on your specific needs.
6716
6843
  #
6844
+ # @option params [Types::AttributeSuggestionsUpdateConfig] :attribute_suggestions_config
6845
+ # Configuration information for the document fields/attributes that you
6846
+ # want to base query suggestions on.
6847
+ #
6717
6848
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
6718
6849
  #
6719
6850
  # @example Request syntax with placeholder values
@@ -6725,6 +6856,15 @@ module Aws::Kendra
6725
6856
  # include_queries_without_user_information: false,
6726
6857
  # minimum_number_of_querying_users: 1,
6727
6858
  # minimum_query_count: 1,
6859
+ # attribute_suggestions_config: {
6860
+ # suggestable_config_list: [
6861
+ # {
6862
+ # attribute_name: "DocumentAttributeKey",
6863
+ # suggestable: false,
6864
+ # },
6865
+ # ],
6866
+ # attribute_suggestions_mode: "ACTIVE", # accepts ACTIVE, INACTIVE
6867
+ # },
6728
6868
  # })
6729
6869
  #
6730
6870
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/UpdateQuerySuggestionsConfig AWS API Documentation
@@ -6795,7 +6935,7 @@ module Aws::Kendra
6795
6935
  params: params,
6796
6936
  config: config)
6797
6937
  context[:gem_name] = 'aws-sdk-kendra'
6798
- context[:gem_version] = '1.64.0'
6938
+ context[:gem_version] = '1.65.0'
6799
6939
  Seahorse::Client::Request.new(handlers, context)
6800
6940
  end
6801
6941
 
@@ -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.65.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.65.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-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core