aws-sdk-amplifygen3 1.0.0

AWS SDK for AWS Amplify Gen 3
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`AcceptForkPullRequestDeployment`](crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`app_name(impl Into<String>)`](crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder::app_name) / [`set_app_name(Option<String>)`](crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder::set_app_name):<br>required: **true**<br><p>The name of the app.</p><br>
    ///   - [`environment_name(impl Into<String>)`](crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder::environment_name) / [`set_environment_name(Option<String>)`](crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder::set_environment_name):<br>required: **true**<br><p>The name of the environment.</p><br>
    ///   - [`commit_sha(impl Into<String>)`](crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder::commit_sha) / [`set_commit_sha(Option<String>)`](crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder::set_commit_sha):<br>required: **true**<br><p>The full commit SHA in the forked-repository pull request to accept.</p><br>
    ///   - [`pull_request_number(impl Into<String>)`](crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder::pull_request_number) / [`set_pull_request_number(Option<String>)`](crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder::set_pull_request_number):<br>required: **false**<br><p>The number of the forked-repository pull request.</p><br>
    /// - On success, responds with [`AcceptForkPullRequestDeploymentOutput`](crate::operation::accept_fork_pull_request_deployment::AcceptForkPullRequestDeploymentOutput) with field(s):
    ///   - [`outcome(ForkPullRequestAcceptanceOutcome)`](crate::operation::accept_fork_pull_request_deployment::AcceptForkPullRequestDeploymentOutput::outcome): <p>The outcome of the request. Indicates whether the commit was newly accepted or had already been accepted.</p>
    /// - On failure, responds with [`SdkError<AcceptForkPullRequestDeploymentError>`](crate::operation::accept_fork_pull_request_deployment::AcceptForkPullRequestDeploymentError)
    pub fn accept_fork_pull_request_deployment(
        &self,
    ) -> crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder {
        crate::operation::accept_fork_pull_request_deployment::builders::AcceptForkPullRequestDeploymentFluentBuilder::new(self.handle.clone())
    }
}