Class UpdatePolicyRequest

    • Method Detail

      • policyStoreId

        public final String policyStoreId()

        Specifies the ID of the policy store that contains the policy that you want to update.

        Returns:
        Specifies the ID of the policy store that contains the policy that you want to update.
      • policyId

        public final String policyId()

        Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.

        Returns:
        Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
      • definition

        public final UpdatePolicyDefinition definition()

        Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

        You can change only the following elements from the policy definition:

        • The action referenced by the policy.

        • Any conditional clauses, such as when or unless clauses.

        You can't change the following elements:

        • Changing from static to templateLinked.

        • Changing the effect of the policy from permit or forbid.

        • The principal referenced by the policy.

        • The resource referenced by the policy.

        Returns:
        Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

        You can change only the following elements from the policy definition:

        • The action referenced by the policy.

        • Any conditional clauses, such as when or unless clauses.

        You can't change the following elements:

        • Changing from static to templateLinked.

        • Changing the effect of the policy from permit or forbid.

        • The principal referenced by the policy.

        • The resource referenced by the policy.

      • 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