在混合访问模式下查看主体和资源 - Amazon Lake Formation
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

在混合访问模式下查看主体和资源

按照以下步骤在混合访问模式下查看数据库、表和主体。

Console
  1. 通过以下网址登录 Lake Formation 控制台:https://console.aws.amazon.com/lakeformation/

  2. 权限下,选择混合访问模式

  3. 混合访问模式页面显示当前处于混合访问模式的资源和主体。

Amazon CLI

以下示例说明如何列出处于混合访问模式的全部所选主体和资源。

aws lakeformation list-lake-formation-opt-ins

以下示例说明了如何列出所选择的特定主体-资源对。

aws lakeformation list-lake-formation-opt-ins --cli-input-json file://file path json: { "Principal": { "DataLakePrincipalIdentifier": "arn:aws:iam::<account-id>:role/<role name>" }, "Resource": { "Table": { "CatalogId": "<account-id>", "DatabaseName": "<database name>", "Name": "<table name>" } } }