Interface UpdateStaticPolicyDefinition.Builder

    • Method Detail

      • description

        UpdateStaticPolicyDefinition.Builder description​(String description)

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

        Parameters:
        description - Specifies the description to be added to or replaced on the static policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statement

        UpdateStaticPolicyDefinition.Builder statement​(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.

        Parameters:
        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:
        Returns a reference to this object so that method calls can be chained together.