class ContextProvider
| Language | Type name |
|---|---|
.NET | Amazon.CDK.ContextProvider |
Java | software.amazon.awscdk.core.ContextProvider |
Python | aws_cdk.core.ContextProvider |
TypeScript (source) | @aws-cdk/core » 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 |
static getKey(scope, options)
public static getKey(scope: Construct, options: GetContextKeyOptions): GetContextKeyResult
Parameters
- scope
Construct - options
GetContext Key Options
Returns
static getValue(scope, options)
public static getValue(scope: Construct, options: GetContextValueOptions): GetContextValueResult
Parameters
- scope
Construct - options
GetContext Value Options
Returns

.NET
Java
Python
TypeScript (