Amazon.Rekognition.AmazonRekognitionClient.CreateCollection C# (CSharp) Method

CreateCollection() public method

Creates a collection in an AWS region. You can add faces to the collection using the operation.

For example, you might create collections, one for each of your application users. A user can then index faces using the IndexFaces operation and persist results in a specific collection. Then, a user can search the collection for faces in the user-specific container.

For an example, see example1.

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

/// You are not authorized to perform the action. /// /// Amazon Rekognition experienced a service issue. Try your call again. /// /// Input parameter violated a constraint. Validate your parameter before calling the /// API again. /// /// The number of requests exceeded your throughput limit. If you want to increase this /// limit, contact Amazon Rekognition. /// /// The collection with specific ID already exist. /// /// Amazon Rekognition is temporarily unable to process the request. Try your call again. ///
public CreateCollection ( CreateCollectionRequest request ) : CreateCollectionResponse
request Amazon.Rekognition.Model.CreateCollectionRequest Container for the necessary parameters to execute the CreateCollection service method.
return Amazon.Rekognition.Model.CreateCollectionResponse
        public CreateCollectionResponse CreateCollection(CreateCollectionRequest request)
        {
            var marshaller = new CreateCollectionRequestMarshaller();
            var unmarshaller = CreateCollectionResponseUnmarshaller.Instance;

            return Invoke<CreateCollectionRequest,CreateCollectionResponse>(request, marshaller, unmarshaller);
        }