Retrieves the current encryption configuration for X-Ray data.
Raises:
Source code in docs_src/capo_xray/_services/x_ray.py
| def get_encryption_config(
self, *, config_overrides: Optional[XRayClientConfig] = None
) -> "capo_xray.types.get_encryption_config_result.GetEncryptionConfigResult":
"""<p>Retrieves the current encryption configuration for X-Ray data.</p>
Raises:
capo_xray.errors.invalid_request_exception.InvalidRequestException: <p>The request is missing required parameters or has invalid parameters.</p>
capo_xray.errors.throttled_exception.ThrottledException: <p>The request exceeds the maximum number of requests per second.</p>
capo_xray.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_xray.types.get_encryption_config_request.GetEncryptionConfigRequest]",
) -> OperationResponse[
"capo_xray.types.get_encryption_config_result.GetEncryptionConfigResult"
]:
import capo_xray._operations.awsx_ray.get_encryption_config
output, http_response = (
capo_xray._operations.awsx_ray.get_encryption_config.get_encryption_config(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetEncryptionConfig")
)
input_: capo_xray.types.get_encryption_config_request.GetEncryptionConfigRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|