list_git_branches
¶
list_git_branches(
provider: GitProvider,
owner: GitOwnerName,
repository_path: GitRepositoryPath,
*,
config_overrides: Optional[AmplifyGen3ClientConfig] = None,
repository_name: Optional[GitRepositoryName] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListGitBranchesResponse
Lists the branches of a repository. The AWS Management Console uses this operation to show the branches that you can choose from when you create an app.
Parameters:
-
provider(GitProvider) –The Git provider.
-
owner(GitOwnerName) –The account that the Git connection is for. The value depends on the provider:
-
For GitHub, specify the user or organization name.
-
For GitLab, specify the user name.
To get this value, call ListGitConnections.
-
-
repository_name(Optional[GitRepositoryName], default:None) –The name of the repository, which is the last segment of RepositoryPath.
-
repository_path(GitRepositoryPath) –The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in a single response.
-
next_token(Optional[NextToken], default:None) –The pagination token returned in a previous response, used to retrieve the next page of results.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
GitConnectionDisconnectedException–The Git connection doesn't exist, or the Git provider no longer accepts its access. For example, the app was uninstalled or access was revoked. Reconnect the Git provider account, and then try again.
-
InternalServerException–An internal error occurred. Retry the request.
-
ThrottlingException–The request was denied because the request rate exceeds the allowed limit.
-
ValidationException–The request contains invalid parameters or is otherwise malformed.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_amplifygen3/_services/amplify_gen3.py
1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 | |