@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.056Z") @Stability(value=Stable) public class CfnTheme extends CfnResource implements IInspectable
The AWS::AmplifyUIBuilder::Theme resource specifies a theme within an Amplify app. A theme is a collection of style settings that apply globally to the components associated with the app.
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.amplifyuibuilder.*;
ThemeValuesProperty themeValuesProperty_;
CfnTheme cfnTheme = CfnTheme.Builder.create(this, "MyCfnTheme")
.name("name")
.values(List.of(ThemeValuesProperty.builder()
.key("key")
.value(ThemeValueProperty.builder()
.children(List.of(themeValuesProperty_))
.value("value")
.build())
.build()))
// the properties below are optional
.overrides(List.of(ThemeValuesProperty.builder()
.key("key")
.value(ThemeValueProperty.builder()
.children(List.of(themeValuesProperty_))
.value("value")
.build())
.build()))
.tags(Map.of(
"tagsKey", "tags"))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnTheme.Builder
A fluent builder for
CfnTheme. |
static interface |
CfnTheme.ThemeValueProperty
The `ThemeValue` property specifies the configuration of a theme's properties.
|
static interface |
CfnTheme.ThemeValuesProperty
The `ThemeValues` property specifies key-value pair that defines a property of a theme.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnTheme(software.constructs.Construct scope,
String id,
CfnThemeProps props)
Create a new `AWS::AmplifyUIBuilder::Theme`.
|
protected |
CfnTheme(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnTheme(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrAppId()
The unique ID for the Amplify app associated with the theme.
|
String |
getAttrCreatedAt()
The time that the theme was created.
|
String |
getAttrEnvironmentName()
The name of the backend environment that is a part of the Amplify app.
|
String |
getAttrId()
The ID for the theme.
|
String |
getAttrModifiedAt()
The time that the theme was modified.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getName()
The name of the theme.
|
Object |
getOverrides()
Describes the properties that can be overriden to customize a theme.
|
TagManager |
getTags()
One or more key-value pairs to use when tagging the theme.
|
Object |
getValues()
A list of key-value pairs that defines the properties of the theme.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setName(String value)
The name of the theme.
|
void |
setOverrides(IResolvable value)
Describes the properties that can be overriden to customize a theme.
|
void |
setOverrides(List<Object> value)
Describes the properties that can be overriden to customize a theme.
|
void |
setValues(IResolvable value)
A list of key-value pairs that defines the properties of the theme.
|
void |
setValues(List<Object> value)
A list of key-value pairs that defines the properties of the theme.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnTheme(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnTheme(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnTheme(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnThemeProps props)
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrAppId()
@Stability(value=Stable) @NotNull public String getAttrCreatedAt()
@Stability(value=Stable) @NotNull public String getAttrEnvironmentName()
@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull public String getAttrModifiedAt()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getValues()
@Stability(value=Stable)
public void setValues(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setValues(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public Object getOverrides()
@Stability(value=Stable)
public void setOverrides(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.