interface InjectionContext
Language | Type name |
---|---|
![]() | Amazon.CDK.InjectionContext |
![]() | github.com/aws/aws-cdk-go/awscdk/v2#InjectionContext |
![]() | software.amazon.awscdk.InjectionContext |
![]() | aws_cdk.InjectionContext |
![]() | 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.