revoke_permissions
¶
revoke_permissions(
principal: DataLakePrincipal,
resource: Resource,
permissions: PermissionList,
*,
config_overrides: Optional[LakeFormationClientConfig] = 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/lake_formation.py
4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 | |