Class ContextProvider
Base class for the model side of context providers.
Inheritance
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ContextProvider : DeputyBase
Syntax (vb)
Public Class ContextProvider
Inherits DeputyBase
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.
Synopsis
Constructors
ContextProvider(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ContextProvider(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
GetKey(Construct, IGetContextKeyOptions) | |
GetValue(Construct, IGetContextValueOptions) |
Constructors
ContextProvider(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ContextProvider(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ContextProvider(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ContextProvider(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
GetKey(Construct, IGetContextKeyOptions)
public static IGetContextKeyResult GetKey(Construct scope, IGetContextKeyOptions options)
Parameters
- scope Constructs.Construct
- options IGetContextKeyOptions
Returns
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 Constructs.Construct
- options IGetContextValueOptions
Returns