listDataTransformationJobs method

Future<ListDataTransformationJobsResponse> listDataTransformationJobs({
  1. String? jobName,
  2. TransformationJobStatus? jobStatus,
  3. int? maxResults,
  4. String? nextToken,
  5. DateTime? submittedAfter,
  6. DateTime? submittedBefore,
})

Lists data transformation jobs for your AWS account. Results can be filtered by status, job name, and submit time window. Results are paginated. Use the NextToken parameter to retrieve additional results.

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter jobName : Filters the results to include only jobs with the specified name.

Parameter jobStatus : Filters the results to include only jobs with the specified status.

Parameter maxResults : The maximum number of jobs to return per page. If you don't specify a value, the service returns up to 100 results.

Parameter nextToken : The pagination token from a previous response. Pass this value to retrieve the next page of results.

Parameter submittedAfter : Filters the results to include only jobs submitted at or after this timestamp.

Parameter submittedBefore : Filters the results to include only jobs submitted at or before this timestamp.

Implementation

Future<ListDataTransformationJobsResponse> listDataTransformationJobs({
  String? jobName,
  TransformationJobStatus? jobStatus,
  int? maxResults,
  String? nextToken,
  DateTime? submittedAfter,
  DateTime? submittedBefore,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'HealthLake.ListDataTransformationJobs'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (jobName != null) 'JobName': jobName,
      if (jobStatus != null) 'JobStatus': jobStatus.value,
      if (maxResults != null) 'MaxResults': maxResults,
      if (nextToken != null) 'NextToken': nextToken,
      if (submittedAfter != null)
        'SubmittedAfter': unixTimestampToJson(submittedAfter),
      if (submittedBefore != null)
        'SubmittedBefore': unixTimestampToJson(submittedBefore),
    },

    hostPrefix: 'datatransformation.',
  );

  return ListDataTransformationJobsResponse.fromJson(jsonResponse.body);
}