deleteProjectPolicy

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.

Samples


fun main() { 
   //sampleStart 
   // This operation deletes a revision of an existing project policy from an Amazon Rekognition Custom
// Labels project.
val resp = rekognitionClient.deleteProjectPolicy {
    projectArn = "arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/1656557123456"
    policyName = "testPolicy1"
    policyRevisionId = "3b274c25e9203a56a99e00e3ff205fbc"
} 
   //sampleEnd
}