Skip to main content

data_cells_filters

Creates, updates, deletes, gets or lists a data_cells_filters resource.

Overview

Namedata_cells_filters
TypeResource
Idaws.lakeformation.data_cells_filters

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
column_namesarrayA list of column names and/or nested column attributes. When specifying nested attributes, use a qualified dot (.) delimited format such as "address"."zip". Nested attributes within this list may not exceed a depth of 5.
column_wildcardobjectA wildcard with exclusions. You must specify either a ColumnNames list or the ColumnWildCard.
database_namestringA database in the Glue Data Catalog. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*</code>)
namestringThe name given by the user to the data filter cell. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*</code>)
row_filterobjectA PartiQL predicate.
table_catalog_idstringThe ID of the catalog to which the table belongs. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*</code>)
table_namestringA table in the database. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*</code>)
version_idstringThe ID of the data cells filter version. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_data_cells_filterselectregionReturns a data cells filter.
list_data_cells_filterselectregionLists all the data cell filters on a table.
create_data_cells_filterinsertregion, TableDataCreates a data cell filter to allow one to grant access to certain columns on certain rows.
update_data_cells_filterupdateregion, TableDataUpdates a data cell filter.
delete_data_cells_filterdeleteregionDeletes a data cell filter.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a data cells filter.

SELECT
column_names,
column_wildcard,
database_name,
name,
row_filter,
table_catalog_id,
table_name,
version_id
FROM aws.lakeformation.data_cells_filters
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a data cell filter to allow one to grant access to certain columns on certain rows.

INSERT INTO aws.lakeformation.data_cells_filters (
TableData,
region
)
SELECT
'{{ TableData }}' /* required */,
'{{ region }}'
;

UPDATE examples

Updates a data cell filter.

UPDATE aws.lakeformation.data_cells_filters
SET
TableData = '{{ TableData }}'
WHERE
region = '{{ region }}' --required
AND TableData = '{{ TableData }}' --required;

DELETE examples

Deletes a data cell filter.

DELETE FROM aws.lakeformation.data_cells_filters
WHERE region = '{{ region }}' --required
;