Skip to content

get_automation_execution async

get_automation_execution(
    automation_execution_id: AutomationExecutionId,
    *,
    config_overrides: Optional[AsyncSSMClientConfig] = None,
) -> GetAutomationExecutionResult

Get detailed information about a particular Automation execution.

Parameters:

  • automation_execution_id (AutomationExecutionId) –

    The unique identifier for an existing automation execution to examine. The execution ID is returned by StartAutomationExecution when the execution of an Automation runbook is initiated.

Raises:

Source code in docs_src/capo_ssm/_services/async_ssm.py
async def get_automation_execution(
    self,
    automation_execution_id: "capo_ssm.types.automation_execution_id.AutomationExecutionId",
    *,
    config_overrides: Optional[AsyncSSMClientConfig] = None,
) -> "capo_ssm.types.get_automation_execution_result.GetAutomationExecutionResult":
    """<p>Get detailed information about a particular Automation execution.</p>

    Args:
        automation_execution_id: <p>The unique identifier for an existing automation execution to examine. The execution ID is returned by StartAutomationExecution when the execution of an Automation runbook is initiated.</p>

    Raises:
        capo_ssm.errors.automation_execution_not_found_exception.AutomationExecutionNotFoundException: <p>There is no automation execution information for the requested automation execution ID.</p>
        capo_ssm.errors.internal_server_error.InternalServerError: <p>An error occurred on the server side.</p>
        capo_ssm.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_ssm.types.get_automation_execution_request.GetAutomationExecutionRequest]",
    ) -> AsyncOperationResponse[
        "capo_ssm.types.get_automation_execution_result.GetAutomationExecutionResult"
    ]:
        import capo_ssm._operations.amazon_ssm.get_automation_execution

        (
            output,
            http_response,
        ) = await capo_ssm._operations.amazon_ssm.get_automation_execution.async_get_automation_execution(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetAutomationExecution")
    )
    input_: capo_ssm.types.get_automation_execution_request.GetAutomationExecutionRequest = {
        "automation_execution_id": automation_execution_id
    }

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