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.

Container for the parameters to the StopProjectVersion operation.

This operation applies only to Amazon Rekognition Custom Labels.

Stops a running model. The operation might take a while to complete. To check the current status, call DescribeProjectVersions. Only applies to Custom Labels projects.

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

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Rekognition.AmazonRekognitionRequest
      Amazon.Rekognition.Model.StopProjectVersionRequest

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

Syntax

C#
public class StopProjectVersionRequest : AmazonRekognitionRequest
         IAmazonWebServiceRequest

The StopProjectVersionRequest type exposes the following members

Constructors

NameDescription
Public Method StopProjectVersionRequest()

Properties

NameTypeDescription
Public Property ProjectVersionArn System.String

Gets and sets the property ProjectVersionArn.

The Amazon Resource Name (ARN) of the model version that you want to stop.

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

Examples

Stops a version of an Amazon Rekognition Custom Labels model.

To stop an Amazon Rekognition Custom Labels model.


var client = new AmazonRekognitionClient();
var response = client.StopProjectVersion(new StopProjectVersionRequest 
{
    ProjectVersionArn = "arn:aws:rekognition:us-east-1:111122223333:project/my-project/version/1/1690556751958"
});

string status = response.Status;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

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