-
Notifications
You must be signed in to change notification settings - Fork 17
/
awscdk_GetContextValueOptions.go
42 lines (39 loc) · 1.42 KB
/
awscdk_GetContextValueOptions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// An experiment to bundle the entire CDK into a single module
package awscdk
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import monocdk "github.com/aws/aws-cdk-go/awscdk"
//
// var dummyValue interface{}
// var props interface{}
//
// getContextValueOptions := &getContextValueOptions{
// dummyValue: dummyValue,
// provider: jsii.String("provider"),
//
// // the properties below are optional
// includeEnvironment: jsii.Boolean(false),
// props: map[string]interface{}{
// "propsKey": props,
// },
// }
//
// Experimental.
type GetContextValueOptions struct {
// The context provider to query.
// Experimental.
Provider *string `field:"required" json:"provider" yaml:"provider"`
// Whether to include the stack's account and region automatically.
// Experimental.
IncludeEnvironment *bool `field:"optional" json:"includeEnvironment" yaml:"includeEnvironment"`
// Provider-specific properties.
// Experimental.
Props *map[string]interface{} `field:"optional" json:"props" yaml:"props"`
// The value to return if the context value was not found and a missing context is reported.
//
// This should be a dummy value that should preferably
// fail during deployment since it represents an invalid state.
// Experimental.
DummyValue interface{} `field:"required" json:"dummyValue" yaml:"dummyValue"`
}