-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.ts
1086 lines (1020 loc) · 37.5 KB
/
index.ts
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
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// https://www.terraform.io/docs/providers/aws/r/alb_target_group
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
// Configuration
export interface AlbTargetGroupConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#connection_termination AlbTargetGroup#connection_termination}
*/
readonly connectionTermination?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#deregistration_delay AlbTargetGroup#deregistration_delay}
*/
readonly deregistrationDelay?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#id AlbTargetGroup#id}
*
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
*/
readonly id?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#ip_address_type AlbTargetGroup#ip_address_type}
*/
readonly ipAddressType?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#lambda_multi_value_headers_enabled AlbTargetGroup#lambda_multi_value_headers_enabled}
*/
readonly lambdaMultiValueHeadersEnabled?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#load_balancing_algorithm_type AlbTargetGroup#load_balancing_algorithm_type}
*/
readonly loadBalancingAlgorithmType?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#name AlbTargetGroup#name}
*/
readonly name?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#name_prefix AlbTargetGroup#name_prefix}
*/
readonly namePrefix?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#port AlbTargetGroup#port}
*/
readonly port?: number;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#preserve_client_ip AlbTargetGroup#preserve_client_ip}
*/
readonly preserveClientIp?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#protocol AlbTargetGroup#protocol}
*/
readonly protocol?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#protocol_version AlbTargetGroup#protocol_version}
*/
readonly protocolVersion?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#proxy_protocol_v2 AlbTargetGroup#proxy_protocol_v2}
*/
readonly proxyProtocolV2?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#slow_start AlbTargetGroup#slow_start}
*/
readonly slowStart?: number;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#tags AlbTargetGroup#tags}
*/
readonly tags?: { [key: string]: string };
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#tags_all AlbTargetGroup#tags_all}
*/
readonly tagsAll?: { [key: string]: string };
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#target_type AlbTargetGroup#target_type}
*/
readonly targetType?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#vpc_id AlbTargetGroup#vpc_id}
*/
readonly vpcId?: string;
/**
* health_check block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#health_check AlbTargetGroup#health_check}
*/
readonly healthCheck?: AlbTargetGroupHealthCheck;
/**
* stickiness block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#stickiness AlbTargetGroup#stickiness}
*/
readonly stickiness?: AlbTargetGroupStickiness;
/**
* target_failover block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#target_failover AlbTargetGroup#target_failover}
*/
readonly targetFailover?: AlbTargetGroupTargetFailover[] | cdktf.IResolvable;
}
export interface AlbTargetGroupHealthCheck {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#enabled AlbTargetGroup#enabled}
*/
readonly enabled?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#healthy_threshold AlbTargetGroup#healthy_threshold}
*/
readonly healthyThreshold?: number;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#interval AlbTargetGroup#interval}
*/
readonly interval?: number;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#matcher AlbTargetGroup#matcher}
*/
readonly matcher?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#path AlbTargetGroup#path}
*/
readonly path?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#port AlbTargetGroup#port}
*/
readonly port?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#protocol AlbTargetGroup#protocol}
*/
readonly protocol?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#timeout AlbTargetGroup#timeout}
*/
readonly timeout?: number;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#unhealthy_threshold AlbTargetGroup#unhealthy_threshold}
*/
readonly unhealthyThreshold?: number;
}
export function albTargetGroupHealthCheckToTerraform(struct?: AlbTargetGroupHealthCheckOutputReference | AlbTargetGroupHealthCheck): any {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; }
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
enabled: cdktf.booleanToTerraform(struct!.enabled),
healthy_threshold: cdktf.numberToTerraform(struct!.healthyThreshold),
interval: cdktf.numberToTerraform(struct!.interval),
matcher: cdktf.stringToTerraform(struct!.matcher),
path: cdktf.stringToTerraform(struct!.path),
port: cdktf.stringToTerraform(struct!.port),
protocol: cdktf.stringToTerraform(struct!.protocol),
timeout: cdktf.numberToTerraform(struct!.timeout),
unhealthy_threshold: cdktf.numberToTerraform(struct!.unhealthyThreshold),
}
}
export class AlbTargetGroupHealthCheckOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
super(terraformResource, terraformAttribute, false, 0);
}
public get internalValue(): AlbTargetGroupHealthCheck | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._healthyThreshold !== undefined) {
hasAnyValues = true;
internalValueResult.healthyThreshold = this._healthyThreshold;
}
if (this._interval !== undefined) {
hasAnyValues = true;
internalValueResult.interval = this._interval;
}
if (this._matcher !== undefined) {
hasAnyValues = true;
internalValueResult.matcher = this._matcher;
}
if (this._path !== undefined) {
hasAnyValues = true;
internalValueResult.path = this._path;
}
if (this._port !== undefined) {
hasAnyValues = true;
internalValueResult.port = this._port;
}
if (this._protocol !== undefined) {
hasAnyValues = true;
internalValueResult.protocol = this._protocol;
}
if (this._timeout !== undefined) {
hasAnyValues = true;
internalValueResult.timeout = this._timeout;
}
if (this._unhealthyThreshold !== undefined) {
hasAnyValues = true;
internalValueResult.unhealthyThreshold = this._unhealthyThreshold;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AlbTargetGroupHealthCheck | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
this._healthyThreshold = undefined;
this._interval = undefined;
this._matcher = undefined;
this._path = undefined;
this._port = undefined;
this._protocol = undefined;
this._timeout = undefined;
this._unhealthyThreshold = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
this._healthyThreshold = value.healthyThreshold;
this._interval = value.interval;
this._matcher = value.matcher;
this._path = value.path;
this._port = value.port;
this._protocol = value.protocol;
this._timeout = value.timeout;
this._unhealthyThreshold = value.unhealthyThreshold;
}
}
// enabled - computed: false, optional: true, required: false
private _enabled?: boolean | cdktf.IResolvable;
public get enabled() {
return this.getBooleanAttribute('enabled');
}
public set enabled(value: boolean | cdktf.IResolvable) {
this._enabled = value;
}
public resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
public get enabledInput() {
return this._enabled;
}
// healthy_threshold - computed: false, optional: true, required: false
private _healthyThreshold?: number;
public get healthyThreshold() {
return this.getNumberAttribute('healthy_threshold');
}
public set healthyThreshold(value: number) {
this._healthyThreshold = value;
}
public resetHealthyThreshold() {
this._healthyThreshold = undefined;
}
// Temporarily expose input value. Use with caution.
public get healthyThresholdInput() {
return this._healthyThreshold;
}
// interval - computed: false, optional: true, required: false
private _interval?: number;
public get interval() {
return this.getNumberAttribute('interval');
}
public set interval(value: number) {
this._interval = value;
}
public resetInterval() {
this._interval = undefined;
}
// Temporarily expose input value. Use with caution.
public get intervalInput() {
return this._interval;
}
// matcher - computed: true, optional: true, required: false
private _matcher?: string;
public get matcher() {
return this.getStringAttribute('matcher');
}
public set matcher(value: string) {
this._matcher = value;
}
public resetMatcher() {
this._matcher = undefined;
}
// Temporarily expose input value. Use with caution.
public get matcherInput() {
return this._matcher;
}
// path - computed: true, optional: true, required: false
private _path?: string;
public get path() {
return this.getStringAttribute('path');
}
public set path(value: string) {
this._path = value;
}
public resetPath() {
this._path = undefined;
}
// Temporarily expose input value. Use with caution.
public get pathInput() {
return this._path;
}
// port - computed: false, optional: true, required: false
private _port?: string;
public get port() {
return this.getStringAttribute('port');
}
public set port(value: string) {
this._port = value;
}
public resetPort() {
this._port = undefined;
}
// Temporarily expose input value. Use with caution.
public get portInput() {
return this._port;
}
// protocol - computed: false, optional: true, required: false
private _protocol?: string;
public get protocol() {
return this.getStringAttribute('protocol');
}
public set protocol(value: string) {
this._protocol = value;
}
public resetProtocol() {
this._protocol = undefined;
}
// Temporarily expose input value. Use with caution.
public get protocolInput() {
return this._protocol;
}
// timeout - computed: true, optional: true, required: false
private _timeout?: number;
public get timeout() {
return this.getNumberAttribute('timeout');
}
public set timeout(value: number) {
this._timeout = value;
}
public resetTimeout() {
this._timeout = undefined;
}
// Temporarily expose input value. Use with caution.
public get timeoutInput() {
return this._timeout;
}
// unhealthy_threshold - computed: false, optional: true, required: false
private _unhealthyThreshold?: number;
public get unhealthyThreshold() {
return this.getNumberAttribute('unhealthy_threshold');
}
public set unhealthyThreshold(value: number) {
this._unhealthyThreshold = value;
}
public resetUnhealthyThreshold() {
this._unhealthyThreshold = undefined;
}
// Temporarily expose input value. Use with caution.
public get unhealthyThresholdInput() {
return this._unhealthyThreshold;
}
}
export interface AlbTargetGroupStickiness {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#cookie_duration AlbTargetGroup#cookie_duration}
*/
readonly cookieDuration?: number;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#cookie_name AlbTargetGroup#cookie_name}
*/
readonly cookieName?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#enabled AlbTargetGroup#enabled}
*/
readonly enabled?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#type AlbTargetGroup#type}
*/
readonly type: string;
}
export function albTargetGroupStickinessToTerraform(struct?: AlbTargetGroupStickinessOutputReference | AlbTargetGroupStickiness): any {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; }
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
cookie_duration: cdktf.numberToTerraform(struct!.cookieDuration),
cookie_name: cdktf.stringToTerraform(struct!.cookieName),
enabled: cdktf.booleanToTerraform(struct!.enabled),
type: cdktf.stringToTerraform(struct!.type),
}
}
export class AlbTargetGroupStickinessOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
*/
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
super(terraformResource, terraformAttribute, false, 0);
}
public get internalValue(): AlbTargetGroupStickiness | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._cookieDuration !== undefined) {
hasAnyValues = true;
internalValueResult.cookieDuration = this._cookieDuration;
}
if (this._cookieName !== undefined) {
hasAnyValues = true;
internalValueResult.cookieName = this._cookieName;
}
if (this._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AlbTargetGroupStickiness | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this._cookieDuration = undefined;
this._cookieName = undefined;
this._enabled = undefined;
this._type = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._cookieDuration = value.cookieDuration;
this._cookieName = value.cookieName;
this._enabled = value.enabled;
this._type = value.type;
}
}
// cookie_duration - computed: false, optional: true, required: false
private _cookieDuration?: number;
public get cookieDuration() {
return this.getNumberAttribute('cookie_duration');
}
public set cookieDuration(value: number) {
this._cookieDuration = value;
}
public resetCookieDuration() {
this._cookieDuration = undefined;
}
// Temporarily expose input value. Use with caution.
public get cookieDurationInput() {
return this._cookieDuration;
}
// cookie_name - computed: false, optional: true, required: false
private _cookieName?: string;
public get cookieName() {
return this.getStringAttribute('cookie_name');
}
public set cookieName(value: string) {
this._cookieName = value;
}
public resetCookieName() {
this._cookieName = undefined;
}
// Temporarily expose input value. Use with caution.
public get cookieNameInput() {
return this._cookieName;
}
// enabled - computed: false, optional: true, required: false
private _enabled?: boolean | cdktf.IResolvable;
public get enabled() {
return this.getBooleanAttribute('enabled');
}
public set enabled(value: boolean | cdktf.IResolvable) {
this._enabled = value;
}
public resetEnabled() {
this._enabled = undefined;
}
// Temporarily expose input value. Use with caution.
public get enabledInput() {
return this._enabled;
}
// type - computed: false, optional: false, required: true
private _type?: string;
public get type() {
return this.getStringAttribute('type');
}
public set type(value: string) {
this._type = value;
}
// Temporarily expose input value. Use with caution.
public get typeInput() {
return this._type;
}
}
export interface AlbTargetGroupTargetFailover {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#on_deregistration AlbTargetGroup#on_deregistration}
*/
readonly onDeregistration: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group#on_unhealthy AlbTargetGroup#on_unhealthy}
*/
readonly onUnhealthy: string;
}
export function albTargetGroupTargetFailoverToTerraform(struct?: AlbTargetGroupTargetFailover | cdktf.IResolvable): any {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; }
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
on_deregistration: cdktf.stringToTerraform(struct!.onDeregistration),
on_unhealthy: cdktf.stringToTerraform(struct!.onUnhealthy),
}
}
export class AlbTargetGroupTargetFailoverOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
private resolvableValue?: cdktf.IResolvable;
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param complexObjectIndex the index of this item in the list
* @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean) {
super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex);
}
public get internalValue(): AlbTargetGroupTargetFailover | cdktf.IResolvable | undefined {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._onDeregistration !== undefined) {
hasAnyValues = true;
internalValueResult.onDeregistration = this._onDeregistration;
}
if (this._onUnhealthy !== undefined) {
hasAnyValues = true;
internalValueResult.onUnhealthy = this._onUnhealthy;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AlbTargetGroupTargetFailover | cdktf.IResolvable | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._onDeregistration = undefined;
this._onUnhealthy = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
this._onDeregistration = value.onDeregistration;
this._onUnhealthy = value.onUnhealthy;
}
}
// on_deregistration - computed: false, optional: false, required: true
private _onDeregistration?: string;
public get onDeregistration() {
return this.getStringAttribute('on_deregistration');
}
public set onDeregistration(value: string) {
this._onDeregistration = value;
}
// Temporarily expose input value. Use with caution.
public get onDeregistrationInput() {
return this._onDeregistration;
}
// on_unhealthy - computed: false, optional: false, required: true
private _onUnhealthy?: string;
public get onUnhealthy() {
return this.getStringAttribute('on_unhealthy');
}
public set onUnhealthy(value: string) {
this._onUnhealthy = value;
}
// Temporarily expose input value. Use with caution.
public get onUnhealthyInput() {
return this._onUnhealthy;
}
}
export class AlbTargetGroupTargetFailoverList extends cdktf.ComplexList {
public internalValue? : AlbTargetGroupTargetFailover[] | cdktf.IResolvable
/**
* @param terraformResource The parent resource
* @param terraformAttribute The attribute on the parent resource this class is referencing
* @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index)
*/
constructor(protected terraformResource: cdktf.IInterpolatingParent, protected terraformAttribute: string, protected wrapsSet: boolean) {
super(terraformResource, terraformAttribute, wrapsSet)
}
/**
* @param index the index of the item to return
*/
public get(index: number): AlbTargetGroupTargetFailoverOutputReference {
return new AlbTargetGroupTargetFailoverOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group aws_alb_target_group}
*/
export class AlbTargetGroup extends cdktf.TerraformResource {
// =================
// STATIC PROPERTIES
// =================
public static readonly tfResourceType = "aws_alb_target_group";
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://www.terraform.io/docs/providers/aws/r/alb_target_group aws_alb_target_group} Resource
*
* @param scope The scope in which to define this construct
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
* @param options AlbTargetGroupConfig = {}
*/
public constructor(scope: Construct, id: string, config: AlbTargetGroupConfig = {}) {
super(scope, id, {
terraformResourceType: 'aws_alb_target_group',
terraformGeneratorMetadata: {
providerName: 'aws',
providerVersion: '4.46.0',
providerVersionConstraint: '~> 4.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
this._connectionTermination = config.connectionTermination;
this._deregistrationDelay = config.deregistrationDelay;
this._id = config.id;
this._ipAddressType = config.ipAddressType;
this._lambdaMultiValueHeadersEnabled = config.lambdaMultiValueHeadersEnabled;
this._loadBalancingAlgorithmType = config.loadBalancingAlgorithmType;
this._name = config.name;
this._namePrefix = config.namePrefix;
this._port = config.port;
this._preserveClientIp = config.preserveClientIp;
this._protocol = config.protocol;
this._protocolVersion = config.protocolVersion;
this._proxyProtocolV2 = config.proxyProtocolV2;
this._slowStart = config.slowStart;
this._tags = config.tags;
this._tagsAll = config.tagsAll;
this._targetType = config.targetType;
this._vpcId = config.vpcId;
this._healthCheck.internalValue = config.healthCheck;
this._stickiness.internalValue = config.stickiness;
this._targetFailover.internalValue = config.targetFailover;
}
// ==========
// ATTRIBUTES
// ==========
// arn - computed: true, optional: false, required: false
public get arn() {
return this.getStringAttribute('arn');
}
// arn_suffix - computed: true, optional: false, required: false
public get arnSuffix() {
return this.getStringAttribute('arn_suffix');
}
// connection_termination - computed: false, optional: true, required: false
private _connectionTermination?: boolean | cdktf.IResolvable;
public get connectionTermination() {
return this.getBooleanAttribute('connection_termination');
}
public set connectionTermination(value: boolean | cdktf.IResolvable) {
this._connectionTermination = value;
}
public resetConnectionTermination() {
this._connectionTermination = undefined;
}
// Temporarily expose input value. Use with caution.
public get connectionTerminationInput() {
return this._connectionTermination;
}
// deregistration_delay - computed: false, optional: true, required: false
private _deregistrationDelay?: string;
public get deregistrationDelay() {
return this.getStringAttribute('deregistration_delay');
}
public set deregistrationDelay(value: string) {
this._deregistrationDelay = value;
}
public resetDeregistrationDelay() {
this._deregistrationDelay = undefined;
}
// Temporarily expose input value. Use with caution.
public get deregistrationDelayInput() {
return this._deregistrationDelay;
}
// id - computed: true, optional: true, required: false
private _id?: string;
public get id() {
return this.getStringAttribute('id');
}
public set id(value: string) {
this._id = value;
}
public resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
public get idInput() {
return this._id;
}
// ip_address_type - computed: true, optional: true, required: false
private _ipAddressType?: string;
public get ipAddressType() {
return this.getStringAttribute('ip_address_type');
}
public set ipAddressType(value: string) {
this._ipAddressType = value;
}
public resetIpAddressType() {
this._ipAddressType = undefined;
}
// Temporarily expose input value. Use with caution.
public get ipAddressTypeInput() {
return this._ipAddressType;
}
// lambda_multi_value_headers_enabled - computed: false, optional: true, required: false
private _lambdaMultiValueHeadersEnabled?: boolean | cdktf.IResolvable;
public get lambdaMultiValueHeadersEnabled() {
return this.getBooleanAttribute('lambda_multi_value_headers_enabled');
}
public set lambdaMultiValueHeadersEnabled(value: boolean | cdktf.IResolvable) {
this._lambdaMultiValueHeadersEnabled = value;
}
public resetLambdaMultiValueHeadersEnabled() {
this._lambdaMultiValueHeadersEnabled = undefined;
}
// Temporarily expose input value. Use with caution.
public get lambdaMultiValueHeadersEnabledInput() {
return this._lambdaMultiValueHeadersEnabled;
}
// load_balancing_algorithm_type - computed: true, optional: true, required: false
private _loadBalancingAlgorithmType?: string;
public get loadBalancingAlgorithmType() {
return this.getStringAttribute('load_balancing_algorithm_type');
}
public set loadBalancingAlgorithmType(value: string) {
this._loadBalancingAlgorithmType = value;
}
public resetLoadBalancingAlgorithmType() {
this._loadBalancingAlgorithmType = undefined;
}
// Temporarily expose input value. Use with caution.
public get loadBalancingAlgorithmTypeInput() {
return this._loadBalancingAlgorithmType;
}
// name - computed: true, optional: true, required: false
private _name?: string;
public get name() {
return this.getStringAttribute('name');
}
public set name(value: string) {
this._name = value;
}
public resetName() {
this._name = undefined;
}
// Temporarily expose input value. Use with caution.
public get nameInput() {
return this._name;
}
// name_prefix - computed: false, optional: true, required: false
private _namePrefix?: string;
public get namePrefix() {
return this.getStringAttribute('name_prefix');
}
public set namePrefix(value: string) {
this._namePrefix = value;
}
public resetNamePrefix() {
this._namePrefix = undefined;
}
// Temporarily expose input value. Use with caution.
public get namePrefixInput() {
return this._namePrefix;
}
// port - computed: false, optional: true, required: false
private _port?: number;
public get port() {
return this.getNumberAttribute('port');
}
public set port(value: number) {
this._port = value;
}
public resetPort() {
this._port = undefined;
}
// Temporarily expose input value. Use with caution.
public get portInput() {
return this._port;
}
// preserve_client_ip - computed: true, optional: true, required: false
private _preserveClientIp?: string;
public get preserveClientIp() {
return this.getStringAttribute('preserve_client_ip');
}
public set preserveClientIp(value: string) {
this._preserveClientIp = value;
}
public resetPreserveClientIp() {
this._preserveClientIp = undefined;
}
// Temporarily expose input value. Use with caution.
public get preserveClientIpInput() {
return this._preserveClientIp;
}
// protocol - computed: false, optional: true, required: false
private _protocol?: string;
public get protocol() {
return this.getStringAttribute('protocol');
}
public set protocol(value: string) {
this._protocol = value;
}
public resetProtocol() {
this._protocol = undefined;
}
// Temporarily expose input value. Use with caution.
public get protocolInput() {
return this._protocol;
}
// protocol_version - computed: true, optional: true, required: false
private _protocolVersion?: string;
public get protocolVersion() {
return this.getStringAttribute('protocol_version');
}
public set protocolVersion(value: string) {
this._protocolVersion = value;
}
public resetProtocolVersion() {
this._protocolVersion = undefined;
}
// Temporarily expose input value. Use with caution.
public get protocolVersionInput() {
return this._protocolVersion;
}
// proxy_protocol_v2 - computed: false, optional: true, required: false
private _proxyProtocolV2?: boolean | cdktf.IResolvable;
public get proxyProtocolV2() {
return this.getBooleanAttribute('proxy_protocol_v2');
}
public set proxyProtocolV2(value: boolean | cdktf.IResolvable) {
this._proxyProtocolV2 = value;
}
public resetProxyProtocolV2() {
this._proxyProtocolV2 = undefined;
}
// Temporarily expose input value. Use with caution.
public get proxyProtocolV2Input() {
return this._proxyProtocolV2;
}
// slow_start - computed: false, optional: true, required: false
private _slowStart?: number;
public get slowStart() {
return this.getNumberAttribute('slow_start');
}
public set slowStart(value: number) {
this._slowStart = value;
}
public resetSlowStart() {
this._slowStart = undefined;
}
// Temporarily expose input value. Use with caution.
public get slowStartInput() {
return this._slowStart;
}
// tags - computed: false, optional: true, required: false
private _tags?: { [key: string]: string };
public get tags() {
return this.getStringMapAttribute('tags');
}
public set tags(value: { [key: string]: string }) {
this._tags = value;
}
public resetTags() {
this._tags = undefined;
}
// Temporarily expose input value. Use with caution.
public get tagsInput() {
return this._tags;
}
// tags_all - computed: true, optional: true, required: false
private _tagsAll?: { [key: string]: string };
public get tagsAll() {
return this.getStringMapAttribute('tags_all');
}
public set tagsAll(value: { [key: string]: string }) {
this._tagsAll = value;
}
public resetTagsAll() {
this._tagsAll = undefined;
}
// Temporarily expose input value. Use with caution.
public get tagsAllInput() {
return this._tagsAll;
}
// target_type - computed: false, optional: true, required: false
private _targetType?: string;
public get targetType() {
return this.getStringAttribute('target_type');
}
public set targetType(value: string) {
this._targetType = value;
}
public resetTargetType() {
this._targetType = undefined;
}
// Temporarily expose input value. Use with caution.
public get targetTypeInput() {
return this._targetType;
}
// vpc_id - computed: false, optional: true, required: false
private _vpcId?: string;
public get vpcId() {
return this.getStringAttribute('vpc_id');
}
public set vpcId(value: string) {
this._vpcId = value;
}