class ContextProvider
Language | Type name |
---|---|
.NET | Amazon.CDK.ContextProvider |
Go | github.com/aws/aws-cdk-go/awscdk/v2#ContextProvider |
Java | software.amazon.awscdk.ContextProvider |
Python | aws_cdk.ContextProvider |
TypeScript (source) | aws-cdk-lib » ContextProvider |
Base class for the model side of context providers.
Instances of this class communicate with context provider plugins in the 'cdk toolkit' via context variables (input), outputting specialized queries for more context variables (output).
ContextProvider needs access to a Construct to hook into the context mechanism.
Methods
Name | Description |
---|---|
static get | |
static get |
Key(scope, options)
static getpublic static getKey(scope: Construct, options: GetContextKeyOptions): GetContextKeyResult
Parameters
- scope
Construct
- options
Get
Context Key Options
Returns
Value(scope, options)
static getpublic static getValue(scope: Construct, options: GetContextValueOptions): GetContextValueResult
Parameters
- scope
Construct
- options
Get
Context Value Options
Returns