aws-sdk-kendra 1.8.0 → 1.9.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: 85405515fd60d8582ec6e77da776ad2f56d5b4d61c70f0e21a147b280485c7de
4
- data.tar.gz: f368c2afdbf681b8a342c50282249794e223b810463742c7d94b2f5659a05d4d
3
+ metadata.gz: ca0c4ed0efc6c1e08201507353f1b6edb0bc92cf0e99befefa76a1341e840caf
4
+ data.tar.gz: 000c145ddfcf960c317d7e8a8c20aa1118215f60da5ef766b1bedb500c5abecb
5
5
  SHA512:
6
- metadata.gz: f60098a6ae9b6e4543fd03c8a9fb32b6e3931a74ba0d319fd927c5ce9732667575351353f307cd3b777821db85feedc99218157b1df2b5433ccdd020a5d01e16
7
- data.tar.gz: 5ab1998965d531150fe2915d8c8042d6d80c05b181b26c77191b1d9969d3c014aecb1a5a1e003fda16284cbf74f09bebc415b0ea9289348e331d4d7b6c2f3bdd
6
+ metadata.gz: 2518b211b329d7c1c3708bca80100366ccdf8f4b7ac199d02173afa391ce97db529e61d1463837bd3c61d883676dd6fd409f6ae8376b06075d8dd2333262f01d
7
+ data.tar.gz: cebff54087acbb01288a4d5dad7fdf7b45ff0b5fe3e3d7ec69303dadc472f1d2da4881b52f21aa47e7a3d1d7de565f3029dfdc1d41cf98696d3340de49d9c91f
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-kendra/customizations'
47
47
  # @service
48
48
  module Aws::Kendra
49
49
 
50
- GEM_VERSION = '1.8.0'
50
+ GEM_VERSION = '1.9.0'
51
51
 
52
52
  end
@@ -592,6 +592,9 @@ module Aws::Kendra
592
592
  # acl_configuration: {
593
593
  # allowed_groups_column_name: "ColumnName", # required
594
594
  # },
595
+ # sql_configuration: {
596
+ # query_identifiers_enclosing_option: "DOUBLE_QUOTES", # accepts DOUBLE_QUOTES, NONE
597
+ # },
595
598
  # },
596
599
  # salesforce_configuration: {
597
600
  # server_url: "Url", # required
@@ -1055,6 +1058,7 @@ module Aws::Kendra
1055
1058
  # resp.configuration.database_configuration.column_configuration.change_detecting_columns #=> Array
1056
1059
  # resp.configuration.database_configuration.column_configuration.change_detecting_columns[0] #=> String
1057
1060
  # resp.configuration.database_configuration.acl_configuration.allowed_groups_column_name #=> String
1061
+ # resp.configuration.database_configuration.sql_configuration.query_identifiers_enclosing_option #=> String, one of "DOUBLE_QUOTES", "NONE"
1058
1062
  # resp.configuration.salesforce_configuration.server_url #=> String
1059
1063
  # resp.configuration.salesforce_configuration.secret_arn #=> String
1060
1064
  # resp.configuration.salesforce_configuration.standard_object_configurations #=> Array
@@ -1256,6 +1260,7 @@ module Aws::Kendra
1256
1260
  # resp.document_metadata_configurations[0].search.facetable #=> Boolean
1257
1261
  # resp.document_metadata_configurations[0].search.searchable #=> Boolean
1258
1262
  # resp.document_metadata_configurations[0].search.displayable #=> Boolean
1263
+ # resp.document_metadata_configurations[0].search.sortable #=> Boolean
1259
1264
  # resp.index_statistics.faq_statistics.indexed_question_answers_count #=> Integer
1260
1265
  # resp.index_statistics.text_document_statistics.indexed_text_documents_count #=> Integer
1261
1266
  # resp.index_statistics.text_document_statistics.indexed_text_bytes #=> Integer
@@ -1577,6 +1582,16 @@ module Aws::Kendra
1577
1582
  # The default page size is 10. The maximum number of results returned is
1578
1583
  # 100. If you ask for more than 100 results, only 100 are returned.
1579
1584
  #
1585
+ # @option params [Types::SortingConfiguration] :sorting_configuration
1586
+ # Provides information that determines how the results of the query are
1587
+ # sorted. You can set the field that Amazon Kendra should sort the
1588
+ # results on, and specify whether the results should be sorted in
1589
+ # ascending or descending order. In the case of ties in sorting the
1590
+ # results, the results are sorted by relevance.
1591
+ #
1592
+ # If you don't provide sorting configuration, the results are sorted by
1593
+ # the relevance that Amazon Kendra determines for the result.
1594
+ #
1580
1595
  # @return [Types::QueryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1581
1596
  #
1582
1597
  # * {Types::QueryResult#query_id #query_id} => String
@@ -1676,6 +1691,10 @@ module Aws::Kendra
1676
1691
  # query_result_type_filter: "DOCUMENT", # accepts DOCUMENT, QUESTION_ANSWER, ANSWER
1677
1692
  # page_number: 1,
1678
1693
  # page_size: 1,
1694
+ # sorting_configuration: {
1695
+ # document_attribute_key: "DocumentAttributeKey", # required
1696
+ # sort_order: "DESC", # required, accepts DESC, ASC
1697
+ # },
1679
1698
  # })
1680
1699
  #
1681
1700
  # @example Response structure
@@ -2000,6 +2019,9 @@ module Aws::Kendra
2000
2019
  # acl_configuration: {
2001
2020
  # allowed_groups_column_name: "ColumnName", # required
2002
2021
  # },
2022
+ # sql_configuration: {
2023
+ # query_identifiers_enclosing_option: "DOUBLE_QUOTES", # accepts DOUBLE_QUOTES, NONE
2024
+ # },
2003
2025
  # },
2004
2026
  # salesforce_configuration: {
2005
2027
  # server_url: "Url", # required
@@ -2192,6 +2214,7 @@ module Aws::Kendra
2192
2214
  # facetable: false,
2193
2215
  # searchable: false,
2194
2216
  # displayable: false,
2217
+ # sortable: false,
2195
2218
  # },
2196
2219
  # },
2197
2220
  # ],
@@ -2223,7 +2246,7 @@ module Aws::Kendra
2223
2246
  params: params,
2224
2247
  config: config)
2225
2248
  context[:gem_name] = 'aws-sdk-kendra'
2226
- context[:gem_version] = '1.8.0'
2249
+ context[:gem_version] = '1.9.0'
2227
2250
  Seahorse::Client::Request.new(handlers, context)
2228
2251
  end
2229
2252
 
@@ -161,6 +161,7 @@ module Aws::Kendra
161
161
  PrincipalType = Shapes::StringShape.new(name: 'PrincipalType')
162
162
  QueryCapacityUnit = Shapes::IntegerShape.new(name: 'QueryCapacityUnit')
163
163
  QueryId = Shapes::StringShape.new(name: 'QueryId')
164
+ QueryIdentifiersEnclosingOption = Shapes::StringShape.new(name: 'QueryIdentifiersEnclosingOption')
164
165
  QueryRequest = Shapes::StructureShape.new(name: 'QueryRequest')
165
166
  QueryResult = Shapes::StructureShape.new(name: 'QueryResult')
166
167
  QueryResultItem = Shapes::StructureShape.new(name: 'QueryResultItem')
@@ -211,6 +212,9 @@ module Aws::Kendra
211
212
  SharePointConfiguration = Shapes::StructureShape.new(name: 'SharePointConfiguration')
212
213
  SharePointUrlList = Shapes::ListShape.new(name: 'SharePointUrlList')
213
214
  SharePointVersion = Shapes::StringShape.new(name: 'SharePointVersion')
215
+ SortOrder = Shapes::StringShape.new(name: 'SortOrder')
216
+ SortingConfiguration = Shapes::StructureShape.new(name: 'SortingConfiguration')
217
+ SqlConfiguration = Shapes::StructureShape.new(name: 'SqlConfiguration')
214
218
  StartDataSourceSyncJobRequest = Shapes::StructureShape.new(name: 'StartDataSourceSyncJobRequest')
215
219
  StartDataSourceSyncJobResponse = Shapes::StructureShape.new(name: 'StartDataSourceSyncJobResponse')
216
220
  StopDataSourceSyncJobRequest = Shapes::StructureShape.new(name: 'StopDataSourceSyncJobRequest')
@@ -431,6 +435,7 @@ module Aws::Kendra
431
435
  DatabaseConfiguration.add_member(:vpc_configuration, Shapes::ShapeRef.new(shape: DataSourceVpcConfiguration, location_name: "VpcConfiguration"))
432
436
  DatabaseConfiguration.add_member(:column_configuration, Shapes::ShapeRef.new(shape: ColumnConfiguration, required: true, location_name: "ColumnConfiguration"))
433
437
  DatabaseConfiguration.add_member(:acl_configuration, Shapes::ShapeRef.new(shape: AclConfiguration, location_name: "AclConfiguration"))
438
+ DatabaseConfiguration.add_member(:sql_configuration, Shapes::ShapeRef.new(shape: SqlConfiguration, location_name: "SqlConfiguration"))
434
439
  DatabaseConfiguration.struct_class = Types::DatabaseConfiguration
435
440
 
436
441
  DeleteDataSourceRequest.add_member(:id, Shapes::ShapeRef.new(shape: DataSourceId, required: true, location_name: "Id"))
@@ -662,6 +667,7 @@ module Aws::Kendra
662
667
  QueryRequest.add_member(:query_result_type_filter, Shapes::ShapeRef.new(shape: QueryResultType, location_name: "QueryResultTypeFilter"))
663
668
  QueryRequest.add_member(:page_number, Shapes::ShapeRef.new(shape: Integer, location_name: "PageNumber"))
664
669
  QueryRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: Integer, location_name: "PageSize"))
670
+ QueryRequest.add_member(:sorting_configuration, Shapes::ShapeRef.new(shape: SortingConfiguration, location_name: "SortingConfiguration"))
665
671
  QueryRequest.struct_class = Types::QueryRequest
666
672
 
667
673
  QueryResult.add_member(:query_id, Shapes::ShapeRef.new(shape: QueryId, location_name: "QueryId"))
@@ -772,6 +778,7 @@ module Aws::Kendra
772
778
  Search.add_member(:facetable, Shapes::ShapeRef.new(shape: Boolean, location_name: "Facetable"))
773
779
  Search.add_member(:searchable, Shapes::ShapeRef.new(shape: Boolean, location_name: "Searchable"))
774
780
  Search.add_member(:displayable, Shapes::ShapeRef.new(shape: Boolean, location_name: "Displayable"))
781
+ Search.add_member(:sortable, Shapes::ShapeRef.new(shape: Boolean, location_name: "Sortable"))
775
782
  Search.struct_class = Types::Search
776
783
 
777
784
  SecurityGroupIdList.member = Shapes::ShapeRef.new(shape: VpcSecurityGroupId)
@@ -819,6 +826,13 @@ module Aws::Kendra
819
826
 
820
827
  SharePointUrlList.member = Shapes::ShapeRef.new(shape: Url)
821
828
 
829
+ SortingConfiguration.add_member(:document_attribute_key, Shapes::ShapeRef.new(shape: DocumentAttributeKey, required: true, location_name: "DocumentAttributeKey"))
830
+ SortingConfiguration.add_member(:sort_order, Shapes::ShapeRef.new(shape: SortOrder, required: true, location_name: "SortOrder"))
831
+ SortingConfiguration.struct_class = Types::SortingConfiguration
832
+
833
+ SqlConfiguration.add_member(:query_identifiers_enclosing_option, Shapes::ShapeRef.new(shape: QueryIdentifiersEnclosingOption, location_name: "QueryIdentifiersEnclosingOption"))
834
+ SqlConfiguration.struct_class = Types::SqlConfiguration
835
+
822
836
  StartDataSourceSyncJobRequest.add_member(:id, Shapes::ShapeRef.new(shape: DataSourceId, required: true, location_name: "Id"))
823
837
  StartDataSourceSyncJobRequest.add_member(:index_id, Shapes::ShapeRef.new(shape: IndexId, required: true, location_name: "IndexId"))
824
838
  StartDataSourceSyncJobRequest.struct_class = Types::StartDataSourceSyncJobRequest
@@ -942,6 +942,9 @@ module Aws::Kendra
942
942
  # acl_configuration: {
943
943
  # allowed_groups_column_name: "ColumnName", # required
944
944
  # },
945
+ # sql_configuration: {
946
+ # query_identifiers_enclosing_option: "DOUBLE_QUOTES", # accepts DOUBLE_QUOTES, NONE
947
+ # },
945
948
  # },
946
949
  # salesforce_configuration: {
947
950
  # server_url: "Url", # required
@@ -1387,6 +1390,9 @@ module Aws::Kendra
1387
1390
  # acl_configuration: {
1388
1391
  # allowed_groups_column_name: "ColumnName", # required
1389
1392
  # },
1393
+ # sql_configuration: {
1394
+ # query_identifiers_enclosing_option: "DOUBLE_QUOTES", # accepts DOUBLE_QUOTES, NONE
1395
+ # },
1390
1396
  # },
1391
1397
  # salesforce_configuration: {
1392
1398
  # server_url: "Url", # required
@@ -1824,6 +1830,9 @@ module Aws::Kendra
1824
1830
  # acl_configuration: {
1825
1831
  # allowed_groups_column_name: "ColumnName", # required
1826
1832
  # },
1833
+ # sql_configuration: {
1834
+ # query_identifiers_enclosing_option: "DOUBLE_QUOTES", # accepts DOUBLE_QUOTES, NONE
1835
+ # },
1827
1836
  # }
1828
1837
  #
1829
1838
  # @!attribute [rw] database_engine_type
@@ -1848,6 +1857,11 @@ module Aws::Kendra
1848
1857
  # user context filtering.
1849
1858
  # @return [Types::AclConfiguration]
1850
1859
  #
1860
+ # @!attribute [rw] sql_configuration
1861
+ # Provides information about how Amazon Kendra uses quote marks around
1862
+ # SQL identifiers when querying a database data source.
1863
+ # @return [Types::SqlConfiguration]
1864
+ #
1851
1865
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DatabaseConfiguration AWS API Documentation
1852
1866
  #
1853
1867
  class DatabaseConfiguration < Struct.new(
@@ -1855,7 +1869,8 @@ module Aws::Kendra
1855
1869
  :connection_configuration,
1856
1870
  :vpc_configuration,
1857
1871
  :column_configuration,
1858
- :acl_configuration)
1872
+ :acl_configuration,
1873
+ :sql_configuration)
1859
1874
  SENSITIVE = []
1860
1875
  include Aws::Structure
1861
1876
  end
@@ -2360,7 +2375,7 @@ module Aws::Kendra
2360
2375
  # @return [Integer]
2361
2376
  #
2362
2377
  # @!attribute [rw] date_value
2363
- # A date value expressed as seconds from the Unix epoch.
2378
+ # A date expressed as an ISO 8601 string.
2364
2379
  # @return [Time]
2365
2380
  #
2366
2381
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DocumentAttributeValue AWS API Documentation
@@ -2416,6 +2431,7 @@ module Aws::Kendra
2416
2431
  # facetable: false,
2417
2432
  # searchable: false,
2418
2433
  # displayable: false,
2434
+ # sortable: false,
2419
2435
  # },
2420
2436
  # }
2421
2437
  #
@@ -3180,6 +3196,10 @@ module Aws::Kendra
3180
3196
  # query_result_type_filter: "DOCUMENT", # accepts DOCUMENT, QUESTION_ANSWER, ANSWER
3181
3197
  # page_number: 1,
3182
3198
  # page_size: 1,
3199
+ # sorting_configuration: {
3200
+ # document_attribute_key: "DocumentAttributeKey", # required
3201
+ # sort_order: "DESC", # required, accepts DESC, ASC
3202
+ # },
3183
3203
  # }
3184
3204
  #
3185
3205
  # @!attribute [rw] index_id
@@ -3232,6 +3252,17 @@ module Aws::Kendra
3232
3252
  # returned.
3233
3253
  # @return [Integer]
3234
3254
  #
3255
+ # @!attribute [rw] sorting_configuration
3256
+ # Provides information that determines how the results of the query
3257
+ # are sorted. You can set the field that Amazon Kendra should sort the
3258
+ # results on, and specify whether the results should be sorted in
3259
+ # ascending or descending order. In the case of ties in sorting the
3260
+ # results, the results are sorted by relevance.
3261
+ #
3262
+ # If you don't provide sorting configuration, the results are sorted
3263
+ # by the relevance that Amazon Kendra determines for the result.
3264
+ # @return [Types::SortingConfiguration]
3265
+ #
3235
3266
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/QueryRequest AWS API Documentation
3236
3267
  #
3237
3268
  class QueryRequest < Struct.new(
@@ -3242,7 +3273,8 @@ module Aws::Kendra
3242
3273
  :requested_document_attributes,
3243
3274
  :query_result_type_filter,
3244
3275
  :page_number,
3245
- :page_size)
3276
+ :page_size,
3277
+ :sorting_configuration)
3246
3278
  SENSITIVE = []
3247
3279
  include Aws::Structure
3248
3280
  end
@@ -4056,6 +4088,7 @@ module Aws::Kendra
4056
4088
  # facetable: false,
4057
4089
  # searchable: false,
4058
4090
  # displayable: false,
4091
+ # sortable: false,
4059
4092
  # }
4060
4093
  #
4061
4094
  # @!attribute [rw] facetable
@@ -4077,12 +4110,20 @@ module Aws::Kendra
4077
4110
  # default is `true`.
4078
4111
  # @return [Boolean]
4079
4112
  #
4113
+ # @!attribute [rw] sortable
4114
+ # Determines whether the field can be used to sort the results of a
4115
+ # query. If you specify sorting on a field that does not have
4116
+ # `Sortable` set to `true`, Amazon Kendra returns an exception. The
4117
+ # default is `false`.
4118
+ # @return [Boolean]
4119
+ #
4080
4120
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/Search AWS API Documentation
4081
4121
  #
4082
4122
  class Search < Struct.new(
4083
4123
  :facetable,
4084
4124
  :searchable,
4085
- :displayable)
4125
+ :displayable,
4126
+ :sortable)
4086
4127
  SENSITIVE = []
4087
4128
  include Aws::Structure
4088
4129
  end
@@ -4407,7 +4448,7 @@ module Aws::Kendra
4407
4448
  # @return [Array<String>]
4408
4449
  #
4409
4450
  # @!attribute [rw] exclusion_patterns
4410
- # A list of regulary expression patterns. Documents that match the
4451
+ # A list of regular expression patterns. Documents that match the
4411
4452
  # patterns are excluded from the index. Documents that don't match
4412
4453
  # the patterns are included in the index. If a document matches both
4413
4454
  # an exclusion pattern and an inclusion pattern, the document is not
@@ -4454,6 +4495,86 @@ module Aws::Kendra
4454
4495
  include Aws::Structure
4455
4496
  end
4456
4497
 
4498
+ # Specifies the document attribute to use to sort the response to a
4499
+ # Amazon Kendra query. You can specify a single attribute for sorting.
4500
+ # The attribute must have the `Sortable` flag set to `true`, otherwise
4501
+ # Amazon Kendra returns an exception.
4502
+ #
4503
+ # @note When making an API call, you may pass SortingConfiguration
4504
+ # data as a hash:
4505
+ #
4506
+ # {
4507
+ # document_attribute_key: "DocumentAttributeKey", # required
4508
+ # sort_order: "DESC", # required, accepts DESC, ASC
4509
+ # }
4510
+ #
4511
+ # @!attribute [rw] document_attribute_key
4512
+ # The name of the document attribute used to sort the response. You
4513
+ # can use any field that has the `Sortable` flag set to true.
4514
+ #
4515
+ # You can also sort by any of the following built-in attributes:
4516
+ #
4517
+ # * \_category
4518
+ #
4519
+ # * \_created\_at
4520
+ #
4521
+ # * \_last\_updated\_at
4522
+ #
4523
+ # * \_version
4524
+ #
4525
+ # * \_view\_count
4526
+ # @return [String]
4527
+ #
4528
+ # @!attribute [rw] sort_order
4529
+ # The order that the results should be returned in. In case of ties,
4530
+ # the relevance assigned to the result by Amazon Kendra is used as the
4531
+ # tie-breaker.
4532
+ # @return [String]
4533
+ #
4534
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/SortingConfiguration AWS API Documentation
4535
+ #
4536
+ class SortingConfiguration < Struct.new(
4537
+ :document_attribute_key,
4538
+ :sort_order)
4539
+ SENSITIVE = []
4540
+ include Aws::Structure
4541
+ end
4542
+
4543
+ # Provides information that configures Amazon Kendra to use a SQL
4544
+ # database.
4545
+ #
4546
+ # @note When making an API call, you may pass SqlConfiguration
4547
+ # data as a hash:
4548
+ #
4549
+ # {
4550
+ # query_identifiers_enclosing_option: "DOUBLE_QUOTES", # accepts DOUBLE_QUOTES, NONE
4551
+ # }
4552
+ #
4553
+ # @!attribute [rw] query_identifiers_enclosing_option
4554
+ # Determines whether Amazon Kendra encloses SQL identifiers in double
4555
+ # quotes (") when making a database query.
4556
+ #
4557
+ # By default, Amazon Kendra passes SQL identifiers the way that they
4558
+ # are entered into the data source configuration. It does not change
4559
+ # the case of identifiers or enclose them in quotes.
4560
+ #
4561
+ # PostgreSQL internally converts uppercase characters to lower case
4562
+ # characters in identifiers unless they are quoted. Choosing this
4563
+ # option encloses identifiers in quotes so that PostgreSQL does not
4564
+ # convert the character's case.
4565
+ #
4566
+ # For MySQL databases, you must enable the `ansi_quotes` option when
4567
+ # you choose this option.
4568
+ # @return [String]
4569
+ #
4570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/SqlConfiguration AWS API Documentation
4571
+ #
4572
+ class SqlConfiguration < Struct.new(
4573
+ :query_identifiers_enclosing_option)
4574
+ SENSITIVE = []
4575
+ include Aws::Structure
4576
+ end
4577
+
4457
4578
  # @note When making an API call, you may pass StartDataSourceSyncJobRequest
4458
4579
  # data as a hash:
4459
4580
  #
@@ -4811,6 +4932,9 @@ module Aws::Kendra
4811
4932
  # acl_configuration: {
4812
4933
  # allowed_groups_column_name: "ColumnName", # required
4813
4934
  # },
4935
+ # sql_configuration: {
4936
+ # query_identifiers_enclosing_option: "DOUBLE_QUOTES", # accepts DOUBLE_QUOTES, NONE
4937
+ # },
4814
4938
  # },
4815
4939
  # salesforce_configuration: {
4816
4940
  # server_url: "Url", # required
@@ -5012,6 +5136,7 @@ module Aws::Kendra
5012
5136
  # facetable: false,
5013
5137
  # searchable: false,
5014
5138
  # displayable: false,
5139
+ # sortable: false,
5015
5140
  # },
5016
5141
  # },
5017
5142
  # ],
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.8.0
4
+ version: 1.9.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: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2020-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core