Amazon Rekognition Rekognition Project Policy API

The Rekognition Project Policy API from Amazon Rekognition — 3 operation(s) for rekognition project policy.

Operations 3

POST /#DeleteProjectPolicy Delete Project Policy #
POST /#ListProjectPolicies List Project Policies #
POST /#PutProjectPolicy Put Project Policy #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-rekognition:amazon-rekognition-project-policy-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-rekognition-project-policy-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Rekognition Project Policy API
  version: '2016-06-27'
  description: Generated from AWS's published Smithy model for Amazon Rekognition. 3 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://rekognition.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#DeleteProjectPolicy:
    post:
      operationId: DeleteProjectPolicy
      summary: Delete Project Policy
      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 ListProjectPolicies. To attach a project policy to a project,
        call PutProjectPolicy. This operation requires permissions to perform the rekognition:DeleteProjectPolicy action.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/DeleteProjectPolicyResponse'
              example: {}
        '400':
          description: AccessDeniedException; InvalidParameterException; InvalidPolicyRevisionIdException; ProvisionedThroughputExceededException;
            ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerError; ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - RekognitionService.DeleteProjectPolicy
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/DeleteProjectPolicyRequest'
            example:
              ProjectArn: arn:aws:rekognition:us-east-1:111122223333:project/SourceProject/1656557123456
              PolicyName: testPolicy1
              PolicyRevisionId: 3b274c25e9203a56a99e00e3ff205fbc
      tags:
      - Project Policy
  /#ListProjectPolicies:
    post:
      operationId: ListProjectPolicies
      summary: List Project Policies
      description: This operation applies only to Amazon Rekognition Custom Labels. 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.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/ListProjectPoliciesResponse'
        '400':
          description: AccessDeniedException; InvalidPaginationTokenException; InvalidParameterException; ProvisionedThroughputExceededException;
            ResourceNotFoundException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerError; ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - RekognitionService.ListProjectPolicies
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/ListProjectPoliciesRequest'
      tags:
      - Project Policy
  /#PutProjectPolicy:
    post:
      operationId: PutProjectPolicy
      summary: Put Project Policy
      description: This operation applies only to Amazon Rekognition Custom Labels. Attaches a project policy to a Amazon
        Rekognition Custom Labels project in a trusting AWS account. A project policy specifies that a trusted AWS account
        can copy a model version from a trusting AWS account to a project in the trusted AWS account. To copy a model version
        you use the CopyProjectVersion operation. Only applies to Custom Labels projects. For more information about the format
        of a project policy document, see Attaching a project policy (SDK) in the Amazon Rekognition Custom Labels Developer
        Guide. The response from PutProjectPolicy is a revision ID for the project policy. You can attach multiple project
        policies to a project. You can also update an existing project policy by specifying the policy revision ID of the
        existing policy. To remove a project policy from a project, call DeleteProjectPolicy. To get a list of project policies
        attached to a project, call ListProjectPolicies. You copy a model version by calling CopyProjectVersion. This operation
        requires permissions to perform the rekognition:PutProjectPolicy action.
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/PutProjectPolicyResponse'
              example:
                PolicyRevisionId: 0123456789abcdef
        '400':
          description: AccessDeniedException; InvalidParameterException; InvalidPolicyRevisionIdException; LimitExceededException;
            MalformedPolicyDocumentException; ProvisionedThroughputExceededException; ResourceAlreadyExistsException; ResourceNotFoundException;
            ServiceQuotaExceededException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerError; ThrottlingException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServerError'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - RekognitionService.PutProjectPolicy
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/PutProjectPolicyRequest'
            example:
              ProjectArn: arn:aws:rekognition:us-east-1:111122223333:project/my-sdk-project/1656557051929
              PolicyName: SamplePolicy
              PolicyRevisionId: 0123456789abcdef
              PolicyDocument: '''{"Version":"2012-10-17","Statement":[{"Effect":"ALLOW","Principal":{"AWS":"principal"},"Action":"rekognition:CopyProjectVersion","Resource":"arn:aws:rekognition:us-east-1:123456789012:project/my-sdk-project/version/DestinationVersionName/1627045542080"}]}'''
      tags:
      - Project Policy
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: rekognition
  schemas:
    AccessDeniedException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
        Logref:
          type: string
          description: A universally unique identifier (UUID) for the request.
    DeleteProjectPolicyRequest:
      type: object
      properties:
        ProjectArn:
          type: string
          description: The Amazon Resource Name (ARN) of the project that the project policy you want to delete is attached
            to.
        PolicyName:
          type: string
          description: The name of the policy that you want to delete.
        PolicyRevisionId:
          type: string
          description: The ID of the project policy revision that you want to delete.
      required:
      - ProjectArn
      - PolicyName
    DeleteProjectPolicyResponse:
      type: object
      properties: {}
    InternalServerError:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
        Logref:
          type: string
          description: A universally unique identifier (UUID) for the request.
    ListProjectPoliciesRequest:
      type: object
      properties:
        ProjectArn:
          type: string
          description: The ARN of the project for which you want to list the project policies.
        NextToken:
          type: string
          description: 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.
        MaxResults:
          type: integer
          description: 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.
      required:
      - ProjectArn
    ListProjectPoliciesResponse:
      type: object
      properties:
        ProjectPolicies:
          type: array
          items:
            $ref: '#/components/schemas/ProjectPolicy'
          description: A list of project policies attached to the project.
        NextToken:
          type: string
          description: 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.
    ProjectPolicy:
      type: object
      properties:
        ProjectArn:
          type: string
          description: The Amazon Resource Name (ARN) of the project to which the project policy is attached.
        PolicyName:
          type: string
          description: The name of the project policy.
        PolicyRevisionId:
          type: string
          description: The revision ID of the project policy.
        PolicyDocument:
          type: string
          description: The JSON document for the project policy.
        CreationTimestamp:
          type: string
          format: date-time
          description: The Unix datetime for the creation of the project policy.
        LastUpdatedTimestamp:
          type: string
          format: date-time
          description: The Unix datetime for when the project policy was last updated.
    PutProjectPolicyRequest:
      type: object
      properties:
        ProjectArn:
          type: string
          description: The Amazon Resource Name (ARN) of the project that the project policy is attached to.
        PolicyName:
          type: string
          description: A name for the policy.
        PolicyRevisionId:
          type: string
          description: The revision ID for the Project Policy. Each time you modify a policy, Amazon Rekognition Custom Labels
            generates and assigns a new PolicyRevisionId and then deletes the previous version of the policy.
        PolicyDocument:
          type: string
          description: A resource policy to add to the model. The policy is a JSON structure that contains one or more statements
            that define the policy. The policy must follow the IAM syntax. For more information about the contents of a JSON
            policy document, see IAM JSON policy reference.
      required:
      - ProjectArn
      - PolicyName
      - PolicyDocument
    PutProjectPolicyResponse:
      type: object
      properties:
        PolicyRevisionId:
          type: string
          description: The ID of the project policy.
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/582e55931c45b944739742a2c1620b6026dd2d13/models/rekognition/service/2016-06-27/rekognition-2016-06-27.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)