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 DeleteProjectPolicy operation.

This operation applies only to Amazon Rekognition Custom Labels.

Deletes an existing project policy.

To get a list of project policies attached to a project, call ListProjectPolicies. To attach a project policy to a project, call PutProjectPolicy.

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

Inheritance Hierarchy

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

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

Syntax

C#
public class DeleteProjectPolicyRequest : AmazonRekognitionRequest
         IAmazonWebServiceRequest

The DeleteProjectPolicyRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property PolicyName System.String

Gets and sets the property PolicyName.

The name of the policy that you want to delete.

Public Property PolicyRevisionId System.String

Gets and sets the property PolicyRevisionId.

The ID of the project policy revision that you want to delete.

Public Property ProjectArn System.String

Gets and sets the property ProjectArn.

The Amazon Resource Name (ARN) of the project that the project policy you want to delete is attached to.

Examples

This operation deletes a revision of an existing project policy from an Amazon Rekognition Custom Labels project.

DeleteProjectPolicy


var client = new AmazonRekognitionClient();
var response = client.DeleteProjectPolicy(new DeleteProjectPolicyRequest 
{
    PolicyName = "testPolicy1",
    PolicyRevisionId = "3b274c25e9203a56a99e00e3ff205fbc",
    ProjectArn = "arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/1656557123456"
});


            

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