ContextProvider(*args: Any, **kwargs)¶
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.
get_key(scope, *, provider, props=None)¶
get_value(scope, *, dummy_value, provider, props=None)¶
Any) – The value to return if the context value was not found and a missing context is reported. This should be a dummy value that should preferably fail during deployment since it represents an invalid state.
str) – The context provider to query.
Any]]) – Provider-specific properties.
- Return type