getJobDetails method

Future<GetJobDetailsOutput> getJobDetails({
  1. required String jobId,
})

Returns information about a job. Used for custom actions only.

May throw ValidationException. May throw JobNotFoundException.

Parameter jobId : The unique system-generated ID for the job.

Implementation

Future<GetJobDetailsOutput> getJobDetails({
  required String jobId,
}) async {
  ArgumentError.checkNotNull(jobId, 'jobId');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'CodePipeline_20150709.GetJobDetails'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'jobId': jobId,
    },
  );

  return GetJobDetailsOutput.fromJson(jsonResponse.body);
}