Skip to content

CreateBranchRequest

Source code in docs_src/capo_amplify/types/create_branch_request.py
class CreateBranchRequest(TypedDict, closed=True):
    app_id: "capo_amplify.types.app_id.AppId"
    """<p> The unique ID for an Amplify app. </p>"""
    branch_name: "capo_amplify.types.branch_name.BranchName"
    """<p>The name for the branch. </p>"""
    description: NotRequired["capo_amplify.types.description.Description"]
    """<p>The description for the branch. </p>"""
    stage: NotRequired["capo_amplify.types.stage.Stage"]
    """<p>Describes the current stage for the branch. </p>"""
    framework: NotRequired["capo_amplify.types.framework.Framework"]
    """<p> The framework for the branch. </p>"""
    enable_notification: NotRequired[
        "capo_amplify.types.enable_notification.EnableNotification"
    ]
    """<p> Enables notifications for the branch. </p>"""
    enable_auto_build: NotRequired[
        "capo_amplify.types.enable_auto_build.EnableAutoBuild"
    ]
    """<p> Enables auto building for the branch. </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>"""
    environment_variables: NotRequired[
        "capo_amplify.types.environment_variables.EnvironmentVariables"
    ]
    """<p> The environment variables for the branch. </p>"""
    basic_auth_credentials: NotRequired[
        "capo_amplify.types.basic_auth_credentials.BasicAuthCredentials"
    ]
    """<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>"""
    enable_basic_auth: NotRequired[
        "capo_amplify.types.enable_basic_auth.EnableBasicAuth"
    ]
    """<p> Enables basic authorization for the branch. </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>"""
    tags: NotRequired["capo_amplify.types.tag_map.TagMap"]
    """<p> The tag for the branch. </p>"""
    build_spec: NotRequired["capo_amplify.types.build_spec.BuildSpec"]
    """<p> The build specification (build spec) for the branch. </p>"""
    ttl: NotRequired["capo_amplify.types.ttl.TTL"]
    """<p> The content Time To Live (TTL) for the website in seconds. </p>"""
    display_name: NotRequired["capo_amplify.types.display_name.DisplayName"]
    """<p> The display name for a branch. This is used as the default domain prefix. </p>"""
    enable_pull_request_preview: NotRequired[
        "capo_amplify.types.enable_pull_request_preview.EnablePullRequestPreview"
    ]
    """<p> Enables pull request previews for this 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>"""
    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 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>"""
    backend: NotRequired["capo_amplify.types.backend.Backend"]
    """<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>"""
    compute_role_arn: NotRequired["capo_amplify.types.compute_role_arn.ComputeRoleArn"]
    """<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>"""

app_id instance-attribute

app_id: AppId

The unique ID for an Amplify app.

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.

branch_name instance-attribute

branch_name: BranchName

The name for the branch.

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.

framework instance-attribute

framework: NotRequired[Framework]

The framework for the branch.

pull_request_environment_name instance-attribute

pull_request_environment_name: NotRequired[PullRequestEnvironmentName]

The Amplify environment name for the pull request.

stage instance-attribute

stage: NotRequired[Stage]

Describes the current stage for the branch.

tags instance-attribute

tags: NotRequired[TagMap]

The tag for the branch.

ttl instance-attribute

ttl: NotRequired[TTL]

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