Class PutProjectPolicyRequest

    • Method Detail

      • projectArn

        public final String projectArn()

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

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

        public final String policyName()

        A name for the policy.

        Returns:
        A name for the policy.
      • policyRevisionId

        public final String policyRevisionId()

        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.

        Returns:
        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

        public final String policyDocument()

        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.

        Returns:
        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.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object