/
index.ts
757 lines (702 loc) · 27.2 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
// https://www.terraform.io/docs/providers/aws/r/appstream_fleet
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
// Configuration
export interface AppstreamFleetConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#description AppstreamFleet#description}
*/
readonly description?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#disconnect_timeout_in_seconds AppstreamFleet#disconnect_timeout_in_seconds}
*/
readonly disconnectTimeoutInSeconds?: number;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#display_name AppstreamFleet#display_name}
*/
readonly displayName?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#enable_default_internet_access AppstreamFleet#enable_default_internet_access}
*/
readonly enableDefaultInternetAccess?: boolean | cdktf.IResolvable;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#fleet_type AppstreamFleet#fleet_type}
*/
readonly fleetType?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#iam_role_arn AppstreamFleet#iam_role_arn}
*/
readonly iamRoleArn?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#id AppstreamFleet#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_fleet#idle_disconnect_timeout_in_seconds AppstreamFleet#idle_disconnect_timeout_in_seconds}
*/
readonly idleDisconnectTimeoutInSeconds?: number;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#image_arn AppstreamFleet#image_arn}
*/
readonly imageArn?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#image_name AppstreamFleet#image_name}
*/
readonly imageName?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#instance_type AppstreamFleet#instance_type}
*/
readonly instanceType: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#max_user_duration_in_seconds AppstreamFleet#max_user_duration_in_seconds}
*/
readonly maxUserDurationInSeconds?: number;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#name AppstreamFleet#name}
*/
readonly name: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#stream_view AppstreamFleet#stream_view}
*/
readonly streamView?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#tags AppstreamFleet#tags}
*/
readonly tags?: { [key: string]: string };
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#tags_all AppstreamFleet#tags_all}
*/
readonly tagsAll?: { [key: string]: string };
/**
* compute_capacity block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#compute_capacity AppstreamFleet#compute_capacity}
*/
readonly computeCapacity: AppstreamFleetComputeCapacity;
/**
* domain_join_info block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#domain_join_info AppstreamFleet#domain_join_info}
*/
readonly domainJoinInfo?: AppstreamFleetDomainJoinInfo;
/**
* vpc_config block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#vpc_config AppstreamFleet#vpc_config}
*/
readonly vpcConfig?: AppstreamFleetVpcConfig;
}
export interface AppstreamFleetComputeCapacity {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#desired_instances AppstreamFleet#desired_instances}
*/
readonly desiredInstances: number;
}
export function appstreamFleetComputeCapacityToTerraform(struct?: AppstreamFleetComputeCapacityOutputReference | AppstreamFleetComputeCapacity): 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 {
desired_instances: cdktf.numberToTerraform(struct!.desiredInstances),
}
}
export class AppstreamFleetComputeCapacityOutputReference 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(): AppstreamFleetComputeCapacity | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._desiredInstances !== undefined) {
hasAnyValues = true;
internalValueResult.desiredInstances = this._desiredInstances;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AppstreamFleetComputeCapacity | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this._desiredInstances = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._desiredInstances = value.desiredInstances;
}
}
// available - computed: true, optional: false, required: false
public get available() {
return this.getNumberAttribute('available');
}
// desired_instances - computed: false, optional: false, required: true
private _desiredInstances?: number;
public get desiredInstances() {
return this.getNumberAttribute('desired_instances');
}
public set desiredInstances(value: number) {
this._desiredInstances = value;
}
// Temporarily expose input value. Use with caution.
public get desiredInstancesInput() {
return this._desiredInstances;
}
// in_use - computed: true, optional: false, required: false
public get inUse() {
return this.getNumberAttribute('in_use');
}
// running - computed: true, optional: false, required: false
public get running() {
return this.getNumberAttribute('running');
}
}
export interface AppstreamFleetDomainJoinInfo {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#directory_name AppstreamFleet#directory_name}
*/
readonly directoryName?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#organizational_unit_distinguished_name AppstreamFleet#organizational_unit_distinguished_name}
*/
readonly organizationalUnitDistinguishedName?: string;
}
export function appstreamFleetDomainJoinInfoToTerraform(struct?: AppstreamFleetDomainJoinInfoOutputReference | AppstreamFleetDomainJoinInfo): 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 {
directory_name: cdktf.stringToTerraform(struct!.directoryName),
organizational_unit_distinguished_name: cdktf.stringToTerraform(struct!.organizationalUnitDistinguishedName),
}
}
export class AppstreamFleetDomainJoinInfoOutputReference 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(): AppstreamFleetDomainJoinInfo | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._directoryName !== undefined) {
hasAnyValues = true;
internalValueResult.directoryName = this._directoryName;
}
if (this._organizationalUnitDistinguishedName !== undefined) {
hasAnyValues = true;
internalValueResult.organizationalUnitDistinguishedName = this._organizationalUnitDistinguishedName;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AppstreamFleetDomainJoinInfo | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this._directoryName = undefined;
this._organizationalUnitDistinguishedName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._directoryName = value.directoryName;
this._organizationalUnitDistinguishedName = value.organizationalUnitDistinguishedName;
}
}
// directory_name - computed: true, optional: true, required: false
private _directoryName?: string;
public get directoryName() {
return this.getStringAttribute('directory_name');
}
public set directoryName(value: string) {
this._directoryName = value;
}
public resetDirectoryName() {
this._directoryName = undefined;
}
// Temporarily expose input value. Use with caution.
public get directoryNameInput() {
return this._directoryName;
}
// organizational_unit_distinguished_name - computed: true, optional: true, required: false
private _organizationalUnitDistinguishedName?: string;
public get organizationalUnitDistinguishedName() {
return this.getStringAttribute('organizational_unit_distinguished_name');
}
public set organizationalUnitDistinguishedName(value: string) {
this._organizationalUnitDistinguishedName = value;
}
public resetOrganizationalUnitDistinguishedName() {
this._organizationalUnitDistinguishedName = undefined;
}
// Temporarily expose input value. Use with caution.
public get organizationalUnitDistinguishedNameInput() {
return this._organizationalUnitDistinguishedName;
}
}
export interface AppstreamFleetVpcConfig {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#security_group_ids AppstreamFleet#security_group_ids}
*/
readonly securityGroupIds?: string[];
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet#subnet_ids AppstreamFleet#subnet_ids}
*/
readonly subnetIds?: string[];
}
export function appstreamFleetVpcConfigToTerraform(struct?: AppstreamFleetVpcConfigOutputReference | AppstreamFleetVpcConfig): 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 {
security_group_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct!.securityGroupIds),
subnet_ids: cdktf.listMapper(cdktf.stringToTerraform, false)(struct!.subnetIds),
}
}
export class AppstreamFleetVpcConfigOutputReference 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(): AppstreamFleetVpcConfig | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._securityGroupIds !== undefined) {
hasAnyValues = true;
internalValueResult.securityGroupIds = this._securityGroupIds;
}
if (this._subnetIds !== undefined) {
hasAnyValues = true;
internalValueResult.subnetIds = this._subnetIds;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AppstreamFleetVpcConfig | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this._securityGroupIds = undefined;
this._subnetIds = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._securityGroupIds = value.securityGroupIds;
this._subnetIds = value.subnetIds;
}
}
// security_group_ids - computed: true, optional: true, required: false
private _securityGroupIds?: string[];
public get securityGroupIds() {
return this.getListAttribute('security_group_ids');
}
public set securityGroupIds(value: string[]) {
this._securityGroupIds = value;
}
public resetSecurityGroupIds() {
this._securityGroupIds = undefined;
}
// Temporarily expose input value. Use with caution.
public get securityGroupIdsInput() {
return this._securityGroupIds;
}
// subnet_ids - computed: true, optional: true, required: false
private _subnetIds?: string[];
public get subnetIds() {
return this.getListAttribute('subnet_ids');
}
public set subnetIds(value: string[]) {
this._subnetIds = value;
}
public resetSubnetIds() {
this._subnetIds = undefined;
}
// Temporarily expose input value. Use with caution.
public get subnetIdsInput() {
return this._subnetIds;
}
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet aws_appstream_fleet}
*/
export class AppstreamFleet extends cdktf.TerraformResource {
// =================
// STATIC PROPERTIES
// =================
public static readonly tfResourceType = "aws_appstream_fleet";
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://www.terraform.io/docs/providers/aws/r/appstream_fleet aws_appstream_fleet} 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 AppstreamFleetConfig
*/
public constructor(scope: Construct, id: string, config: AppstreamFleetConfig) {
super(scope, id, {
terraformResourceType: 'aws_appstream_fleet',
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._disconnectTimeoutInSeconds = config.disconnectTimeoutInSeconds;
this._displayName = config.displayName;
this._enableDefaultInternetAccess = config.enableDefaultInternetAccess;
this._fleetType = config.fleetType;
this._iamRoleArn = config.iamRoleArn;
this._id = config.id;
this._idleDisconnectTimeoutInSeconds = config.idleDisconnectTimeoutInSeconds;
this._imageArn = config.imageArn;
this._imageName = config.imageName;
this._instanceType = config.instanceType;
this._maxUserDurationInSeconds = config.maxUserDurationInSeconds;
this._name = config.name;
this._streamView = config.streamView;
this._tags = config.tags;
this._tagsAll = config.tagsAll;
this._computeCapacity.internalValue = config.computeCapacity;
this._domainJoinInfo.internalValue = config.domainJoinInfo;
this._vpcConfig.internalValue = config.vpcConfig;
}
// ==========
// 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;
}
// disconnect_timeout_in_seconds - computed: true, optional: true, required: false
private _disconnectTimeoutInSeconds?: number;
public get disconnectTimeoutInSeconds() {
return this.getNumberAttribute('disconnect_timeout_in_seconds');
}
public set disconnectTimeoutInSeconds(value: number) {
this._disconnectTimeoutInSeconds = value;
}
public resetDisconnectTimeoutInSeconds() {
this._disconnectTimeoutInSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
public get disconnectTimeoutInSecondsInput() {
return this._disconnectTimeoutInSeconds;
}
// 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;
}
// enable_default_internet_access - computed: true, optional: true, required: false
private _enableDefaultInternetAccess?: boolean | cdktf.IResolvable;
public get enableDefaultInternetAccess() {
return this.getBooleanAttribute('enable_default_internet_access');
}
public set enableDefaultInternetAccess(value: boolean | cdktf.IResolvable) {
this._enableDefaultInternetAccess = value;
}
public resetEnableDefaultInternetAccess() {
this._enableDefaultInternetAccess = undefined;
}
// Temporarily expose input value. Use with caution.
public get enableDefaultInternetAccessInput() {
return this._enableDefaultInternetAccess;
}
// fleet_type - computed: true, optional: true, required: false
private _fleetType?: string;
public get fleetType() {
return this.getStringAttribute('fleet_type');
}
public set fleetType(value: string) {
this._fleetType = value;
}
public resetFleetType() {
this._fleetType = undefined;
}
// Temporarily expose input value. Use with caution.
public get fleetTypeInput() {
return this._fleetType;
}
// iam_role_arn - computed: true, optional: true, required: false
private _iamRoleArn?: string;
public get iamRoleArn() {
return this.getStringAttribute('iam_role_arn');
}
public set iamRoleArn(value: string) {
this._iamRoleArn = value;
}
public resetIamRoleArn() {
this._iamRoleArn = undefined;
}
// Temporarily expose input value. Use with caution.
public get iamRoleArnInput() {
return this._iamRoleArn;
}
// 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;
}
// idle_disconnect_timeout_in_seconds - computed: false, optional: true, required: false
private _idleDisconnectTimeoutInSeconds?: number;
public get idleDisconnectTimeoutInSeconds() {
return this.getNumberAttribute('idle_disconnect_timeout_in_seconds');
}
public set idleDisconnectTimeoutInSeconds(value: number) {
this._idleDisconnectTimeoutInSeconds = value;
}
public resetIdleDisconnectTimeoutInSeconds() {
this._idleDisconnectTimeoutInSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
public get idleDisconnectTimeoutInSecondsInput() {
return this._idleDisconnectTimeoutInSeconds;
}
// image_arn - computed: true, optional: true, required: false
private _imageArn?: string;
public get imageArn() {
return this.getStringAttribute('image_arn');
}
public set imageArn(value: string) {
this._imageArn = value;
}
public resetImageArn() {
this._imageArn = undefined;
}
// Temporarily expose input value. Use with caution.
public get imageArnInput() {
return this._imageArn;
}
// image_name - computed: true, optional: true, required: false
private _imageName?: string;
public get imageName() {
return this.getStringAttribute('image_name');
}
public set imageName(value: string) {
this._imageName = value;
}
public resetImageName() {
this._imageName = undefined;
}
// Temporarily expose input value. Use with caution.
public get imageNameInput() {
return this._imageName;
}
// instance_type - computed: false, optional: false, required: true
private _instanceType?: string;
public get instanceType() {
return this.getStringAttribute('instance_type');
}
public set instanceType(value: string) {
this._instanceType = value;
}
// Temporarily expose input value. Use with caution.
public get instanceTypeInput() {
return this._instanceType;
}
// max_user_duration_in_seconds - computed: true, optional: true, required: false
private _maxUserDurationInSeconds?: number;
public get maxUserDurationInSeconds() {
return this.getNumberAttribute('max_user_duration_in_seconds');
}
public set maxUserDurationInSeconds(value: number) {
this._maxUserDurationInSeconds = value;
}
public resetMaxUserDurationInSeconds() {
this._maxUserDurationInSeconds = undefined;
}
// Temporarily expose input value. Use with caution.
public get maxUserDurationInSecondsInput() {
return this._maxUserDurationInSeconds;
}
// 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;
}
// state - computed: true, optional: false, required: false
public get state() {
return this.getStringAttribute('state');
}
// stream_view - computed: true, optional: true, required: false
private _streamView?: string;
public get streamView() {
return this.getStringAttribute('stream_view');
}
public set streamView(value: string) {
this._streamView = value;
}
public resetStreamView() {
this._streamView = undefined;
}
// Temporarily expose input value. Use with caution.
public get streamViewInput() {
return this._streamView;
}
// 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;
}
// compute_capacity - computed: false, optional: false, required: true
private _computeCapacity = new AppstreamFleetComputeCapacityOutputReference(this, "compute_capacity");
public get computeCapacity() {
return this._computeCapacity;
}
public putComputeCapacity(value: AppstreamFleetComputeCapacity) {
this._computeCapacity.internalValue = value;
}
// Temporarily expose input value. Use with caution.
public get computeCapacityInput() {
return this._computeCapacity.internalValue;
}
// domain_join_info - computed: false, optional: true, required: false
private _domainJoinInfo = new AppstreamFleetDomainJoinInfoOutputReference(this, "domain_join_info");
public get domainJoinInfo() {
return this._domainJoinInfo;
}
public putDomainJoinInfo(value: AppstreamFleetDomainJoinInfo) {
this._domainJoinInfo.internalValue = value;
}
public resetDomainJoinInfo() {
this._domainJoinInfo.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
public get domainJoinInfoInput() {
return this._domainJoinInfo.internalValue;
}
// vpc_config - computed: false, optional: true, required: false
private _vpcConfig = new AppstreamFleetVpcConfigOutputReference(this, "vpc_config");
public get vpcConfig() {
return this._vpcConfig;
}
public putVpcConfig(value: AppstreamFleetVpcConfig) {
this._vpcConfig.internalValue = value;
}
public resetVpcConfig() {
this._vpcConfig.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
public get vpcConfigInput() {
return this._vpcConfig.internalValue;
}
// =========
// SYNTHESIS
// =========
protected synthesizeAttributes(): { [name: string]: any } {
return {
description: cdktf.stringToTerraform(this._description),
disconnect_timeout_in_seconds: cdktf.numberToTerraform(this._disconnectTimeoutInSeconds),
display_name: cdktf.stringToTerraform(this._displayName),
enable_default_internet_access: cdktf.booleanToTerraform(this._enableDefaultInternetAccess),
fleet_type: cdktf.stringToTerraform(this._fleetType),
iam_role_arn: cdktf.stringToTerraform(this._iamRoleArn),
id: cdktf.stringToTerraform(this._id),
idle_disconnect_timeout_in_seconds: cdktf.numberToTerraform(this._idleDisconnectTimeoutInSeconds),
image_arn: cdktf.stringToTerraform(this._imageArn),
image_name: cdktf.stringToTerraform(this._imageName),
instance_type: cdktf.stringToTerraform(this._instanceType),
max_user_duration_in_seconds: cdktf.numberToTerraform(this._maxUserDurationInSeconds),
name: cdktf.stringToTerraform(this._name),
stream_view: cdktf.stringToTerraform(this._streamView),
tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
compute_capacity: appstreamFleetComputeCapacityToTerraform(this._computeCapacity.internalValue),
domain_join_info: appstreamFleetDomainJoinInfoToTerraform(this._domainJoinInfo.internalValue),
vpc_config: appstreamFleetVpcConfigToTerraform(this._vpcConfig.internalValue),
};
}
}