batchGetCommandExecutions method

Future<BatchGetCommandExecutionsOutput> batchGetCommandExecutions({
  1. required List<String> commandExecutionIds,
  2. required String sandboxId,
})

Gets information about the command executions.

May throw InvalidInputException.

Parameter commandExecutionIds : A comma separated list of commandExecutionIds.

Parameter sandboxId : A sandboxId or sandboxArn.

Implementation

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

  return BatchGetCommandExecutionsOutput.fromJson(jsonResponse.body);
}