Skip to content

PutProjectPolicyRequest

Source code in docs_src/capo_rekognition/types/put_project_policy_request.py
class PutProjectPolicyRequest(TypedDict, closed=True):
    project_arn: "capo_rekognition.types.project_arn.ProjectArn"
    """<p>The Amazon Resource Name (ARN) of the project that the project policy is attached to.</p>"""
    policy_name: "capo_rekognition.types.project_policy_name.ProjectPolicyName"
    """<p>A name for the policy.</p>"""
    policy_revision_id: NotRequired[
        "capo_rekognition.types.project_policy_revision_id.ProjectPolicyRevisionId"
    ]
    """<p>The revision ID for the Project Policy. Each time you modify a policy, Amazon Rekognition Custom Labels generates and assigns a new <code>PolicyRevisionId</code> and then deletes the previous version of the policy.</p>"""
    policy_document: (
        "capo_rekognition.types.project_policy_document.ProjectPolicyDocument"
    )
    """<p>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 <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON policy reference</a>. </p>"""

policy_document instance-attribute

policy_document: ProjectPolicyDocument

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.

policy_name instance-attribute

policy_name: ProjectPolicyName

A name for the policy.

policy_revision_id instance-attribute

policy_revision_id: NotRequired[ProjectPolicyRevisionId]

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.

project_arn instance-attribute

project_arn: ProjectArn

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