Module Values.PutProjectPolicyResponseSource

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.

Sourcetype nonrec t = {
  1. policyRevisionId : ProjectPolicyRevisionId.t option;
    (*

    The ID of the project policy.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerError of InternalServerError.t
  3. | `InvalidParameterException of InvalidParameterException.t
  4. | `InvalidPolicyRevisionIdException of InvalidPolicyRevisionIdException.t
  5. | `LimitExceededException of LimitExceededException.t
  6. | `MalformedPolicyDocumentException of MalformedPolicyDocumentException.t
  7. | `ProvisionedThroughputExceededException of ProvisionedThroughputExceededException.t
  8. | `ResourceAlreadyExistsException of ResourceAlreadyExistsException.t
  9. | `ResourceNotFoundException of ResourceNotFoundException.t
  10. | `ServiceQuotaExceededException of ServiceQuotaExceededException.t
  11. | `ThrottlingException of ThrottlingException.t
  12. | `Unknown_operation_error of string * string option
]
Sourceval make : ?policyRevisionId:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of unit | `InternalServerError of unit | `InvalidParameterException of unit | `InvalidPolicyRevisionIdException of unit | `LimitExceededException of unit | `MalformedPolicyDocumentException of unit | `ProvisionedThroughputExceededException of unit | `ResourceAlreadyExistsException of unit | `ResourceNotFoundException of unit | `ServiceQuotaExceededException of unit | `ThrottlingException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of unit | `InternalServerError of unit | `InvalidParameterException of unit | `InvalidPolicyRevisionIdException of unit | `LimitExceededException of unit | `MalformedPolicyDocumentException of unit | `ProvisionedThroughputExceededException of unit | `ResourceAlreadyExistsException of unit | `ResourceNotFoundException of unit | `ServiceQuotaExceededException of unit | `ThrottlingException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ProjectPolicyRevisionId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t