Branch
¶
Source code in docs_src/capo_amplify/types/branch.py
active_job_id
instance-attribute
¶
active_job_id: ActiveJobId
The ID of the active job for a branch of an Amplify app.
associated_resources
instance-attribute
¶
associated_resources: NotRequired[AssociatedResources]
A list of custom resources that are linked to this branch.
backend_environment_arn
instance-attribute
¶
backend_environment_arn: NotRequired[BackendEnvironmentArn]
The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.
This property is available to Amplify Gen 1 apps only. When you deploy an application with Amplify Gen 2, you provision the app's backend infrastructure using Typescript code.
basic_auth_credentials
instance-attribute
¶
basic_auth_credentials: NotRequired[BasicAuthCredentials]
The basic authorization credentials for a branch of an Amplify app. You must base64-encode the authorization credentials and provide them in the format user:password.
branch_arn
instance-attribute
¶
branch_arn: BranchArn
The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.
branch_name
instance-attribute
¶
branch_name: BranchName
The name for the branch that is part of an Amplify app.
build_spec
instance-attribute
¶
build_spec: NotRequired[BuildSpec]
The build specification (build spec) content for the branch of an Amplify app.
compute_role_arn
instance-attribute
¶
compute_role_arn: NotRequired[ComputeRoleArn]
The Amazon Resource Name (ARN) of the IAM role for a branch of an SSR app. The 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.
create_time
instance-attribute
¶
create_time: CreateTime
A timestamp of when Amplify created the branch.
custom_domains
instance-attribute
¶
custom_domains: CustomDomains
The custom domains for a branch of an Amplify app.
description
instance-attribute
¶
description: Description
The description for the branch that is part of an Amplify app.
destination_branch
instance-attribute
¶
destination_branch: NotRequired[BranchName]
The destination branch if the branch is a pull request branch.
display_name
instance-attribute
¶
display_name: DisplayName
The display name for the branch. This is used as the default domain prefix.
enable_auto_build
instance-attribute
¶
enable_auto_build: EnableAutoBuild
Enables auto-building on push for a branch of an Amplify app.
enable_basic_auth
instance-attribute
¶
enable_basic_auth: EnableBasicAuth
Enables basic authorization for a branch of an Amplify app.
enable_notification
instance-attribute
¶
enable_notification: EnableNotification
Enables notifications for a branch that is part of an Amplify app.
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: EnablePullRequestPreview
Enables pull request previews for the 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: EnvironmentVariables
The environment variables specific to a branch of an Amplify app.
pull_request_environment_name
instance-attribute
¶
pull_request_environment_name: NotRequired[PullRequestEnvironmentName]
The Amplify environment name for the pull request.
source_branch
instance-attribute
¶
source_branch: NotRequired[BranchName]
The source branch if the branch is a pull request branch.
stage
instance-attribute
¶
stage: Stage
The current stage for the branch that is part of an Amplify app.
thumbnail_url
instance-attribute
¶
thumbnail_url: NotRequired[ThumbnailUrl]
The thumbnail URL for the branch of an Amplify app.
total_number_of_jobs
instance-attribute
¶
total_number_of_jobs: TotalNumberOfJobs
The total number of jobs that are part of an Amplify app.
update_time
instance-attribute
¶
update_time: UpdateTime
A timestamp for the last updated time for a branch.