revoke_permissions
async
¶
revoke_permissions(
principal: DataLakePrincipal,
resource: Resource,
permissions: PermissionList,
*,
config_overrides: Optional[AsyncLakeFormationClientConfig] = None,
catalog_id: Optional[CatalogIdString] = None,
condition: Optional[Condition] = None,
permissions_with_grant_option: Optional[PermissionList] = None,
) -> RevokePermissionsResponse
Revokes permissions to the principal to access metadata in the Data Catalog and data organized in underlying data storage such as Amazon S3.
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(DataLakePrincipal) –The principal to be revoked permissions on the resource.
-
resource(Resource) –The resource to which permissions are to be revoked.
-
permissions(PermissionList) –The permissions revoked to the principal on the resource. For information about permissions, see Security and Access Control to Metadata and Data.
-
permissions_with_grant_option(Optional[PermissionList], default:None) –Indicates a list of permissions for which to revoke the grant option allowing the principal to pass permissions to other principals.
Raises:
-
ConcurrentModificationException–Two processes are trying to modify a resource simultaneously.
-
EntityNotFoundException–A specified entity does not exist.
-
InvalidInputException–The input provided was not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lakeformation/_services/async_lake_formation.py
4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 | |