ITaskDefinitionExtension

class aws_cdk.aws_ecs.ITaskDefinitionExtension(*args, **kwargs)

Bases: typing_extensions.Protocol

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"));
__init__(*args, **kwargs)

Methods

extend(task_definition)

Apply the extension to the given TaskDefinition.

Parameters

task_definition (TaskDefinition) – [disable-awslint:ref-via-interface].

Return type

None