Skip to content

LFTagExpression

Source: src/AWS/LakeFormation/LFTagExpression.ts

A named Lake Formation LF-tag expression — a reusable, saved combination of LF-tag conditions that can be referenced from permission grants (Resource.LFTagExpression) instead of repeating the raw expression.

Creating LF-tag expressions requires CREATE_LF_TAG_EXPRESSION on the catalog (data lake administrators have it) plus GRANT_WITH_LF_TAG_EXPRESSION on the underlying LF-tag pairs — see AWS.LakeFormation.DataLakeSettings.

import * as AWS from "alchemy/AWS";
const tag = yield* AWS.LakeFormation.LFTag("EnvTag", {
tagKey: "environment",
tagValues: ["dev", "prod"],
});
const expression = yield* AWS.LakeFormation.LFTagExpression("ProdData", {
name: "prod-data",
description: "All resources tagged environment=prod",
expression: [{ tagKey: tag.tagKey, tagValues: ["prod"] }],
});