Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation. For more information on admin privileges, see Granting Lake Formation Permissions.
This API replaces the current list of data lake admins with the new list being passed. To add an admin, fetch the current list and add the new admin to that list and pass that list in this API.
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.
-
data_lake_settings
(DataLakeSettings)
–
A structure representing a list of Lake Formation principals designated as data lake administrators.
Raises:
Source code in docs_src/capo_lakeformation/_services/lake_formation.py
| def put_data_lake_settings(
self,
data_lake_settings: "capo_lakeformation.types.data_lake_settings.DataLakeSettings",
*,
config_overrides: Optional[LakeFormationClientConfig] = None,
catalog_id: Optional[
"capo_lakeformation.types.catalog_id_string.CatalogIdString"
] = None,
) -> "capo_lakeformation.types.put_data_lake_settings_response.PutDataLakeSettingsResponse":
"""<p>Sets the list of data lake administrators who have admin privileges on all resources managed by Lake Formation. For more information on admin privileges, see <a href="https://docs.aws.amazon.com/lake-formation/latest/dg/lake-formation-permissions.html">Granting Lake Formation Permissions</a>.</p> <p>This API replaces the current list of data lake admins with the new list being passed. To add an admin, fetch the current list and add the new admin to that list and pass that list in this API.</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>
data_lake_settings: <p>A structure representing a list of Lake Formation principals designated as data lake administrators.</p>
Raises:
capo_lakeformation.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
capo_lakeformation.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
capo_lakeformation.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_lakeformation.types.put_data_lake_settings_request.PutDataLakeSettingsRequest]",
) -> OperationResponse[
"capo_lakeformation.types.put_data_lake_settings_response.PutDataLakeSettingsResponse"
]:
import capo_lakeformation._operations.aws_lake_formation.put_data_lake_settings
output, http_response = (
capo_lakeformation._operations.aws_lake_formation.put_data_lake_settings.put_data_lake_settings(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("PutDataLakeSettings")
)
input_: capo_lakeformation.types.put_data_lake_settings_request.PutDataLakeSettingsRequest = {
"data_lake_settings": data_lake_settings
}
if catalog_id is not None:
input_["catalog_id"] = catalog_id
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|