Skip to main content

themes

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

Overview

Namethemes
TypeResource
DescriptionDefinition of the AWS::QuickSight::Theme Resource Type.
Idawscc.quicksight.themes

Fields

NameDatatypeDescription
arnstring<p>The Amazon Resource Name (ARN) of the theme.</p>
aws_account_idstring
base_theme_idstring
configurationobject<p>The theme configuration. This configuration contains all of the display properties for<br />a theme.</p>
created_timestring<p>The date and time that the theme was created.</p>
last_updated_timestring<p>The date and time that the theme was last updated.</p>
namestring
permissionsarray
tagsarray
theme_idstring
typestring
versionobject<p>A version of a theme.</p>
version_descriptionstring
regionstringAWS region.

For more information, see AWS::QuickSight::Theme.

Methods

NameResourceAccessible byRequired Params
create_resourcethemesINSERTAwsAccountId, ThemeId, BaseThemeId, Configuration, Name, region
delete_resourcethemesDELETEIdentifier, region
update_resourcethemesUPDATEIdentifier, PatchDocument, region
list_resourcesthemes_list_onlySELECTregion
get_resourcethemesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual theme.

SELECT
region,
arn,
aws_account_id,
base_theme_id,
configuration,
created_time,
last_updated_time,
name,
permissions,
tags,
theme_id,
type,
version,
version_description
FROM awscc.quicksight.themes
WHERE
region = 'us-east-1' AND
Identifier = '{{ theme_id }}|{{ aws_account_id }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.quicksight.themes (
AwsAccountId,
BaseThemeId,
Configuration,
Name,
ThemeId,
region
)
SELECT
'{{ aws_account_id }}',
'{{ base_theme_id }}',
'{{ configuration }}',
'{{ name }}',
'{{ theme_id }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.quicksight.themes
SET PatchDocument = string('{{ {
"BaseThemeId": base_theme_id,
"Configuration": configuration,
"Name": name,
"Permissions": permissions,
"Tags": tags,
"VersionDescription": version_description
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ theme_id }}|{{ aws_account_id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.quicksight.themes
WHERE
Identifier = '{{ theme_id }}|{{ aws_account_id }}' AND
region = 'us-east-1';

Permissions

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

quicksight:DescribeTheme,
quicksight:DescribeThemePermissions,
quicksight:ListTagsForResource