Skip to content

aws.amplify.get_branch

Example SQL Queries

SELECT * FROM
aws.amplify.get_branch
WHERE
"app_id" = 'VALUE'
AND "branch_name" = 'VALUE';

Description

Returns a branch for an Amplify app.

Table Definition

Column NameColumn Data Type
app_id Required Input Column

The unique ID for an Amplify app.

VARCHAR
branch_name Required Input Column

The name of the branch.

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
branch

The branch for an Amplify app, which maps to a third-party repository branch.

STRUCT(
"branch_arn" VARCHAR,
"branch_name" VARCHAR,
"description" VARCHAR,
"tags" MAP(VARCHAR, VARCHAR),
"stage" VARCHAR,
"display_name" VARCHAR,
"enable_notification" BOOLEAN,
"create_time" TIMESTAMP_S,
"update_time" TIMESTAMP_S,
"environment_variables" MAP(VARCHAR, VARCHAR),
"enable_auto_build" BOOLEAN,
"custom_domains" VARCHAR[],
"framework" VARCHAR,
"active_job_id" VARCHAR,
"total_number_of_jobs" VARCHAR,
"enable_basic_auth" BOOLEAN,
"enable_performance_mode" BOOLEAN,
"thumbnail_url" VARCHAR,
"basic_auth_credentials" VARCHAR,
"build_spec" VARCHAR,
"ttl" VARCHAR,
"associated_resources" VARCHAR[],
"enable_pull_request_preview" BOOLEAN,
"pull_request_environment_name" VARCHAR,
"destination_branch" VARCHAR,
"source_branch" VARCHAR,
"backend_environment_arn" VARCHAR,
"backend" STRUCT(
"stack_arn" VARCHAR
)
)
Show child fields
branch.active_job_id

The ID of the active job for a branch of an Amplify app.

branch.associated_resources[]
branch.backend

Describes the backend associated with an Amplify Branch.

This property 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.

Show child fields
branch.backend.stack_arn

The Amazon Resource Name (ARN) for the CloudFormation stack.

branch.backend_environment_arn

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.

branch.basic_auth_credentials

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.branch_arn

The Amazon Resource Name (ARN) for a branch that is part of an Amplify app.

branch.branch_name

The name for the branch that is part of an Amplify app.

branch.build_spec

The build specification (build spec) content for the branch of an Amplify app.

branch.create_time

The creation date and time for a branch that is part of an Amplify app.

branch.custom_domains[]
branch.description

The description for the branch that is part of an Amplify app.

branch.destination_branch

The destination branch if the branch is a pull request branch.

branch.display_name

The display name for the branch. This is used as the default domain prefix.

branch.enable_auto_build

Enables auto-building on push for a branch of an Amplify app.

branch.enable_basic_auth

Enables basic authorization for a branch of an Amplify app.

branch.enable_notification

Enables notifications for a branch that is part of an Amplify app.

branch.enable_performance_mode

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.

branch.enable_pull_request_preview

Enables pull request previews for the branch.

branch.environment_variables

The environment variables specific to a branch of an Amplify app.

branch.framework

The framework for a branch of an Amplify app.

branch.pull_request_environment_name

The Amplify environment name for the pull request.

branch.source_branch

The source branch if the branch is a pull request branch.

branch.stage

The current stage for the branch that is part of an Amplify app.

branch.tags

The tag for the branch of an Amplify app.

branch.thumbnail_url

The thumbnail URL for the branch of an Amplify app.

branch.total_number_of_jobs

The total number of jobs that are part of an Amplify app.

branch.ttl

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

branch.update_time

The last updated date and time for a branch that is part of an Amplify app.