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
feita há 2 anos1138 visualizações
1 Resposta
0
Resposta aceita

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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas