interface ITaskDefinitionExtension
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ECS.ITaskDefinitionExtension |
Java | software.amazon.awscdk.services.ecs.ITaskDefinitionExtension |
Python | aws_cdk.aws_ecs.ITaskDefinitionExtension |
TypeScript (source) | @aws-cdk/aws-ecs » ITaskDefinitionExtension |
An extension for Task Definitions.
Classes that want to make changes to a TaskDefinition (such as adding helper containers) can implement this interface, and can then be "added" to a TaskDefinition like so:
taskDefinition.addExtension(new MyExtension("some_parameter"));
Methods
Name | Description |
---|---|
extend(taskDefinition) | Apply the extension to the given TaskDefinition. |
extend(taskDefinition)
public extend(taskDefinition: TaskDefinition): void
Parameters
- taskDefinition
Task
— [disable-awslint:ref-via-interface].Definition
Apply the extension to the given TaskDefinition.