amazonka-kendra-2.0: Amazon KendraFrontendService SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Kendra.BatchGetDocumentStatus

Description

Returns the indexing status for one or more documents submitted with the BatchPutDocument API.

When you use the BatchPutDocument API, documents are indexed asynchronously. You can use the BatchGetDocumentStatus API to get the current status of a list of documents so that you can determine if they have been successfully indexed.

You can also use the BatchGetDocumentStatus API to check the status of the BatchDeleteDocument API. When a document is deleted from the index, Amazon Kendra returns NOT_FOUND as the status.

Synopsis

Creating a Request

data BatchGetDocumentStatus Source #

See: newBatchGetDocumentStatus smart constructor.

Constructors

BatchGetDocumentStatus' 

Fields

  • indexId :: Text

    The identifier of the index to add documents to. The index ID is returned by the CreateIndex API.

  • documentInfoList :: NonEmpty DocumentInfo

    A list of DocumentInfo objects that identify the documents for which to get the status. You identify the documents by their document ID and optional attributes.

Instances

Instances details
ToJSON BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

ToHeaders BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

ToPath BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

ToQuery BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

AWSRequest BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

Associated Types

type AWSResponse BatchGetDocumentStatus #

Generic BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

Associated Types

type Rep BatchGetDocumentStatus :: Type -> Type #

Read BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

Show BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

NFData BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

Methods

rnf :: BatchGetDocumentStatus -> () #

Eq BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

Hashable BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

type AWSResponse BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

type Rep BatchGetDocumentStatus Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

type Rep BatchGetDocumentStatus = D1 ('MetaData "BatchGetDocumentStatus" "Amazonka.Kendra.BatchGetDocumentStatus" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "BatchGetDocumentStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "indexId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "documentInfoList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty DocumentInfo))))

newBatchGetDocumentStatus Source #

Create a value of BatchGetDocumentStatus with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:indexId:BatchGetDocumentStatus', batchGetDocumentStatus_indexId - The identifier of the index to add documents to. The index ID is returned by the CreateIndex API.

$sel:documentInfoList:BatchGetDocumentStatus', batchGetDocumentStatus_documentInfoList - A list of DocumentInfo objects that identify the documents for which to get the status. You identify the documents by their document ID and optional attributes.

Request Lenses

batchGetDocumentStatus_indexId :: Lens' BatchGetDocumentStatus Text Source #

The identifier of the index to add documents to. The index ID is returned by the CreateIndex API.

batchGetDocumentStatus_documentInfoList :: Lens' BatchGetDocumentStatus (NonEmpty DocumentInfo) Source #

A list of DocumentInfo objects that identify the documents for which to get the status. You identify the documents by their document ID and optional attributes.

Destructuring the Response

data BatchGetDocumentStatusResponse Source #

See: newBatchGetDocumentStatusResponse smart constructor.

Constructors

BatchGetDocumentStatusResponse' 

Fields

  • documentStatusList :: Maybe [Status]

    The status of documents. The status indicates if the document is waiting to be indexed, is in the process of indexing, has completed indexing, or failed indexing. If a document failed indexing, the status provides the reason why.

  • errors :: Maybe [BatchGetDocumentStatusResponseError]

    A list of documents that Amazon Kendra couldn't get the status for. The list includes the ID of the document and the reason that the status couldn't be found.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic BatchGetDocumentStatusResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

Associated Types

type Rep BatchGetDocumentStatusResponse :: Type -> Type #

Read BatchGetDocumentStatusResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

Show BatchGetDocumentStatusResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

NFData BatchGetDocumentStatusResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

Eq BatchGetDocumentStatusResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

type Rep BatchGetDocumentStatusResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchGetDocumentStatus

type Rep BatchGetDocumentStatusResponse = D1 ('MetaData "BatchGetDocumentStatusResponse" "Amazonka.Kendra.BatchGetDocumentStatus" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "BatchGetDocumentStatusResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "documentStatusList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Status])) :*: (S1 ('MetaSel ('Just "errors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BatchGetDocumentStatusResponseError])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newBatchGetDocumentStatusResponse Source #

Create a value of BatchGetDocumentStatusResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:documentStatusList:BatchGetDocumentStatusResponse', batchGetDocumentStatusResponse_documentStatusList - The status of documents. The status indicates if the document is waiting to be indexed, is in the process of indexing, has completed indexing, or failed indexing. If a document failed indexing, the status provides the reason why.

$sel:errors:BatchGetDocumentStatusResponse', batchGetDocumentStatusResponse_errors - A list of documents that Amazon Kendra couldn't get the status for. The list includes the ID of the document and the reason that the status couldn't be found.

$sel:httpStatus:BatchGetDocumentStatusResponse', batchGetDocumentStatusResponse_httpStatus - The response's http status code.

Response Lenses

batchGetDocumentStatusResponse_documentStatusList :: Lens' BatchGetDocumentStatusResponse (Maybe [Status]) Source #

The status of documents. The status indicates if the document is waiting to be indexed, is in the process of indexing, has completed indexing, or failed indexing. If a document failed indexing, the status provides the reason why.

batchGetDocumentStatusResponse_errors :: Lens' BatchGetDocumentStatusResponse (Maybe [BatchGetDocumentStatusResponseError]) Source #

A list of documents that Amazon Kendra couldn't get the status for. The list includes the ID of the document and the reason that the status couldn't be found.