CfnThemePropsMixin
- class aws_cdk.mixins_preview.aws_amplifyuibuilder.mixins.CfnThemePropsMixin(props, *, strategy=None)
Bases:
MixinThe 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.
- See:
- CloudformationResource:
AWS::AmplifyUIBuilder::Theme
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # theme_values_property_: amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValuesProperty cfn_theme_props_mixin = amplifyuibuilder_mixins.CfnThemePropsMixin(amplifyuibuilder_mixins.CfnThemeMixinProps( app_id="appId", environment_name="environmentName", name="name", overrides=[amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValuesProperty( key="key", value=amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValueProperty( children=[theme_values_property_], value="value" ) )], tags={ "tags_key": "tags" }, values=[amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValuesProperty( key="key", value=amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValueProperty( children=[theme_values_property_], value="value" ) )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::AmplifyUIBuilder::Theme.- Parameters:
props (
Union[CfnThemeMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['appId', 'environmentName', 'name', 'overrides', 'tags', 'values']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ThemeValueProperty
- class CfnThemePropsMixin.ThemeValueProperty(*, children=None, value=None)
Bases:
objectThe
ThemeValueproperty specifies the configuration of a theme’s properties.- Parameters:
children (
Union[IResolvable,Sequence[Union[IResolvable,ThemeValuesProperty,Dict[str,Any]]],None]) – A list of key-value pairs that define the theme’s properties.value (
Optional[str]) – The value of a theme property.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # theme_value_property_: amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValueProperty theme_value_property = amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValueProperty( children=[amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValuesProperty( key="key", value=theme_value_property_ )], value="value" )
Attributes
- children
A list of key-value pairs that define the theme’s properties.
- value
The value of a theme property.
ThemeValuesProperty
- class CfnThemePropsMixin.ThemeValuesProperty(*, key=None, value=None)
Bases:
objectThe
ThemeValuesproperty specifies key-value pair that defines a property of a theme.- Parameters:
key (
Optional[str]) – The name of the property.value (
Union[IResolvable,ThemeValueProperty,Dict[str,Any],None]) – The value of the property.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_amplifyuibuilder import mixins as amplifyuibuilder_mixins # theme_values_property_: amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValuesProperty theme_values_property = amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValuesProperty( key="key", value=amplifyuibuilder_mixins.CfnThemePropsMixin.ThemeValueProperty( children=[theme_values_property_], value="value" ) )
Attributes
- key
The name of the property.