interface InjectionContext
| Language | Type name |
|---|---|
.NET | Amazon.CDK.InjectionContext |
Go | github.com/aws/aws-cdk-go/awscdk/v2#InjectionContext |
Java | software.amazon.awscdk.InjectionContext |
Python | aws_cdk.InjectionContext |
TypeScript (source) | aws-cdk-lib » InjectionContext |
This defines the values needed for Injection.
Example
// 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
| Name | Type | Description |
|---|---|---|
| id | string | id from the Construct constructor. |
| scope | Construct | scope from the constructor. |
id
Type:
string
id from the Construct constructor.
scope
Type:
Construct
scope from the constructor.

.NET
Go
Java
Python
TypeScript (