Batch operation to revoke permissions from the principal.
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.
-
entries
(BatchPermissionsRequestEntryList)
–
A list of up to 20 entries for resource permissions to be revoked by batch operation to the principal.
Raises:
Source code in docs_src/capo_lakeformation/_services/async_lake_formation.py
| async def batch_revoke_permissions(
self,
entries: "capo_lakeformation.types.batch_permissions_request_entry_list.BatchPermissionsRequestEntryList",
*,
config_overrides: Optional[AsyncLakeFormationClientConfig] = None,
catalog_id: Optional[
"capo_lakeformation.types.catalog_id_string.CatalogIdString"
] = None,
) -> "capo_lakeformation.types.batch_revoke_permissions_response.BatchRevokePermissionsResponse":
"""<p>Batch operation to revoke permissions from the principal.</p>
Args:
catalog_id: <p>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. </p>
entries: <p>A list of up to 20 entries for resource permissions to be revoked by batch operation to the principal.</p>
Raises:
capo_lakeformation.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
capo_lakeformation.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
capo_lakeformation.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_lakeformation.types.batch_revoke_permissions_request.BatchRevokePermissionsRequest]",
) -> AsyncOperationResponse[
"capo_lakeformation.types.batch_revoke_permissions_response.BatchRevokePermissionsResponse"
]:
import capo_lakeformation._operations.aws_lake_formation.batch_revoke_permissions
(
output,
http_response,
) = await capo_lakeformation._operations.aws_lake_formation.batch_revoke_permissions.async_batch_revoke_permissions(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("BatchRevokePermissions")
)
input_: capo_lakeformation.types.batch_revoke_permissions_request.BatchRevokePermissionsRequest = {
"entries": entries
}
if catalog_id is not None:
input_["catalog_id"] = catalog_id
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|