Interface PutSinkPolicyRequest.Builder

  • Method Details

    • 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.
    • 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.
    • overrideConfiguration

      PutSinkPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.