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.
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.
For .NET Core this operation is only available in asynchronous form. Please refer to DeleteProjectPolicyAsync.
Namespace: Amazon.Rekognition
Assembly: AWSSDK.Rekognition.dll
Version: 3.x.y.z
public virtual DeleteProjectPolicyResponse DeleteProjectPolicy( DeleteProjectPolicyRequest request )
Container for the necessary parameters to execute the DeleteProjectPolicy service method.
Exception | Condition |
---|---|
AccessDeniedException | You are not authorized to perform the action. |
InternalServerErrorException | Amazon Rekognition experienced a service issue. Try your call again. |
InvalidParameterException | Input parameter violated a constraint. Validate your parameter before calling the API operation again. |
InvalidPolicyRevisionIdException | The supplied revision id for the project policy is invalid. |
ProvisionedThroughputExceededException | The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition. |
ResourceNotFoundException | The resource specified in the request cannot be found. |
ThrottlingException | Amazon Rekognition is temporarily unable to process the request. Try your call again. |
This operation deletes a revision of an existing project policy from an Amazon Rekognition Custom Labels project.
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" });
.NET Framework:
Supported in: 4.5 and newer, 3.5