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
gefragt vor 2 Jahren1138 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen