AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This operation applies only to Amazon Rekognition Custom Labels.

Lists the entries (images) within a dataset. An entry is a JSON Line that contains the information for a single image, including the image location, assigned labels, and object location bounding boxes. For more information, see Creating a manifest file.

JSON Lines in the response include information about non-terminal errors found in the dataset. Non terminal errors are reported in errors lists within each JSON Line. The same information is reported in the training and testing validation result manifests that Amazon Rekognition Custom Labels creates during model training.

You can filter the response in variety of ways, such as choosing which labels to return and returning JSON Lines created after a specific date.

This operation requires permissions to perform the rekognition:ListDatasetEntries action.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to ListDatasetEntriesAsync.

Namespace: Amazon.Rekognition
Assembly: AWSSDK.Rekognition.dll
Version: 3.x.y.z

Syntax

C#
public virtual ListDatasetEntriesResponse ListDatasetEntries(
         ListDatasetEntriesRequest request
)

Parameters

request
Type: Amazon.Rekognition.Model.ListDatasetEntriesRequest

Container for the necessary parameters to execute the ListDatasetEntries service method.

Return Value


The response from the ListDatasetEntries service method, as returned by Rekognition.

Exceptions

ExceptionCondition
AccessDeniedException You are not authorized to perform the action.
InternalServerErrorException Amazon Rekognition experienced a service issue. Try your call again.
InvalidPaginationTokenException Pagination token in the request is not valid.
InvalidParameterException Input parameter violated a constraint. Validate your parameter before calling the API operation again.
ProvisionedThroughputExceededException The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition.
ResourceInUseException The specified resource is already being used.
ResourceNotFoundException The resource specified in the request cannot be found.
ResourceNotReadyException The requested resource isn't ready. For example, this exception occurs when you call DetectCustomLabels with a model version that isn't deployed.
ThrottlingException Amazon Rekognition is temporarily unable to process the request. Try your call again.

Examples

Lists the JSON line entries in an Amazon Rekognition Custom Labels dataset.

To list the entries in an Amazon Rekognition Custom Labels dataset


var client = new AmazonRekognitionClient();
var response = client.ListDatasetEntries(new ListDatasetEntriesRequest 
{
    ContainsLabels = new List<string> {
        "camellia"
    },
    DatasetArn = "arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106",
    HasErrors = true,
    Labeled = true,
    MaxResults = 100,
    NextToken = "",
    SourceRefContains = "camellia4.jpg"
});

List<string> datasetEntries = response.DatasetEntries;
string nextToken = response.NextToken;

            

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also