Skip to main content

data_cells_filters

Creates, updates, deletes or gets a data_cells_filter resource or lists data_cells_filters in a region

Overview

Namedata_cells_filters
TypeResource
DescriptionA resource schema representing a Lake Formation Data Cells Filter.
Idawscc.lakeformation.data_cells_filters

Fields

NameDatatypeDescription
table_catalog_idstringThe Catalog Id of the Table on which to create a Data Cells Filter.
database_namestringThe name of the Database that the Table resides in.
row_filterobjectAn object representing the Data Cells Filter's Row Filter. Either a Filter Expression or a Wildcard is required
column_namesarrayA list of columns to be included in this Data Cells Filter.
column_wildcardobjectAn object representing the Data Cells Filter's Columns. Either Column Names or a Wildcard is required
regionstringAWS region.

For more information, see AWS::LakeFormation::DataCellsFilter.

Methods

NameResourceAccessible byRequired Params
create_resourcedata_cells_filtersINSERTTableCatalogId, DatabaseName, TableName, Name, region
delete_resourcedata_cells_filtersDELETEIdentifier, region
list_resourcesdata_cells_filters_list_onlySELECTregion
get_resourcedata_cells_filtersSELECTIdentifier, region

SELECT examples

Gets all properties from an individual data_cells_filter.

SELECT
region,
table_catalog_id,
database_name,
table_name,
name,
row_filter,
column_names,
column_wildcard
FROM awscc.lakeformation.data_cells_filters
WHERE
region = '{{ region }}' AND
Identifier = '{{ table_catalog_id }}|{{ database_name }}|{{ table_name }}|{{ name }}';

INSERT example

Use the following StackQL query and manifest file to create a new data_cells_filter resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.lakeformation.data_cells_filters (
TableCatalogId,
DatabaseName,
TableName,
Name,
region
)
SELECT
'{{ table_catalog_id }}',
'{{ database_name }}',
'{{ table_name }}',
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.lakeformation.data_cells_filters
WHERE
Identifier = '{{ table_catalog_id }}|{{ database_name }}|{{ table_name }}|{{ name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the data_cells_filters resource, the following permissions are required:

lakeformation:CreateDataCellsFilter,
glue:GetTable