getMaintenanceWindowExecution method

Future<GetMaintenanceWindowExecutionResult> getMaintenanceWindowExecution({
  1. required String windowExecutionId,
})

Retrieves details about a specific a maintenance window execution.

May throw DoesNotExistException. May throw InternalServerError.

Parameter windowExecutionId : The ID of the maintenance window execution that includes the task.

Implementation

Future<GetMaintenanceWindowExecutionResult> getMaintenanceWindowExecution({
  required String windowExecutionId,
}) async {
  ArgumentError.checkNotNull(windowExecutionId, 'windowExecutionId');
  _s.validateStringLength(
    'windowExecutionId',
    windowExecutionId,
    36,
    36,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AmazonSSM.GetMaintenanceWindowExecution'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'WindowExecutionId': windowExecutionId,
    },
  );

  return GetMaintenanceWindowExecutionResult.fromJson(jsonResponse.body);
}