使用python删除AWS上的DB GLUE

时间:2018-07-01 12:27:26

标签: python-3.x aws-glue

如何使用python AWS开发工具包删除数据库部分中AWS GLUE中的记录?我只有数据库名称。

1 个答案:

答案 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