Skip to main content

apps

Creates, updates, deletes or gets an app resource or lists apps in a region

Overview

Nameapps
TypeResource
DescriptionThe AWS::Amplify::App resource creates Apps in the Amplify Console. An App is a collection of branches.
Idawscc.amplify.apps

Fields

NameDatatypeDescription
access_tokenstring
app_idstring
app_namestring
arnstring
auto_branch_creation_configobject
basic_auth_configobject
build_specstring
cache_configobject
compute_role_arnstring
custom_headersstring
custom_rulesarray
default_domainstring
descriptionstring
enable_branch_auto_deletionboolean
environment_variablesarray
iam_service_rolestring
namestring
oauth_tokenstring
platformstring
repositorystring
tagsarray
job_configobject
regionstringAWS region.

For more information, see AWS::Amplify::App.

Methods

NameResourceAccessible byRequired Params
create_resourceappsINSERTName, region
delete_resourceappsDELETEIdentifier, region
update_resourceappsUPDATEIdentifier, PatchDocument, region
list_resourcesapps_list_onlySELECTregion
get_resourceappsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual app.

SELECT
region,
access_token,
app_id,
app_name,
arn,
auto_branch_creation_config,
basic_auth_config,
build_spec,
cache_config,
compute_role_arn,
custom_headers,
custom_rules,
default_domain,
description,
enable_branch_auto_deletion,
environment_variables,
iam_service_role,
name,
oauth_token,
platform,
repository,
tags,
job_config
FROM awscc.amplify.apps
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new app resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.amplify.apps (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a app resource, using stack-deploy.

/*+ update */
UPDATE awscc.amplify.apps
SET PatchDocument = string('{{ {
"AccessToken": access_token,
"AutoBranchCreationConfig": auto_branch_creation_config,
"BasicAuthConfig": basic_auth_config,
"BuildSpec": build_spec,
"CacheConfig": cache_config,
"ComputeRoleArn": compute_role_arn,
"CustomHeaders": custom_headers,
"CustomRules": custom_rules,
"Description": description,
"EnableBranchAutoDeletion": enable_branch_auto_deletion,
"EnvironmentVariables": environment_variables,
"IAMServiceRole": iam_service_role,
"Name": name,
"OauthToken": oauth_token,
"Platform": platform,
"Repository": repository,
"Tags": tags,
"JobConfig": job_config
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.amplify.apps
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

To operate on the apps resource, the following permissions are required:

amplify:GetApp,
amplify:CreateApp,
amplify:TagResource,
codecommit:GetRepository,
codecommit:PutRepositoryTriggers,
codecommit:GetRepositoryTriggers,
sns:CreateTopic,
sns:Subscribe,
iam:PassRole