Interface UpdatePolicyTemplateRequest.Builder

    • Method Detail

      • policyStoreId

        UpdatePolicyTemplateRequest.Builder policyStoreId​(String policyStoreId)

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

        Parameters:
        policyStoreId - Specifies the ID of the policy store that contains the policy template that you want to update.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policyTemplateId

        UpdatePolicyTemplateRequest.Builder policyTemplateId​(String policyTemplateId)

        Specifies the ID of the policy template that you want to update.

        Parameters:
        policyTemplateId - Specifies the ID of the policy template that you want to update.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        UpdatePolicyTemplateRequest.Builder description​(String description)

        Specifies a new description to apply to the policy template.

        Parameters:
        description - Specifies a new description to apply to the policy template.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • statement

        UpdatePolicyTemplateRequest.Builder statement​(String statement)

        Specifies new statement content written in Cedar policy language to replace the current body of the policy template.

        You can change only the following elements of the policy body:

        • The action referenced by the policy template.

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

        You can't change the following elements:

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

        • The principal referenced by the policy template.

        • The resource referenced by the policy template.

        Parameters:
        statement - Specifies new statement content written in Cedar policy language to replace the current body of the policy template.

        You can change only the following elements of the policy body:

        • The action referenced by the policy template.

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

        You can't change the following elements:

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

        • The principal referenced by the policy template.

        • The resource referenced by the policy template.

        Returns:
        Returns a reference to this object so that method calls can be chained together.