-
Notifications
You must be signed in to change notification settings - Fork 45
/
Secret.go
499 lines (434 loc) · 9.46 KB
/
Secret.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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
package secret
import (
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
_init_ "github.com/nitrictech/nitric/cloud/gcp/deploytf/generated/secret/jsii"
"github.com/aws/constructs-go/constructs/v10"
"github.com/hashicorp/terraform-cdk-go/cdktf"
"github.com/nitrictech/nitric/cloud/gcp/deploytf/generated/secret/internal"
)
// Defines an Secret based on a Terraform module.
//
// Source at ./.nitric/modules/secret
type Secret interface {
cdktf.TerraformModule
// Experimental.
CdktfStack() cdktf.TerraformStack
// Experimental.
ConstructNodeMetadata() *map[string]interface{}
// Experimental.
DependsOn() *[]*string
// Experimental.
SetDependsOn(val *[]*string)
// Experimental.
ForEach() cdktf.ITerraformIterator
// Experimental.
SetForEach(val cdktf.ITerraformIterator)
// Experimental.
Fqn() *string
// Experimental.
FriendlyUniqueId() *string
NameOutput() *string
// The tree node.
Node() constructs.Node
// Experimental.
Providers() *[]interface{}
// Experimental.
RawOverrides() interface{}
SecretName() *string
SetSecretName(val *string)
// Experimental.
SkipAssetCreationFromLocalModules() *bool
// Experimental.
Source() *string
StackId() *string
SetStackId(val *string)
// Experimental.
Version() *string
// Experimental.
AddOverride(path *string, value interface{})
// Experimental.
AddProvider(provider interface{})
// Experimental.
GetString(output *string) *string
// Experimental.
InterpolationForOutput(moduleOutput *string) cdktf.IResolvable
// Overrides the auto-generated logical ID with a specific ID.
// Experimental.
OverrideLogicalId(newLogicalId *string)
// Resets a previously passed logical Id to use the auto-generated logical id again.
// Experimental.
ResetOverrideLogicalId()
SynthesizeAttributes() *map[string]interface{}
SynthesizeHclAttributes() *map[string]interface{}
// Experimental.
ToHclTerraform() interface{}
// Experimental.
ToMetadata() interface{}
// Returns a string representation of this construct.
ToString() *string
// Experimental.
ToTerraform() interface{}
}
// The jsii proxy struct for Secret
type jsiiProxy_Secret struct {
internal.Type__cdktfTerraformModule
}
func (j *jsiiProxy_Secret) CdktfStack() cdktf.TerraformStack {
var returns cdktf.TerraformStack
_jsii_.Get(
j,
"cdktfStack",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) ConstructNodeMetadata() *map[string]interface{} {
var returns *map[string]interface{}
_jsii_.Get(
j,
"constructNodeMetadata",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) DependsOn() *[]*string {
var returns *[]*string
_jsii_.Get(
j,
"dependsOn",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) ForEach() cdktf.ITerraformIterator {
var returns cdktf.ITerraformIterator
_jsii_.Get(
j,
"forEach",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) Fqn() *string {
var returns *string
_jsii_.Get(
j,
"fqn",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) FriendlyUniqueId() *string {
var returns *string
_jsii_.Get(
j,
"friendlyUniqueId",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) NameOutput() *string {
var returns *string
_jsii_.Get(
j,
"nameOutput",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) Node() constructs.Node {
var returns constructs.Node
_jsii_.Get(
j,
"node",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) Providers() *[]interface{} {
var returns *[]interface{}
_jsii_.Get(
j,
"providers",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) RawOverrides() interface{} {
var returns interface{}
_jsii_.Get(
j,
"rawOverrides",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) SecretName() *string {
var returns *string
_jsii_.Get(
j,
"secretName",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) SkipAssetCreationFromLocalModules() *bool {
var returns *bool
_jsii_.Get(
j,
"skipAssetCreationFromLocalModules",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) Source() *string {
var returns *string
_jsii_.Get(
j,
"source",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) StackId() *string {
var returns *string
_jsii_.Get(
j,
"stackId",
&returns,
)
return returns
}
func (j *jsiiProxy_Secret) Version() *string {
var returns *string
_jsii_.Get(
j,
"version",
&returns,
)
return returns
}
func NewSecret(scope constructs.Construct, id *string, config *SecretConfig) Secret {
_init_.Initialize()
if err := validateNewSecretParameters(scope, id, config); err != nil {
panic(err)
}
j := jsiiProxy_Secret{}
_jsii_.Create(
"secret.Secret",
[]interface{}{scope, id, config},
&j,
)
return &j
}
func NewSecret_Override(s Secret, scope constructs.Construct, id *string, config *SecretConfig) {
_init_.Initialize()
_jsii_.Create(
"secret.Secret",
[]interface{}{scope, id, config},
s,
)
}
func (j *jsiiProxy_Secret) SetDependsOn(val *[]*string) {
_jsii_.Set(
j,
"dependsOn",
val,
)
}
func (j *jsiiProxy_Secret) SetForEach(val cdktf.ITerraformIterator) {
_jsii_.Set(
j,
"forEach",
val,
)
}
func (j *jsiiProxy_Secret) SetSecretName(val *string) {
if err := j.validateSetSecretNameParameters(val); err != nil {
panic(err)
}
_jsii_.Set(
j,
"secretName",
val,
)
}
func (j *jsiiProxy_Secret) SetStackId(val *string) {
if err := j.validateSetStackIdParameters(val); err != nil {
panic(err)
}
_jsii_.Set(
j,
"stackId",
val,
)
}
// Checks if `x` is a construct.
//
// Use this method instead of `instanceof` to properly detect `Construct`
// instances, even when the construct library is symlinked.
//
// Explanation: in JavaScript, multiple copies of the `constructs` library on
// disk are seen as independent, completely different libraries. As a
// consequence, the class `Construct` in each copy of the `constructs` library
// is seen as a different class, and an instance of one class will not test as
// `instanceof` the other class. `npm install` will not create installations
// like this, but users may manually symlink construct libraries together or
// use a monorepo tool: in those cases, multiple copies of the `constructs`
// library can be accidentally installed, and `instanceof` will behave
// unpredictably. It is safest to avoid using `instanceof`, and using
// this type-testing method instead.
//
// Returns: true if `x` is an object created from a class which extends `Construct`.
func Secret_IsConstruct(x interface{}) *bool {
_init_.Initialize()
if err := validateSecret_IsConstructParameters(x); err != nil {
panic(err)
}
var returns *bool
_jsii_.StaticInvoke(
"secret.Secret",
"isConstruct",
[]interface{}{x},
&returns,
)
return returns
}
// Experimental.
func Secret_IsTerraformElement(x interface{}) *bool {
_init_.Initialize()
if err := validateSecret_IsTerraformElementParameters(x); err != nil {
panic(err)
}
var returns *bool
_jsii_.StaticInvoke(
"secret.Secret",
"isTerraformElement",
[]interface{}{x},
&returns,
)
return returns
}
func (s *jsiiProxy_Secret) AddOverride(path *string, value interface{}) {
if err := s.validateAddOverrideParameters(path, value); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
s,
"addOverride",
[]interface{}{path, value},
)
}
func (s *jsiiProxy_Secret) AddProvider(provider interface{}) {
if err := s.validateAddProviderParameters(provider); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
s,
"addProvider",
[]interface{}{provider},
)
}
func (s *jsiiProxy_Secret) GetString(output *string) *string {
if err := s.validateGetStringParameters(output); err != nil {
panic(err)
}
var returns *string
_jsii_.Invoke(
s,
"getString",
[]interface{}{output},
&returns,
)
return returns
}
func (s *jsiiProxy_Secret) InterpolationForOutput(moduleOutput *string) cdktf.IResolvable {
if err := s.validateInterpolationForOutputParameters(moduleOutput); err != nil {
panic(err)
}
var returns cdktf.IResolvable
_jsii_.Invoke(
s,
"interpolationForOutput",
[]interface{}{moduleOutput},
&returns,
)
return returns
}
func (s *jsiiProxy_Secret) OverrideLogicalId(newLogicalId *string) {
if err := s.validateOverrideLogicalIdParameters(newLogicalId); err != nil {
panic(err)
}
_jsii_.InvokeVoid(
s,
"overrideLogicalId",
[]interface{}{newLogicalId},
)
}
func (s *jsiiProxy_Secret) ResetOverrideLogicalId() {
_jsii_.InvokeVoid(
s,
"resetOverrideLogicalId",
nil, // no parameters
)
}
func (s *jsiiProxy_Secret) SynthesizeAttributes() *map[string]interface{} {
var returns *map[string]interface{}
_jsii_.Invoke(
s,
"synthesizeAttributes",
nil, // no parameters
&returns,
)
return returns
}
func (s *jsiiProxy_Secret) SynthesizeHclAttributes() *map[string]interface{} {
var returns *map[string]interface{}
_jsii_.Invoke(
s,
"synthesizeHclAttributes",
nil, // no parameters
&returns,
)
return returns
}
func (s *jsiiProxy_Secret) ToHclTerraform() interface{} {
var returns interface{}
_jsii_.Invoke(
s,
"toHclTerraform",
nil, // no parameters
&returns,
)
return returns
}
func (s *jsiiProxy_Secret) ToMetadata() interface{} {
var returns interface{}
_jsii_.Invoke(
s,
"toMetadata",
nil, // no parameters
&returns,
)
return returns
}
func (s *jsiiProxy_Secret) ToString() *string {
var returns *string
_jsii_.Invoke(
s,
"toString",
nil, // no parameters
&returns,
)
return returns
}
func (s *jsiiProxy_Secret) ToTerraform() interface{} {
var returns interface{}
_jsii_.Invoke(
s,
"toTerraform",
nil, // no parameters
&returns,
)
return returns
}