/
tfmodulestack_TFModuleApp.go
219 lines (183 loc) · 4.36 KB
/
tfmodulestack_TFModuleApp.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
// A drop-in replacement for cdktf.TerraformStack that let's you define Terraform modules as construct
package tfmodulestack
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
_init_ "github.com/cdktf/cdktf-tf-module-stack-go/tfmodulestack/v2/jsii"
"github.com/aws/constructs-go/constructs/v10"
"github.com/cdktf/cdktf-tf-module-stack-go/tfmodulestack/v2/internal"
"github.com/hashicorp/terraform-cdk-go/cdktf"
)
type TFModuleApp interface {
cdktf.App
// Experimental.
Manifest() cdktf.Manifest
// The tree node.
Node() constructs.Node
// The output directory into which resources will be synthesized.
// Experimental.
Outdir() *string
// Whether to skip the validation during synthesis of the app.
// Experimental.
SkipValidation() *bool
// The stack which will be synthesized.
//
// If not set, all stacks will be synthesized.
// Experimental.
TargetStackId() *string
// Creates a reference from one stack to another, invoked on prepareStack since it creates extra resources.
// Experimental.
CrossStackReference(fromStack cdktf.TerraformStack, toStack cdktf.TerraformStack, identifier *string) *string
// Synthesizes all resources to the output directory.
// Experimental.
Synth()
// Returns a string representation of this construct.
ToString() *string
}
// The jsii proxy struct for TFModuleApp
type jsiiProxy_TFModuleApp struct {
internal.Type__cdktfApp
}
func (j *jsiiProxy_TFModuleApp) Manifest() cdktf.Manifest {
var returns cdktf.Manifest
_jsii_.Get(
j,
"manifest",
&returns,
)
return returns
}
func (j *jsiiProxy_TFModuleApp) Node() constructs.Node {
var returns constructs.Node
_jsii_.Get(
j,
"node",
&returns,
)
return returns
}
func (j *jsiiProxy_TFModuleApp) Outdir() *string {
var returns *string
_jsii_.Get(
j,
"outdir",
&returns,
)
return returns
}
func (j *jsiiProxy_TFModuleApp) SkipValidation() *bool {
var returns *bool
_jsii_.Get(
j,
"skipValidation",
&returns,
)
return returns
}
func (j *jsiiProxy_TFModuleApp) TargetStackId() *string {
var returns *string
_jsii_.Get(
j,
"targetStackId",
&returns,
)
return returns
}
func NewTFModuleApp(options *cdktf.AppConfig) TFModuleApp {
_init_.Initialize()
if err := validateNewTFModuleAppParameters(options); err != nil {
panic(err)
}
j := jsiiProxy_TFModuleApp{}
_jsii_.Create(
"@cdktf/tf-module-stack.TFModuleApp",
[]interface{}{options},
&j,
)
return &j
}
func NewTFModuleApp_Override(t TFModuleApp, options *cdktf.AppConfig) {
_init_.Initialize()
_jsii_.Create(
"@cdktf/tf-module-stack.TFModuleApp",
[]interface{}{options},
t,
)
}
// Experimental.
func TFModuleApp_IsApp(x interface{}) *bool {
_init_.Initialize()
if err := validateTFModuleApp_IsAppParameters(x); err != nil {
panic(err)
}
var returns *bool
_jsii_.StaticInvoke(
"@cdktf/tf-module-stack.TFModuleApp",
"isApp",
[]interface{}{x},
&returns,
)
return returns
}
// Checks if `x` is a construct.
//
// Returns: true if `x` is an object created from a class which extends `Construct`.
// Deprecated: use `x instanceof Construct` instead.
func TFModuleApp_IsConstruct(x interface{}) *bool {
_init_.Initialize()
if err := validateTFModuleApp_IsConstructParameters(x); err != nil {
panic(err)
}
var returns *bool
_jsii_.StaticInvoke(
"@cdktf/tf-module-stack.TFModuleApp",
"isConstruct",
[]interface{}{x},
&returns,
)
return returns
}
// Experimental.
func TFModuleApp_Of(construct constructs.IConstruct) cdktf.App {
_init_.Initialize()
if err := validateTFModuleApp_OfParameters(construct); err != nil {
panic(err)
}
var returns cdktf.App
_jsii_.StaticInvoke(
"@cdktf/tf-module-stack.TFModuleApp",
"of",
[]interface{}{construct},
&returns,
)
return returns
}
func (t *jsiiProxy_TFModuleApp) CrossStackReference(fromStack cdktf.TerraformStack, toStack cdktf.TerraformStack, identifier *string) *string {
if err := t.validateCrossStackReferenceParameters(fromStack, toStack, identifier); err != nil {
panic(err)
}
var returns *string
_jsii_.Invoke(
t,
"crossStackReference",
[]interface{}{fromStack, toStack, identifier},
&returns,
)
return returns
}
func (t *jsiiProxy_TFModuleApp) Synth() {
_jsii_.InvokeVoid(
t,
"synth",
nil, // no parameters
)
}
func (t *jsiiProxy_TFModuleApp) ToString() *string {
var returns *string
_jsii_.Invoke(
t,
"toString",
nil, // no parameters
&returns,
)
return returns
}