CmdID / aws / aws codebuild
aws codebuild list-shared-projects
Gets a list of projects that are shared with other Amazon Web Services accounts or users. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To list the shared project in AWS CodeBuild.
The following list-shared-projects example lists the CodeBuild shared projects that are available to the current account.
aws codebuild list-shared-projectsIdentifyIts output
{
"projects": [
"arn:aws:codebuild:<region-ID>:<account-ID>:project/<shared-project-name-1>",
"arn:aws:codebuild:<region-ID>:<account-ID>:project/<shared-project-name-2>"
]
}For more information, see Working with shared projects in the AWS CodeBuild User Guide.
Options
--max-resultsThe maximum number of paginated shared build projects returned per response.--next-tokenDuring a previous call, the maximum number of items that can be returned is the value specified in maxResults.--sort-byThe criterion to be used to list build projects shared with the current Amazon Web Services account or user.--sort-orderThe order in which to list shared build projects.