# EntityReference

A reference to a Entity resource.

- Source: Generated at build time
- Type last changed: v2.224.0 · 13 Nov 2025

## 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 interfaces_iottwinmaker } from 'aws-cdk-lib/interfaces';
const entityReference: interfaces_iottwinmaker.EntityReference = {
  entityArn: 'entityArn',
  entityId: 'entityId',
  workspaceId: 'workspaceId',
};
```

Python:

```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:

```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();
```

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.Interfaces.IoTTwinMaker;

var entityReference = new EntityReference {
    EntityArn = "entityArn",
    EntityId = "entityId",
    WorkspaceId = "workspaceId"
};
```

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"

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

## Properties

- `entityArn`: string (required) — The ARN of the Entity resource.

- `entityId`: string (required) — The EntityId of the Entity resource.

- `workspaceId`: string (required) — The WorkspaceId of the Entity resource.
