GetContextKeyResult Struct
Example
ts
// 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 getContextKeyResult: cdk.GetContextKeyResult = {
key: 'key',
props: {
propsKey: props,
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
# props: Any
get_context_key_result = cdk.GetContextKeyResult(
key="key",
props={
"props_key": props
}
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
Object props;
GetContextKeyResult getContextKeyResult = GetContextKeyResult.builder()
.key("key")
.props(Map.of(
"propsKey", props))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
var props;
var getContextKeyResult = new GetContextKeyResult {
Key = "key",
Props = new Dictionary<string, object> {
{ "propsKey", props }
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
var props interface{}
getContextKeyResult := &GetContextKeyResult{
Key: jsii.String("key"),
Props: map[string]interface{}{
"propsKey": props,
},
}