Interface RLSPolicyAttachment.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RLSPolicyAttachment.Builder,,RLSPolicyAttachment> SdkBuilder<RLSPolicyAttachment.Builder,,RLSPolicyAttachment> SdkPojo
- Enclosing class:
RLSPolicyAttachment
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier for the Data Catalog that contains the attachment.default RLSPolicyAttachment.Buildercondition(Consumer<Condition.Builder> condition) A Lake Formation condition, which applies to the row-level security policy attachment and contains an expression.A Lake Formation condition, which applies to the row-level security policy attachment and contains an expression.defaultRLSPolicy(Boolean defaultRLSPolicy) Indicates whether this attachment is the default row-level security policy for the resource.policyName(String policyName) The name of the attached row-level security policy.default RLSPolicyAttachment.Builderprincipal(Consumer<DataLakePrincipal.Builder> principal) The principal to which the attached policy applies.principal(DataLakePrincipal principal) The principal to which the attached policy applies.default RLSPolicyAttachment.Builderresource(Consumer<Resource.Builder> resource) The resource to which the policy is attached.The resource to which the policy is attached.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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 theDataLakePrincipal.Builderavoiding the need to create one manually viaDataLakePrincipal.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toprincipal(DataLakePrincipal).- Parameters:
principal- a consumer that will call methods onDataLakePrincipal.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 theResource.Builderavoiding the need to create one manually viaResource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresource(Resource).- Parameters:
resource- a consumer that will call methods onResource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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 theCondition.Builderavoiding the need to create one manually viaCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocondition(Condition).- Parameters:
condition- a consumer that will call methods onCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-