Skip to content

describe_notebook_execution

describe_notebook_execution(
    *,
    config_overrides: Optional[EMRClientConfig] = None,
    notebook_execution_id: Optional[XmlStringMaxLen256] = None,
) -> DescribeNotebookExecutionOutput

Provides details of a notebook execution.

Parameters:

Raises:

  • InternalServerError –

    Indicates that an error occurred while processing the request and that the request was not completed.

  • InvalidRequestException –

    This exception occurs when there is something wrong with user input.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_emr/_services/emr.py
def describe_notebook_execution(
    self,
    *,
    config_overrides: Optional[EMRClientConfig] = None,
    notebook_execution_id: Optional[
        "capo_emr.types.xml_string_max_len256.XmlStringMaxLen256"
    ] = None,
) -> "capo_emr.types.describe_notebook_execution_output.DescribeNotebookExecutionOutput":
    """<p>Provides details of a notebook execution.</p>

    Args:
        notebook_execution_id: <p>The unique identifier of the notebook execution.</p>

    Raises:
        capo_emr.errors.internal_server_error.InternalServerError: <p>Indicates that an error occurred while processing the request and that the request was not completed.</p>
        capo_emr.errors.invalid_request_exception.InvalidRequestException: <p>This exception occurs when there is something wrong with user input.</p>
        capo_emr.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_emr.types.describe_notebook_execution_input.DescribeNotebookExecutionInput]",
    ) -> OperationResponse[
        "capo_emr.types.describe_notebook_execution_output.DescribeNotebookExecutionOutput"
    ]:
        import capo_emr._operations.elastic_map_reduce.describe_notebook_execution

        output, http_response = (
            capo_emr._operations.elastic_map_reduce.describe_notebook_execution.describe_notebook_execution(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeNotebookExecution")
    )
    input_: capo_emr.types.describe_notebook_execution_input.DescribeNotebookExecutionInput = {}
    if notebook_execution_id is not None:
        input_["notebook_execution_id"] = notebook_execution_id

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output