aws-sdk-kendra 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-kendra.rb +1 -1
- data/lib/aws-sdk-kendra/client.rb +25 -9
- data/lib/aws-sdk-kendra/client_api.rb +4 -0
- data/lib/aws-sdk-kendra/types.rb +40 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b9c9e18500c2cbea326d60677c3102b7227620fc96f0057d724b670d2e9b42e
|
4
|
+
data.tar.gz: '08242ac7903468a85e7cf4a5a22ba00a4c8db4066aff18fc98b643161c111ee9'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be25a71903a5a73560a6298f08c232a3e0ee5b4e31b18e40e4ae1c63df47d28c0e3b2b1dd114c6902456351036acaf3a66afb2fe6b1e1ddb252eb0c5f210e174
|
7
|
+
data.tar.gz: f775c2be8b9b66783bf63ffc624335c02137cd73e228b2c396678fe5fd1d437d043267806712ca6f9b336d3d270b17b4e4a14d59dfb5091bdce44eaec0bae6a2
|
data/lib/aws-sdk-kendra.rb
CHANGED
@@ -486,12 +486,10 @@ module Aws::Kendra
|
|
486
486
|
|
487
487
|
# Creates a data source that you use to with an Amazon Kendra index.
|
488
488
|
#
|
489
|
-
# You specify a name, connector type and description for
|
490
|
-
# source. You
|
491
|
-
#
|
492
|
-
#
|
493
|
-
# You also specify configuration information such as document metadata
|
494
|
-
# (author, source URI, and so on) and user context information.
|
489
|
+
# You specify a name, data source connector type and description for
|
490
|
+
# your data source. You also specify configuration information such as
|
491
|
+
# document metadata (author, source URI, and so on) and user context
|
492
|
+
# information.
|
495
493
|
#
|
496
494
|
# `CreateDataSource` is a synchronous operation. The operation returns
|
497
495
|
# 200 if the data source was successfully created. Otherwise, an
|
@@ -509,8 +507,8 @@ module Aws::Kendra
|
|
509
507
|
# The type of repository that contains the data source.
|
510
508
|
#
|
511
509
|
# @option params [required, Types::DataSourceConfiguration] :configuration
|
512
|
-
# The connector configuration information that is required
|
513
|
-
# repository.
|
510
|
+
# The data source connector configuration information that is required
|
511
|
+
# to access the repository.
|
514
512
|
#
|
515
513
|
# @option params [String] :description
|
516
514
|
# A description for the data source.
|
@@ -789,6 +787,20 @@ module Aws::Kendra
|
|
789
787
|
# to identify and organize your resources and to control access to
|
790
788
|
# resources.
|
791
789
|
#
|
790
|
+
# @option params [String] :file_format
|
791
|
+
# The format of the input file. You can choose between a basic CSV
|
792
|
+
# format, a CSV format that includes customs attributes in a header, and
|
793
|
+
# a JSON format that includes custom attributes.
|
794
|
+
#
|
795
|
+
# The format must match the format of the file stored in the S3 bucket
|
796
|
+
# identified in the `S3Path` parameter.
|
797
|
+
#
|
798
|
+
# For more information, see [Adding questions and answers][1].
|
799
|
+
#
|
800
|
+
#
|
801
|
+
#
|
802
|
+
# [1]: https://docs.aws.amazon.com/kendra/latest/dg/in-creating-faq.html
|
803
|
+
#
|
792
804
|
# @return [Types::CreateFaqResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
793
805
|
#
|
794
806
|
# * {Types::CreateFaqResponse#id #id} => String
|
@@ -810,6 +822,7 @@ module Aws::Kendra
|
|
810
822
|
# value: "TagValue", # required
|
811
823
|
# },
|
812
824
|
# ],
|
825
|
+
# file_format: "CSV", # accepts CSV, CSV_WITH_HEADER, JSON
|
813
826
|
# })
|
814
827
|
#
|
815
828
|
# @example Response structure
|
@@ -1197,6 +1210,7 @@ module Aws::Kendra
|
|
1197
1210
|
# * {Types::DescribeFaqResponse#status #status} => String
|
1198
1211
|
# * {Types::DescribeFaqResponse#role_arn #role_arn} => String
|
1199
1212
|
# * {Types::DescribeFaqResponse#error_message #error_message} => String
|
1213
|
+
# * {Types::DescribeFaqResponse#file_format #file_format} => String
|
1200
1214
|
#
|
1201
1215
|
# @example Request syntax with placeholder values
|
1202
1216
|
#
|
@@ -1218,6 +1232,7 @@ module Aws::Kendra
|
|
1218
1232
|
# resp.status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
1219
1233
|
# resp.role_arn #=> String
|
1220
1234
|
# resp.error_message #=> String
|
1235
|
+
# resp.file_format #=> String, one of "CSV", "CSV_WITH_HEADER", "JSON"
|
1221
1236
|
#
|
1222
1237
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeFaq AWS API Documentation
|
1223
1238
|
#
|
@@ -1452,6 +1467,7 @@ module Aws::Kendra
|
|
1452
1467
|
# resp.faq_summary_items[0].status #=> String, one of "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"
|
1453
1468
|
# resp.faq_summary_items[0].created_at #=> Time
|
1454
1469
|
# resp.faq_summary_items[0].updated_at #=> Time
|
1470
|
+
# resp.faq_summary_items[0].file_format #=> String, one of "CSV", "CSV_WITH_HEADER", "JSON"
|
1455
1471
|
#
|
1456
1472
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/ListFaqs AWS API Documentation
|
1457
1473
|
#
|
@@ -2268,7 +2284,7 @@ module Aws::Kendra
|
|
2268
2284
|
params: params,
|
2269
2285
|
config: config)
|
2270
2286
|
context[:gem_name] = 'aws-sdk-kendra'
|
2271
|
-
context[:gem_version] = '1.
|
2287
|
+
context[:gem_version] = '1.13.0'
|
2272
2288
|
Seahorse::Client::Request.new(handlers, context)
|
2273
2289
|
end
|
2274
2290
|
|
@@ -110,6 +110,7 @@ module Aws::Kendra
|
|
110
110
|
FacetList = Shapes::ListShape.new(name: 'FacetList')
|
111
111
|
FacetResult = Shapes::StructureShape.new(name: 'FacetResult')
|
112
112
|
FacetResultList = Shapes::ListShape.new(name: 'FacetResultList')
|
113
|
+
FaqFileFormat = Shapes::StringShape.new(name: 'FaqFileFormat')
|
113
114
|
FaqId = Shapes::StringShape.new(name: 'FaqId')
|
114
115
|
FaqName = Shapes::StringShape.new(name: 'FaqName')
|
115
116
|
FaqStatistics = Shapes::StructureShape.new(name: 'FaqStatistics')
|
@@ -361,6 +362,7 @@ module Aws::Kendra
|
|
361
362
|
CreateFaqRequest.add_member(:s3_path, Shapes::ShapeRef.new(shape: S3Path, required: true, location_name: "S3Path"))
|
362
363
|
CreateFaqRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, required: true, location_name: "RoleArn"))
|
363
364
|
CreateFaqRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
365
|
+
CreateFaqRequest.add_member(:file_format, Shapes::ShapeRef.new(shape: FaqFileFormat, location_name: "FileFormat"))
|
364
366
|
CreateFaqRequest.struct_class = Types::CreateFaqRequest
|
365
367
|
|
366
368
|
CreateFaqResponse.add_member(:id, Shapes::ShapeRef.new(shape: FaqId, location_name: "Id"))
|
@@ -483,6 +485,7 @@ module Aws::Kendra
|
|
483
485
|
DescribeFaqResponse.add_member(:status, Shapes::ShapeRef.new(shape: FaqStatus, location_name: "Status"))
|
484
486
|
DescribeFaqResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
|
485
487
|
DescribeFaqResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
|
488
|
+
DescribeFaqResponse.add_member(:file_format, Shapes::ShapeRef.new(shape: FaqFileFormat, location_name: "FileFormat"))
|
486
489
|
DescribeFaqResponse.struct_class = Types::DescribeFaqResponse
|
487
490
|
|
488
491
|
DescribeIndexRequest.add_member(:id, Shapes::ShapeRef.new(shape: IndexId, required: true, location_name: "Id"))
|
@@ -569,6 +572,7 @@ module Aws::Kendra
|
|
569
572
|
FaqSummary.add_member(:status, Shapes::ShapeRef.new(shape: FaqStatus, location_name: "Status"))
|
570
573
|
FaqSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
571
574
|
FaqSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
|
575
|
+
FaqSummary.add_member(:file_format, Shapes::ShapeRef.new(shape: FaqFileFormat, location_name: "FileFormat"))
|
572
576
|
FaqSummary.struct_class = Types::FaqSummary
|
573
577
|
|
574
578
|
FaqSummaryItems.member = Shapes::ShapeRef.new(shape: FaqSummary)
|
data/lib/aws-sdk-kendra/types.rb
CHANGED
@@ -1097,8 +1097,8 @@ module Aws::Kendra
|
|
1097
1097
|
# @return [String]
|
1098
1098
|
#
|
1099
1099
|
# @!attribute [rw] configuration
|
1100
|
-
# The connector configuration information that is required
|
1101
|
-
# the repository.
|
1100
|
+
# The data source connector configuration information that is required
|
1101
|
+
# to access the repository.
|
1102
1102
|
# @return [Types::DataSourceConfiguration]
|
1103
1103
|
#
|
1104
1104
|
# @!attribute [rw] description
|
@@ -1173,6 +1173,7 @@ module Aws::Kendra
|
|
1173
1173
|
# value: "TagValue", # required
|
1174
1174
|
# },
|
1175
1175
|
# ],
|
1176
|
+
# file_format: "CSV", # accepts CSV, CSV_WITH_HEADER, JSON
|
1176
1177
|
# }
|
1177
1178
|
#
|
1178
1179
|
# @!attribute [rw] index_id
|
@@ -1207,6 +1208,21 @@ module Aws::Kendra
|
|
1207
1208
|
# to resources.
|
1208
1209
|
# @return [Array<Types::Tag>]
|
1209
1210
|
#
|
1211
|
+
# @!attribute [rw] file_format
|
1212
|
+
# The format of the input file. You can choose between a basic CSV
|
1213
|
+
# format, a CSV format that includes customs attributes in a header,
|
1214
|
+
# and a JSON format that includes custom attributes.
|
1215
|
+
#
|
1216
|
+
# The format must match the format of the file stored in the S3 bucket
|
1217
|
+
# identified in the `S3Path` parameter.
|
1218
|
+
#
|
1219
|
+
# For more information, see [Adding questions and answers][1].
|
1220
|
+
#
|
1221
|
+
#
|
1222
|
+
#
|
1223
|
+
# [1]: https://docs.aws.amazon.com/kendra/latest/dg/in-creating-faq.html
|
1224
|
+
# @return [String]
|
1225
|
+
#
|
1210
1226
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/CreateFaqRequest AWS API Documentation
|
1211
1227
|
#
|
1212
1228
|
class CreateFaqRequest < Struct.new(
|
@@ -1215,7 +1231,8 @@ module Aws::Kendra
|
|
1215
1231
|
:description,
|
1216
1232
|
:s3_path,
|
1217
1233
|
:role_arn,
|
1218
|
-
:tags
|
1234
|
+
:tags,
|
1235
|
+
:file_format)
|
1219
1236
|
SENSITIVE = []
|
1220
1237
|
include Aws::Structure
|
1221
1238
|
end
|
@@ -1524,17 +1541,18 @@ module Aws::Kendra
|
|
1524
1541
|
# }
|
1525
1542
|
#
|
1526
1543
|
# @!attribute [rw] s3_configuration
|
1527
|
-
# Provides information to create a connector for a
|
1528
|
-
# in an Amazon S3 bucket.
|
1544
|
+
# Provides information to create a data source connector for a
|
1545
|
+
# document repository in an Amazon S3 bucket.
|
1529
1546
|
# @return [Types::S3DataSourceConfiguration]
|
1530
1547
|
#
|
1531
1548
|
# @!attribute [rw] share_point_configuration
|
1532
|
-
# Provides information necessary to create a connector for
|
1533
|
-
# SharePoint site.
|
1549
|
+
# Provides information necessary to create a data source connector for
|
1550
|
+
# a Microsoft SharePoint site.
|
1534
1551
|
# @return [Types::SharePointConfiguration]
|
1535
1552
|
#
|
1536
1553
|
# @!attribute [rw] database_configuration
|
1537
|
-
# Provides information necessary to create a connector for
|
1554
|
+
# Provides information necessary to create a data source connector for
|
1555
|
+
# a database.
|
1538
1556
|
# @return [Types::DatabaseConfiguration]
|
1539
1557
|
#
|
1540
1558
|
# @!attribute [rw] salesforce_configuration
|
@@ -1647,7 +1665,7 @@ module Aws::Kendra
|
|
1647
1665
|
# @!attribute [rw] metrics
|
1648
1666
|
# Maps a batch delete document request to a specific data source sync
|
1649
1667
|
# job. This is optional and should only be supplied when documents are
|
1650
|
-
# deleted by a connector.
|
1668
|
+
# deleted by a data source connector.
|
1651
1669
|
# @return [Types::DataSourceSyncJobMetrics]
|
1652
1670
|
#
|
1653
1671
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DataSourceSyncJob AWS API Documentation
|
@@ -1694,7 +1712,7 @@ module Aws::Kendra
|
|
1694
1712
|
|
1695
1713
|
# Maps a batch delete document request to a specific data source sync
|
1696
1714
|
# job. This is optional and should only be supplied when documents are
|
1697
|
-
# deleted by a connector.
|
1715
|
+
# deleted by a data source connector.
|
1698
1716
|
#
|
1699
1717
|
# @!attribute [rw] documents_added
|
1700
1718
|
# The number of documents added from the data source up to now in the
|
@@ -2115,6 +2133,10 @@ module Aws::Kendra
|
|
2115
2133
|
# the reason why the FAQ failed.
|
2116
2134
|
# @return [String]
|
2117
2135
|
#
|
2136
|
+
# @!attribute [rw] file_format
|
2137
|
+
# The file format used by the input files for the FAQ.
|
2138
|
+
# @return [String]
|
2139
|
+
#
|
2118
2140
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DescribeFaqResponse AWS API Documentation
|
2119
2141
|
#
|
2120
2142
|
class DescribeFaqResponse < Struct.new(
|
@@ -2127,7 +2149,8 @@ module Aws::Kendra
|
|
2127
2149
|
:s3_path,
|
2128
2150
|
:status,
|
2129
2151
|
:role_arn,
|
2130
|
-
:error_message
|
2152
|
+
:error_message,
|
2153
|
+
:file_format)
|
2131
2154
|
SENSITIVE = []
|
2132
2155
|
include Aws::Structure
|
2133
2156
|
end
|
@@ -2582,6 +2605,10 @@ module Aws::Kendra
|
|
2582
2605
|
# The UNIX datetime that the FAQ was last updated.
|
2583
2606
|
# @return [Time]
|
2584
2607
|
#
|
2608
|
+
# @!attribute [rw] file_format
|
2609
|
+
# The file type used to create the FAQ.
|
2610
|
+
# @return [String]
|
2611
|
+
#
|
2585
2612
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/FaqSummary AWS API Documentation
|
2586
2613
|
#
|
2587
2614
|
class FaqSummary < Struct.new(
|
@@ -2589,7 +2616,8 @@ module Aws::Kendra
|
|
2589
2616
|
:name,
|
2590
2617
|
:status,
|
2591
2618
|
:created_at,
|
2592
|
-
:updated_at
|
2619
|
+
:updated_at,
|
2620
|
+
:file_format)
|
2593
2621
|
SENSITIVE = []
|
2594
2622
|
include Aws::Structure
|
2595
2623
|
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.
|
4
|
+
version: 1.13.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-09-
|
11
|
+
date: 2020-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|