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.
Idaws.quicksight.themes

Fields

NameDatatypeDescription
arnstring

The Amazon Resource Name (ARN) of the theme.

aws_account_idstring
base_theme_idstring
configurationobject

The theme configuration. This configuration contains all of the display properties for
a theme.

created_timestring

The date and time that the theme was created.

last_updated_timestring

The date and time that the theme was last updated.

namestring
permissionsarray
tagsarray
theme_idstring
typestring
versionobject

A version of a theme.

version_descriptionstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAwsAccountId, ThemeId, BaseThemeId, Configuration, Name, region
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,
arn,
aws_account_id,
base_theme_id,
configuration,
created_time,
last_updated_time,
name,
permissions,
tags,
theme_id,
type,
version,
version_description
FROM aws.quicksight.themes
WHERE region = 'us-east-1';

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 aws.quicksight.themes
WHERE region = 'us-east-1' AND data__Identifier = '<ThemeId>|<AwsAccountId>';

INSERT example

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

/*+ create */
INSERT INTO aws.quicksight.themes (
AwsAccountId,
BaseThemeId,
Configuration,
Name,
ThemeId,
region
)
SELECT
'{{ AwsAccountId }}',
'{{ BaseThemeId }}',
'{{ Configuration }}',
'{{ Name }}',
'{{ ThemeId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.quicksight.themes
WHERE data__Identifier = '<ThemeId|AwsAccountId>'
AND region = 'us-east-1';

Permissions

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

Read

quicksight:DescribeTheme,
quicksight:DescribeThemePermissions,
quicksight:ListTagsForResource

Create

quicksight:DescribeTheme,
quicksight:DescribeThemePermissions,
quicksight:CreateTheme,
quicksight:TagResource,
quicksight:UntagResource,
quicksight:ListTagsForResource

List

quicksight:ListThemes

Update

quicksight:DescribeTheme,
quicksight:DescribeThemePermissions,
quicksight:UpdateTheme,
quicksight:UpdateThemePermissions,
quicksight:TagResource,
quicksight:UntagResource,
quicksight:ListTagsForResource

Delete

quicksight:DescribeTheme,
quicksight:DeleteTheme