batchGetBuildBatches method

Future<BatchGetBuildBatchesOutput> batchGetBuildBatches({
  1. required List<String> ids,
})

Retrieves information about one or more batch builds.

May throw InvalidInputException.

Parameter ids : An array that contains the batch build identifiers to retrieve.

Implementation

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

  return BatchGetBuildBatchesOutput.fromJson(jsonResponse.body);
}