-
Notifications
You must be signed in to change notification settings - Fork 17
/
IResolveContext.go
84 lines (72 loc) · 1.83 KB
/
IResolveContext.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
package awscdk
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
"github.com/aws/constructs-go/constructs/v10"
)
// Current resolution context for tokens.
type IResolveContext interface {
// Use this postprocessor after the entire token structure has been resolved.
RegisterPostProcessor(postProcessor IPostProcessor)
// Resolve an inner object.
Resolve(x interface{}, options *ResolveChangeContextOptions) interface{}
// Path in the JSON document that is being constructed.
DocumentPath() *[]*string
// True when we are still preparing, false if we're rendering the final output.
Preparing() *bool
// The scope from which resolution has been initiated.
Scope() constructs.IConstruct
}
// The jsii proxy for IResolveContext
type jsiiProxy_IResolveContext struct {
_ byte // padding
}
func (i *jsiiProxy_IResolveContext) RegisterPostProcessor(postProcessor IPostProcessor) {
if err := i.validateRegisterPostProcessorParameters(postProcessor); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
i,
"registerPostProcessor",
[]interface{}{postProcessor},
)
}
func (i *jsiiProxy_IResolveContext) Resolve(x interface{}, options *ResolveChangeContextOptions) interface{} {
if err := i.validateResolveParameters(x, options); err != nil {
panic(err)
}
var returns interface{}
_jsii_.Invoke(
i,
"resolve",
[]interface{}{x, options},
&returns,
)
return returns
}
func (j *jsiiProxy_IResolveContext) DocumentPath() *[]*string {
var returns *[]*string
_jsii_.Get(
j,
"documentPath",
&returns,
)
return returns
}
func (j *jsiiProxy_IResolveContext) Preparing() *bool {
var returns *bool
_jsii_.Get(
j,
"preparing",
&returns,
)
return returns
}
func (j *jsiiProxy_IResolveContext) Scope() constructs.IConstruct {
var returns constructs.IConstruct
_jsii_.Get(
j,
"scope",
&returns,
)
return returns
}