create_rls_policy
async
¶
create_rls_policy(
name: NameString,
attachment_columns: ColumnList,
filter_expression: PredicateString,
*,
config_overrides: Optional[AsyncLakeFormationClientConfig] = None,
) -> CreateRLSPolicyResponse
Creates a row-level security (RLS) policy. A row-level security policy defines a filter expression that Lake Formation evaluates to determine which rows of a table a principal is allowed to see. The policy is created independently of any resource, and is later associated with a resource and principal using AttachRLSPolicy.
Parameters:
-
name(NameString) –A unique name for the row-level security policy within the Data Catalog.
-
attachment_columns(ColumnList) –The list of columns that the filter expression references. These columns define the shape of the data that the policy can be attached to.
-
filter_expression(PredicateString) –A filter predicate, written in a SQL-like syntax, that Lake Formation evaluates against each row. Only the rows for which the expression evaluates to true are returned to the principal.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
AlreadyExistsException–A resource to be created or added already exists.
-
ConcurrentModificationException–Two processes are trying to modify a resource simultaneously.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
ResourceNumberLimitExceededException–A resource numerical limit was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.