UpdateBranchRequest
¶
Source code in docs_src/capo_amplify/types/update_branch_request.py
backend
instance-attribute
¶
backend: NotRequired[Backend]
The backend for a Branch of an Amplify app. Use for a backend created from an CloudFormation stack.
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.
backend_environment_arn
instance-attribute
¶
backend_environment_arn: NotRequired[BackendEnvironmentArn]
The Amazon Resource Name (ARN) for a backend environment that is part of a Gen 1 Amplify app.
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).
basic_auth_credentials
instance-attribute
¶
basic_auth_credentials: NotRequired[BasicAuthCredentials]
The basic authorization credentials for the branch. You must base64-encode the authorization credentials and provide them in the format user:password.
build_spec
instance-attribute
¶
build_spec: NotRequired[BuildSpec]
The build specification (build spec) for the branch.
compute_role_arn
instance-attribute
¶
compute_role_arn: NotRequired[ComputeRoleArn]
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 Adding an SSR Compute role in the Amplify User Guide.
description
instance-attribute
¶
description: NotRequired[Description]
The description for the branch.
display_name
instance-attribute
¶
display_name: NotRequired[DisplayName]
The display name for a branch. This is used as the default domain prefix.
enable_auto_build
instance-attribute
¶
enable_auto_build: NotRequired[EnableAutoBuild]
Enables auto building for the branch.
enable_basic_auth
instance-attribute
¶
enable_basic_auth: NotRequired[EnableBasicAuth]
Enables basic authorization for the branch.
enable_notification
instance-attribute
¶
enable_notification: NotRequired[EnableNotification]
Enables notifications for the branch.
enable_performance_mode
instance-attribute
¶
enable_performance_mode: NotRequired[EnablePerformanceMode]
Enables performance mode for the branch.
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.
enable_pull_request_preview
instance-attribute
¶
enable_pull_request_preview: NotRequired[EnablePullRequestPreview]
Enables pull request previews for this branch.
enable_skew_protection
instance-attribute
¶
enable_skew_protection: NotRequired[EnableSkewProtection]
Specifies whether the skew protection feature is enabled for the branch.
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 Skew protection for Amplify deployments in the Amplify User Guide.
environment_variables
instance-attribute
¶
environment_variables: NotRequired[EnvironmentVariables]
The environment variables for the branch.
pull_request_environment_name
instance-attribute
¶
pull_request_environment_name: NotRequired[PullRequestEnvironmentName]
The Amplify environment name for the pull request.