Retrieves all the documents contained in a data source that is connected to a knowledge base¶
Description¶
Retrieves all the documents contained in a data source that is connected to a knowledge base. For more information, see Ingest changes directly into a knowledge base in the Amazon Bedrock User Guide.
Usage¶
Arguments¶
-
knowledgeBaseId[required] The unique identifier of the knowledge base that is connected to the data source.
-
dataSourceId[required] The unique identifier of the data source that contains the documents.
-
maxResultsThe maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. -
nextTokenIf the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results.
Value¶
A list with the following syntax:
list(
documentDetails = list(
list(
knowledgeBaseId = "string",
dataSourceId = "string",
status = "INDEXED"|"PARTIALLY_INDEXED"|"PENDING"|"FAILED"|"METADATA_PARTIALLY_INDEXED"|"METADATA_UPDATE_FAILED"|"IGNORED"|"NOT_FOUND"|"STARTING"|"IN_PROGRESS"|"DELETING"|"DELETE_IN_PROGRESS",
identifier = list(
dataSourceType = "CUSTOM"|"S3",
s3 = list(
uri = "string"
),
custom = list(
id = "string"
)
),
statusReason = "string",
updatedAt = as.POSIXct(
"2015-01-01"
)
)
),
nextToken = "string"
)