# ComponentVariantProperty

The `ComponentVariant` property specifies the style configuration of a unique variation of a main component.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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" }
    }
};
```

Golang:

```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

- `overrides`: any — 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` .

- `variantValues`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — The combination of variants that comprise this variant.
