Skip to content

Stop Ingestion Job

bedrockagent_stop_ingestion_job R Documentation

Stops a currently running data ingestion job

Description

Stops a currently running data ingestion job. You can send a start_ingestion_job request again to ingest the rest of your data when you are ready.

Usage

bedrockagent_stop_ingestion_job(dataSourceId, ingestionJobId,
  knowledgeBaseId)

Arguments

dataSourceId

[required] The unique identifier of the data source for the data ingestion job you want to stop.

ingestionJobId

[required] The unique identifier of the data ingestion job you want to stop.

knowledgeBaseId

[required] The unique identifier of the knowledge base for the data ingestion job you want to stop.

Value

A list with the following syntax:

list(
  ingestionJob = list(
    dataSourceId = "string",
    description = "string",
    failureReasons = list(
      "string"
    ),
    ingestionJobId = "string",
    knowledgeBaseId = "string",
    startedAt = as.POSIXct(
      "2015-01-01"
    ),
    statistics = list(
      numberOfDocumentsDeleted = 123,
      numberOfDocumentsFailed = 123,
      numberOfDocumentsScanned = 123,
      numberOfMetadataDocumentsModified = 123,
      numberOfMetadataDocumentsScanned = 123,
      numberOfModifiedDocumentsIndexed = 123,
      numberOfNewDocumentsIndexed = 123
    ),
    status = "STARTING"|"IN_PROGRESS"|"COMPLETE"|"FAILED"|"STOPPING"|"STOPPED",
    updatedAt = as.POSIXct(
      "2015-01-01"
    )
  )
)

Request syntax

svc$stop_ingestion_job(
  dataSourceId = "string",
  ingestionJobId = "string",
  knowledgeBaseId = "string"
)