LFTagAssociation
Source:
src/AWS/LakeFormation/LFTagAssociation.ts
Attaches LF-tag values to a Data Catalog resource (database, table, or columns) for Lake Formation tag-based access control.
Requires the caller to be a data lake administrator (or hold ASSOCIATE
on the LF-tags) — see
AWS.LakeFormation.DataLakeSettings.
Tagging Resources
Section titled “Tagging Resources”Tag a Database
import * as AWS from "alchemy/AWS";
const association = yield* AWS.LakeFormation.LFTagAssociation("DbEnvTag", { resource: { database: { name: database.databaseName } }, lfTags: [{ tagKey: envTag.tagKey, tagValues: ["prod"] }],});Tag a Table
const association = yield* AWS.LakeFormation.LFTagAssociation("TableTag", { resource: { table: { databaseName: database.databaseName, name: "events" }, }, lfTags: [{ tagKey: envTag.tagKey, tagValues: ["dev"] }],});