Skip to content

RLSPolicy

Source code in docs_src/capo_lakeformation/types/rls_policy.py
class RLSPolicy(TypedDict, closed=True):
    catalog_id: NotRequired[
        "capo_lakeformation.types.catalog_id_string.CatalogIdString"
    ]
    """<p>The identifier for the Data Catalog that contains the policy. By default, the account ID.</p>"""
    name: NotRequired["capo_lakeformation.types.name_string.NameString"]
    """<p>The name of the row-level security policy.</p>"""
    attachment_columns: NotRequired["capo_lakeformation.types.column_list.ColumnList"]
    """<p>The list of columns that the filter expression references.</p>"""
    filter_expression: NotRequired[
        "capo_lakeformation.types.predicate_string.PredicateString"
    ]
    """<p>The filter predicate, written in a SQL-like syntax, that determines which rows are returned to the principal.</p>"""
    status: NotRequired["capo_lakeformation.types.rls_policy_status.RLSPolicyStatus"]
    """<p>Whether the row-level security policy can be evaluated. <code>VALID</code> means that every lookup table and user-defined function the filter expression references exists. <code>INVALID</code> means that a lookup table or user-defined function the filter expression references was deleted.</p>"""
    status_reason: NotRequired[
        "capo_lakeformation.types.rls_policy_status_reason.RLSPolicyStatusReason"
    ]
    """<p>The reason the row-level security policy is <code>INVALID</code>. <code>REFERENCED_LOOKUP_TABLE_DELETED</code> means that a lookup table the filter expression references was deleted. <code>REFERENCED_UDF_DELETED</code> means that a user-defined function the filter expression references was deleted. Not returned when the status is <code>VALID</code>.</p>"""

attachment_columns instance-attribute

attachment_columns: NotRequired[ColumnList]

The list of columns that the filter expression references.

catalog_id instance-attribute

catalog_id: NotRequired[CatalogIdString]

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

filter_expression instance-attribute

filter_expression: NotRequired[PredicateString]

The filter predicate, written in a SQL-like syntax, that determines which rows are returned to the principal.

name instance-attribute

name: NotRequired[NameString]

The name of the row-level security policy.

status instance-attribute

status: NotRequired[RLSPolicyStatus]

Whether the row-level security policy can be evaluated. VALID means that every lookup table and user-defined function the filter expression references exists. INVALID means that a lookup table or user-defined function the filter expression references was deleted.

status_reason instance-attribute

status_reason: NotRequired[RLSPolicyStatusReason]

The reason the row-level security policy is INVALID. REFERENCED_LOOKUP_TABLE_DELETED means that a lookup table the filter expression references was deleted. REFERENCED_UDF_DELETED means that a user-defined function the filter expression references was deleted. Not returned when the status is VALID.