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/ssm.py
| def get_automation_execution(
self,
automation_execution_id: "capo_ssm.types.automation_execution_id.AutomationExecutionId",
*,
config_overrides: Optional[SSMClientConfig] = 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.
"""
def _handler(
req: "OperationRequest[capo_ssm.types.get_automation_execution_request.GetAutomationExecutionRequest]",
) -> OperationResponse[
"capo_ssm.types.get_automation_execution_result.GetAutomationExecutionResult"
]:
import capo_ssm._operations.amazon_ssm.get_automation_execution
output, http_response = (
capo_ssm._operations.amazon_ssm.get_automation_execution.get_automation_execution(
req.options, req.input
)
)
return OperationResponse(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 = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|