Interface PutResourcePolicyRequest.Builder

  • Method Details

    • resourceArn

      PutResourcePolicyRequest.Builder resourceArn(String resourceArn)

      The Amazon Resource Name (ARN) of the knowledge base to attach the resource policy to.

      Parameters:
      resourceArn - The Amazon Resource Name (ARN) of the knowledge base to attach the resource policy to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policy

      The JSON-formatted resource policy to associate with the knowledge base.

      Parameters:
      policy - The JSON-formatted resource policy to associate with the knowledge base.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • expectedRevisionId

      PutResourcePolicyRequest.Builder expectedRevisionId(String expectedRevisionId)

      The expected revision identifier of the resource policy. Use this to prevent conflicts when multiple users update the same policy concurrently. Specify the revisionId from the most recent GetResourcePolicy or PutResourcePolicy response.

      Parameters:
      expectedRevisionId - The expected revision identifier of the resource policy. Use this to prevent conflicts when multiple users update the same policy concurrently. Specify the revisionId from the most recent GetResourcePolicy or PutResourcePolicy response.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      PutResourcePolicyRequest.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.