# CfnComponentProps

Properties for defining a `CfnComponent`.

Used as props by: [CfnComponent](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.html)

- Source: Generated at build time
- Type last changed: v2.127.0 · 10 Feb 2024

## Example

TypeScript:

```ts
// The generated example for this type would exceed 500 lines,
// and has been elided for readability.
```

Python:

```python

```

Java:

```java

```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib

```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2

```

## Properties

- `appId`: string — The unique ID of the Amplify app associated with the component.

- `bindingProperties`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponent.ComponentBindingPropertiesValueProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.ComponentBindingPropertiesValueProperty.html) } — The information to connect a component's properties to data at runtime.

  You can't specify `tags` as a valid property for `bindingProperties` .

- `children`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponent.ComponentChildProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.ComponentChildProperty.html)[] — A list of the component's `ComponentChild` instances.

- `collectionProperties`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponent.ComponentDataConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.ComponentDataConfigurationProperty.html) } — The data binding configuration for the component's properties.

  Use this for a collection component. You can't specify `tags` as a valid property for `collectionProperties` .

- `componentType`: string — The type of the component.

  This can be an Amplify custom UI component or another custom component.

- `environmentName`: string — The name of the backend environment that is a part of the Amplify app.

- `events`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponent.ComponentEventProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.ComponentEventProperty.html) } — Describes the events that can be raised on the component.

  Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.

- `name`: string — The name of the component.

- `overrides`: any — Describes the component's properties that can be overriden in a customized instance of the component.

  You can't specify `tags` as a valid property for `overrides` .

- `properties`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponent.ComponentPropertyProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.ComponentPropertyProperty.html) } — Describes the component's properties.

  You can't specify `tags` as a valid property for `properties` .

- `schemaVersion`: string — The schema version of the component when it was imported.

- `sourceId`: string — The unique ID of the component in its original source system, such as Figma.

- `tags`: { [key: string]: string } — One or more key-value pairs to use when tagging the component.

- `variants`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponent.ComponentVariantProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.ComponentVariantProperty.html)[] — A list of the component's variants.

  A variant is a unique style configuration of a main component.
