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.
Topics
asked a month ago71 views
1 Answers
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'
}
answered a month ago
Relevant questions
Unable to create Glue Resource Policy
asked 10 months agoWhy am I getting SQS messages with different MessageGroupId's in a single boto3 receive_messages call?
asked 5 months ago[Bug] Invalid k8s resource for EKSCluster created through Clouformation
asked a year agoCan we run a python script in Sagemaker using boto3 from a local machine?
asked 4 months agoTag enforcement while creating a new resource
Accepted Answerasked 2 years agoUnknown error when accessing the database details view through the AWS LakeFormation console
Accepted Answerasked 2 months agoCreating Lakeformation Resource Link through Boto3 client
Accepted Answerasked a month agoCreating Client VPN Endpoint failing through CLI and Powershell
asked 3 years agoUsing redshift-data boto3 to make cross account redshift calls
asked 5 months agoBoto3 Bug in response when creating a hosted zone in route53 with Python
asked 7 months ago