Skip to content

Delete Project Policy

rekognition_delete_project_policy R Documentation

This operation applies only to Amazon Rekognition Custom Labels

Description

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 list_project_policies. To attach a project policy to a project, call put_project_policy.

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

Usage

rekognition_delete_project_policy(ProjectArn, PolicyName,
  PolicyRevisionId)

Arguments

ProjectArn

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

PolicyName

[required] The name of the policy that you want to delete.

PolicyRevisionId

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

Value

An empty list.

Request syntax

svc$delete_project_policy(
  ProjectArn = "string",
  PolicyName = "string",
  PolicyRevisionId = "string"
)

Examples

## Not run: 
# This operation deletes a revision of an existing project policy from an
# Amazon Rekognition Custom Labels project.
svc$delete_project_policy(
  PolicyName = "testPolicy1",
  PolicyRevisionId = "3b274c25e9203a56a99e00e3ff205fbc",
  ProjectArn = "arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/1656557123456"
)

## End(Not run)