AmplifyGen3 / Client / accept_fork_pull_request_deployment
accept_fork_pull_request_deployment¶
- AmplifyGen3.Client.accept_fork_pull_request_deployment(**kwargs)¶
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.
See also: AWS API Documentation
Request Syntax
response = client.accept_fork_pull_request_deployment( AppName='string', EnvironmentName='string', CommitSha='string', PullRequestNumber='string' )
- Parameters:
AppName (string) –
[REQUIRED]
The name of the app.
EnvironmentName (string) –
[REQUIRED]
The name of the environment.
CommitSha (string) –
[REQUIRED]
The full commit SHA in the forked-repository pull request to accept.
PullRequestNumber (string) – The number of the forked-repository pull request.
- Return type:
dict
- Returns:
Response Syntax
{ 'Outcome': 'ACCEPTED'|'ALREADY_ACCEPTED' }
Response Structure
(dict) –
Outcome (string) –
The outcome of the request. Indicates whether the commit was newly accepted or had already been accepted.
Exceptions
AmplifyGen3.Client.exceptions.ThrottlingExceptionAmplifyGen3.Client.exceptions.AccessDeniedExceptionAmplifyGen3.Client.exceptions.ResourceNotFoundExceptionAmplifyGen3.Client.exceptions.ValidationExceptionAmplifyGen3.Client.exceptions.InternalServerException