interface GetContextKeyOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.GetContextKeyOptions |
Java | software.amazon.awscdk.core.GetContextKeyOptions |
Python | aws_cdk.core.GetContextKeyOptions |
TypeScript (source) | @aws-cdk/core » 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/core';
declare const props: any;
const getContextKeyOptions: cdk.GetContextKeyOptions = {
provider: 'provider',
// the properties below are optional
includeEnvironment: false,
props: {
propsKey: props,
},
};
Properties
Name | Type | Description |
---|---|---|
provider | string | The context provider to query. |
include | boolean | Whether 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.