TaskDefinitionReference Struct
A reference to a TaskDefinition resource.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as interfaces_ecs } from 'aws-cdk-lib/interfaces';
const taskDefinitionReference: interfaces_ecs.TaskDefinitionReference = {
taskDefinitionArn: 'taskDefinitionArn',
};
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_ecs as interfaces_ecs
task_definition_reference = interfaces_ecs.TaskDefinitionReference(
task_definition_arn="taskDefinitionArn"
)
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.ecs.*;
TaskDefinitionReference taskDefinitionReference = TaskDefinitionReference.builder()
.taskDefinitionArn("taskDefinitionArn")
.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.ECS;
var taskDefinitionReference = new TaskDefinitionReference {
TaskDefinitionArn = "taskDefinitionArn"
};
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"),
}
Properties
taskDefinitionArnstringtask_definition_arnstrtaskDefinitionArnStringTaskDefinitionArnstringTaskDefinitionArn*stringrequired#The TaskDefinitionArn of the TaskDefinition resource.