list_permissions
async
¶
list_permissions(
*,
config_overrides: Optional[AsyncLakeFormationClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
principal: Optional[DataLakePrincipal] = None,
resource_type: Optional[DataLakeResourceType] = None,
resource: Optional[Resource] = None,
next_token: Optional[Token] = None,
max_results: Optional[PageSize] = None,
include_related: Optional[TrueFalseString] = None,
) -> ListPermissionsResponse
Returns a list of the principal permissions on the resource, filtered by the permissions of the caller. For example, if you are granted an ALTER permission, you are able to see only the principal permissions for ALTER.
This operation returns only those permissions that have been explicitly granted. If both Principal and Resource parameters are provided, the response returns effective permissions rather than the explicitly granted permissions.
For information about permissions, see Security and Access Control to Metadata and Data.
Parameters:
-
catalog_id(Optional[CatalogIdString], default:None) –The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your Lake Formation environment.
-
principal(Optional[DataLakePrincipal], default:None) –Specifies a principal to filter the permissions returned.
-
resource_type(Optional[DataLakeResourceType], default:None) –Specifies a resource type to filter the permissions returned.
-
resource(Optional[Resource], default:None) –A resource where you will get a list of the principal permissions.
This operation does not support getting privileges on a table with columns. Instead, call this operation on the table, and the operation returns the table and the table w columns.
-
next_token(Optional[Token], default:None) –A continuation token, if this is not the first call to retrieve this list.
-
max_results(Optional[PageSize], default:None) –The maximum number of results to return.
-
include_related(Optional[TrueFalseString], default:None) –Indicates that related permissions should be included in the results when listing permissions on a table resource.
Set the field to
TRUEto show the cell filters on a table resource. Default isFALSE. The Principal parameter must not be specified when requesting cell filter information.
Raises:
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lakeformation/_services/async_lake_formation.py
3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 | |