Skip to content
v2.277.0

EntityReference Struct ​

A reference to a Entity resource.

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 interfaces_iottwinmaker } from 'aws-cdk-lib/interfaces';
const entityReference: interfaces_iottwinmaker.EntityReference = {
  entityArn: 'entityArn',
  entityId: 'entityId',
  workspaceId: 'workspaceId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_iottwinmaker as interfaces_iottwinmaker

entity_reference = interfaces_iottwinmaker.EntityReference(
    entity_arn="entityArn",
    entity_id="entityId",
    workspace_id="workspaceId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.iottwinmaker.*;

EntityReference entityReference = EntityReference.builder()
        .entityArn("entityArn")
        .entityId("entityId")
        .workspaceId("workspaceId")
        .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.Interfaces.IoTTwinMaker;

var entityReference = new EntityReference {
    EntityArn = "entityArn",
    EntityId = "entityId",
    WorkspaceId = "workspaceId"
};
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"

entityReference := &EntityReference{
	EntityArn: jsii.String("entityArn"),
	EntityId: jsii.String("entityId"),
	WorkspaceId: jsii.String("workspaceId"),
}

Properties ​

entityArnstringentity_arnstrentityArnStringEntityArnstringEntityArn*string required #
The ARN of the Entity resource.
entityIdstringentity_idstrentityIdStringEntityIdstringEntityId*string required #
The EntityId of the Entity resource.
workspaceIdstringworkspace_idstrworkspaceIdStringWorkspaceIdstringWorkspaceId*string required #
The WorkspaceId of the Entity resource.