java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:34.763Z") @Stability(Stable) public class CfnTheme extends CfnResource implements IInspectable
A CloudFormation AWS::QuickSight::Theme.

Creates a theme.

A theme is set of configuration options for color and layout. Themes apply to analyses and dashboards. For more information, see Using Themes in Amazon QuickSight in the Amazon QuickSight User Guide .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.quicksight.*;
 CfnTheme cfnTheme = CfnTheme.Builder.create(this, "MyCfnTheme")
         .awsAccountId("awsAccountId")
         .themeId("themeId")
         // the properties below are optional
         .baseThemeId("baseThemeId")
         .configuration(ThemeConfigurationProperty.builder()
                 .dataColorPalette(DataColorPaletteProperty.builder()
                         .colors(List.of("colors"))
                         .emptyFillColor("emptyFillColor")
                         .minMaxGradient(List.of("minMaxGradient"))
                         .build())
                 .sheet(SheetStyleProperty.builder()
                         .tile(TileStyleProperty.builder()
                                 .border(BorderStyleProperty.builder()
                                         .show(false)
                                         .build())
                                 .build())
                         .tileLayout(TileLayoutStyleProperty.builder()
                                 .gutter(GutterStyleProperty.builder()
                                         .show(false)
                                         .build())
                                 .margin(MarginStyleProperty.builder()
                                         .show(false)
                                         .build())
                                 .build())
                         .build())
                 .typography(TypographyProperty.builder()
                         .fontFamilies(List.of(FontProperty.builder()
                                 .fontFamily("fontFamily")
                                 .build()))
                         .build())
                 .uiColorPalette(UIColorPaletteProperty.builder()
                         .accent("accent")
                         .accentForeground("accentForeground")
                         .danger("danger")
                         .dangerForeground("dangerForeground")
                         .dimension("dimension")
                         .dimensionForeground("dimensionForeground")
                         .measure("measure")
                         .measureForeground("measureForeground")
                         .primaryBackground("primaryBackground")
                         .primaryForeground("primaryForeground")
                         .secondaryBackground("secondaryBackground")
                         .secondaryForeground("secondaryForeground")
                         .success("success")
                         .successForeground("successForeground")
                         .warning("warning")
                         .warningForeground("warningForeground")
                         .build())
                 .build())
         .name("name")
         .permissions(List.of(ResourcePermissionProperty.builder()
                 .actions(List.of("actions"))
                 .principal("principal")
                 .build()))
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .versionDescription("versionDescription")
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnTheme

      protected CfnTheme(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnTheme

      protected CfnTheme(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnTheme

      @Stability(Stable) public CfnTheme(@NotNull Construct scope, @NotNull String id, @NotNull CfnThemeProps props)
      Create a new AWS::QuickSight::Theme.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the theme.
    • getAttrCreatedTime

      @Stability(Stable) @NotNull public String getAttrCreatedTime()
      The time the theme was created.
    • getAttrLastUpdatedTime

      @Stability(Stable) @NotNull public String getAttrLastUpdatedTime()
      The time the theme was last updated.
    • getAttrType

      @Stability(Stable) @NotNull public String getAttrType()
      Theme type.
    • getAttrVersionArn

      @Stability(Stable) @NotNull public String getAttrVersionArn()
    • getAttrVersionBaseThemeId

      @Stability(Stable) @NotNull public String getAttrVersionBaseThemeId()
    • getAttrVersionCreatedTime

      @Stability(Stable) @NotNull public String getAttrVersionCreatedTime()
    • getAttrVersionDescription

      @Stability(Stable) @NotNull public String getAttrVersionDescription()
    • getAttrVersionErrors

      @Stability(Stable) @NotNull public IResolvable getAttrVersionErrors()
    • getAttrVersionStatus

      @Stability(Stable) @NotNull public String getAttrVersionStatus()
    • getAttrVersionVersionNumber

      @Stability(Stable) @NotNull public IResolvable getAttrVersionVersionNumber()
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      A map of the key-value pairs for the resource tag or tags that you want to add to the resource.
    • getAwsAccountId

      @Stability(Stable) @NotNull public String getAwsAccountId()
      The ID of the AWS account where you want to store the new theme.
    • setAwsAccountId

      @Stability(Stable) public void setAwsAccountId(@NotNull String value)
      The ID of the AWS account where you want to store the new theme.
    • getThemeId

      @Stability(Stable) @NotNull public String getThemeId()
      An ID for the theme that you want to create.

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

    • setThemeId

      @Stability(Stable) public void setThemeId(@NotNull String value)
      An ID for the theme that you want to create.

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

    • getBaseThemeId

      @Stability(Stable) @Nullable public String getBaseThemeId()
      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.

    • setBaseThemeId

      @Stability(Stable) public void setBaseThemeId(@Nullable String value)
      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.

    • getConfiguration

      @Stability(Stable) @Nullable public Object getConfiguration()
      The theme configuration, which contains the theme display properties.
    • setConfiguration

      @Stability(Stable) public void setConfiguration(@Nullable IResolvable value)
      The theme configuration, which contains the theme display properties.
    • setConfiguration

      @Stability(Stable) public void setConfiguration(@Nullable CfnTheme.ThemeConfigurationProperty value)
      The theme configuration, which contains the theme display properties.
    • getName

      @Stability(Stable) @Nullable public String getName()
      A display name for the theme.
    • setName

      @Stability(Stable) public void setName(@Nullable String value)
      A display name for the theme.
    • getPermissions

      @Stability(Stable) @Nullable public Object getPermissions()
      A valid grouping of resource permissions to apply to the new theme.
    • setPermissions

      @Stability(Stable) public void setPermissions(@Nullable IResolvable value)
      A valid grouping of resource permissions to apply to the new theme.
    • setPermissions

      @Stability(Stable) public void setPermissions(@Nullable List<Object> value)
      A valid grouping of resource permissions to apply to the new theme.
    • getVersionDescription

      @Stability(Stable) @Nullable public String getVersionDescription()
      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.

    • setVersionDescription

      @Stability(Stable) public void setVersionDescription(@Nullable String value)
      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.