# TaskDefinitionReference

A reference to a TaskDefinition 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_iotwireless as interfaces_iotwireless } from 'aws-cdk-lib/interfaces';
const taskDefinitionReference: interfaces_iotwireless.TaskDefinitionReference = {
  taskDefinitionArn: 'taskDefinitionArn',
  taskDefinitionId: 'taskDefinitionId',
};
```

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_iotwireless as interfaces_iotwireless

task_definition_reference = interfaces_iotwireless.TaskDefinitionReference(
    task_definition_arn="taskDefinitionArn",
    task_definition_id="taskDefinitionId"
)
```

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

TaskDefinitionReference taskDefinitionReference = TaskDefinitionReference.builder()
        .taskDefinitionArn("taskDefinitionArn")
        .taskDefinitionId("taskDefinitionId")
        .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.IoTWireless;

var taskDefinitionReference = new TaskDefinitionReference {
    TaskDefinitionArn = "taskDefinitionArn",
    TaskDefinitionId = "taskDefinitionId"
};
```

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"

taskDefinitionReference := &TaskDefinitionReference{
	TaskDefinitionArn: jsii.String("taskDefinitionArn"),
	TaskDefinitionId: jsii.String("taskDefinitionId"),
}
```

## Properties

- `taskDefinitionArn`: string (required) — The ARN of the TaskDefinition resource.

- `taskDefinitionId`: string (required) — The Id of the TaskDefinition resource.
