Class CfnTheme
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.quicksight.CfnTheme
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IThemeRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:28.304Z")
@Stability(Stable)
public class CfnTheme
extends CfnResource
implements IInspectable, IThemeRef, ITaggable
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 Quick Suite in the Amazon Quick Suite 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")
.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")
.themeId("themeId")
// the properties below are optional
.permissions(List.of(ResourcePermissionProperty.builder()
.actions(List.of("actions"))
.principal("principal")
// the properties below are optional
.resource("resource")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.versionDescription("versionDescription")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe display options for tile borders for visuals.static final classA fluent builder forCfnTheme.static interfaceThe theme colors that are used for data colors in charts.static interfaceDetermines the font settings.static interfaceThe display options for gutter spacing between tiles on a sheet.static interfaceThe display options for margins around the outside edge of sheets.static interfacePermission for the resource.static interfaceThe theme display options for sheets.static interfaceThe theme configuration.static interfaceTheme error.static interfaceA version of a theme.static interfaceThe display options for the layout of tiles on a sheet.static interfaceDisplay options related to tiles on a sheet.static interfaceDetermines the typography options.static interfaceThe theme colors that apply to UI and to charts, excluding data colors.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.quicksight.IThemeRef
IThemeRef.Jsii$Default, IThemeRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTheme(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTheme(software.amazon.jsii.JsiiObjectRef objRef) CfnTheme(software.constructs.Construct scope, String id, CfnThemeProps props) Create a newAWS::QuickSight::Theme. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTheme(IThemeRef resource) The Amazon Resource Name (ARN) of the theme.The time the theme was created.The time the theme was last updated.Theme type.A version of a theme.The ID of the AWS account where you want to store the new theme.The ID of the theme that a custom theme will inherit from.The theme configuration, which contains the theme display properties.getName()A display name for the theme.A valid grouping of resource permissions to apply to the new theme.getTags()Tag Manager which manages the tags for this resource.A map of the key-value pairs for the resource tag or tags that you want to add to the resource.An ID for the theme that you want to create.A reference to a Theme resource.A description of the first version of the theme that you're creating.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAwsAccountId(String value) The ID of the AWS account where you want to store the new theme.voidsetBaseThemeId(String value) The ID of the theme that a custom theme will inherit from.voidsetConfiguration(IResolvable value) The theme configuration, which contains the theme display properties.voidThe theme configuration, which contains the theme display properties.voidA display name for the theme.voidsetPermissions(List<Object> value) A valid grouping of resource permissions to apply to the new theme.voidsetPermissions(IResolvable value) A valid grouping of resource permissions to apply to the new theme.voidsetTagsRaw(List<CfnTag> value) A map of the key-value pairs for the resource tag or tags that you want to add to the resource.voidsetThemeId(String value) An ID for the theme that you want to create.voidsetVersionDescription(String value) A description of the first version of the theme that you're creating.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnThemeProps props) Create a newAWS::QuickSight::Theme.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForTheme
- Parameters:
resource- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the theme. -
getAttrCreatedTime
The time the theme was created. -
getAttrLastUpdatedTime
The time the theme was last updated. -
getAttrType
Theme type. -
getAttrVersion
A version of a theme.
. -
getAttrVersionArn
-
getAttrVersionBaseThemeId
-
getAttrVersionConfiguration
-
getAttrVersionConfigurationDataColorPalette
-
getAttrVersionConfigurationSheet
-
getAttrVersionConfigurationTypography
-
getAttrVersionConfigurationUiColorPalette
-
getAttrVersionCreatedTime
-
getAttrVersionDescription
-
getAttrVersionErrors
-
getAttrVersionStatus
-
getAttrVersionVersionNumber
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getThemeRef
A reference to a Theme resource.- Specified by:
getThemeRefin interfaceIThemeRef
-
getAwsAccountId
The ID of the AWS account where you want to store the new theme. -
setAwsAccountId
The ID of the AWS account where you want to store the new theme. -
getBaseThemeId
The ID of the theme that a custom theme will inherit from. -
setBaseThemeId
The ID of the theme that a custom theme will inherit from. -
getConfiguration
The theme configuration, which contains the theme display properties.Returns union: either
IResolvableorCfnTheme.ThemeConfigurationProperty -
setConfiguration
The theme configuration, which contains the theme display properties. -
setConfiguration
The theme configuration, which contains the theme display properties. -
getName
A display name for the theme. -
setName
A display name for the theme. -
getThemeId
An ID for the theme that you want to create. -
setThemeId
An ID for the theme that you want to create. -
getPermissions
A valid grouping of resource permissions to apply to the new theme.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTheme.ResourcePermissionProperty> -
setPermissions
A valid grouping of resource permissions to apply to the new theme. -
setPermissions
A valid grouping of resource permissions to apply to the new theme. -
getTagsRaw
A map of the key-value pairs for the resource tag or tags that you want to add to the resource. -
setTagsRaw
A map of the key-value pairs for the resource tag or tags that you want to add to the resource. -
getVersionDescription
A description of the first version of the theme that you're creating. -
setVersionDescription
A description of the first version of the theme that you're creating.
-