Skip to content

stop_job_upgrade_analysis async

stop_job_upgrade_analysis(
    job_name: Name,
    analysis_id: Id,
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> StopJobUpgradeAnalysisResponse

Stops an in-progress upgrade analysis.

Parameters:

  • job_name (Name) –

    The name of the job associated with the analysis.

  • analysis_id (Id) –

    The unique identifier of the analysis to stop.

Raises:

Source code in docs_src/capo_glue/_services/async_glue.py
async def stop_job_upgrade_analysis(
    self,
    job_name: "capo_glue.types.name.Name",
    analysis_id: "capo_glue.types.id.Id",
    *,
    config_overrides: Optional[AsyncGlueClientConfig] = None,
) -> "capo_glue.types.stop_job_upgrade_analysis_response.StopJobUpgradeAnalysisResponse":
    """<p>Stops an in-progress upgrade analysis.</p>

    Args:
        job_name: <p>The name of the job associated with the analysis.</p>
        analysis_id: <p>The unique identifier of the analysis to stop.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        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_not_supported_exception.OperationNotSupportedException: <p>The operation is not available in the region.</p>
        capo_glue.errors.throttling_exception.ThrottlingException: <p>The throttling threshhold was exceeded.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_glue.types.stop_job_upgrade_analysis_request.StopJobUpgradeAnalysisRequest]",
    ) -> AsyncOperationResponse[
        "capo_glue.types.stop_job_upgrade_analysis_response.StopJobUpgradeAnalysisResponse"
    ]:
        import capo_glue._operations.aws_glue.stop_job_upgrade_analysis

        (
            output,
            http_response,
        ) = await capo_glue._operations.aws_glue.stop_job_upgrade_analysis.async_stop_job_upgrade_analysis(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StopJobUpgradeAnalysis")
    )
    input_: capo_glue.types.stop_job_upgrade_analysis_request.StopJobUpgradeAnalysisRequest = {
        "job_name": job_name,
        "analysis_id": analysis_id,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output