aws-cdk-lib.GetContextKeyOptions

interface GetContextKeyOptions

LanguageType name
.NETAmazon.CDK.GetContextKeyOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2#GetContextKeyOptions
Javasoftware.amazon.awscdk.GetContextKeyOptions
Pythonaws_cdk.GetContextKeyOptions
TypeScript (source)aws-cdk-lib » GetContextKeyOptions

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';

declare const props: any;
const getContextKeyOptions: cdk.GetContextKeyOptions = {
  provider: 'provider',

  // the properties below are optional
  includeEnvironment: false,
  props: {
    propsKey: props,
  },
};

Properties

NameTypeDescription
providerstringThe context provider to query.
includeEnvironment?booleanWhether to include the stack's account and region automatically.
props?{ [string]: any }Provider-specific properties.

provider

Type: string

The context provider to query.


includeEnvironment?

Type: boolean (optional, default: true)

Whether to include the stack's account and region automatically.


props?

Type: { [string]: any } (optional)

Provider-specific properties.