如何使用python AWS开发工具包删除数据库部分中AWS GLUE中的记录?我只有数据库名称。
答案 0 :(得分:0)
如果您想使用Boto3(适用于AWS的python SDK)从Glue目录中删除数据库,它会像这样:
import boto3
client = boto3.client('glue')
response = client.delete_database(Name='database-name')
delete_database
还带有一个可选的CatalogId
参数,默认为您的AWS账户ID。看看Boto documentation for details。