branch
Gets an individual branch
resource
Overview
Name | branch |
Type | Resource |
Description | branch |
Id | awscc.amplify.branch |
Fields
Name | Datatype | Description |
---|---|---|
app_id | string | |
arn | string | |
basic_auth_config | object | |
backend | object | |
branch_name | string | |
build_spec | string | |
description | string | |
enable_auto_build | boolean | |
enable_performance_mode | boolean | |
enable_pull_request_preview | boolean | |
environment_variables | array | |
framework | string | |
pull_request_environment_name | string | |
stage | string | |
tags | array | |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
app_id,
arn,
basic_auth_config,
backend,
branch_name,
build_spec,
description,
enable_auto_build,
enable_performance_mode,
enable_pull_request_preview,
environment_variables,
framework,
pull_request_environment_name,
stage,
tags
FROM awscc.amplify.branch
WHERE data__Identifier = '<Arn>';
Permissions
To operate on the branch
resource, the following permissions are required:
Delete
amplify:GetBranch,
amplify:DeleteBranch,
codecommit:GetRepository,
codecommit:GetRepositoryTriggers,
sns:Unsubscribe,
iam:PassRole
Read
amplify:GetBranch,
amplify:ListTagsForResource,
codecommit:GetRepository,
codecommit:GetRepositoryTriggers,
s3:GetObject,
s3:GetObjectAcl,
iam:PassRole
Update
amplify:GetBranch,
amplify:UpdateBranch,
amplify:ListTagsForResource,
amplify:TagResource,
amplify:UntagResource,
codecommit:GetRepository,
codecommit:PutRepositoryTriggers,
codecommit:GetRepositoryTriggers,
s3:GetObject,
s3:GetObjectAcl,
s3:PutObject,
s3:PutObjectAcl,
sns:CreateTopic,
sns:Subscribe,
sns:Unsubscribe,
iam:PassRole