Resource
Source:
src/AWS/LakeFormation/Resource.ts
Registers an S3 location as managed by AWS Lake Formation, so Lake
Formation can vend temporary credentials for data stored there
(DATA_LOCATION_ACCESS grants, governed tables, etc.).
Registering Locations
Section titled “Registering Locations”Register a Bucket with the Service-Linked Role
import * as AWS from "alchemy/AWS";
const bucket = yield* AWS.S3.Bucket("DataLake", {});const location = yield* AWS.LakeFormation.Resource("DataLakeLocation", { resourceArn: bucket.bucketArn,});Register with a Custom Data-Access Role
const location = yield* AWS.LakeFormation.Resource("DataLakeLocation", { resourceArn: bucket.bucketArn, roleArn: dataAccessRole.roleArn, hybridAccessEnabled: true,});