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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:amplify:getBranch
arguments:
# arguments dictionary
The 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
Branch
of 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 string - The build specification (build spec) for the branch.
- Description string
- 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
PullRequestEnvironmentName
property.For more information, see Web Previews in the AWS Amplify Hosting User Guide .
- Environment
Variables List<Pulumi.Aws Native. Amplify. Outputs. Branch Environment Variable> - The environment variables for the branch.
- Framework string
- The framework for the branch.
- Pull
Request 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
, ordev
that you initialized with the Amplify CLI and mapped to this branch.To enable pull request previews, set the
EnablePullRequestPreview
property totrue
.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
Branch
Backend The backend for a
Branch
of 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 string - The build specification (build spec) for the branch.
- Description string
- 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
PullRequestEnvironmentName
property.For more information, see Web Previews in the AWS Amplify Hosting User Guide .
- Environment
Variables []BranchEnvironment Variable - The environment variables for the branch.
- Framework string
- The framework for the branch.
- Pull
Request 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
, ordev
that you initialized with the Amplify CLI and mapped to this branch.To enable pull request previews, set the
EnablePullRequestPreview
property totrue
.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
Branch
Stage - 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
Branch
Backend The backend for a
Branch
of 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 String - The build specification (build spec) for the branch.
- description String
- The description for the branch that is part of an Amplify app.
- enable
Auto BooleanBuild - Enables auto building for the branch.
- enable
Performance 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.
- enable
Pull 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
PullRequestEnvironmentName
property.For more information, see Web Previews in the AWS Amplify Hosting User Guide .
- environment
Variables List<BranchEnvironment Variable> - The environment variables for the branch.
- framework String
- The framework for the branch.
- pull
Request 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
, ordev
that you initialized with the Amplify CLI and mapped to this branch.To enable pull request previews, set the
EnablePullRequestPreview
property totrue
.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
Branch
Stage - 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
Branch
Backend The backend for a
Branch
of 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 string - The build specification (build spec) for the branch.
- description string
- The description for the branch that is part of an Amplify app.
- enable
Auto booleanBuild - Enables auto building for the branch.
- enable
Performance 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.
- enable
Pull 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
PullRequestEnvironmentName
property.For more information, see Web Previews in the AWS Amplify Hosting User Guide .
- environment
Variables BranchEnvironment Variable[] - The environment variables for the branch.
- framework string
- The framework for the branch.
- pull
Request 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
, ordev
that you initialized with the Amplify CLI and mapped to this branch.To enable pull request previews, set the
EnablePullRequestPreview
property totrue
.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
Branch
Stage - 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
Branch
Backend The backend for a
Branch
of 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
PullRequestEnvironmentName
property.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
, ordev
that you initialized with the Amplify CLI and mapped to this branch.To enable pull request previews, set the
EnablePullRequestPreview
property totrue
.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
Branch
Stage - 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
Branch
of 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 String - The build specification (build spec) for the branch.
- description String
- The description for the branch that is part of an Amplify app.
- enable
Auto BooleanBuild - Enables auto building for the branch.
- enable
Performance 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.
- enable
Pull 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
PullRequestEnvironmentName
property.For more information, see Web Previews in the AWS Amplify Hosting User Guide .
- environment
Variables List<Property Map> - The environment variables for the branch.
- framework String
- The framework for the branch.
- pull
Request 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
, ordev
that you initialized with the Amplify CLI and mapped to this branch.To enable pull request previews, set the
EnablePullRequestPreview
property totrue
.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
- Stack
Arn string - The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
- Stack
Arn string - The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
- stack
Arn String - The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
- stack
Arn string - The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
- stack_
arn str - The Amazon Resource Name (ARN) for the AWS CloudFormation stack.
- stack
Arn 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.