# 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.

- Source: [`core/lib/context-provider.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/core/lib/context-provider.ts#L134)

## Methods

- `getKey(scope: Construct, options: GetContextKeyOptions): GetContextKeyResult` (static)

  **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` (static)
