/
index.ts
992 lines (859 loc) · 36.9 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
// https://www.terraform.io/docs/providers/aws/d/alb_listener
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
// Configuration
export interface DataAwsAlbListenerConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/alb_listener#arn DataAwsAlbListener#arn}
*/
readonly arn?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/alb_listener#id DataAwsAlbListener#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/d/alb_listener#load_balancer_arn DataAwsAlbListener#load_balancer_arn}
*/
readonly loadBalancerArn?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/alb_listener#port DataAwsAlbListener#port}
*/
readonly port?: number;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/alb_listener#tags DataAwsAlbListener#tags}
*/
readonly tags?: { [key: string]: string };
/**
* timeouts block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/alb_listener#timeouts DataAwsAlbListener#timeouts}
*/
readonly timeouts?: DataAwsAlbListenerTimeouts;
}
export interface DataAwsAlbListenerDefaultActionAuthenticateCognito {
}
export function dataAwsAlbListenerDefaultActionAuthenticateCognitoToTerraform(struct?: DataAwsAlbListenerDefaultActionAuthenticateCognito): 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 {
}
}
export class DataAwsAlbListenerDefaultActionAuthenticateCognitoOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
/**
* @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(): DataAwsAlbListenerDefaultActionAuthenticateCognito | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: DataAwsAlbListenerDefaultActionAuthenticateCognito | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// authentication_request_extra_params - computed: true, optional: false, required: false
private _authenticationRequestExtraParams = new cdktf.StringMap(this, "authentication_request_extra_params");
public get authenticationRequestExtraParams() {
return this._authenticationRequestExtraParams;
}
// on_unauthenticated_request - computed: true, optional: false, required: false
public get onUnauthenticatedRequest() {
return this.getStringAttribute('on_unauthenticated_request');
}
// scope - computed: true, optional: false, required: false
public get scope() {
return this.getStringAttribute('scope');
}
// session_cookie_name - computed: true, optional: false, required: false
public get sessionCookieName() {
return this.getStringAttribute('session_cookie_name');
}
// session_timeout - computed: true, optional: false, required: false
public get sessionTimeout() {
return this.getNumberAttribute('session_timeout');
}
// user_pool_arn - computed: true, optional: false, required: false
public get userPoolArn() {
return this.getStringAttribute('user_pool_arn');
}
// user_pool_client_id - computed: true, optional: false, required: false
public get userPoolClientId() {
return this.getStringAttribute('user_pool_client_id');
}
// user_pool_domain - computed: true, optional: false, required: false
public get userPoolDomain() {
return this.getStringAttribute('user_pool_domain');
}
}
export class DataAwsAlbListenerDefaultActionAuthenticateCognitoList extends cdktf.ComplexList {
/**
* @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): DataAwsAlbListenerDefaultActionAuthenticateCognitoOutputReference {
return new DataAwsAlbListenerDefaultActionAuthenticateCognitoOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface DataAwsAlbListenerDefaultActionAuthenticateOidc {
}
export function dataAwsAlbListenerDefaultActionAuthenticateOidcToTerraform(struct?: DataAwsAlbListenerDefaultActionAuthenticateOidc): 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 {
}
}
export class DataAwsAlbListenerDefaultActionAuthenticateOidcOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
/**
* @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(): DataAwsAlbListenerDefaultActionAuthenticateOidc | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: DataAwsAlbListenerDefaultActionAuthenticateOidc | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// authentication_request_extra_params - computed: true, optional: false, required: false
private _authenticationRequestExtraParams = new cdktf.StringMap(this, "authentication_request_extra_params");
public get authenticationRequestExtraParams() {
return this._authenticationRequestExtraParams;
}
// authorization_endpoint - computed: true, optional: false, required: false
public get authorizationEndpoint() {
return this.getStringAttribute('authorization_endpoint');
}
// client_id - computed: true, optional: false, required: false
public get clientId() {
return this.getStringAttribute('client_id');
}
// client_secret - computed: true, optional: false, required: false
public get clientSecret() {
return this.getStringAttribute('client_secret');
}
// issuer - computed: true, optional: false, required: false
public get issuer() {
return this.getStringAttribute('issuer');
}
// on_unauthenticated_request - computed: true, optional: false, required: false
public get onUnauthenticatedRequest() {
return this.getStringAttribute('on_unauthenticated_request');
}
// scope - computed: true, optional: false, required: false
public get scope() {
return this.getStringAttribute('scope');
}
// session_cookie_name - computed: true, optional: false, required: false
public get sessionCookieName() {
return this.getStringAttribute('session_cookie_name');
}
// session_timeout - computed: true, optional: false, required: false
public get sessionTimeout() {
return this.getNumberAttribute('session_timeout');
}
// token_endpoint - computed: true, optional: false, required: false
public get tokenEndpoint() {
return this.getStringAttribute('token_endpoint');
}
// user_info_endpoint - computed: true, optional: false, required: false
public get userInfoEndpoint() {
return this.getStringAttribute('user_info_endpoint');
}
}
export class DataAwsAlbListenerDefaultActionAuthenticateOidcList extends cdktf.ComplexList {
/**
* @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): DataAwsAlbListenerDefaultActionAuthenticateOidcOutputReference {
return new DataAwsAlbListenerDefaultActionAuthenticateOidcOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface DataAwsAlbListenerDefaultActionFixedResponse {
}
export function dataAwsAlbListenerDefaultActionFixedResponseToTerraform(struct?: DataAwsAlbListenerDefaultActionFixedResponse): 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 {
}
}
export class DataAwsAlbListenerDefaultActionFixedResponseOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
/**
* @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(): DataAwsAlbListenerDefaultActionFixedResponse | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: DataAwsAlbListenerDefaultActionFixedResponse | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// content_type - computed: true, optional: false, required: false
public get contentType() {
return this.getStringAttribute('content_type');
}
// message_body - computed: true, optional: false, required: false
public get messageBody() {
return this.getStringAttribute('message_body');
}
// status_code - computed: true, optional: false, required: false
public get statusCode() {
return this.getStringAttribute('status_code');
}
}
export class DataAwsAlbListenerDefaultActionFixedResponseList extends cdktf.ComplexList {
/**
* @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): DataAwsAlbListenerDefaultActionFixedResponseOutputReference {
return new DataAwsAlbListenerDefaultActionFixedResponseOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface DataAwsAlbListenerDefaultActionForwardStickiness {
}
export function dataAwsAlbListenerDefaultActionForwardStickinessToTerraform(struct?: DataAwsAlbListenerDefaultActionForwardStickiness): 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 {
}
}
export class DataAwsAlbListenerDefaultActionForwardStickinessOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
/**
* @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(): DataAwsAlbListenerDefaultActionForwardStickiness | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: DataAwsAlbListenerDefaultActionForwardStickiness | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// duration - computed: true, optional: false, required: false
public get duration() {
return this.getNumberAttribute('duration');
}
// enabled - computed: true, optional: false, required: false
public get enabled() {
return this.getBooleanAttribute('enabled');
}
}
export class DataAwsAlbListenerDefaultActionForwardStickinessList extends cdktf.ComplexList {
/**
* @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): DataAwsAlbListenerDefaultActionForwardStickinessOutputReference {
return new DataAwsAlbListenerDefaultActionForwardStickinessOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface DataAwsAlbListenerDefaultActionForwardTargetGroup {
}
export function dataAwsAlbListenerDefaultActionForwardTargetGroupToTerraform(struct?: DataAwsAlbListenerDefaultActionForwardTargetGroup): 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 {
}
}
export class DataAwsAlbListenerDefaultActionForwardTargetGroupOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
/**
* @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(): DataAwsAlbListenerDefaultActionForwardTargetGroup | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: DataAwsAlbListenerDefaultActionForwardTargetGroup | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// arn - computed: true, optional: false, required: false
public get arn() {
return this.getStringAttribute('arn');
}
// weight - computed: true, optional: false, required: false
public get weight() {
return this.getNumberAttribute('weight');
}
}
export class DataAwsAlbListenerDefaultActionForwardTargetGroupList extends cdktf.ComplexList {
/**
* @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): DataAwsAlbListenerDefaultActionForwardTargetGroupOutputReference {
return new DataAwsAlbListenerDefaultActionForwardTargetGroupOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface DataAwsAlbListenerDefaultActionForward {
}
export function dataAwsAlbListenerDefaultActionForwardToTerraform(struct?: DataAwsAlbListenerDefaultActionForward): 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 {
}
}
export class DataAwsAlbListenerDefaultActionForwardOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
/**
* @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(): DataAwsAlbListenerDefaultActionForward | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: DataAwsAlbListenerDefaultActionForward | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// stickiness - computed: true, optional: false, required: false
private _stickiness = new DataAwsAlbListenerDefaultActionForwardStickinessList(this, "stickiness", false);
public get stickiness() {
return this._stickiness;
}
// target_group - computed: true, optional: false, required: false
private _targetGroup = new DataAwsAlbListenerDefaultActionForwardTargetGroupList(this, "target_group", true);
public get targetGroup() {
return this._targetGroup;
}
}
export class DataAwsAlbListenerDefaultActionForwardList extends cdktf.ComplexList {
/**
* @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): DataAwsAlbListenerDefaultActionForwardOutputReference {
return new DataAwsAlbListenerDefaultActionForwardOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface DataAwsAlbListenerDefaultActionRedirect {
}
export function dataAwsAlbListenerDefaultActionRedirectToTerraform(struct?: DataAwsAlbListenerDefaultActionRedirect): 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 {
}
}
export class DataAwsAlbListenerDefaultActionRedirectOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
/**
* @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(): DataAwsAlbListenerDefaultActionRedirect | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: DataAwsAlbListenerDefaultActionRedirect | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// host - computed: true, optional: false, required: false
public get host() {
return this.getStringAttribute('host');
}
// path - computed: true, optional: false, required: false
public get path() {
return this.getStringAttribute('path');
}
// port - computed: true, optional: false, required: false
public get port() {
return this.getStringAttribute('port');
}
// protocol - computed: true, optional: false, required: false
public get protocol() {
return this.getStringAttribute('protocol');
}
// query - computed: true, optional: false, required: false
public get query() {
return this.getStringAttribute('query');
}
// status_code - computed: true, optional: false, required: false
public get statusCode() {
return this.getStringAttribute('status_code');
}
}
export class DataAwsAlbListenerDefaultActionRedirectList extends cdktf.ComplexList {
/**
* @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): DataAwsAlbListenerDefaultActionRedirectOutputReference {
return new DataAwsAlbListenerDefaultActionRedirectOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface DataAwsAlbListenerDefaultAction {
}
export function dataAwsAlbListenerDefaultActionToTerraform(struct?: DataAwsAlbListenerDefaultAction): 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 {
}
}
export class DataAwsAlbListenerDefaultActionOutputReference extends cdktf.ComplexObject {
private isEmptyObject = false;
/**
* @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(): DataAwsAlbListenerDefaultAction | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: DataAwsAlbListenerDefaultAction | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// authenticate_cognito - computed: true, optional: false, required: false
private _authenticateCognito = new DataAwsAlbListenerDefaultActionAuthenticateCognitoList(this, "authenticate_cognito", false);
public get authenticateCognito() {
return this._authenticateCognito;
}
// authenticate_oidc - computed: true, optional: false, required: false
private _authenticateOidc = new DataAwsAlbListenerDefaultActionAuthenticateOidcList(this, "authenticate_oidc", false);
public get authenticateOidc() {
return this._authenticateOidc;
}
// fixed_response - computed: true, optional: false, required: false
private _fixedResponse = new DataAwsAlbListenerDefaultActionFixedResponseList(this, "fixed_response", false);
public get fixedResponse() {
return this._fixedResponse;
}
// forward - computed: true, optional: false, required: false
private _forward = new DataAwsAlbListenerDefaultActionForwardList(this, "forward", false);
public get forward() {
return this._forward;
}
// order - computed: true, optional: false, required: false
public get order() {
return this.getNumberAttribute('order');
}
// redirect - computed: true, optional: false, required: false
private _redirect = new DataAwsAlbListenerDefaultActionRedirectList(this, "redirect", false);
public get redirect() {
return this._redirect;
}
// target_group_arn - computed: true, optional: false, required: false
public get targetGroupArn() {
return this.getStringAttribute('target_group_arn');
}
// type - computed: true, optional: false, required: false
public get type() {
return this.getStringAttribute('type');
}
}
export class DataAwsAlbListenerDefaultActionList extends cdktf.ComplexList {
/**
* @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): DataAwsAlbListenerDefaultActionOutputReference {
return new DataAwsAlbListenerDefaultActionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface DataAwsAlbListenerTimeouts {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/alb_listener#read DataAwsAlbListener#read}
*/
readonly read?: string;
}
export function dataAwsAlbListenerTimeoutsToTerraform(struct?: DataAwsAlbListenerTimeoutsOutputReference | DataAwsAlbListenerTimeouts | 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 {
read: cdktf.stringToTerraform(struct!.read),
}
}
export class DataAwsAlbListenerTimeoutsOutputReference 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
*/
public constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string) {
super(terraformResource, terraformAttribute, false, 0);
}
public get internalValue(): DataAwsAlbListenerTimeouts | cdktf.IResolvable | undefined {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._read !== undefined) {
hasAnyValues = true;
internalValueResult.read = this._read;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: DataAwsAlbListenerTimeouts | cdktf.IResolvable | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._read = 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._read = value.read;
}
}
// read - computed: false, optional: true, required: false
private _read?: string;
public get read() {
return this.getStringAttribute('read');
}
public set read(value: string) {
this._read = value;
}
public resetRead() {
this._read = undefined;
}
// Temporarily expose input value. Use with caution.
public get readInput() {
return this._read;
}
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/d/alb_listener aws_alb_listener}
*/
export class DataAwsAlbListener extends cdktf.TerraformDataSource {
// =================
// STATIC PROPERTIES
// =================
public static readonly tfResourceType = "aws_alb_listener";
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://www.terraform.io/docs/providers/aws/d/alb_listener aws_alb_listener} Data Source
*
* @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 DataAwsAlbListenerConfig = {}
*/
public constructor(scope: Construct, id: string, config: DataAwsAlbListenerConfig = {}) {
super(scope, id, {
terraformResourceType: 'aws_alb_listener',
terraformGeneratorMetadata: {
providerName: 'aws',
providerVersion: '4.39.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._arn = config.arn;
this._id = config.id;
this._loadBalancerArn = config.loadBalancerArn;
this._port = config.port;
this._tags = config.tags;
this._timeouts.internalValue = config.timeouts;
}
// ==========
// ATTRIBUTES
// ==========
// alpn_policy - computed: true, optional: false, required: false
public get alpnPolicy() {
return this.getStringAttribute('alpn_policy');
}
// arn - computed: true, optional: true, required: false
private _arn?: string;
public get arn() {
return this.getStringAttribute('arn');
}
public set arn(value: string) {
this._arn = value;
}
public resetArn() {
this._arn = undefined;
}
// Temporarily expose input value. Use with caution.
public get arnInput() {
return this._arn;
}
// certificate_arn - computed: true, optional: false, required: false
public get certificateArn() {
return this.getStringAttribute('certificate_arn');
}
// default_action - computed: true, optional: false, required: false
private _defaultAction = new DataAwsAlbListenerDefaultActionList(this, "default_action", false);
public get defaultAction() {
return this._defaultAction;
}
// 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;
}
// load_balancer_arn - computed: true, optional: true, required: false
private _loadBalancerArn?: string;
public get loadBalancerArn() {
return this.getStringAttribute('load_balancer_arn');
}
public set loadBalancerArn(value: string) {
this._loadBalancerArn = value;
}
public resetLoadBalancerArn() {
this._loadBalancerArn = undefined;
}
// Temporarily expose input value. Use with caution.
public get loadBalancerArnInput() {
return this._loadBalancerArn;
}
// port - computed: true, 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;
}
// protocol - computed: true, optional: false, required: false
public get protocol() {
return this.getStringAttribute('protocol');
}
// ssl_policy - computed: true, optional: false, required: false
public get sslPolicy() {
return this.getStringAttribute('ssl_policy');
}
// tags - computed: true, 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;
}
// timeouts - computed: false, optional: true, required: false
private _timeouts = new DataAwsAlbListenerTimeoutsOutputReference(this, "timeouts");
public get timeouts() {
return this._timeouts;
}
public putTimeouts(value: DataAwsAlbListenerTimeouts) {
this._timeouts.internalValue = value;
}
public resetTimeouts() {
this._timeouts.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
public get timeoutsInput() {
return this._timeouts.internalValue;
}
// =========
// SYNTHESIS
// =========
protected synthesizeAttributes(): { [name: string]: any } {
return {
arn: cdktf.stringToTerraform(this._arn),
id: cdktf.stringToTerraform(this._id),
load_balancer_arn: cdktf.stringToTerraform(this._loadBalancerArn),
port: cdktf.numberToTerraform(this._port),
tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
timeouts: dataAwsAlbListenerTimeoutsToTerraform(this._timeouts.internalValue),
};
}
}