Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Viewing principals and resources in hybrid access mode
Follow these steps to view databases, tables, and principals in hybrid access mode.
- Console
-
-
Sign in to the Lake Formation console at https://console.amazonaws.cn/lakeformation/.
-
Under Permissions, choose Hybrid access mode.
-
The Hybrid access mode page shows the resources and principals that are currently in hybrid access mode..
- Amazon CLI
-
The following example shows how to list all opt in principals and resources that are in hybrid access mode.
aws lakeformation list-lake-formation-opt-ins
The following example shows how to list opt in for a specific principal-resource
pair.
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>
"
}
}
}