v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1465453454.1 KB

Gets a list of the project policies attached to a project.

To attach a project policy to a project, call PutProjectPolicy. To remove a project policy from a project, call DeleteProjectPolicy.

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

post/#X-Amz-Target=RekognitionService.ListProjectPolicies

Query parameters

MaxResultsstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'RekognitionService.ListProjectPolicies' required

Request body

ProjectArnstring required

The ARN of the project for which you want to list the project policies.

NextTokenstring

If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.

MaxResultsinteger

The maximum number of results to return per paginated call. The largest value you can specify is 5. If you specify a value greater than 5, a ValidationException error occurs. The default value is 5.

Response

Success

NextTokenstring

If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of project policies.

Example response

{
  "NextToken": "",
  "ProjectPolicies": [
    {
      "CreationTimestamp": "2022-07-01T11:51:27.086000-07:00",
      "LastUpdatedTimestamp": "2022-07-01T11:51:27.086000-07:00",
      "PolicyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Statemented1\",\"Effect\":\"Allow\",\"Principal\":{\"AWS\":\"arn:aws:iam::111122223333:root\"},\"Action\":\"rekognition:CopyProjectVersion\",\"Resource\":\"*\"}]}",
      "PolicyName": "testPolicy",
      "PolicyRevisionId": "3b274c25e9203a56a99e00e3ff205fbc",
      "ProjectArn": "arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929"
    }
  ]
}