list_permissions
¶
list_permissions(
*,
config_overrides: Optional[LakeFormationClientConfig] = 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/lake_formation.py
3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 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 | |