> **Experimental**
>
> `@aws-cdk/aws-applicationsignals-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# Injector

Injector is a base class for all SDK injects to mutate the task definition to inject the ADOT init container and configure the application container with the necessary environment variables.

Extends: Injector
Superclass of: DotNetInjector, DotNetLinuxInjector, DotNetWindowsInjector, JavaInjector, NodeInjector, PythonInjector

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/enablement/ecs-sdk-instrumentation.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/aws-applicationsignals-alpha/lib/enablement/ecs-sdk-instrumentation.ts#L24)

## Initializer

```ts
new Injector(sharedVolumeName: string, instrumentationVersion: InstrumentationVersion, overrideEnvironments?: EnvironmentExtension[])
```

## Properties

- `command`: string[] — The command to run the init container.

- `containerPath`: string — The path to ADOT SDK agent in the init container.

## Methods

- `injectInitContainer(taskDefinition: TaskDefinition): ContainerDefinition` — Inject ADOT SDK agent init container.

  **Parameters**

  - `taskDefinition` — The TaskDefinition to render.

  **Returns:** The created ContainerDefinition

- `renderDefaultContainer(taskDefinition: TaskDefinition): void` — Render the application container for SDK instrumentation.

  **Parameters**

  - `taskDefinition` — The TaskDefinition to render.
