ContextProvider Class
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
getKey(scope: Construct, options: GetContextKeyOptions): GetContextKeyResult@staticmethod def get_key(scope: Construct, options: GetContextKeyOptions) -> GetContextKeyResultpublic static GetContextKeyResult getKey(Construct scope, GetContextKeyOptions options)public static GetContextKeyResult GetKey(Construct scope, GetContextKeyOptions options)func GetKey(Scope Construct, Options GetContextKeyOptions) GetContextKeyResultstatic#returns
Returns: the context key or undefined if a key cannot be rendered (due to tokens used in any of the props)
getValue(scope: Construct, options: GetContextValueOptions): GetContextValueResult@staticmethod def get_value(scope: Construct, options: GetContextValueOptions) -> GetContextValueResultpublic static GetContextValueResult getValue(Construct scope, GetContextValueOptions options)public static GetContextValueResult GetValue(Construct scope, GetContextValueOptions options)func GetValue(Scope Construct, Options GetContextValueOptions) GetContextValueResultstatic#