Returns information about a notebook instance.
Parameters:
-
notebook_instance_name
(Optional[NotebookInstanceName], default:
None
)
–
The name of the notebook instance that you want information about.
Raises:
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
| def describe_notebook_instance(
self,
*,
config_overrides: Optional[SageMakerClientConfig] = None,
notebook_instance_name: Optional[
"capo_sagemaker.types.notebook_instance_name.NotebookInstanceName"
] = None,
) -> "capo_sagemaker.types.describe_notebook_instance_output.DescribeNotebookInstanceOutput":
"""<p>Returns information about a notebook instance.</p>
Args:
notebook_instance_name: <p>The name of the notebook instance that you want information about.</p>
Raises:
capo_sagemaker.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_sagemaker.types.describe_notebook_instance_input.DescribeNotebookInstanceInput]",
) -> OperationResponse[
"capo_sagemaker.types.describe_notebook_instance_output.DescribeNotebookInstanceOutput"
]:
import capo_sagemaker._operations.sage_maker.describe_notebook_instance
output, http_response = (
capo_sagemaker._operations.sage_maker.describe_notebook_instance.describe_notebook_instance(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DescribeNotebookInstance")
)
input_: capo_sagemaker.types.describe_notebook_instance_input.DescribeNotebookInstanceInput = {}
if notebook_instance_name is not None:
input_["notebook_instance_name"] = notebook_instance_name
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|