We recommend new projects start with resources from the AWS provider.
aws-native.amplify.getBranch
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
The AWS::Amplify::Branch resource creates a new branch within an app.
Using getBranch
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBranch(args: GetBranchArgs, opts?: InvokeOptions): Promise<GetBranchResult>
function getBranchOutput(args: GetBranchOutputArgs, opts?: InvokeOptions): Output<GetBranchResult>def get_branch(arn: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetBranchResult
def get_branch_output(arn: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetBranchResult]func LookupBranch(ctx *Context, args *LookupBranchArgs, opts ...InvokeOption) (*LookupBranchResult, error)
func LookupBranchOutput(ctx *Context, args *LookupBranchOutputArgs, opts ...InvokeOption) LookupBranchResultOutput> Note: This function is named LookupBranch in the Go SDK.
public static class GetBranch 
{
    public static Task<GetBranchResult> InvokeAsync(GetBranchArgs args, InvokeOptions? opts = null)
    public static Output<GetBranchResult> Invoke(GetBranchInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBranchResult> getBranch(GetBranchArgs args, InvokeOptions options)
public static Output<GetBranchResult> getBranch(GetBranchArgs args, InvokeOptions options)
fn::invoke:
  function: aws-native:amplify:getBranch
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Arn string
- ARN for a branch, part of an Amplify App.
- Arn string
- ARN for a branch, part of an Amplify App.
- arn String
- ARN for a branch, part of an Amplify App.
- arn string
- ARN for a branch, part of an Amplify App.
- arn str
- ARN for a branch, part of an Amplify App.
- arn String
- ARN for a branch, part of an Amplify App.
getBranch Result
The following output properties are available:
- Arn string
- ARN for a branch, part of an Amplify App.
- Backend
Pulumi.Aws Native. Amplify. Outputs. Branch Backend 
- The backend for a - Branchof an Amplify app. Use for a backend created from an AWS 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. 
- BuildSpec string
- The build specification (build spec) for the branch.
- Description string
- The description for the branch that is part of an Amplify app.
- EnableAuto boolBuild 
- Enables auto building for the branch.
- EnablePerformance boolMode 
- 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. 
- EnablePull boolRequest Preview 
- Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. If this property is enabled, Amplify deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. - To provide backend support for your preview, Amplify automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the - PullRequestEnvironmentNameproperty.- For more information, see Web Previews in the AWS Amplify Hosting User Guide . 
- EnvironmentVariables List<Pulumi.Aws Native. Amplify. Outputs. Branch Environment Variable> 
- The environment variables for the branch.
- Framework string
- The framework for the branch.
- PullRequest stringEnvironment Name 
- If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. For example, you could specify an environment named - prod,- test, or- devthat you initialized with the Amplify CLI and mapped to this branch.- To enable pull request previews, set the - EnablePullRequestPreviewproperty to- true.- If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Hosting deletes this environment when the pull request is closed. - For more information about creating backend environments, see Feature Branch Deployments and Team Workflows in the AWS Amplify Hosting User Guide . 
- Stage
Pulumi.Aws Native. Amplify. Branch Stage 
- Describes the current stage for the branch.
- 
List<Pulumi.Aws Native. Outputs. Tag> 
- The tag for the branch.
- Arn string
- ARN for a branch, part of an Amplify App.
- Backend
BranchBackend 
- The backend for a - Branchof an Amplify app. Use for a backend created from an AWS 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. 
- BuildSpec string
- The build specification (build spec) for the branch.
- Description string
- The description for the branch that is part of an Amplify app.
- EnableAuto boolBuild 
- Enables auto building for the branch.
- EnablePerformance boolMode 
- 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. 
- EnablePull boolRequest Preview 
- Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. If this property is enabled, Amplify deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. - To provide backend support for your preview, Amplify automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the - PullRequestEnvironmentNameproperty.- For more information, see Web Previews in the AWS Amplify Hosting User Guide . 
- EnvironmentVariables []BranchEnvironment Variable 
- The environment variables for the branch.
- Framework string
- The framework for the branch.
- PullRequest stringEnvironment Name 
- If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. For example, you could specify an environment named - prod,- test, or- devthat you initialized with the Amplify CLI and mapped to this branch.- To enable pull request previews, set the - EnablePullRequestPreviewproperty to- true.- If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Hosting deletes this environment when the pull request is closed. - For more information about creating backend environments, see Feature Branch Deployments and Team Workflows in the AWS Amplify Hosting User Guide . 
- Stage
BranchStage 
- Describes the current stage for the branch.
- Tag
- The tag for the branch.
- arn String
- ARN for a branch, part of an Amplify App.
- backend
BranchBackend 
- The backend for a - Branchof an Amplify app. Use for a backend created from an AWS 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. 
- buildSpec String
- The build specification (build spec) for the branch.
- description String
- The description for the branch that is part of an Amplify app.
- enableAuto BooleanBuild 
- Enables auto building for the branch.
- enablePerformance BooleanMode 
- 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. 
- enablePull BooleanRequest Preview 
- Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. If this property is enabled, Amplify deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. - To provide backend support for your preview, Amplify automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the - PullRequestEnvironmentNameproperty.- For more information, see Web Previews in the AWS Amplify Hosting User Guide . 
- environmentVariables List<BranchEnvironment Variable> 
- The environment variables for the branch.
- framework String
- The framework for the branch.
- pullRequest StringEnvironment Name 
- If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. For example, you could specify an environment named - prod,- test, or- devthat you initialized with the Amplify CLI and mapped to this branch.- To enable pull request previews, set the - EnablePullRequestPreviewproperty to- true.- If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Hosting deletes this environment when the pull request is closed. - For more information about creating backend environments, see Feature Branch Deployments and Team Workflows in the AWS Amplify Hosting User Guide . 
- stage
BranchStage 
- Describes the current stage for the branch.
- List<Tag>
- The tag for the branch.
- arn string
- ARN for a branch, part of an Amplify App.
- backend
BranchBackend 
- The backend for a - Branchof an Amplify app. Use for a backend created from an AWS 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. 
- buildSpec string
- The build specification (build spec) for the branch.
- description string
- The description for the branch that is part of an Amplify app.
- enableAuto booleanBuild 
- Enables auto building for the branch.
- enablePerformance booleanMode 
- 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. 
- enablePull booleanRequest Preview 
- Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. If this property is enabled, Amplify deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. - To provide backend support for your preview, Amplify automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the - PullRequestEnvironmentNameproperty.- For more information, see Web Previews in the AWS Amplify Hosting User Guide . 
- environmentVariables BranchEnvironment Variable[] 
- The environment variables for the branch.
- framework string
- The framework for the branch.
- pullRequest stringEnvironment Name 
- If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. For example, you could specify an environment named - prod,- test, or- devthat you initialized with the Amplify CLI and mapped to this branch.- To enable pull request previews, set the - EnablePullRequestPreviewproperty to- true.- If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Hosting deletes this environment when the pull request is closed. - For more information about creating backend environments, see Feature Branch Deployments and Team Workflows in the AWS Amplify Hosting User Guide . 
- stage
BranchStage 
- Describes the current stage for the branch.
- Tag[]
- The tag for the branch.
- arn str
- ARN for a branch, part of an Amplify App.
- backend
BranchBackend 
- The backend for a - Branchof an Amplify app. Use for a backend created from an AWS 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. 
- build_spec str
- The build specification (build spec) for the branch.
- description str
- The description for the branch that is part of an Amplify app.
- enable_auto_ boolbuild 
- Enables auto building for the branch.
- enable_performance_ boolmode 
- 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_ boolrequest_ preview 
- Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. If this property is enabled, Amplify deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. - To provide backend support for your preview, Amplify automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the - PullRequestEnvironmentNameproperty.- For more information, see Web Previews in the AWS Amplify Hosting User Guide . 
- environment_variables Sequence[BranchEnvironment Variable] 
- The environment variables for the branch.
- framework str
- The framework for the branch.
- pull_request_ strenvironment_ name 
- If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. For example, you could specify an environment named - prod,- test, or- devthat you initialized with the Amplify CLI and mapped to this branch.- To enable pull request previews, set the - EnablePullRequestPreviewproperty to- true.- If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Hosting deletes this environment when the pull request is closed. - For more information about creating backend environments, see Feature Branch Deployments and Team Workflows in the AWS Amplify Hosting User Guide . 
- stage
BranchStage 
- Describes the current stage for the branch.
- Sequence[root_Tag]
- The tag for the branch.
- arn String
- ARN for a branch, part of an Amplify App.
- backend Property Map
- The backend for a - Branchof an Amplify app. Use for a backend created from an AWS 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. 
- buildSpec String
- The build specification (build spec) for the branch.
- description String
- The description for the branch that is part of an Amplify app.
- enableAuto BooleanBuild 
- Enables auto building for the branch.
- enablePerformance BooleanMode 
- 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. 
- enablePull BooleanRequest Preview 
- Specifies whether Amplify Hosting creates a preview for each pull request that is made for this branch. If this property is enabled, Amplify deploys your app to a unique preview URL after each pull request is opened. Development and QA teams can use this preview to test the pull request before it's merged into a production or integration branch. - To provide backend support for your preview, Amplify automatically provisions a temporary backend environment that it deletes when the pull request is closed. If you want to specify a dedicated backend environment for your previews, use the - PullRequestEnvironmentNameproperty.- For more information, see Web Previews in the AWS Amplify Hosting User Guide . 
- environmentVariables List<Property Map>
- The environment variables for the branch.
- framework String
- The framework for the branch.
- pullRequest StringEnvironment Name 
- If pull request previews are enabled for this branch, you can use this property to specify a dedicated backend environment for your previews. For example, you could specify an environment named - prod,- test, or- devthat you initialized with the Amplify CLI and mapped to this branch.- To enable pull request previews, set the - EnablePullRequestPreviewproperty to- true.- If you don't specify an environment, Amplify Hosting provides backend support for each preview by automatically provisioning a temporary backend environment. Amplify Hosting deletes this environment when the pull request is closed. - For more information about creating backend environments, see Feature Branch Deployments and Team Workflows in the AWS Amplify Hosting User Guide . 
- stage "EXPERIMENTAL" | "BETA" | "PULL_REQUEST" | "PRODUCTION" | "DEVELOPMENT"
- Describes the current stage for the branch.
- List<Property Map>
- The tag for the branch.
Supporting Types
BranchBackend 
- StackArn string
- The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
- StackArn string
- The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
- stackArn String
- The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
- stackArn string
- The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
- stack_arn str
- The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
- stackArn String
- The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
BranchEnvironmentVariable  
BranchStage 
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.