Skip to main content

themes

Creates, updates, deletes or gets a theme resource or lists themes in a region

Overview

Namethemes
TypeResource
DescriptionDefinition of AWS::AmplifyUIBuilder::Theme Resource Type
Idaws.amplifyuibuilder.themes

Fields

NameDatatypeDescription
app_idstring
created_atstring
environment_namestring
idstring
modified_atstring
namestring
overridesarray
tagsobject
valuesarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all themes in a region.

SELECT
region,
app_id,
created_at,
environment_name,
id,
modified_at,
name,
overrides,
tags,
values
FROM aws.amplifyuibuilder.themes
WHERE region = 'us-east-1';

Gets all properties from an individual theme.

SELECT
region,
app_id,
created_at,
environment_name,
id,
modified_at,
name,
overrides,
tags,
values
FROM aws.amplifyuibuilder.themes
WHERE region = 'us-east-1' AND data__Identifier = '<AppId>|<EnvironmentName>|<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.amplifyuibuilder.themes (
AppId,
EnvironmentName,
Name,
Overrides,
Tags,
Values,
region
)
SELECT
'{{ AppId }}',
'{{ EnvironmentName }}',
'{{ Name }}',
'{{ Overrides }}',
'{{ Tags }}',
'{{ Values }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.amplifyuibuilder.themes
WHERE data__Identifier = '<AppId|EnvironmentName|Id>'
AND region = 'us-east-1';

Permissions

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

Create

amplify:GetApp,
amplifyuibuilder:CreateTheme,
amplifyuibuilder:GetTheme,
amplifyuibuilder:TagResource

Read

amplify:GetApp,
amplifyuibuilder:GetTheme

Update

amplify:GetApp,
amplifyuibuilder:GetTheme,
amplifyuibuilder:TagResource,
amplifyuibuilder:UntagResource,
amplifyuibuilder:UpdateTheme

Delete

amplify:GetApp,
amplifyuibuilder:DeleteTheme,
amplifyuibuilder:UntagResource

List

amplify:GetApp,
amplifyuibuilder:ListThemes