Skip to content

OptIn

Source: src/AWS/LakeFormation/OptIn.ts

A Lake Formation opt-in — enforces Lake Formation permissions for one principal on one Data Catalog resource while the account is in hybrid access mode (where IAM/S3 policies otherwise govern access).

import * as AWS from "alchemy/AWS";
const optIn = yield* AWS.LakeFormation.OptIn("AnalystOptIn", {
principal: analystRole.roleArn,
resource: { database: { name: database.databaseName } },
});