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
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-01-25T00:21:02.261Z")
@Stability(Stable)
public class CfnTheme
extends CfnResource
implements IInspectable, 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 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") .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
Modifier and TypeClassDescriptionstatic interface
The display options for tile borders for visuals.static final class
A fluent builder forCfnTheme
.static interface
The theme colors that are used for data colors in charts.static interface
Determines the font settings.static interface
The display options for gutter spacing between tiles on a sheet.static interface
The display options for margins around the outside edge of sheets.static interface
Permission for the resource.static interface
The theme display options for sheets.static interface
The theme configuration.static interface
Theme error.static interface
A version of a theme.static interface
The display options for the layout of tiles on a sheet.static interface
Display options related to tiles on a sheet.static interface
Determines the typography options.static interface
The 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnTheme
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnTheme
(software.amazon.jsii.JsiiObjectRef objRef) CfnTheme
(software.constructs.Construct scope, String id, CfnThemeProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe 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 description of the first version of the theme that you're creating.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAwsAccountId
(String value) The ID of the AWS account where you want to store the new theme.void
setBaseThemeId
(String value) The ID of the theme that a custom theme will inherit from.void
setConfiguration
(IResolvable value) The theme configuration, which contains the theme display properties.void
The theme configuration, which contains the theme display properties.void
A display name for the theme.void
setPermissions
(List<Object> value) A valid grouping of resource permissions to apply to the new theme.void
setPermissions
(IResolvable value) A valid grouping of resource permissions to apply to the new theme.void
setTagsRaw
(List<CfnTag> value) A map of the key-value pairs for the resource tag or tags that you want to add to the resource.void
setThemeId
(String value) An ID for the theme that you want to create.void
setVersionDescription
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
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. -
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. -
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.
-