ComponentVariantProperty Struct
The ComponentVariant property specifies the style configuration of a unique variation of a main component.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplifyuibuilder as amplifyuibuilder } from 'aws-cdk-lib';
declare const overrides: any;
const componentVariantProperty: amplifyuibuilder.CfnComponent.ComponentVariantProperty = {
overrides: overrides,
variantValues: {
variantValuesKey: 'variantValues',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_amplifyuibuilder as amplifyuibuilder
# overrides: Any
component_variant_property = amplifyuibuilder.CfnComponent.ComponentVariantProperty(
overrides=overrides,
variant_values={
"variant_values_key": "variantValues"
}
)
java
// 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.*;
Object overrides;
ComponentVariantProperty componentVariantProperty = ComponentVariantProperty.builder()
.overrides(overrides)
.variantValues(Map.of(
"variantValuesKey", "variantValues"))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AmplifyUIBuilder;
var overrides;
var componentVariantProperty = new ComponentVariantProperty {
Overrides = overrides,
VariantValues = new Dictionary<string, string> {
{ "variantValuesKey", "variantValues" }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
var overrides interface{}
componentVariantProperty := &ComponentVariantProperty{
Overrides: overrides,
VariantValues: map[string]*string{
"variantValuesKey": jsii.String("variantValues"),
},
}
Properties
overridesoptionalanyoverridesoptionalAnyoverridesoptionalObjectOverridesoptionalobjectOverridesoptionalinterface{} #The properties of the component variant that can be overriden when customizing an instance of the component.
You can't specify tags as a valid property for overrides .
variantValuesoptionalIResolvable | { [key: string]: string }variant_valuesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]variantValuesoptionalIResolvableVariantValuesoptionalIResolvableVariantValuesoptionalinterface{} #The combination of variants that comprise this variant.