-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(codebuild): Add API to list projects (#635)
Add a new API to get all projects for specific account and region. This API iterates over all pages and aggregates the results. The number of projects per region per account is at most 5000. Each page contains 100 results, so at most 50 calls will be made to fetch all projects. I was thinking about returning the nextToken to caller and let caller do pagination. However, I found out that none of list* APIs igor provides supports pagination. Therefore I decide to follow the pattern to return all results in one batch. It should be fine since the number of projects is less than 100 in most cases. Co-authored-by: Clare Liguori <[email protected]>
- Loading branch information
1 parent
1cc618e
commit 7970171
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters