Skip to content

Branch

Source code in docs_src/capo_amplify/types/branch.py
class Branch(TypedDict, closed=True):
    branch_arn: "capo_amplify.types.branch_arn.BranchArn"
    """<p> The Amazon Resource Name (ARN) for a branch that is part of an Amplify app. </p>"""
    branch_name: "capo_amplify.types.branch_name.BranchName"
    """<p> The name for the branch that is part of an Amplify app. </p>"""
    description: "capo_amplify.types.description.Description"
    """<p> The description for the branch that is part of an Amplify app. </p>"""
    tags: NotRequired["capo_amplify.types.tag_map.TagMap"]
    """<p> The tag for the branch of an Amplify app. </p>"""
    stage: "capo_amplify.types.stage.Stage"
    """<p> The current stage for the branch that is part of an Amplify app. </p>"""
    display_name: "capo_amplify.types.display_name.DisplayName"
    """<p> The display name for the branch. This is used as the default domain prefix. </p>"""
    enable_notification: "capo_amplify.types.enable_notification.EnableNotification"
    """<p> Enables notifications for a branch that is part of an Amplify app. </p>"""
    create_time: "capo_amplify.types.create_time.CreateTime"
    """<p>A timestamp of when Amplify created the branch.</p>"""
    update_time: "capo_amplify.types.update_time.UpdateTime"
    """<p>A timestamp for the last updated time for a branch.</p>"""
    environment_variables: (
        "capo_amplify.types.environment_variables.EnvironmentVariables"
    )
    """<p> The environment variables specific to a branch of an Amplify app. </p>"""
    enable_auto_build: "capo_amplify.types.enable_auto_build.EnableAutoBuild"
    """<p> Enables auto-building on push for a branch of an Amplify app. </p>"""
    enable_skew_protection: NotRequired[
        "capo_amplify.types.enable_skew_protection.EnableSkewProtection"
    ]
    """<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>"""
    custom_domains: "capo_amplify.types.custom_domains.CustomDomains"
    """<p> The custom domains for a branch of an Amplify app. </p>"""
    framework: "capo_amplify.types.framework.Framework"
    """<p> The framework for a branch of an Amplify app. </p>"""
    active_job_id: "capo_amplify.types.active_job_id.ActiveJobId"
    """<p> The ID of the active job for a branch of an Amplify app. </p>"""
    total_number_of_jobs: "capo_amplify.types.total_number_of_jobs.TotalNumberOfJobs"
    """<p> The total number of jobs that are part of an Amplify app. </p>"""
    enable_basic_auth: "capo_amplify.types.enable_basic_auth.EnableBasicAuth"
    """<p> Enables basic authorization for a branch of an Amplify app. </p>"""
    enable_performance_mode: NotRequired[
        "capo_amplify.types.enable_performance_mode.EnablePerformanceMode"
    ]
    """<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>"""
    thumbnail_url: NotRequired["capo_amplify.types.thumbnail_url.ThumbnailUrl"]
    """<p> The thumbnail URL for the branch of an Amplify app. </p>"""
    basic_auth_credentials: NotRequired[
        "capo_amplify.types.basic_auth_credentials.BasicAuthCredentials"
    ]
    """<p> The basic authorization credentials for a branch of an Amplify app. You must base64-encode the authorization credentials and provide them in the format <code>user:password</code>.</p>"""
    build_spec: NotRequired["capo_amplify.types.build_spec.BuildSpec"]
    """<p> The build specification (build spec) content for the branch of an Amplify app. </p>"""
    ttl: "capo_amplify.types.ttl.TTL"
    """<p> The content Time to Live (TTL) for the website in seconds. </p>"""
    associated_resources: NotRequired[
        "capo_amplify.types.associated_resources.AssociatedResources"
    ]
    """<p> A list of custom resources that are linked to this branch. </p>"""
    enable_pull_request_preview: (
        "capo_amplify.types.enable_pull_request_preview.EnablePullRequestPreview"
    )
    """<p> Enables pull request previews for the branch. </p>"""
    pull_request_environment_name: NotRequired[
        "capo_amplify.types.pull_request_environment_name.PullRequestEnvironmentName"
    ]
    """<p> The Amplify environment name for the pull request. </p>"""
    destination_branch: NotRequired["capo_amplify.types.branch_name.BranchName"]
    """<p> The destination branch if the branch is a pull request branch. </p>"""
    source_branch: NotRequired["capo_amplify.types.branch_name.BranchName"]
    """<p> The source branch if the branch is a pull request branch. </p>"""
    backend_environment_arn: NotRequired[
        "capo_amplify.types.backend_environment_arn.BackendEnvironmentArn"
    ]
    """<p> The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app. </p> <p>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.</p>"""
    backend: NotRequired["capo_amplify.types.backend.Backend"]
    compute_role_arn: NotRequired["capo_amplify.types.compute_role_arn.ComputeRoleArn"]
    """<p>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 <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>"""

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 instance-attribute

backend: NotRequired[Backend]

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.

framework instance-attribute

framework: Framework

The framework for 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.

tags instance-attribute

tags: NotRequired[TagMap]

The tag for the branch 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.

ttl instance-attribute

ttl: TTL

The content Time to Live (TTL) for the website in seconds.

update_time instance-attribute

update_time: UpdateTime

A timestamp for the last updated time for a branch.