Table of Contents

Class ContextProvider

Namespace
Amazon.CDK
Assembly
Amazon.CDK.dll

Base class for the model side of context providers.

public class ContextProvider : DeputyBase
Inheritance
ContextProvider

Remarks

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(Construct, IGetContextKeyOptions)

public static IGetContextKeyResult GetKey(Construct scope, IGetContextKeyOptions options)

Parameters

scope Construct
options IGetContextKeyOptions

Returns

IGetContextKeyResult

the context key or undefined if a key cannot be rendered (due to tokens used in any of the props)

GetValue(Construct, IGetContextValueOptions)

public static IGetContextValueResult GetValue(Construct scope, IGetContextValueOptions options)

Parameters

scope Construct
options IGetContextValueOptions

Returns

IGetContextValueResult