Get the current configuration values for model invocation logging.
Raises:
Source code in docs_src/capo_bedrock/_services/bedrock.py
| def get_model_invocation_logging_configuration(
self, *, config_overrides: Optional[BedrockClientConfig] = None
) -> "capo_bedrock.types.get_model_invocation_logging_configuration_response.GetModelInvocationLoggingConfigurationResponse":
"""<p>Get the current configuration values for model invocation logging.</p>
Raises:
capo_bedrock.errors.access_denied_exception.AccessDeniedException: <p>The request is denied because of missing access permissions.</p>
capo_bedrock.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry your request.</p>
capo_bedrock.errors.throttling_exception.ThrottlingException: <p>The number of requests exceeds the limit. Resubmit your request later.</p>
capo_bedrock.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_bedrock.types.get_model_invocation_logging_configuration_request.GetModelInvocationLoggingConfigurationRequest]",
) -> OperationResponse[
"capo_bedrock.types.get_model_invocation_logging_configuration_response.GetModelInvocationLoggingConfigurationResponse"
]:
import capo_bedrock._operations.amazon_bedrock_control_plane_service.get_model_invocation_logging_configuration
output, http_response = (
capo_bedrock._operations.amazon_bedrock_control_plane_service.get_model_invocation_logging_configuration.get_model_invocation_logging_configuration(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetModelInvocationLoggingConfiguration")
)
input_: capo_bedrock.types.get_model_invocation_logging_configuration_request.GetModelInvocationLoggingConfigurationRequest = {}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|