getAutomationExecution method
Future<GetAutomationExecutionResult>
getAutomationExecution({
- required String automationExecutionId,
Get detailed information about a particular Automation execution.
May throw AutomationExecutionNotFoundException.
May throw InternalServerError.
Parameter 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.
Implementation
Future<GetAutomationExecutionResult> getAutomationExecution({
required String automationExecutionId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonSSM.GetAutomationExecution'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AutomationExecutionId': automationExecutionId,
},
);
return GetAutomationExecutionResult.fromJson(jsonResponse.body);
}