# ComponentProperty

The entity component.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iottwinmaker as iottwinmaker } from 'aws-cdk-lib';

declare const dataValueProperty_: iottwinmaker.CfnEntity.DataValueProperty;
declare const definition: any;
declare const error: any;
declare const relationshipValue: any;
const componentProperty: iottwinmaker.CfnEntity.ComponentProperty = {
  componentName: 'componentName',
  componentTypeId: 'componentTypeId',
  definedIn: 'definedIn',
  description: 'description',
  properties: {
    propertiesKey: {
      definition: definition,
      value: {
        booleanValue: false,
        doubleValue: 123,
        expression: 'expression',
        integerValue: 123,
        listValue: [dataValueProperty_],
        longValue: 123,
        mapValue: {
          mapValueKey: dataValueProperty_,
        },
        relationshipValue: relationshipValue,
        stringValue: 'stringValue',
      },
    },
  },
  propertyGroups: {
    propertyGroupsKey: {
      groupType: 'groupType',
      propertyNames: ['propertyNames'],
    },
  },
  status: {
    error: error,
    state: 'state',
  },
};
```

## Properties

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

- `componentTypeId`: string — The ID of the component type.

- `definedIn`: string — The name of the property definition set in the request.

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

- `properties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEntity.PropertyProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnEntity.PropertyProperty.html) } — An object that maps strings to the properties to set in the component type.

  Each string in the mapping must be unique to this object.

- `propertyGroups`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEntity.PropertyGroupProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnEntity.PropertyGroupProperty.html) } — An object that maps strings to the property groups in the component type.

  Each string in the mapping must be unique to this object.

- `status`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnEntity.StatusProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_iottwinmaker.CfnEntity.StatusProperty.html) — The status of the component.
