-
Notifications
You must be signed in to change notification settings - Fork 17
/
JsonNull.go
100 lines (84 loc) · 2.09 KB
/
JsonNull.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package awscdk
import (
_init_ "github.com/aws/aws-cdk-go/awscdk/v2/jsii"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// An object which serializes to the JSON `null` literal, and which can safely be passed across languages where `undefined` and `null` are not different.
//
// Example:
// // 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"
//
// jsonNull := cdk.JsonNull_INSTANCE()
//
type JsonNull interface {
IResolvable
// The creation stack of this resolvable which will be appended to errors thrown during resolution.
//
// This may return an array with a single informational element indicating how
// to get this property populated, if it was skipped for performance reasons.
CreationStack() *[]*string
// Produce the Token's value at resolution time.
Resolve(_ctx IResolveContext) interface{}
// Obtains the JSON representation of this object (`null`).
ToJSON() interface{}
// Obtains the string representation of this object (`'null'`).
ToString() *string
}
// The jsii proxy struct for JsonNull
type jsiiProxy_JsonNull struct {
jsiiProxy_IResolvable
}
func (j *jsiiProxy_JsonNull) CreationStack() *[]*string {
var returns *[]*string
_jsii_.Get(
j,
"creationStack",
&returns,
)
return returns
}
func JsonNull_INSTANCE() JsonNull {
_init_.Initialize()
var returns JsonNull
_jsii_.StaticGet(
"aws-cdk-lib.JsonNull",
"INSTANCE",
&returns,
)
return returns
}
func (j *jsiiProxy_JsonNull) Resolve(_ctx IResolveContext) interface{} {
if err := j.validateResolveParameters(_ctx); err != nil {
panic(err)
}
var returns interface{}
_jsii_.Invoke(
j,
"resolve",
[]interface{}{_ctx},
&returns,
)
return returns
}
func (j *jsiiProxy_JsonNull) ToJSON() interface{} {
var returns interface{}
_jsii_.Invoke(
j,
"toJSON",
nil, // no parameters
&returns,
)
return returns
}
func (j *jsiiProxy_JsonNull) ToString() *string {
var returns *string
_jsii_.Invoke(
j,
"toString",
nil, // no parameters
&returns,
)
return returns
}