accept_fork_pull_request_deployment
async
¶
accept_fork_pull_request_deployment(
app_name: AppName,
environment_name: EnvironmentName,
commit_sha: CommitSha,
*,
config_overrides: Optional[AsyncAmplifyGen3ClientConfig] = None,
pull_request_number: Optional[PullRequestNumber] = None,
) -> AcceptForkPullRequestDeploymentResponse
Accepts a deployment for a specific commit from a forked-repository pull request. Each commit must be accepted before it can be deployed to a preview environment.
Parameters:
-
app_name(AppName) –The name of the app.
-
environment_name(EnvironmentName) –The name of the environment.
-
commit_sha(CommitSha) –The full commit SHA in the forked-repository pull request to accept.
-
pull_request_number(Optional[PullRequestNumber], default:None) –The number of the forked-repository pull request.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServerException–An internal error occurred. Retry the request.
-
ResourceNotFoundException–The requested resource was not found.
-
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/async_amplify_gen3.py
2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 | |