ListIngestionJobs
Returns a list of ingestion jobs in a collection.
Request Syntax
{
"collectionId": "string",
"maxResults": number,
"nextToken": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- collectionId
-
The unique identifier of the collection to list ingestion jobs for.
Type: String
Length Constraints: Minimum length of 3. Maximum length of 40.
Pattern:
[a-z0-9]{3,40}Required: Yes
- maxResults
-
The maximum number of results to return. Valid values are 1–100. If you don't specify a value, the default is 100. You can use
nextTokento get the next page of results.A response can contain fewer results than
maxResults, or no results, and still include anextToken. To retrieve all results, continue to make the call with the returnednextTokenuntil nonextTokenis returned.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No
- nextToken
-
If your initial
ListIngestionJobsoperation returns anextToken, you can include the returnednextTokenin subsequentListIngestionJobsoperations, which returns results in the next page.Type: String
Required: No
Response Syntax
{
"ingestionJobSummaries": [
{
"arn": "string",
"createdAt": number,
"indexName": "string",
"ingestionJobId": "string",
"ingestionJobName": "string",
"status": "string",
"updatedAt": number
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- ingestionJobSummaries
-
Summary information about each ingestion job.
Type: Array of IngestionJobSummary objects
- nextToken
-
When
nextTokenis returned, there are more results available. The value ofnextTokenis a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.Type: String
Errors
For information about the errors that are common to all actions, see Common Error Types.
- InternalServerException
-
Thrown when an error internal to the service occurs while processing a request.
HTTP Status Code: 500
- ResourceNotFoundException
-
Thrown when accessing or deleting a resource that does not exist.
HTTP Status Code: 400
- ValidationException
-
Thrown when the HTTP request contains invalid input or is missing required input.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: