Interface PutSinkPolicyRequest.Builder

    • Method Detail

      • sinkIdentifier

        PutSinkPolicyRequest.Builder sinkIdentifier​(String sinkIdentifier)

        The ARN of the sink to attach this policy to.

        Parameters:
        sinkIdentifier - The ARN of the sink to attach this policy to.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • policy

        PutSinkPolicyRequest.Builder policy​(String policy)

        The JSON policy to use. If you are updating an existing policy, the entire existing policy is replaced by what you specify here.

        The policy must be in JSON string format with quotation marks escaped and no newlines.

        For examples of different types of policies, see the Examples section on this page.

        Parameters:
        policy - The JSON policy to use. If you are updating an existing policy, the entire existing policy is replaced by what you specify here.

        The policy must be in JSON string format with quotation marks escaped and no newlines.

        For examples of different types of policies, see the Examples section on this page.

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