# RelationshipProperty

An object that specifies a relationship with another component type.

- 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_iottwinmaker as iottwinmaker } from 'aws-cdk-lib';
const relationshipProperty: iottwinmaker.CfnComponentType.RelationshipProperty = {
  relationshipType: 'relationshipType',
  targetComponentTypeId: 'targetComponentTypeId',
};
```

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_iottwinmaker as iottwinmaker

relationship_property = iottwinmaker.CfnComponentType.RelationshipProperty(
    relationship_type="relationshipType",
    target_component_type_id="targetComponentTypeId"
)
```

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.iottwinmaker.*;

RelationshipProperty relationshipProperty = RelationshipProperty.builder()
        .relationshipType("relationshipType")
        .targetComponentTypeId("targetComponentTypeId")
        .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.IoTTwinMaker;

var relationshipProperty = new RelationshipProperty {
    RelationshipType = "relationshipType",
    TargetComponentTypeId = "targetComponentTypeId"
};
```

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"

relationshipProperty := &RelationshipProperty{
	RelationshipType: jsii.String("relationshipType"),
	TargetComponentTypeId: jsii.String("targetComponentTypeId"),
}
```

## Properties

- `relationshipType`: string — The type of the relationship.

- `targetComponentTypeId`: string — The ID of the target component type associated with this relationship.
