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
Context |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Context |
Used by jsii to construct an instance of this class from DeputyProps |
Methods
Get |
|
Get |
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. By Ref Value 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. Deputy Base. Deputy Props The deputy props
Methods
GetKey(Construct, IGetContextKeyOptions)
public static IGetContextKeyResult GetKey(Construct scope, IGetContextKeyOptions options)
Parameters
- scope Constructs.
Construct - options IGet
Context Key Options
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 IGet
Context Value Options
Returns