AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::LakeFormation::Resource

CfnResource

The `AWS::LakeFormation::Resource` represents the data ( buckets and folders) that is being registered with AWS Lake Formation . During a stack operation, AWS CloudFormation calls the AWS Lake Formation [`RegisterResource`](https://docs.aws.amazon.com/lake-formation/latest/dg/aws-lake-formation-api-credential-vending.html#aws-lake-formation-api-credential-vending-RegisterResource) API operation to register the resource. To remove a `Resource` type, AWS CloudFormation calls the AWS Lake Formation [`DeregisterResource`](https://docs.aws.amazon.com/lake-formation/latest/dg/aws-lake-formation-api-credential-vending.html#aws-lake-formation-api-credential-vending-DeregisterResource) API operation.

Import

import { CfnResource } from 'aws-cdk-lib/aws-lakeformation';

Or use the module namespace:

import * as lakeformation from 'aws-cdk-lib/aws-lakeformation';
// lakeformation.CfnResource

Properties

Configuration passed to the constructor as CfnResourceProps.

resourceArnRequired
string

The Amazon Resource Name (ARN) of the resource.

useServiceLinkedRoleRequired
boolean | IResolvable

Designates a trusted caller, an IAM principal, by registering this caller with the Data Catalog .

hybridAccessEnabledOptional
boolean | IResolvable

Indicates whether the data access of tables pointing to the location can be managed by both Lake Formation permissions as well as Amazon S3 bucket policies.

roleArnOptional
string

The IAM role that registered a resource.

withFederationOptional
boolean | IResolvable

Allows Lake Formation to assume a role to access tables in a federated database.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter