aws-cdk-lib.ContextProvider

class ContextProvider

LanguageType name
.NETAmazon.CDK.ContextProvider
Gogithub.com/aws/aws-cdk-go/awscdk/v2#ContextProvider
Javasoftware.amazon.awscdk.ContextProvider
Pythonaws_cdk.ContextProvider
TypeScript (source)aws-cdk-lib » 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.

Methods

NameDescription
static getKey(scope, options)
static getValue(scope, options)

static getKey(scope, options)

public static getKey(scope: Construct, options: GetContextKeyOptions): GetContextKeyResult

Parameters

  • scope Construct
  • options GetContextKeyOptions

Returns

  • GetContextKeyResult

static getValue(scope, options)

public static getValue(scope: Construct, options: GetContextValueOptions): GetContextValueResult

Parameters

  • scope Construct
  • options GetContextValueOptions

Returns

  • GetContextValueResult