batchGetProjects method

Future<BatchGetProjectsOutput> batchGetProjects({
  1. required List<String> names,
})

Gets information about one or more build projects.

May throw InvalidInputException.

Parameter names : The names or ARNs of the build projects. To get information about a project shared with your AWS account, its ARN must be specified. You cannot specify a shared project using its name.

Implementation

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

  return BatchGetProjectsOutput.fromJson(jsonResponse.body);
}