简体   繁体   English

AWS boto3 - 资源:lakeformation Function:batch_revoke_permissions - 代表 ALL_TABLES

[英]AWS boto3 - Resource : lakeformation Function : batch_revoke_permissions - Represent ALL_TABLES

How do we represent "ALL_TABLES" in the lake_formation.batch_revoke_permissions function in boto3.我们如何在 boto3 中的 lake_formation.batch_revoke_permissions function 中表示“ALL_TABLES”。 Passing the argument as将参数传递为

{'Table': {'DatabaseName': 'XXXX', 'Name': 'ALL_TABLES' } } {'表':{'数据库名称':'XXXX','名称':'ALL_TABLES'}}

It fails with the below error.它失败并出现以下错误。

'Error': { 'ErrorCode': 'InvalidInputException', 'ErrorMessage': 'Table: ALL_TABLES not found.' '错误':{'ErrorCode':'InvalidInputException','ErrorMessage':'表:找不到ALL_TABLES。' } }

From the documentation ,文档中,

Table (dict) -- The table for the resource. Table (dict) -- 资源的表。 A table is a metadata definition that represents your data.表是代表数据的元数据定义。 You can Grant and Revoke table privileges to a principal.您可以向主体授予和撤销表权限。

CatalogId (string) -- The identifier for the Data Catalog. CatalogId (string) -- 数据目录的标识符。 By default, it is the account ID of the caller.默认情况下,它是调用者的帐户 ID。

DatabaseName (string) -- [REQUIRED] The name of the database for the table. DatabaseName (string) -- [REQUIRED] 表的数据库名称。 Unique to a Data Catalog.数据目录独有。 A database is a set of associated table definitions organized into a logical group.数据库是组织成一个逻辑组的一组关联表定义。 You can Grant and Revoke database privileges to a principal.您可以向主体授予和撤销数据库权限。

Name (string) -- The name of the table. Name (string) -- 表的名称。

TableWildcard (dict) -- A wildcard object representing every table under a database. TableWildcard (dict) -- 通配符 object 代表数据库下的每个表。

At least one of TableResource$Name or TableResource$TableWildcard is required.至少需要 TableResource$Name 或 TableResource$TableWildcard 之一。

you should set the 'TableWildcard': {} not the name.您应该设置'TableWildcard': {}而不是名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM