-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.ts
766 lines (693 loc) · 28.5 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
// https://www.terraform.io/docs/providers/aws/r/acm_certificate
// generated from terraform resource schema
import { Construct } from 'constructs';
import * as cdktf from 'cdktf';
// Configuration
export interface AcmCertificateConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#certificate_authority_arn AcmCertificate#certificate_authority_arn}
*/
readonly certificateAuthorityArn?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#certificate_body AcmCertificate#certificate_body}
*/
readonly certificateBody?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#certificate_chain AcmCertificate#certificate_chain}
*/
readonly certificateChain?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#domain_name AcmCertificate#domain_name}
*/
readonly domainName?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#early_renewal_duration AcmCertificate#early_renewal_duration}
*/
readonly earlyRenewalDuration?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#id AcmCertificate#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/acm_certificate#key_algorithm AcmCertificate#key_algorithm}
*/
readonly keyAlgorithm?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#private_key AcmCertificate#private_key}
*/
readonly privateKey?: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#subject_alternative_names AcmCertificate#subject_alternative_names}
*/
readonly subjectAlternativeNames?: string[];
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#tags AcmCertificate#tags}
*/
readonly tags?: { [key: string]: string };
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#tags_all AcmCertificate#tags_all}
*/
readonly tagsAll?: { [key: string]: string };
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#validation_method AcmCertificate#validation_method}
*/
readonly validationMethod?: string;
/**
* options block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#options AcmCertificate#options}
*/
readonly options?: AcmCertificateOptions;
/**
* validation_option block
*
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#validation_option AcmCertificate#validation_option}
*/
readonly validationOption?: AcmCertificateValidationOption[] | cdktf.IResolvable;
}
export interface AcmCertificateDomainValidationOptions {
}
export function acmCertificateDomainValidationOptionsToTerraform(struct?: AcmCertificateDomainValidationOptions): 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 AcmCertificateDomainValidationOptionsOutputReference 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(): AcmCertificateDomainValidationOptions | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AcmCertificateDomainValidationOptions | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// domain_name - computed: true, optional: false, required: false
public get domainName() {
return this.getStringAttribute('domain_name');
}
// resource_record_name - computed: true, optional: false, required: false
public get resourceRecordName() {
return this.getStringAttribute('resource_record_name');
}
// resource_record_type - computed: true, optional: false, required: false
public get resourceRecordType() {
return this.getStringAttribute('resource_record_type');
}
// resource_record_value - computed: true, optional: false, required: false
public get resourceRecordValue() {
return this.getStringAttribute('resource_record_value');
}
}
export class AcmCertificateDomainValidationOptionsList 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): AcmCertificateDomainValidationOptionsOutputReference {
return new AcmCertificateDomainValidationOptionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface AcmCertificateRenewalSummary {
}
export function acmCertificateRenewalSummaryToTerraform(struct?: AcmCertificateRenewalSummary): 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 AcmCertificateRenewalSummaryOutputReference 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(): AcmCertificateRenewalSummary | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AcmCertificateRenewalSummary | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// renewal_status - computed: true, optional: false, required: false
public get renewalStatus() {
return this.getStringAttribute('renewal_status');
}
// renewal_status_reason - computed: true, optional: false, required: false
public get renewalStatusReason() {
return this.getStringAttribute('renewal_status_reason');
}
// updated_at - computed: true, optional: false, required: false
public get updatedAt() {
return this.getStringAttribute('updated_at');
}
}
export class AcmCertificateRenewalSummaryList 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): AcmCertificateRenewalSummaryOutputReference {
return new AcmCertificateRenewalSummaryOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
export interface AcmCertificateOptions {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#certificate_transparency_logging_preference AcmCertificate#certificate_transparency_logging_preference}
*/
readonly certificateTransparencyLoggingPreference?: string;
}
export function acmCertificateOptionsToTerraform(struct?: AcmCertificateOptionsOutputReference | AcmCertificateOptions): 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 {
certificate_transparency_logging_preference: cdktf.stringToTerraform(struct!.certificateTransparencyLoggingPreference),
}
}
export class AcmCertificateOptionsOutputReference 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(): AcmCertificateOptions | undefined {
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._certificateTransparencyLoggingPreference !== undefined) {
hasAnyValues = true;
internalValueResult.certificateTransparencyLoggingPreference = this._certificateTransparencyLoggingPreference;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AcmCertificateOptions | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this._certificateTransparencyLoggingPreference = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._certificateTransparencyLoggingPreference = value.certificateTransparencyLoggingPreference;
}
}
// certificate_transparency_logging_preference - computed: false, optional: true, required: false
private _certificateTransparencyLoggingPreference?: string;
public get certificateTransparencyLoggingPreference() {
return this.getStringAttribute('certificate_transparency_logging_preference');
}
public set certificateTransparencyLoggingPreference(value: string) {
this._certificateTransparencyLoggingPreference = value;
}
public resetCertificateTransparencyLoggingPreference() {
this._certificateTransparencyLoggingPreference = undefined;
}
// Temporarily expose input value. Use with caution.
public get certificateTransparencyLoggingPreferenceInput() {
return this._certificateTransparencyLoggingPreference;
}
}
export interface AcmCertificateValidationOption {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#domain_name AcmCertificate#domain_name}
*/
readonly domainName: string;
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate#validation_domain AcmCertificate#validation_domain}
*/
readonly validationDomain: string;
}
export function acmCertificateValidationOptionToTerraform(struct?: AcmCertificateValidationOption | 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 {
domain_name: cdktf.stringToTerraform(struct!.domainName),
validation_domain: cdktf.stringToTerraform(struct!.validationDomain),
}
}
export class AcmCertificateValidationOptionOutputReference 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(): AcmCertificateValidationOption | cdktf.IResolvable | undefined {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult: any = {};
if (this._domainName !== undefined) {
hasAnyValues = true;
internalValueResult.domainName = this._domainName;
}
if (this._validationDomain !== undefined) {
hasAnyValues = true;
internalValueResult.validationDomain = this._validationDomain;
}
return hasAnyValues ? internalValueResult : undefined;
}
public set internalValue(value: AcmCertificateValidationOption | cdktf.IResolvable | undefined) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._domainName = undefined;
this._validationDomain = 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._domainName = value.domainName;
this._validationDomain = value.validationDomain;
}
}
// domain_name - computed: false, optional: false, required: true
private _domainName?: string;
public get domainName() {
return this.getStringAttribute('domain_name');
}
public set domainName(value: string) {
this._domainName = value;
}
// Temporarily expose input value. Use with caution.
public get domainNameInput() {
return this._domainName;
}
// validation_domain - computed: false, optional: false, required: true
private _validationDomain?: string;
public get validationDomain() {
return this.getStringAttribute('validation_domain');
}
public set validationDomain(value: string) {
this._validationDomain = value;
}
// Temporarily expose input value. Use with caution.
public get validationDomainInput() {
return this._validationDomain;
}
}
export class AcmCertificateValidationOptionList extends cdktf.ComplexList {
public internalValue? : AcmCertificateValidationOption[] | 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): AcmCertificateValidationOptionOutputReference {
return new AcmCertificateValidationOptionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate aws_acm_certificate}
*/
export class AcmCertificate extends cdktf.TerraformResource {
// =================
// STATIC PROPERTIES
// =================
public static readonly tfResourceType = "aws_acm_certificate";
// ===========
// INITIALIZER
// ===========
/**
* Create a new {@link https://www.terraform.io/docs/providers/aws/r/acm_certificate aws_acm_certificate} 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 AcmCertificateConfig = {}
*/
public constructor(scope: Construct, id: string, config: AcmCertificateConfig = {}) {
super(scope, id, {
terraformResourceType: 'aws_acm_certificate',
terraformGeneratorMetadata: {
providerName: 'aws',
providerVersion: '4.46.0',
providerVersionConstraint: '~> 4.0'
},
provider: config.provider,
dependsOn: config.dependsOn,
count: config.count,
lifecycle: config.lifecycle,
provisioners: config.provisioners,
connection: config.connection,
forEach: config.forEach
});
this._certificateAuthorityArn = config.certificateAuthorityArn;
this._certificateBody = config.certificateBody;
this._certificateChain = config.certificateChain;
this._domainName = config.domainName;
this._earlyRenewalDuration = config.earlyRenewalDuration;
this._id = config.id;
this._keyAlgorithm = config.keyAlgorithm;
this._privateKey = config.privateKey;
this._subjectAlternativeNames = config.subjectAlternativeNames;
this._tags = config.tags;
this._tagsAll = config.tagsAll;
this._validationMethod = config.validationMethod;
this._options.internalValue = config.options;
this._validationOption.internalValue = config.validationOption;
}
// ==========
// ATTRIBUTES
// ==========
// arn - computed: true, optional: false, required: false
public get arn() {
return this.getStringAttribute('arn');
}
// certificate_authority_arn - computed: false, optional: true, required: false
private _certificateAuthorityArn?: string;
public get certificateAuthorityArn() {
return this.getStringAttribute('certificate_authority_arn');
}
public set certificateAuthorityArn(value: string) {
this._certificateAuthorityArn = value;
}
public resetCertificateAuthorityArn() {
this._certificateAuthorityArn = undefined;
}
// Temporarily expose input value. Use with caution.
public get certificateAuthorityArnInput() {
return this._certificateAuthorityArn;
}
// certificate_body - computed: false, optional: true, required: false
private _certificateBody?: string;
public get certificateBody() {
return this.getStringAttribute('certificate_body');
}
public set certificateBody(value: string) {
this._certificateBody = value;
}
public resetCertificateBody() {
this._certificateBody = undefined;
}
// Temporarily expose input value. Use with caution.
public get certificateBodyInput() {
return this._certificateBody;
}
// certificate_chain - computed: false, optional: true, required: false
private _certificateChain?: string;
public get certificateChain() {
return this.getStringAttribute('certificate_chain');
}
public set certificateChain(value: string) {
this._certificateChain = value;
}
public resetCertificateChain() {
this._certificateChain = undefined;
}
// Temporarily expose input value. Use with caution.
public get certificateChainInput() {
return this._certificateChain;
}
// domain_name - computed: true, optional: true, required: false
private _domainName?: string;
public get domainName() {
return this.getStringAttribute('domain_name');
}
public set domainName(value: string) {
this._domainName = value;
}
public resetDomainName() {
this._domainName = undefined;
}
// Temporarily expose input value. Use with caution.
public get domainNameInput() {
return this._domainName;
}
// domain_validation_options - computed: true, optional: false, required: false
private _domainValidationOptions = new AcmCertificateDomainValidationOptionsList(this, "domain_validation_options", true);
public get domainValidationOptions() {
return this._domainValidationOptions;
}
// early_renewal_duration - computed: false, optional: true, required: false
private _earlyRenewalDuration?: string;
public get earlyRenewalDuration() {
return this.getStringAttribute('early_renewal_duration');
}
public set earlyRenewalDuration(value: string) {
this._earlyRenewalDuration = value;
}
public resetEarlyRenewalDuration() {
this._earlyRenewalDuration = undefined;
}
// Temporarily expose input value. Use with caution.
public get earlyRenewalDurationInput() {
return this._earlyRenewalDuration;
}
// 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;
}
// key_algorithm - computed: true, optional: true, required: false
private _keyAlgorithm?: string;
public get keyAlgorithm() {
return this.getStringAttribute('key_algorithm');
}
public set keyAlgorithm(value: string) {
this._keyAlgorithm = value;
}
public resetKeyAlgorithm() {
this._keyAlgorithm = undefined;
}
// Temporarily expose input value. Use with caution.
public get keyAlgorithmInput() {
return this._keyAlgorithm;
}
// not_after - computed: true, optional: false, required: false
public get notAfter() {
return this.getStringAttribute('not_after');
}
// not_before - computed: true, optional: false, required: false
public get notBefore() {
return this.getStringAttribute('not_before');
}
// pending_renewal - computed: true, optional: false, required: false
public get pendingRenewal() {
return this.getBooleanAttribute('pending_renewal');
}
// private_key - computed: false, optional: true, required: false
private _privateKey?: string;
public get privateKey() {
return this.getStringAttribute('private_key');
}
public set privateKey(value: string) {
this._privateKey = value;
}
public resetPrivateKey() {
this._privateKey = undefined;
}
// Temporarily expose input value. Use with caution.
public get privateKeyInput() {
return this._privateKey;
}
// renewal_eligibility - computed: true, optional: false, required: false
public get renewalEligibility() {
return this.getStringAttribute('renewal_eligibility');
}
// renewal_summary - computed: true, optional: false, required: false
private _renewalSummary = new AcmCertificateRenewalSummaryList(this, "renewal_summary", false);
public get renewalSummary() {
return this._renewalSummary;
}
// status - computed: true, optional: false, required: false
public get status() {
return this.getStringAttribute('status');
}
// subject_alternative_names - computed: true, optional: true, required: false
private _subjectAlternativeNames?: string[];
public get subjectAlternativeNames() {
return cdktf.Fn.tolist(this.getListAttribute('subject_alternative_names'));
}
public set subjectAlternativeNames(value: string[]) {
this._subjectAlternativeNames = value;
}
public resetSubjectAlternativeNames() {
this._subjectAlternativeNames = undefined;
}
// Temporarily expose input value. Use with caution.
public get subjectAlternativeNamesInput() {
return this._subjectAlternativeNames;
}
// 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;
}
// type - computed: true, optional: false, required: false
public get type() {
return this.getStringAttribute('type');
}
// validation_emails - computed: true, optional: false, required: false
public get validationEmails() {
return this.getListAttribute('validation_emails');
}
// validation_method - computed: true, optional: true, required: false
private _validationMethod?: string;
public get validationMethod() {
return this.getStringAttribute('validation_method');
}
public set validationMethod(value: string) {
this._validationMethod = value;
}
public resetValidationMethod() {
this._validationMethod = undefined;
}
// Temporarily expose input value. Use with caution.
public get validationMethodInput() {
return this._validationMethod;
}
// options - computed: false, optional: true, required: false
private _options = new AcmCertificateOptionsOutputReference(this, "options");
public get options() {
return this._options;
}
public putOptions(value: AcmCertificateOptions) {
this._options.internalValue = value;
}
public resetOptions() {
this._options.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
public get optionsInput() {
return this._options.internalValue;
}
// validation_option - computed: false, optional: true, required: false
private _validationOption = new AcmCertificateValidationOptionList(this, "validation_option", true);
public get validationOption() {
return this._validationOption;
}
public putValidationOption(value: AcmCertificateValidationOption[] | cdktf.IResolvable) {
this._validationOption.internalValue = value;
}
public resetValidationOption() {
this._validationOption.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
public get validationOptionInput() {
return this._validationOption.internalValue;
}
// =========
// SYNTHESIS
// =========
protected synthesizeAttributes(): { [name: string]: any } {
return {
certificate_authority_arn: cdktf.stringToTerraform(this._certificateAuthorityArn),
certificate_body: cdktf.stringToTerraform(this._certificateBody),
certificate_chain: cdktf.stringToTerraform(this._certificateChain),
domain_name: cdktf.stringToTerraform(this._domainName),
early_renewal_duration: cdktf.stringToTerraform(this._earlyRenewalDuration),
id: cdktf.stringToTerraform(this._id),
key_algorithm: cdktf.stringToTerraform(this._keyAlgorithm),
private_key: cdktf.stringToTerraform(this._privateKey),
subject_alternative_names: cdktf.listMapper(cdktf.stringToTerraform, false)(this._subjectAlternativeNames),
tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
validation_method: cdktf.stringToTerraform(this._validationMethod),
options: acmCertificateOptionsToTerraform(this._options.internalValue),
validation_option: cdktf.listMapper(acmCertificateValidationOptionToTerraform, true)(this._validationOption.internalValue),
};
}
}