/
index.ts
843 lines (780 loc) · 30.6 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
// https://www.terraform.io/docs/providers/aws/r/appstream_stack
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
// Configuration
export interface AppstreamStackConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#description AppstreamStack#description}
*/
readonly description?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#display_name AppstreamStack#display_name}
*/
readonly displayName?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#embed_host_domains AppstreamStack#embed_host_domains}
*/
readonly embedHostDomains?: string[];
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#feedback_url AppstreamStack#feedback_url}
*/
readonly feedbackUrl?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#id AppstreamStack#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/appstream_stack#name AppstreamStack#name}
*/
readonly name: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#redirect_url AppstreamStack#redirect_url}
*/
readonly redirectUrl?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#tags AppstreamStack#tags}
*/
readonly tags?: { [key: string]: string };
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#tags_all AppstreamStack#tags_all}
*/
readonly tagsAll?: { [key: string]: string };
/**
* access_endpoints block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#access_endpoints AppstreamStack#access_endpoints}
*/
readonly accessEndpoints?: AppstreamStackAccessEndpoints[] | cdktf.IResolvable;
/**
* application_settings block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#application_settings AppstreamStack#application_settings}
*/
readonly applicationSettings?: AppstreamStackApplicationSettings;
/**
* storage_connectors block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#storage_connectors AppstreamStack#storage_connectors}
*/
readonly storageConnectors?: AppstreamStackStorageConnectors[] | cdktf.IResolvable;
/**
* user_settings block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#user_settings AppstreamStack#user_settings}
*/
readonly userSettings?: AppstreamStackUserSettings[] | cdktf.IResolvable;
}
export interface AppstreamStackAccessEndpoints {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#endpoint_type AppstreamStack#endpoint_type}
*/
readonly endpointType: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#vpce_id AppstreamStack#vpce_id}
*/
readonly vpceId?: string;
}
export function appstreamStackAccessEndpointsToTerraform(struct?: AppstreamStackAccessEndpoints | 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 {
endpoint_type: cdktf.stringToTerraform(struct!.endpointType),
vpce_id: cdktf.stringToTerraform(struct!.vpceId),
}
}
export class AppstreamStackAccessEndpointsOutputReference 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(): AppstreamStackAccessEndpoints | cdktf.IResolvable | undefined {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._endpointType !== undefined) {
hasAnyValues = true;
internalValueResult.endpointType = this._endpointType;
}
if (this._vpceId !== undefined) {
hasAnyValues = true;
internalValueResult.vpceId = this._vpceId;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AppstreamStackAccessEndpoints | cdktf.IResolvable | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._endpointType = undefined;
this._vpceId = 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._endpointType = value.endpointType;
this._vpceId = value.vpceId;
}
}
// endpoint_type - computed: false, optional: false, required: true
private _endpointType?: string;
public get endpointType() {
return this.getStringAttribute('endpoint_type');
}
public set endpointType(value: string) {
this._endpointType = value;
}
// Temporarily expose input value. Use with caution.
public get endpointTypeInput() {
return this._endpointType;
}
// vpce_id - computed: true, optional: true, required: false
private _vpceId?: string;
public get vpceId() {
return this.getStringAttribute('vpce_id');
}
public set vpceId(value: string) {
this._vpceId = value;
}
public resetVpceId() {
this._vpceId = undefined;
}
// Temporarily expose input value. Use with caution.
public get vpceIdInput() {
return this._vpceId;
}
}
export class AppstreamStackAccessEndpointsList extends cdktf.ComplexList {
public internalValue? : AppstreamStackAccessEndpoints[] | 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): AppstreamStackAccessEndpointsOutputReference {
return new AppstreamStackAccessEndpointsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface AppstreamStackApplicationSettings {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#enabled AppstreamStack#enabled}
*/
readonly enabled: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#settings_group AppstreamStack#settings_group}
*/
readonly settingsGroup?: string;
}
export function appstreamStackApplicationSettingsToTerraform(struct?: AppstreamStackApplicationSettingsOutputReference | AppstreamStackApplicationSettings): 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),
settings_group: cdktf.stringToTerraform(struct!.settingsGroup),
}
}
export class AppstreamStackApplicationSettingsOutputReference 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(): AppstreamStackApplicationSettings | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._enabled !== undefined) {
hasAnyValues = true;
internalValueResult.enabled = this._enabled;
}
if (this._settingsGroup !== undefined) {
hasAnyValues = true;
internalValueResult.settingsGroup = this._settingsGroup;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AppstreamStackApplicationSettings | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this._enabled = undefined;
this._settingsGroup = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._enabled = value.enabled;
this._settingsGroup = value.settingsGroup;
}
}
// enabled - computed: false, optional: false, required: true
private _enabled?: boolean | cdktf.IResolvable;
public get enabled() {
return this.getBooleanAttribute('enabled');
}
public set enabled(value: boolean | cdktf.IResolvable) {
this._enabled = value;
}
// Temporarily expose input value. Use with caution.
public get enabledInput() {
return this._enabled;
}
// settings_group - computed: false, optional: true, required: false
private _settingsGroup?: string;
public get settingsGroup() {
return this.getStringAttribute('settings_group');
}
public set settingsGroup(value: string) {
this._settingsGroup = value;
}
public resetSettingsGroup() {
this._settingsGroup = undefined;
}
// Temporarily expose input value. Use with caution.
public get settingsGroupInput() {
return this._settingsGroup;
}
}
export interface AppstreamStackStorageConnectors {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#connector_type AppstreamStack#connector_type}
*/
readonly connectorType: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#domains AppstreamStack#domains}
*/
readonly domains?: string[];
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#resource_identifier AppstreamStack#resource_identifier}
*/
readonly resourceIdentifier?: string;
}
export function appstreamStackStorageConnectorsToTerraform(struct?: AppstreamStackStorageConnectors | 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 {
connector_type: cdktf.stringToTerraform(struct!.connectorType),
domains: cdktf.listMapper(cdktf.stringToTerraform, false)(struct!.domains),
resource_identifier: cdktf.stringToTerraform(struct!.resourceIdentifier),
}
}
export class AppstreamStackStorageConnectorsOutputReference 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(): AppstreamStackStorageConnectors | cdktf.IResolvable | undefined {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._connectorType !== undefined) {
hasAnyValues = true;
internalValueResult.connectorType = this._connectorType;
}
if (this._domains !== undefined) {
hasAnyValues = true;
internalValueResult.domains = this._domains;
}
if (this._resourceIdentifier !== undefined) {
hasAnyValues = true;
internalValueResult.resourceIdentifier = this._resourceIdentifier;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AppstreamStackStorageConnectors | cdktf.IResolvable | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._connectorType = undefined;
this._domains = undefined;
this._resourceIdentifier = 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._connectorType = value.connectorType;
this._domains = value.domains;
this._resourceIdentifier = value.resourceIdentifier;
}
}
// connector_type - computed: false, optional: false, required: true
private _connectorType?: string;
public get connectorType() {
return this.getStringAttribute('connector_type');
}
public set connectorType(value: string) {
this._connectorType = value;
}
// Temporarily expose input value. Use with caution.
public get connectorTypeInput() {
return this._connectorType;
}
// domains - computed: true, optional: true, required: false
private _domains?: string[];
public get domains() {
return this.getListAttribute('domains');
}
public set domains(value: string[]) {
this._domains = value;
}
public resetDomains() {
this._domains = undefined;
}
// Temporarily expose input value. Use with caution.
public get domainsInput() {
return this._domains;
}
// resource_identifier - computed: true, optional: true, required: false
private _resourceIdentifier?: string;
public get resourceIdentifier() {
return this.getStringAttribute('resource_identifier');
}
public set resourceIdentifier(value: string) {
this._resourceIdentifier = value;
}
public resetResourceIdentifier() {
this._resourceIdentifier = undefined;
}
// Temporarily expose input value. Use with caution.
public get resourceIdentifierInput() {
return this._resourceIdentifier;
}
}
export class AppstreamStackStorageConnectorsList extends cdktf.ComplexList {
public internalValue? : AppstreamStackStorageConnectors[] | 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): AppstreamStackStorageConnectorsOutputReference {
return new AppstreamStackStorageConnectorsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface AppstreamStackUserSettings {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#action AppstreamStack#action}
*/
readonly action: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack#permission AppstreamStack#permission}
*/
readonly permission: string;
}
export function appstreamStackUserSettingsToTerraform(struct?: AppstreamStackUserSettings | 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 {
action: cdktf.stringToTerraform(struct!.action),
permission: cdktf.stringToTerraform(struct!.permission),
}
}
export class AppstreamStackUserSettingsOutputReference 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(): AppstreamStackUserSettings | cdktf.IResolvable | undefined {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._action !== undefined) {
hasAnyValues = true;
internalValueResult.action = this._action;
}
if (this._permission !== undefined) {
hasAnyValues = true;
internalValueResult.permission = this._permission;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AppstreamStackUserSettings | cdktf.IResolvable | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._action = undefined;
this._permission = 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._action = value.action;
this._permission = value.permission;
}
}
// action - computed: false, optional: false, required: true
private _action?: string;
public get action() {
return this.getStringAttribute('action');
}
public set action(value: string) {
this._action = value;
}
// Temporarily expose input value. Use with caution.
public get actionInput() {
return this._action;
}
// permission - computed: false, optional: false, required: true
private _permission?: string;
public get permission() {
return this.getStringAttribute('permission');
}
public set permission(value: string) {
this._permission = value;
}
// Temporarily expose input value. Use with caution.
public get permissionInput() {
return this._permission;
}
}
export class AppstreamStackUserSettingsList extends cdktf.ComplexList {
public internalValue? : AppstreamStackUserSettings[] | 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): AppstreamStackUserSettingsOutputReference {
return new AppstreamStackUserSettingsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack aws_appstream_stack}
*/
export class AppstreamStack extends cdktf.TerraformResource {
// =================
// STATIC PROPERTIES
// =================
public static readonly tfResourceType = "aws_appstream_stack";
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://www.terraform.io/docs/providers/aws/r/appstream_stack aws_appstream_stack} 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 AppstreamStackConfig
*/
public constructor(scope: Construct, id: string, config: AppstreamStackConfig) {
super(scope, id, {
terraformResourceType: 'aws_appstream_stack',
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._description = config.description;
this._displayName = config.displayName;
this._embedHostDomains = config.embedHostDomains;
this._feedbackUrl = config.feedbackUrl;
this._id = config.id;
this._name = config.name;
this._redirectUrl = config.redirectUrl;
this._tags = config.tags;
this._tagsAll = config.tagsAll;
this._accessEndpoints.internalValue = config.accessEndpoints;
this._applicationSettings.internalValue = config.applicationSettings;
this._storageConnectors.internalValue = config.storageConnectors;
this._userSettings.internalValue = config.userSettings;
}
// ==========
// ATTRIBUTES
// ==========
// arn - computed: true, optional: false, required: false
public get arn() {
return this.getStringAttribute('arn');
}
// created_time - computed: true, optional: false, required: false
public get createdTime() {
return this.getStringAttribute('created_time');
}
// description - computed: true, optional: true, required: false
private _description?: string;
public get description() {
return this.getStringAttribute('description');
}
public set description(value: string) {
this._description = value;
}
public resetDescription() {
this._description = undefined;
}
// Temporarily expose input value. Use with caution.
public get descriptionInput() {
return this._description;
}
// display_name - computed: true, optional: true, required: false
private _displayName?: string;
public get displayName() {
return this.getStringAttribute('display_name');
}
public set displayName(value: string) {
this._displayName = value;
}
public resetDisplayName() {
this._displayName = undefined;
}
// Temporarily expose input value. Use with caution.
public get displayNameInput() {
return this._displayName;
}
// embed_host_domains - computed: true, optional: true, required: false
private _embedHostDomains?: string[];
public get embedHostDomains() {
return cdktf.Fn.tolist(this.getListAttribute('embed_host_domains'));
}
public set embedHostDomains(value: string[]) {
this._embedHostDomains = value;
}
public resetEmbedHostDomains() {
this._embedHostDomains = undefined;
}
// Temporarily expose input value. Use with caution.
public get embedHostDomainsInput() {
return this._embedHostDomains;
}
// feedback_url - computed: true, optional: true, required: false
private _feedbackUrl?: string;
public get feedbackUrl() {
return this.getStringAttribute('feedback_url');
}
public set feedbackUrl(value: string) {
this._feedbackUrl = value;
}
public resetFeedbackUrl() {
this._feedbackUrl = undefined;
}
// Temporarily expose input value. Use with caution.
public get feedbackUrlInput() {
return this._feedbackUrl;
}
// 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;
}
// name - computed: false, optional: false, required: true
private _name?: string;
public get name() {
return this.getStringAttribute('name');
}
public set name(value: string) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
public get nameInput() {
return this._name;
}
// redirect_url - computed: true, optional: true, required: false
private _redirectUrl?: string;
public get redirectUrl() {
return this.getStringAttribute('redirect_url');
}
public set redirectUrl(value: string) {
this._redirectUrl = value;
}
public resetRedirectUrl() {
this._redirectUrl = undefined;
}
// Temporarily expose input value. Use with caution.
public get redirectUrlInput() {
return this._redirectUrl;
}
// 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;
}
// access_endpoints - computed: false, optional: true, required: false
private _accessEndpoints = new AppstreamStackAccessEndpointsList(this, "access_endpoints", true);
public get accessEndpoints() {
return this._accessEndpoints;
}
public putAccessEndpoints(value: AppstreamStackAccessEndpoints[] | cdktf.IResolvable) {
this._accessEndpoints.internalValue = value;
}
public resetAccessEndpoints() {
this._accessEndpoints.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
public get accessEndpointsInput() {
return this._accessEndpoints.internalValue;
}
// application_settings - computed: false, optional: true, required: false
private _applicationSettings = new AppstreamStackApplicationSettingsOutputReference(this, "application_settings");
public get applicationSettings() {
return this._applicationSettings;
}
public putApplicationSettings(value: AppstreamStackApplicationSettings) {
this._applicationSettings.internalValue = value;
}
public resetApplicationSettings() {
this._applicationSettings.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
public get applicationSettingsInput() {
return this._applicationSettings.internalValue;
}
// storage_connectors - computed: false, optional: true, required: false
private _storageConnectors = new AppstreamStackStorageConnectorsList(this, "storage_connectors", true);
public get storageConnectors() {
return this._storageConnectors;
}
public putStorageConnectors(value: AppstreamStackStorageConnectors[] | cdktf.IResolvable) {
this._storageConnectors.internalValue = value;
}
public resetStorageConnectors() {
this._storageConnectors.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
public get storageConnectorsInput() {
return this._storageConnectors.internalValue;
}
// user_settings - computed: false, optional: true, required: false
private _userSettings = new AppstreamStackUserSettingsList(this, "user_settings", true);
public get userSettings() {
return this._userSettings;
}
public putUserSettings(value: AppstreamStackUserSettings[] | cdktf.IResolvable) {
this._userSettings.internalValue = value;
}
public resetUserSettings() {
this._userSettings.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
public get userSettingsInput() {
return this._userSettings.internalValue;
}
// =========
// SYNTHESIS
// =========
protected synthesizeAttributes(): { [name: string]: any } {
return {
description: cdktf.stringToTerraform(this._description),
display_name: cdktf.stringToTerraform(this._displayName),
embed_host_domains: cdktf.listMapper(cdktf.stringToTerraform, false)(this._embedHostDomains),
feedback_url: cdktf.stringToTerraform(this._feedbackUrl),
id: cdktf.stringToTerraform(this._id),
name: cdktf.stringToTerraform(this._name),
redirect_url: cdktf.stringToTerraform(this._redirectUrl),
tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
access_endpoints: cdktf.listMapper(appstreamStackAccessEndpointsToTerraform, true)(this._accessEndpoints.internalValue),
application_settings: appstreamStackApplicationSettingsToTerraform(this._applicationSettings.internalValue),
storage_connectors: cdktf.listMapper(appstreamStackStorageConnectorsToTerraform, true)(this._storageConnectors.internalValue),
user_settings: cdktf.listMapper(appstreamStackUserSettingsToTerraform, true)(this._userSettings.internalValue),
};
}
}