Interface RLSPolicyAttachment.Builder

  • Method Details

    • catalogId

      RLSPolicyAttachment.Builder catalogId(String catalogId)

      The identifier for the Data Catalog that contains the attachment. By default, the account ID.

      Parameters:
      catalogId - The identifier for the Data Catalog that contains the attachment. By default, the account ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyName

      RLSPolicyAttachment.Builder policyName(String policyName)

      The name of the attached row-level security policy.

      Parameters:
      policyName - The name of the attached row-level security policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      The principal to which the attached policy applies.

      Parameters:
      principal - The principal to which the attached policy applies.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • principal

      The principal to which the attached policy applies.

      This is a convenience method that creates an instance of the DataLakePrincipal.Builder avoiding the need to create one manually via DataLakePrincipal.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to principal(DataLakePrincipal).

      Parameters:
      principal - a consumer that will call methods on DataLakePrincipal.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resource

      The resource to which the policy is attached.

      Parameters:
      resource - The resource to which the policy is attached.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      The resource to which the policy is attached.

      This is a convenience method that creates an instance of the Resource.Builder avoiding the need to create one manually via Resource.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resource(Resource).

      Parameters:
      resource - a consumer that will call methods on Resource.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • condition

      RLSPolicyAttachment.Builder condition(Condition condition)

      A Lake Formation condition, which applies to the row-level security policy attachment and contains an expression.

      Parameters:
      condition - A Lake Formation condition, which applies to the row-level security policy attachment and contains an expression.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • condition

      default RLSPolicyAttachment.Builder condition(Consumer<Condition.Builder> condition)

      A Lake Formation condition, which applies to the row-level security policy attachment and contains an expression.

      This is a convenience method that creates an instance of the Condition.Builder avoiding the need to create one manually via Condition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to condition(Condition).

      Parameters:
      condition - a consumer that will call methods on Condition.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • defaultRLSPolicy

      RLSPolicyAttachment.Builder defaultRLSPolicy(Boolean defaultRLSPolicy)

      Indicates whether this attachment is the default row-level security policy for the resource.

      Parameters:
      defaultRLSPolicy - Indicates whether this attachment is the default row-level security policy for the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.