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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.amplify.apps
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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