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
3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 | |