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.BatchDeleteDocument

Description

Removes one or more documents from an index. The documents must have been added with the BatchPutDocument API.

The documents are deleted asynchronously. You can see the progress of the deletion by using Amazon Web Services CloudWatch. Any error messages related to the processing of the batch are sent to you CloudWatch log.

Synopsis

Creating a Request

data BatchDeleteDocument Source #

See: newBatchDeleteDocument smart constructor.

Constructors

BatchDeleteDocument' 

Fields

Instances

Instances details
ToJSON BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

ToHeaders BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

ToPath BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

ToQuery BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

AWSRequest BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

Associated Types

type AWSResponse BatchDeleteDocument #

Generic BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

Associated Types

type Rep BatchDeleteDocument :: Type -> Type #

Read BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

Show BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

NFData BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

Methods

rnf :: BatchDeleteDocument -> () #

Eq BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

Hashable BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

type AWSResponse BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

type Rep BatchDeleteDocument Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

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

newBatchDeleteDocument Source #

Create a value of BatchDeleteDocument 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:dataSourceSyncJobMetricTarget:BatchDeleteDocument', batchDeleteDocument_dataSourceSyncJobMetricTarget - Undocumented member.

$sel:indexId:BatchDeleteDocument', batchDeleteDocument_indexId - The identifier of the index that contains the documents to delete.

$sel:documentIdList:BatchDeleteDocument', batchDeleteDocument_documentIdList - One or more identifiers for documents to delete from the index.

Request Lenses

batchDeleteDocument_indexId :: Lens' BatchDeleteDocument Text Source #

The identifier of the index that contains the documents to delete.

batchDeleteDocument_documentIdList :: Lens' BatchDeleteDocument (NonEmpty Text) Source #

One or more identifiers for documents to delete from the index.

Destructuring the Response

data BatchDeleteDocumentResponse Source #

See: newBatchDeleteDocumentResponse smart constructor.

Constructors

BatchDeleteDocumentResponse' 

Fields

Instances

Instances details
Generic BatchDeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

Associated Types

type Rep BatchDeleteDocumentResponse :: Type -> Type #

Read BatchDeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

Show BatchDeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

NFData BatchDeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

Eq BatchDeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

type Rep BatchDeleteDocumentResponse Source # 
Instance details

Defined in Amazonka.Kendra.BatchDeleteDocument

type Rep BatchDeleteDocumentResponse = D1 ('MetaData "BatchDeleteDocumentResponse" "Amazonka.Kendra.BatchDeleteDocument" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "BatchDeleteDocumentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "failedDocuments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [BatchDeleteDocumentResponseFailedDocument])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newBatchDeleteDocumentResponse Source #

Create a value of BatchDeleteDocumentResponse 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:failedDocuments:BatchDeleteDocumentResponse', batchDeleteDocumentResponse_failedDocuments - A list of documents that could not be removed from the index. Each entry contains an error message that indicates why the document couldn't be removed from the index.

$sel:httpStatus:BatchDeleteDocumentResponse', batchDeleteDocumentResponse_httpStatus - The response's http status code.

Response Lenses

batchDeleteDocumentResponse_failedDocuments :: Lens' BatchDeleteDocumentResponse (Maybe [BatchDeleteDocumentResponseFailedDocument]) Source #

A list of documents that could not be removed from the index. Each entry contains an error message that indicates why the document couldn't be removed from the index.