in aws-codebuild-common/src/main/java/jetbrains/buildServer/aws/codebuild/CodeBuildUtil.java [110:123]
public static List<ProjectInfo> getProjects(@NotNull Map<String, String> params, @NotNull final Collection<String> names) {
return AWSCommonParams.withAWSClients(params, new AWSCommonParams.WithAWSClients<List<ProjectInfo>, RuntimeException>() {
@Nullable
@Override
public List<ProjectInfo> run(@NotNull AWSClients clients) throws RuntimeException {
return CollectionsUtil.convertCollection(clients.createCodeBuildClient().batchGetProjects(new BatchGetProjectsRequest().withNames(names)).getProjects(), new Converter<ProjectInfo, Project>() {
@Override
public ProjectInfo createFrom(@NotNull Project p) {
return new ProjectInfo(p.getName(), p.getSource().getType(), p.getSource().getLocation());
}
});
}
});
}