aws-sdk-kendra 1.25.0 → 1.26.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: c24dd5b0c9a0dfa5191e12c22817095559fe1a55fe11686928bf467a6381fbb6
4
- data.tar.gz: 508006e9c8c7e694b2df5ce300bcd1aae37007991db321cea131a6c3fffcb2de
3
+ metadata.gz: db6db0d7989bf395d9d66113616dd832292db250ceae884e79f1ff68fc72c2da
4
+ data.tar.gz: 5d5c1a752c7eb99a07c0c60f67b913244b2731f0301eb4918171af9bdbe95ba6
5
5
  SHA512:
6
- metadata.gz: 2e608a2fc83b64fe26924fe29e0a9d8b96ee651ff9d8d5ed98e9e0151e980f669b819e7ebb3b09aa142f679ca541014c58342e7ede4fe90a8c37f4107c2304a6
7
- data.tar.gz: 532b41df9199cd337fec526cff3bde4a8b6aca52bd9962ed4218d3532415779b8f356ae6b487240eaaae83eddbe16c75641cffb9648d7a38a2af109a3f19992e
6
+ metadata.gz: 3c11d993010e54b7ba55c7503fa00b331b0b34da815eac768955ec402bc436885327483dceac3b85a46da932002ad9be3049b3db2bac82eae20ed84900e5be53
7
+ data.tar.gz: 13d14d88704eb78936b534371ef132863b4db06403b68648b7e3a03a53da263a1a2e5641e6cc5d5678241270af4b94960de35301e5cfb0c1fc1f3062400f121a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.26.0 (2021-06-09)
5
+ ------------------
6
+
7
+ * Feature - AWS Kendra now supports checking document status.
8
+
4
9
  1.25.0 (2021-05-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.25.0
1
+ 1.26.0
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-kendra/customizations'
48
48
  # @!group service
49
49
  module Aws::Kendra
50
50
 
51
- GEM_VERSION = '1.25.0'
51
+ GEM_VERSION = '1.26.0'
52
52
 
53
53
  end
@@ -384,6 +384,85 @@ module Aws::Kendra
384
384
  req.send_request(options)
385
385
  end
386
386
 
387
+ # Returns the indexing status for one or more documents submitted with
388
+ # the [ BatchPutDocument][1] operation.
389
+ #
390
+ # When you use the `BatchPutDocument` operation, documents are indexed
391
+ # asynchronously. You can use the `BatchGetDocumentStatus` operation to
392
+ # get the current status of a list of documents so that you can
393
+ # determine if they have been successfully indexed.
394
+ #
395
+ # You can also use the `BatchGetDocumentStatus` operation to check the
396
+ # status of the [ BatchDeleteDocument][2] operation. When a document is
397
+ # deleted from the index, Amazon Kendra returns `NOT_FOUND` as the
398
+ # status.
399
+ #
400
+ #
401
+ #
402
+ # [1]: https://docs.aws.amazon.com/kendra/latest/dg/API_BatchPutDocument.html
403
+ # [2]: https://docs.aws.amazon.com/kendra/latest/dg/API_BatchDeleteDocument.html
404
+ #
405
+ # @option params [required, String] :index_id
406
+ # The identifier of the index to add documents to. The index ID is
407
+ # returned by the [ CreateIndex ][1] operation.
408
+ #
409
+ #
410
+ #
411
+ # [1]: https://docs.aws.amazon.com/kendra/latest/dg/API_CreateIndex.html
412
+ #
413
+ # @option params [required, Array<Types::DocumentInfo>] :document_info_list
414
+ # A list of `DocumentInfo` objects that identify the documents for which
415
+ # to get the status. You identify the documents by their document ID and
416
+ # optional attributes.
417
+ #
418
+ # @return [Types::BatchGetDocumentStatusResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
419
+ #
420
+ # * {Types::BatchGetDocumentStatusResponse#errors #errors} => Array&lt;Types::BatchGetDocumentStatusResponseError&gt;
421
+ # * {Types::BatchGetDocumentStatusResponse#document_status_list #document_status_list} => Array&lt;Types::Status&gt;
422
+ #
423
+ # @example Request syntax with placeholder values
424
+ #
425
+ # resp = client.batch_get_document_status({
426
+ # index_id: "IndexId", # required
427
+ # document_info_list: [ # required
428
+ # {
429
+ # document_id: "DocumentId", # required
430
+ # attributes: [
431
+ # {
432
+ # key: "DocumentAttributeKey", # required
433
+ # value: { # required
434
+ # string_value: "DocumentAttributeStringValue",
435
+ # string_list_value: ["String"],
436
+ # long_value: 1,
437
+ # date_value: Time.now,
438
+ # },
439
+ # },
440
+ # ],
441
+ # },
442
+ # ],
443
+ # })
444
+ #
445
+ # @example Response structure
446
+ #
447
+ # resp.errors #=> Array
448
+ # resp.errors[0].document_id #=> String
449
+ # resp.errors[0].error_code #=> String, one of "InternalError", "InvalidRequest"
450
+ # resp.errors[0].error_message #=> String
451
+ # resp.document_status_list #=> Array
452
+ # resp.document_status_list[0].document_id #=> String
453
+ # resp.document_status_list[0].document_status #=> String, one of "NOT_FOUND", "PROCESSING", "INDEXED", "UPDATED", "FAILED", "UPDATE_FAILED"
454
+ # resp.document_status_list[0].failure_code #=> String
455
+ # resp.document_status_list[0].failure_reason #=> String
456
+ #
457
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/BatchGetDocumentStatus AWS API Documentation
458
+ #
459
+ # @overload batch_get_document_status(params = {})
460
+ # @param [Hash] params ({})
461
+ def batch_get_document_status(params = {}, options = {})
462
+ req = build_request(:batch_get_document_status, params)
463
+ req.send_request(options)
464
+ end
465
+
387
466
  # Adds one or more documents to an index.
388
467
  #
389
468
  # The `BatchPutDocument` operation enables you to ingest inline
@@ -3430,7 +3509,7 @@ module Aws::Kendra
3430
3509
  params: params,
3431
3510
  config: config)
3432
3511
  context[:gem_name] = 'aws-sdk-kendra'
3433
- context[:gem_version] = '1.25.0'
3512
+ context[:gem_version] = '1.26.0'
3434
3513
  Seahorse::Client::Request.new(handlers, context)
3435
3514
  end
3436
3515
 
@@ -27,6 +27,10 @@ module Aws::Kendra
27
27
  BatchDeleteDocumentResponse = Shapes::StructureShape.new(name: 'BatchDeleteDocumentResponse')
28
28
  BatchDeleteDocumentResponseFailedDocument = Shapes::StructureShape.new(name: 'BatchDeleteDocumentResponseFailedDocument')
29
29
  BatchDeleteDocumentResponseFailedDocuments = Shapes::ListShape.new(name: 'BatchDeleteDocumentResponseFailedDocuments')
30
+ BatchGetDocumentStatusRequest = Shapes::StructureShape.new(name: 'BatchGetDocumentStatusRequest')
31
+ BatchGetDocumentStatusResponse = Shapes::StructureShape.new(name: 'BatchGetDocumentStatusResponse')
32
+ BatchGetDocumentStatusResponseError = Shapes::StructureShape.new(name: 'BatchGetDocumentStatusResponseError')
33
+ BatchGetDocumentStatusResponseErrors = Shapes::ListShape.new(name: 'BatchGetDocumentStatusResponseErrors')
30
34
  BatchPutDocumentRequest = Shapes::StructureShape.new(name: 'BatchPutDocumentRequest')
31
35
  BatchPutDocumentResponse = Shapes::StructureShape.new(name: 'BatchPutDocumentResponse')
32
36
  BatchPutDocumentResponseFailedDocument = Shapes::StructureShape.new(name: 'BatchPutDocumentResponseFailedDocument')
@@ -131,6 +135,8 @@ module Aws::Kendra
131
135
  DocumentAttributeValueType = Shapes::StringShape.new(name: 'DocumentAttributeValueType')
132
136
  DocumentId = Shapes::StringShape.new(name: 'DocumentId')
133
137
  DocumentIdList = Shapes::ListShape.new(name: 'DocumentIdList')
138
+ DocumentInfo = Shapes::StructureShape.new(name: 'DocumentInfo')
139
+ DocumentInfoList = Shapes::ListShape.new(name: 'DocumentInfoList')
134
140
  DocumentList = Shapes::ListShape.new(name: 'DocumentList')
135
141
  DocumentMetadataBoolean = Shapes::BooleanShape.new(name: 'DocumentMetadataBoolean')
136
142
  DocumentMetadataConfiguration = Shapes::StructureShape.new(name: 'DocumentMetadataConfiguration')
@@ -138,6 +144,8 @@ module Aws::Kendra
138
144
  DocumentMetadataConfigurationName = Shapes::StringShape.new(name: 'DocumentMetadataConfigurationName')
139
145
  DocumentRelevanceConfiguration = Shapes::StructureShape.new(name: 'DocumentRelevanceConfiguration')
140
146
  DocumentRelevanceOverrideConfigurationList = Shapes::ListShape.new(name: 'DocumentRelevanceOverrideConfigurationList')
147
+ DocumentStatus = Shapes::StringShape.new(name: 'DocumentStatus')
148
+ DocumentStatusList = Shapes::ListShape.new(name: 'DocumentStatusList')
141
149
  DocumentsMetadataConfiguration = Shapes::StructureShape.new(name: 'DocumentsMetadataConfiguration')
142
150
  Duration = Shapes::StringShape.new(name: 'Duration')
143
151
  ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
@@ -290,6 +298,7 @@ module Aws::Kendra
290
298
  SqlConfiguration = Shapes::StructureShape.new(name: 'SqlConfiguration')
291
299
  StartDataSourceSyncJobRequest = Shapes::StructureShape.new(name: 'StartDataSourceSyncJobRequest')
292
300
  StartDataSourceSyncJobResponse = Shapes::StructureShape.new(name: 'StartDataSourceSyncJobResponse')
301
+ Status = Shapes::StructureShape.new(name: 'Status')
293
302
  StopDataSourceSyncJobRequest = Shapes::StructureShape.new(name: 'StopDataSourceSyncJobRequest')
294
303
  StorageCapacityUnit = Shapes::IntegerShape.new(name: 'StorageCapacityUnit')
295
304
  String = Shapes::StringShape.new(name: 'String')
@@ -392,6 +401,21 @@ module Aws::Kendra
392
401
 
393
402
  BatchDeleteDocumentResponseFailedDocuments.member = Shapes::ShapeRef.new(shape: BatchDeleteDocumentResponseFailedDocument)
394
403
 
404
+ BatchGetDocumentStatusRequest.add_member(:index_id, Shapes::ShapeRef.new(shape: IndexId, required: true, location_name: "IndexId"))
405
+ BatchGetDocumentStatusRequest.add_member(:document_info_list, Shapes::ShapeRef.new(shape: DocumentInfoList, required: true, location_name: "DocumentInfoList"))
406
+ BatchGetDocumentStatusRequest.struct_class = Types::BatchGetDocumentStatusRequest
407
+
408
+ BatchGetDocumentStatusResponse.add_member(:errors, Shapes::ShapeRef.new(shape: BatchGetDocumentStatusResponseErrors, location_name: "Errors"))
409
+ BatchGetDocumentStatusResponse.add_member(:document_status_list, Shapes::ShapeRef.new(shape: DocumentStatusList, location_name: "DocumentStatusList"))
410
+ BatchGetDocumentStatusResponse.struct_class = Types::BatchGetDocumentStatusResponse
411
+
412
+ BatchGetDocumentStatusResponseError.add_member(:document_id, Shapes::ShapeRef.new(shape: DocumentId, location_name: "DocumentId"))
413
+ BatchGetDocumentStatusResponseError.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
414
+ BatchGetDocumentStatusResponseError.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
415
+ BatchGetDocumentStatusResponseError.struct_class = Types::BatchGetDocumentStatusResponseError
416
+
417
+ BatchGetDocumentStatusResponseErrors.member = Shapes::ShapeRef.new(shape: BatchGetDocumentStatusResponseError)
418
+
395
419
  BatchPutDocumentRequest.add_member(:index_id, Shapes::ShapeRef.new(shape: IndexId, required: true, location_name: "IndexId"))
396
420
  BatchPutDocumentRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: RoleArn, location_name: "RoleArn"))
397
421
  BatchPutDocumentRequest.add_member(:documents, Shapes::ShapeRef.new(shape: DocumentList, required: true, location_name: "Documents"))
@@ -785,6 +809,12 @@ module Aws::Kendra
785
809
 
786
810
  DocumentIdList.member = Shapes::ShapeRef.new(shape: DocumentId)
787
811
 
812
+ DocumentInfo.add_member(:document_id, Shapes::ShapeRef.new(shape: DocumentId, required: true, location_name: "DocumentId"))
813
+ DocumentInfo.add_member(:attributes, Shapes::ShapeRef.new(shape: DocumentAttributeList, location_name: "Attributes"))
814
+ DocumentInfo.struct_class = Types::DocumentInfo
815
+
816
+ DocumentInfoList.member = Shapes::ShapeRef.new(shape: DocumentInfo)
817
+
788
818
  DocumentList.member = Shapes::ShapeRef.new(shape: Document)
789
819
 
790
820
  DocumentMetadataConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: DocumentMetadataConfigurationName, required: true, location_name: "Name"))
@@ -801,6 +831,8 @@ module Aws::Kendra
801
831
 
802
832
  DocumentRelevanceOverrideConfigurationList.member = Shapes::ShapeRef.new(shape: DocumentRelevanceConfiguration)
803
833
 
834
+ DocumentStatusList.member = Shapes::ShapeRef.new(shape: Status)
835
+
804
836
  DocumentsMetadataConfiguration.add_member(:s3_prefix, Shapes::ShapeRef.new(shape: S3ObjectKey, location_name: "S3Prefix"))
805
837
  DocumentsMetadataConfiguration.struct_class = Types::DocumentsMetadataConfiguration
806
838
 
@@ -1178,6 +1210,12 @@ module Aws::Kendra
1178
1210
  StartDataSourceSyncJobResponse.add_member(:execution_id, Shapes::ShapeRef.new(shape: String, location_name: "ExecutionId"))
1179
1211
  StartDataSourceSyncJobResponse.struct_class = Types::StartDataSourceSyncJobResponse
1180
1212
 
1213
+ Status.add_member(:document_id, Shapes::ShapeRef.new(shape: DocumentId, location_name: "DocumentId"))
1214
+ Status.add_member(:document_status, Shapes::ShapeRef.new(shape: DocumentStatus, location_name: "DocumentStatus"))
1215
+ Status.add_member(:failure_code, Shapes::ShapeRef.new(shape: String, location_name: "FailureCode"))
1216
+ Status.add_member(:failure_reason, Shapes::ShapeRef.new(shape: String, location_name: "FailureReason"))
1217
+ Status.struct_class = Types::Status
1218
+
1181
1219
  StopDataSourceSyncJobRequest.add_member(:id, Shapes::ShapeRef.new(shape: DataSourceId, required: true, location_name: "Id"))
1182
1220
  StopDataSourceSyncJobRequest.add_member(:index_id, Shapes::ShapeRef.new(shape: IndexId, required: true, location_name: "IndexId"))
1183
1221
  StopDataSourceSyncJobRequest.struct_class = Types::StopDataSourceSyncJobRequest
@@ -1345,6 +1383,20 @@ module Aws::Kendra
1345
1383
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1346
1384
  end)
1347
1385
 
1386
+ api.add_operation(:batch_get_document_status, Seahorse::Model::Operation.new.tap do |o|
1387
+ o.name = "BatchGetDocumentStatus"
1388
+ o.http_method = "POST"
1389
+ o.http_request_uri = "/"
1390
+ o.input = Shapes::ShapeRef.new(shape: BatchGetDocumentStatusRequest)
1391
+ o.output = Shapes::ShapeRef.new(shape: BatchGetDocumentStatusResponse)
1392
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1393
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1394
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1395
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1396
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1397
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1398
+ end)
1399
+
1348
1400
  api.add_operation(:batch_put_document, Seahorse::Model::Operation.new.tap do |o|
1349
1401
  o.name = "BatchPutDocument"
1350
1402
  o.http_method = "POST"
@@ -568,6 +568,103 @@ module Aws::Kendra
568
568
  include Aws::Structure
569
569
  end
570
570
 
571
+ # @note When making an API call, you may pass BatchGetDocumentStatusRequest
572
+ # data as a hash:
573
+ #
574
+ # {
575
+ # index_id: "IndexId", # required
576
+ # document_info_list: [ # required
577
+ # {
578
+ # document_id: "DocumentId", # required
579
+ # attributes: [
580
+ # {
581
+ # key: "DocumentAttributeKey", # required
582
+ # value: { # required
583
+ # string_value: "DocumentAttributeStringValue",
584
+ # string_list_value: ["String"],
585
+ # long_value: 1,
586
+ # date_value: Time.now,
587
+ # },
588
+ # },
589
+ # ],
590
+ # },
591
+ # ],
592
+ # }
593
+ #
594
+ # @!attribute [rw] index_id
595
+ # The identifier of the index to add documents to. The index ID is
596
+ # returned by the [ CreateIndex ][1] operation.
597
+ #
598
+ #
599
+ #
600
+ # [1]: https://docs.aws.amazon.com/kendra/latest/dg/API_CreateIndex.html
601
+ # @return [String]
602
+ #
603
+ # @!attribute [rw] document_info_list
604
+ # A list of `DocumentInfo` objects that identify the documents for
605
+ # which to get the status. You identify the documents by their
606
+ # document ID and optional attributes.
607
+ # @return [Array<Types::DocumentInfo>]
608
+ #
609
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/BatchGetDocumentStatusRequest AWS API Documentation
610
+ #
611
+ class BatchGetDocumentStatusRequest < Struct.new(
612
+ :index_id,
613
+ :document_info_list)
614
+ SENSITIVE = []
615
+ include Aws::Structure
616
+ end
617
+
618
+ # @!attribute [rw] errors
619
+ # A list of documents that Amazon Kendra couldn't get the status for.
620
+ # The list includes the ID of the document and the reason that the
621
+ # status couldn't be found.
622
+ # @return [Array<Types::BatchGetDocumentStatusResponseError>]
623
+ #
624
+ # @!attribute [rw] document_status_list
625
+ # The status of documents. The status indicates if the document is
626
+ # waiting to be indexed, is in the process of indexing, has completed
627
+ # indexing, or failed indexing. If a document failed indexing, the
628
+ # status provides the reason why.
629
+ # @return [Array<Types::Status>]
630
+ #
631
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/BatchGetDocumentStatusResponse AWS API Documentation
632
+ #
633
+ class BatchGetDocumentStatusResponse < Struct.new(
634
+ :errors,
635
+ :document_status_list)
636
+ SENSITIVE = []
637
+ include Aws::Structure
638
+ end
639
+
640
+ # Provides a response when the status of a document could not be
641
+ # retrieved.
642
+ #
643
+ # @!attribute [rw] document_id
644
+ # The unique identifier of the document whose status could not be
645
+ # retrieved.
646
+ # @return [String]
647
+ #
648
+ # @!attribute [rw] error_code
649
+ # Indicates the source of the error.
650
+ # @return [String]
651
+ #
652
+ # @!attribute [rw] error_message
653
+ # States that the API could not get the status of a document. This
654
+ # could be because the request is not valid or there is a system
655
+ # error.
656
+ # @return [String]
657
+ #
658
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/BatchGetDocumentStatusResponseError AWS API Documentation
659
+ #
660
+ class BatchGetDocumentStatusResponseError < Struct.new(
661
+ :document_id,
662
+ :error_code,
663
+ :error_message)
664
+ SENSITIVE = []
665
+ include Aws::Structure
666
+ end
667
+
571
668
  # @note When making an API call, you may pass BatchPutDocumentRequest
572
669
  # data as a hash:
573
670
  #
@@ -3739,6 +3836,11 @@ module Aws::Kendra
3739
3836
  #
3740
3837
  # @!attribute [rw] date_value
3741
3838
  # A date expressed as an ISO 8601 string.
3839
+ #
3840
+ # It is important for the time zone to be included in the ISO 8601
3841
+ # date-time format. For example, 20120325T123010+01:00 is the ISO 8601
3842
+ # date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in
3843
+ # Central European Time.
3742
3844
  # @return [Time]
3743
3845
  #
3744
3846
  # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DocumentAttributeValue AWS API Documentation
@@ -3773,6 +3875,61 @@ module Aws::Kendra
3773
3875
  include Aws::Structure
3774
3876
  end
3775
3877
 
3878
+ # Identifies a document for which to retrieve status information
3879
+ #
3880
+ # @note When making an API call, you may pass DocumentInfo
3881
+ # data as a hash:
3882
+ #
3883
+ # {
3884
+ # document_id: "DocumentId", # required
3885
+ # attributes: [
3886
+ # {
3887
+ # key: "DocumentAttributeKey", # required
3888
+ # value: { # required
3889
+ # string_value: "DocumentAttributeStringValue",
3890
+ # string_list_value: ["String"],
3891
+ # long_value: 1,
3892
+ # date_value: Time.now,
3893
+ # },
3894
+ # },
3895
+ # ],
3896
+ # }
3897
+ #
3898
+ # @!attribute [rw] document_id
3899
+ # The unique identifier of the document.
3900
+ # @return [String]
3901
+ #
3902
+ # @!attribute [rw] attributes
3903
+ # Attributes that identify a specific version of a document to check.
3904
+ #
3905
+ # The only valid attributes are:
3906
+ #
3907
+ # * version
3908
+ #
3909
+ # * datasourceId
3910
+ #
3911
+ # * jobExecutionId
3912
+ #
3913
+ # The attributes follow these rules:
3914
+ #
3915
+ # * `dataSourceId` and `jobExecutionId` must be used together.
3916
+ #
3917
+ # * `version` is ignored if `dataSourceId` and `jobExecutionId` are
3918
+ # not provided.
3919
+ #
3920
+ # * If `dataSourceId` and `jobExecutionId` are provided, but `version`
3921
+ # is not, the version defaults to "0".
3922
+ # @return [Array<Types::DocumentAttribute>]
3923
+ #
3924
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DocumentInfo AWS API Documentation
3925
+ #
3926
+ class DocumentInfo < Struct.new(
3927
+ :document_id,
3928
+ :attributes)
3929
+ SENSITIVE = []
3930
+ include Aws::Structure
3931
+ end
3932
+
3776
3933
  # Specifies the properties of a custom index field.
3777
3934
  #
3778
3935
  # @note When making an API call, you may pass DocumentMetadataConfiguration
@@ -6649,6 +6806,41 @@ module Aws::Kendra
6649
6806
  include Aws::Structure
6650
6807
  end
6651
6808
 
6809
+ # Provides information about the status of documents submitted for
6810
+ # indexing.
6811
+ #
6812
+ # @!attribute [rw] document_id
6813
+ # The unique identifier of the document.
6814
+ # @return [String]
6815
+ #
6816
+ # @!attribute [rw] document_status
6817
+ # The current status of a document.
6818
+ #
6819
+ # If the document was submitted for deletion, the status is
6820
+ # `NOT_FOUND` after the document is deleted.
6821
+ # @return [String]
6822
+ #
6823
+ # @!attribute [rw] failure_code
6824
+ # Indicates the source of the error.
6825
+ # @return [String]
6826
+ #
6827
+ # @!attribute [rw] failure_reason
6828
+ # Provides detailed information about why the document couldn't be
6829
+ # indexed. Use this information to correct the error before you
6830
+ # resubmit the document for indexing.
6831
+ # @return [String]
6832
+ #
6833
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/Status AWS API Documentation
6834
+ #
6835
+ class Status < Struct.new(
6836
+ :document_id,
6837
+ :document_status,
6838
+ :failure_code,
6839
+ :failure_reason)
6840
+ SENSITIVE = []
6841
+ include Aws::Structure
6842
+ end
6843
+
6652
6844
  # @note When making an API call, you may pass StopDataSourceSyncJobRequest
6653
6845
  # data as a hash:
6654
6846
  #
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.25.0
4
+ version: 1.26.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: 2021-05-27 00:00:00.000000000 Z
11
+ date: 2021-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core