Class CfnTheme
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
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();
-
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 interfaceExample: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 interfaceExample: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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
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.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()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.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.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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnThemeProps props) Create a newAWS::QuickSight::Theme.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
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. -
getAttrVersionArn
-
getAttrVersionBaseThemeId
-
getAttrVersionCreatedTime
-
getAttrVersionDescription
-
getAttrVersionErrors
-
getAttrVersionStatus
-
getAttrVersionVersionNumber
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
A map of the key-value pairs for the resource tag or tags that you want to add to the 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. -
getThemeId
An ID for the theme that you want to create.The theme ID is unique per AWS Region in each AWS account.
-
setThemeId
An ID for the theme that you want to create.The theme ID is unique per AWS Region in each AWS account.
-
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
ListThemesor choose Themes from within an analysis. -
setBaseThemeId
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
ListThemesor choose Themes from within an analysis. -
getConfiguration
The theme configuration, which contains the theme display properties. -
setConfiguration
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
A display name for the theme. -
setName
A display name for the theme. -
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. -
getVersionDescription
A description of the first version of the theme that you're creating.Every time
UpdateThemeis called, a new version is created. Each version of the theme has a description of the version in theVersionDescriptionfield. -
setVersionDescription
A description of the first version of the theme that you're creating.Every time
UpdateThemeis called, a new version is created. Each version of the theme has a description of the version in theVersionDescriptionfield.
-