Creating Lakeformation Resource Link through Boto3 client

0

Is there a way to create a Lakeformation Resource Link to a database/table through Boto3 client. I am creating a database using glue_client.create_database() function. Now , I need to create a Lakeformation Resource Link Pointing to that database.

AWS
asked 2 years ago1122 views
1 Answer
0
Accepted Answer

Based on this AWS CLI example you can use the create_table() to create a resource link. Just populate the TargetTable section.

AWS CLI

aws glue create-table --database-name myissues --table-input '{"Name":"mycustomers","TargetTable":{"CatalogId":"111122223333","DatabaseName":"issues","Name":"customers"}}'

Boto3 (Just the TargetTable section, refer create_table() for details)

'TargetTable': {
            'CatalogId': '111122223333',
            'DatabaseName': 'issues',
            'Name': 'customers'
        }
Gopi_K
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions