CfnThemeProps

class aws_cdk.aws_quicksight.CfnThemeProps(*, aws_account_id, base_theme_id, configuration, name, theme_id, permissions=None, tags=None, version_description=None)

Bases: object

Properties for defining a CfnTheme.

Parameters:
  • aws_account_id (str) – The ID of the AWS account where you want to store the new theme.

  • base_theme_id (str) – The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes defined by Amazon QuickSight. For a list of the starting themes, use ListThemes or choose Themes from within an analysis.

  • configuration (Union[IResolvable, ThemeConfigurationProperty, Dict[str, Any]]) – The theme configuration, which contains the theme display properties.

  • name (str) – A display name for the theme.

  • theme_id (str) – An ID for the theme that you want to create. The theme ID is unique per AWS Region in each AWS account.

  • permissions (Union[IResolvable, Sequence[Union[IResolvable, ResourcePermissionProperty, Dict[str, Any]]], None]) – A valid grouping of resource permissions to apply to the new theme.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – A map of the key-value pairs for the resource tag or tags that you want to add to the resource.

  • version_description (Optional[str]) – A description of the first version of the theme that you’re creating. Every time UpdateTheme is called, a new version is created. Each version of the theme has a description of the version in the VersionDescription field.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-theme.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

cfn_theme_props = quicksight.CfnThemeProps(
    aws_account_id="awsAccountId",
    base_theme_id="baseThemeId",
    configuration=quicksight.CfnTheme.ThemeConfigurationProperty(
        data_color_palette=quicksight.CfnTheme.DataColorPaletteProperty(
            colors=["colors"],
            empty_fill_color="emptyFillColor",
            min_max_gradient=["minMaxGradient"]
        ),
        sheet=quicksight.CfnTheme.SheetStyleProperty(
            tile=quicksight.CfnTheme.TileStyleProperty(
                border=quicksight.CfnTheme.BorderStyleProperty(
                    show=False
                )
            ),
            tile_layout=quicksight.CfnTheme.TileLayoutStyleProperty(
                gutter=quicksight.CfnTheme.GutterStyleProperty(
                    show=False
                ),
                margin=quicksight.CfnTheme.MarginStyleProperty(
                    show=False
                )
            )
        ),
        typography=quicksight.CfnTheme.TypographyProperty(
            font_families=[quicksight.CfnTheme.FontProperty(
                font_family="fontFamily"
            )]
        ),
        ui_color_palette=quicksight.CfnTheme.UIColorPaletteProperty(
            accent="accent",
            accent_foreground="accentForeground",
            danger="danger",
            danger_foreground="dangerForeground",
            dimension="dimension",
            dimension_foreground="dimensionForeground",
            measure="measure",
            measure_foreground="measureForeground",
            primary_background="primaryBackground",
            primary_foreground="primaryForeground",
            secondary_background="secondaryBackground",
            secondary_foreground="secondaryForeground",
            success="success",
            success_foreground="successForeground",
            warning="warning",
            warning_foreground="warningForeground"
        )
    ),
    name="name",
    theme_id="themeId",

    # the properties below are optional
    permissions=[quicksight.CfnTheme.ResourcePermissionProperty(
        actions=["actions"],
        principal="principal",

        # the properties below are optional
        resource="resource"
    )],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    version_description="versionDescription"
)

Attributes

aws_account_id

The ID of the AWS account where you want to store the new theme.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-theme.html#cfn-quicksight-theme-awsaccountid

base_theme_id

The ID of the theme that a custom theme will inherit from.

All themes inherit from one of the starting themes defined by Amazon QuickSight. For a list of the starting themes, use ListThemes or choose Themes from within an analysis.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-theme.html#cfn-quicksight-theme-basethemeid

configuration

The theme configuration, which contains the theme display properties.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-theme.html#cfn-quicksight-theme-configuration

name

A display name for the theme.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-theme.html#cfn-quicksight-theme-name

permissions

A valid grouping of resource permissions to apply to the new theme.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-theme.html#cfn-quicksight-theme-permissions

tags

A map of the key-value pairs for the resource tag or tags that you want to add to the resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-theme.html#cfn-quicksight-theme-tags

theme_id

An ID for the theme that you want to create.

The theme ID is unique per AWS Region in each AWS account.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-theme.html#cfn-quicksight-theme-themeid

version_description

A description of the first version of the theme that you’re creating.

Every time UpdateTheme is called, a new version is created. Each version of the theme has a description of the version in the VersionDescription field.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-quicksight-theme.html#cfn-quicksight-theme-versiondescription