-
Notifications
You must be signed in to change notification settings - Fork 17
/
IResolvable.go
79 lines (67 loc) · 1.65 KB
/
IResolvable.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
package awscdk
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
// Interface for values that can be resolvable later.
//
// Tokens are special objects that participate in synthesis.
type IResolvable interface {
// Produce the Token's value at resolution time.
Resolve(context IResolveContext) interface{}
// Return a string representation of this resolvable object.
//
// Returns a reversible string representation.
ToString() *string
// 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
// The type that this token will likely resolve to.
TypeHint() ResolutionTypeHint
}
// The jsii proxy for IResolvable
type jsiiProxy_IResolvable struct {
_ byte // padding
}
func (i *jsiiProxy_IResolvable) Resolve(context IResolveContext) interface{} {
if err := i.validateResolveParameters(context); err != nil {
panic(err)
}
var returns interface{}
_jsii_.Invoke(
i,
"resolve",
[]interface{}{context},
&returns,
)
return returns
}
func (i *jsiiProxy_IResolvable) ToString() *string {
var returns *string
_jsii_.Invoke(
i,
"toString",
nil, // no parameters
&returns,
)
return returns
}
func (j *jsiiProxy_IResolvable) CreationStack() *[]*string {
var returns *[]*string
_jsii_.Get(
j,
"creationStack",
&returns,
)
return returns
}
func (j *jsiiProxy_IResolvable) TypeHint() ResolutionTypeHint {
var returns ResolutionTypeHint
_jsii_.Get(
j,
"typeHint",
&returns,
)
return returns
}