# InjectionContext

This defines the values needed for Injection.

- Source: [`core/lib/prop-injectors.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/core/lib/prop-injectors.ts#L7)
- Type last changed: v2.196.0 · 16 May 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import * as constructs from 'constructs';

declare const construct: constructs.Construct;
const injectionContext: cdk.InjectionContext = {
  id: 'id',
  scope: construct,
};
```

## Properties

- `id`: string (required) — id from the Construct constructor.

- `scope`: [Construct](/cdk/api/v2/docs/constructs.Construct.html) (required) — scope from the constructor.
