Skip to content
v2.278.0

RelationshipProperty Struct ​

An object that specifies a relationship with another component type.

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';
const relationshipProperty: iottwinmaker.CfnComponentType.RelationshipProperty = {
  relationshipType: 'relationshipType',
  targetComponentTypeId: 'targetComponentTypeId',
};
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
// 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();
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"
};
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 ​

relationshipTypeoptionalstringrelationship_typeoptionalstrrelationshipTypeoptionalStringRelationshipTypeoptionalstringRelationshipTypeoptional*string #
The type of the relationship.
targetComponentTypeIdoptionalstringtarget_component_type_idoptionalstrtargetComponentTypeIdoptionalStringTargetComponentTypeIdoptionalstringTargetComponentTypeIdoptional*string #
The ID of the target component type associated with this relationship.