Retrieves the security configuration for a specified catalog.
Parameters:
-
catalog_id
(Optional[CatalogIdString], default:
None
)
–
The ID of the Data Catalog to retrieve the security configuration for. If none is provided, the Amazon Web Services account ID is used by default.
Raises:
Source code in docs_src/capo_glue/_services/glue.py
| def get_data_catalog_encryption_settings(
self,
*,
config_overrides: Optional[GlueClientConfig] = None,
catalog_id: Optional[
"capo_glue.types.catalog_id_string.CatalogIdString"
] = None,
) -> "capo_glue.types.get_data_catalog_encryption_settings_response.GetDataCatalogEncryptionSettingsResponse":
"""<p>Retrieves the security configuration for a specified catalog.</p>
Args:
catalog_id: <p>The ID of the Data Catalog to retrieve the security configuration for. If none is provided, the Amazon Web Services account ID is used by default.</p>
Raises:
capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_glue.types.get_data_catalog_encryption_settings_request.GetDataCatalogEncryptionSettingsRequest]",
) -> OperationResponse[
"capo_glue.types.get_data_catalog_encryption_settings_response.GetDataCatalogEncryptionSettingsResponse"
]:
import capo_glue._operations.aws_glue.get_data_catalog_encryption_settings
output, http_response = (
capo_glue._operations.aws_glue.get_data_catalog_encryption_settings.get_data_catalog_encryption_settings(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetDataCatalogEncryptionSettings")
)
input_: capo_glue.types.get_data_catalog_encryption_settings_request.GetDataCatalogEncryptionSettingsRequest = {}
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
|