Class UpdateStaticPolicyDefinition

    • Method Detail

      • description

        public final String description()

        Specifies the description to be added to or replaced on the static policy.

        Returns:
        Specifies the description to be added to or replaced on the static policy.
      • statement

        public final String statement()

        Specifies the Cedar policy language text to be added to or replaced on the static policy.

        You can change only the following elements from the original content:

        • The action referenced by the policy.

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

        You can't change the following elements:

        • Changing from StaticPolicy to TemplateLinkedPolicy.

        • The effect (permit or forbid) of the policy.

        • The principal referenced by the policy.

        • The resource referenced by the policy.

        Returns:
        Specifies the Cedar policy language text to be added to or replaced on the static policy.

        You can change only the following elements from the original content:

        • The action referenced by the policy.

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

        You can't change the following elements:

        • Changing from StaticPolicy to TemplateLinkedPolicy.

        • The effect (permit or forbid) of the policy.

        • The principal referenced by the policy.

        • The resource referenced by the policy.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)