aws_sdk_amplify/client/
update_branch.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateBranch`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`app_id(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_app_id):<br>required: **true**<br><p>The unique ID for an Amplify app.</p><br>
7    ///   - [`branch_name(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::branch_name) / [`set_branch_name(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_branch_name):<br>required: **true**<br><p>The name of the branch.</p><br>
8    ///   - [`description(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_description):<br>required: **false**<br><p>The description for the branch.</p><br>
9    ///   - [`framework(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::framework) / [`set_framework(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_framework):<br>required: **false**<br><p>The framework for the branch.</p><br>
10    ///   - [`stage(Stage)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::stage) / [`set_stage(Option<Stage>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_stage):<br>required: **false**<br><p>Describes the current stage for the branch.</p><br>
11    ///   - [`enable_notification(bool)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::enable_notification) / [`set_enable_notification(Option<bool>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_enable_notification):<br>required: **false**<br><p>Enables notifications for the branch.</p><br>
12    ///   - [`enable_auto_build(bool)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::enable_auto_build) / [`set_enable_auto_build(Option<bool>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_enable_auto_build):<br>required: **false**<br><p>Enables auto building for the branch.</p><br>
13    ///   - [`enable_skew_protection(bool)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::enable_skew_protection) / [`set_enable_skew_protection(Option<bool>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_enable_skew_protection):<br>required: **false**<br><p>Specifies whether the skew protection feature is enabled for the branch.</p> <p>Deployment skew protection is available to Amplify applications to eliminate version skew issues between client and servers in web applications. When you apply skew protection to a branch, you can ensure that your clients always interact with the correct version of server-side assets, regardless of when a deployment occurs. For more information about skew protection, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/skew-protection.html">Skew protection for Amplify deployments</a> in the <i>Amplify User Guide</i>.</p><br>
14    ///   - [`environment_variables(impl Into<String>, impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::environment_variables) / [`set_environment_variables(Option<HashMap::<String, String>>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_environment_variables):<br>required: **false**<br><p>The environment variables for the branch.</p><br>
15    ///   - [`basic_auth_credentials(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::basic_auth_credentials) / [`set_basic_auth_credentials(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_basic_auth_credentials):<br>required: **false**<br><p>The basic authorization credentials for the branch. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p><br>
16    ///   - [`enable_basic_auth(bool)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::enable_basic_auth) / [`set_enable_basic_auth(Option<bool>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_enable_basic_auth):<br>required: **false**<br><p>Enables basic authorization for the branch.</p><br>
17    ///   - [`enable_performance_mode(bool)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::enable_performance_mode) / [`set_enable_performance_mode(Option<bool>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_enable_performance_mode):<br>required: **false**<br><p>Enables performance mode for the branch.</p> <p>Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.</p><br>
18    ///   - [`build_spec(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::build_spec) / [`set_build_spec(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_build_spec):<br>required: **false**<br><p>The build specification (build spec) for the branch.</p><br>
19    ///   - [`ttl(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::ttl) / [`set_ttl(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_ttl):<br>required: **false**<br><p>The content Time to Live (TTL) for the website in seconds.</p><br>
20    ///   - [`display_name(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::display_name) / [`set_display_name(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_display_name):<br>required: **false**<br><p>The display name for a branch. This is used as the default domain prefix.</p><br>
21    ///   - [`enable_pull_request_preview(bool)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::enable_pull_request_preview) / [`set_enable_pull_request_preview(Option<bool>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_enable_pull_request_preview):<br>required: **false**<br><p>Enables pull request previews for this branch.</p><br>
22    ///   - [`pull_request_environment_name(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::pull_request_environment_name) / [`set_pull_request_environment_name(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_pull_request_environment_name):<br>required: **false**<br><p>The Amplify environment name for the pull request.</p><br>
23    ///   - [`backend_environment_arn(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::backend_environment_arn) / [`set_backend_environment_arn(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_backend_environment_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify app.</p> <p>This field is available to Amplify Gen 1 apps only where the backend is created using Amplify Studio or the Amplify command line interface (CLI).</p><br>
24    ///   - [`backend(Backend)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::backend) / [`set_backend(Option<Backend>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_backend):<br>required: **false**<br><p>The backend for a <code>Branch</code> of an Amplify app. Use for a backend created from an CloudFormation stack.</p> <p>This field is available to Amplify Gen 2 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.</p><br>
25    ///   - [`compute_role_arn(impl Into<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::compute_role_arn) / [`set_compute_role_arn(Option<String>)`](crate::operation::update_branch::builders::UpdateBranchFluentBuilder::set_compute_role_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the IAM role to assign to a branch of an SSR app. The SSR Compute role allows the Amplify Hosting compute service to securely access specific Amazon Web Services resources based on the role's permissions. For more information about the SSR Compute role, see <a href="https://docs.aws.amazon.com/amplify/latest/userguide/amplify-SSR-compute-role.html">Adding an SSR Compute role</a> in the <i>Amplify User Guide</i>.</p><br>
26    /// - On success, responds with [`UpdateBranchOutput`](crate::operation::update_branch::UpdateBranchOutput) with field(s):
27    ///   - [`branch(Option<Branch>)`](crate::operation::update_branch::UpdateBranchOutput::branch): <p>The branch for an Amplify app, which maps to a third-party repository branch.</p>
28    /// - On failure, responds with [`SdkError<UpdateBranchError>`](crate::operation::update_branch::UpdateBranchError)
29    pub fn update_branch(&self) -> crate::operation::update_branch::builders::UpdateBranchFluentBuilder {
30        crate::operation::update_branch::builders::UpdateBranchFluentBuilder::new(self.handle.clone())
31    }
32}