Rekognition / Client / delete_project_policy

delete_project_policy#

Rekognition.Client.delete_project_policy(**kwargs)#

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.

See also: AWS API Documentation

Request Syntax

response = client.delete_project_policy(
    ProjectArn='string',
    PolicyName='string',
    PolicyRevisionId='string'
)
Parameters:
  • ProjectArn (string) –

    [REQUIRED]

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

  • PolicyName (string) –

    [REQUIRED]

    The name of the policy that you want to delete.

  • PolicyRevisionId (string) – The ID of the project policy revision that you want to delete.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • Rekognition.Client.exceptions.AccessDeniedException

  • Rekognition.Client.exceptions.InternalServerError

  • Rekognition.Client.exceptions.InvalidParameterException

  • Rekognition.Client.exceptions.ResourceNotFoundException

  • Rekognition.Client.exceptions.ThrottlingException

  • Rekognition.Client.exceptions.ProvisionedThroughputExceededException

  • Rekognition.Client.exceptions.InvalidPolicyRevisionIdException