CfnThemePropsMixin

class aws_cdk.mixins_preview.aws_amplifyuibuilder.mixins.CfnThemePropsMixin(props, *, strategy=None)

Bases: Mixin

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-theme.html

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:

IConstruct

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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

ThemeValueProperty

class CfnThemePropsMixin.ThemeValueProperty(*, children=None, value=None)

Bases: object

The ThemeValue property 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-theme-themevalue.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-theme-themevalue.html#cfn-amplifyuibuilder-theme-themevalue-children

value

The value of a theme property.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-theme-themevalue.html#cfn-amplifyuibuilder-theme-themevalue-value

ThemeValuesProperty

class CfnThemePropsMixin.ThemeValuesProperty(*, key=None, value=None)

Bases: object

The ThemeValues property 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-theme-themevalues.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-theme-themevalues.html#cfn-amplifyuibuilder-theme-themevalues-key

value

The value of the property.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-theme-themevalues.html#cfn-amplifyuibuilder-theme-themevalues-value