-
Notifications
You must be signed in to change notification settings - Fork 3.9k
/
cluster-engine.ts
1249 lines (1188 loc) · 53.9 KB
/
cluster-engine.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { Construct } from 'constructs';
import { IEngine } from './engine';
import { EngineVersion } from './engine-version';
import { IParameterGroup, ParameterGroup } from './parameter-group';
import * as iam from '../../aws-iam';
import * as secretsmanager from '../../aws-secretsmanager';
/**
* The extra options passed to the `IClusterEngine.bindToCluster` method.
*/
export interface ClusterEngineBindOptions {
/**
* The role used for S3 importing.
*
* @default - none
*/
readonly s3ImportRole?: iam.IRole;
/**
* The role used for S3 exporting.
*
* @default - none
*/
readonly s3ExportRole?: iam.IRole;
/**
* The customer-provided ParameterGroup.
*
* @default - none
*/
readonly parameterGroup?: IParameterGroup;
}
/**
* The type returned from the `IClusterEngine.bindToCluster` method.
*/
export interface ClusterEngineConfig {
/**
* The ParameterGroup to use for the cluster.
*
* @default - no ParameterGroup will be used
*/
readonly parameterGroup?: IParameterGroup;
/**
* The port to use for this cluster,
* unless the customer specified the port directly.
*
* @default - use the default port for clusters (3306)
*/
readonly port?: number;
/**
* Features supported by the database engine.
*
* @see https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_DBEngineVersion.html
*
* @default - no features
*/
readonly features?: ClusterEngineFeatures;
}
/**
* Represents Database Engine features
*/
export interface ClusterEngineFeatures {
/**
* Feature name for the DB instance that the IAM role to access the S3 bucket for import
* is to be associated with.
*
* @default - no s3Import feature name
*/
readonly s3Import?: string;
/**
* Feature name for the DB instance that the IAM role to export to S3 bucket is to be
* associated with.
*
* @default - no s3Export feature name
*/
readonly s3Export?: string;
}
/**
* The interface representing a database cluster (as opposed to instance) engine.
*/
export interface IClusterEngine extends IEngine {
/** The application used by this engine to perform rotation for a single-user scenario. */
readonly singleUserRotationApplication: secretsmanager.SecretRotationApplication;
/** The application used by this engine to perform rotation for a multi-user scenario. */
readonly multiUserRotationApplication: secretsmanager.SecretRotationApplication;
/** The log types that are available with this engine type */
readonly supportedLogTypes: string[];
/**
* Whether the IAM Roles used for data importing and exporting need to be combined for this Engine,
* or can they be kept separate.
*
* @default false
*/
readonly combineImportAndExportRoles?: boolean;
/**
* Method called when the engine is used to create a new cluster.
*/
bindToCluster(scope: Construct, options: ClusterEngineBindOptions): ClusterEngineConfig;
}
interface ClusterEngineBaseProps {
readonly engineType: string;
readonly singleUserRotationApplication: secretsmanager.SecretRotationApplication;
readonly multiUserRotationApplication: secretsmanager.SecretRotationApplication;
readonly defaultPort?: number;
readonly engineVersion?: EngineVersion;
readonly features?: ClusterEngineFeatures;
}
abstract class ClusterEngineBase implements IClusterEngine {
public readonly engineType: string;
public readonly engineVersion?: EngineVersion;
public readonly parameterGroupFamily?: string;
public readonly singleUserRotationApplication: secretsmanager.SecretRotationApplication;
public readonly multiUserRotationApplication: secretsmanager.SecretRotationApplication;
public abstract readonly supportedLogTypes: string[];
private readonly defaultPort?: number;
private readonly features?: ClusterEngineFeatures;
constructor(props: ClusterEngineBaseProps) {
this.engineType = props.engineType;
this.features = props.features;
this.singleUserRotationApplication = props.singleUserRotationApplication;
this.multiUserRotationApplication = props.multiUserRotationApplication;
this.defaultPort = props.defaultPort;
this.engineVersion = props.engineVersion;
this.parameterGroupFamily = this.engineVersion ? `${this.engineType}${this.engineVersion.majorVersion}` : undefined;
}
public bindToCluster(scope: Construct, options: ClusterEngineBindOptions): ClusterEngineConfig {
const parameterGroup = options.parameterGroup ?? this.defaultParameterGroup(scope);
return {
parameterGroup,
port: this.defaultPort,
features: this.features,
};
}
/**
* Return an optional default ParameterGroup,
* possibly an imported one,
* if one wasn't provided by the customer explicitly.
*/
protected abstract defaultParameterGroup(scope: Construct): IParameterGroup | undefined;
}
interface MysqlClusterEngineBaseProps {
readonly engineType: string;
readonly engineVersion?: EngineVersion;
readonly defaultMajorVersion: string;
readonly combineImportAndExportRoles?: boolean;
}
abstract class MySqlClusterEngineBase extends ClusterEngineBase {
public readonly engineFamily = 'MYSQL';
public readonly supportedLogTypes: string[] = ['error', 'general', 'slowquery', 'audit'];
public readonly combineImportAndExportRoles?: boolean;
constructor(props: MysqlClusterEngineBaseProps) {
super({
...props,
singleUserRotationApplication: secretsmanager.SecretRotationApplication.MYSQL_ROTATION_SINGLE_USER,
multiUserRotationApplication: secretsmanager.SecretRotationApplication.MYSQL_ROTATION_MULTI_USER,
engineVersion: props.engineVersion ? props.engineVersion : { majorVersion: props.defaultMajorVersion },
});
this.combineImportAndExportRoles = props.combineImportAndExportRoles;
}
public bindToCluster(scope: Construct, options: ClusterEngineBindOptions): ClusterEngineConfig {
const config = super.bindToCluster(scope, options);
const parameterGroup = options.parameterGroup ?? (options.s3ImportRole || options.s3ExportRole
? new ParameterGroup(scope, 'ClusterParameterGroup', {
engine: this,
})
: config.parameterGroup);
if (options.s3ImportRole) {
// versions which combine the import and export Roles (right now, this is only 8.0)
// require a different parameter name (identical for both import and export)
const s3ImportParam = this.combineImportAndExportRoles
? 'aws_default_s3_role'
: 'aurora_load_from_s3_role';
parameterGroup?.addParameter(s3ImportParam, options.s3ImportRole.roleArn);
}
if (options.s3ExportRole) {
const s3ExportParam = this.combineImportAndExportRoles
? 'aws_default_s3_role'
: 'aurora_select_into_s3_role';
parameterGroup?.addParameter(s3ExportParam, options.s3ExportRole.roleArn);
}
return {
...config,
parameterGroup,
};
}
}
/**
* The versions for the Aurora cluster engine
* (those returned by `DatabaseClusterEngine.aurora`).
*
* @deprecated use `AuroraMysqlEngineVersion` instead
*/
export class AuroraEngineVersion {
/** Version "5.6.10a". */
public static readonly VER_10A = AuroraEngineVersion.builtIn_5_6('10a', false);
/** Version "5.6.mysql_aurora.1.17.9". */
public static readonly VER_1_17_9 = AuroraEngineVersion.builtIn_5_6('1.17.9');
/** Version "5.6.mysql_aurora.1.19.0". */
public static readonly VER_1_19_0 = AuroraEngineVersion.builtIn_5_6('1.19.0');
/** Version "5.6.mysql_aurora.1.19.1". */
public static readonly VER_1_19_1 = AuroraEngineVersion.builtIn_5_6('1.19.1');
/** Version "5.6.mysql_aurora.1.19.2". */
public static readonly VER_1_19_2 = AuroraEngineVersion.builtIn_5_6('1.19.2');
/** Version "5.6.mysql_aurora.1.19.5". */
public static readonly VER_1_19_5 = AuroraEngineVersion.builtIn_5_6('1.19.5');
/** Version "5.6.mysql_aurora.1.19.6". */
public static readonly VER_1_19_6 = AuroraEngineVersion.builtIn_5_6('1.19.6');
/** Version "5.6.mysql_aurora.1.20.0". */
public static readonly VER_1_20_0 = AuroraEngineVersion.builtIn_5_6('1.20.0');
/** Version "5.6.mysql_aurora.1.20.1". */
public static readonly VER_1_20_1 = AuroraEngineVersion.builtIn_5_6('1.20.1');
/** Version "5.6.mysql_aurora.1.21.0". */
public static readonly VER_1_21_0 = AuroraEngineVersion.builtIn_5_6('1.21.0');
/** Version "5.6.mysql_aurora.1.22.0". */
public static readonly VER_1_22_0 = AuroraEngineVersion.builtIn_5_6('1.22.0');
/** Version "5.6.mysql_aurora.1.22.1". */
public static readonly VER_1_22_1 = AuroraEngineVersion.builtIn_5_6('1.22.1');
/** Version "5.6.mysql_aurora.1.22.1.3". */
public static readonly VER_1_22_1_3 = AuroraEngineVersion.builtIn_5_6('1.22.1.3');
/** Version "5.6.mysql_aurora.1.22.2". */
public static readonly VER_1_22_2 = AuroraEngineVersion.builtIn_5_6('1.22.2');
/** Version "5.6.mysql_aurora.1.22.3". */
public static readonly VER_1_22_3 = AuroraEngineVersion.builtIn_5_6('1.22.3');
/** Version "5.6.mysql_aurora.1.22.4". */
public static readonly VER_1_22_4 = AuroraEngineVersion.builtIn_5_6('1.22.4');
/** Version "5.6.mysql_aurora.1.22.5". */
public static readonly VER_1_22_5 = AuroraEngineVersion.builtIn_5_6('1.22.5');
/** Version "5.6.mysql_aurora.1.23.0". */
public static readonly VER_1_23_0 = AuroraEngineVersion.builtIn_5_6('1.23.0');
/** Version "5.6.mysql_aurora.1.23.1". */
public static readonly VER_1_23_1 = AuroraEngineVersion.builtIn_5_6('1.23.1');
/** Version "5.6.mysql_aurora.1.23.2". */
public static readonly VER_1_23_2 = AuroraEngineVersion.builtIn_5_6('1.23.2');
/** Version "5.6.mysql_aurora.1.23.3". */
public static readonly VER_1_23_3 = AuroraEngineVersion.builtIn_5_6('1.23.3');
/** Version "5.6.mysql_aurora.1.23.4". */
public static readonly VER_1_23_4 = AuroraEngineVersion.builtIn_5_6('1.23.4');
/**
* Create a new AuroraEngineVersion with an arbitrary version.
*
* @param auroraFullVersion the full version string,
* for example "5.6.mysql_aurora.1.78.3.6"
* @param auroraMajorVersion the major version of the engine,
* defaults to "5.6"
*/
public static of(auroraFullVersion: string, auroraMajorVersion?: string): AuroraEngineVersion {
return new AuroraEngineVersion(auroraFullVersion, auroraMajorVersion);
}
private static builtIn_5_6(minorVersion: string, addStandardPrefix: boolean = true): AuroraEngineVersion {
return new AuroraEngineVersion(`5.6.${addStandardPrefix ? 'mysql_aurora.' : ''}${minorVersion}`);
}
/** The full version string, for example, "5.6.mysql_aurora.1.78.3.6". */
public readonly auroraFullVersion: string;
/** The major version of the engine. Currently, it's always "5.6". */
public readonly auroraMajorVersion: string;
private constructor(auroraFullVersion: string, auroraMajorVersion: string = '5.6') {
this.auroraFullVersion = auroraFullVersion;
this.auroraMajorVersion = auroraMajorVersion;
}
}
/**
* Creation properties of the plain Aurora database cluster engine.
* Used in `DatabaseClusterEngine.aurora`.
*
* @deprecated use `AuroraMysqlClusterEngineProps` instead
*/
export interface AuroraClusterEngineProps {
/** The version of the Aurora cluster engine. */
readonly version: AuroraEngineVersion;
}
/**
* @deprecated use `AuroraMysqlClusterEngine` instead
*/
class AuroraClusterEngine extends MySqlClusterEngineBase {
constructor(version?: AuroraEngineVersion) {
super({
engineType: 'aurora',
engineVersion: version
? {
fullVersion: version.auroraFullVersion,
majorVersion: version.auroraMajorVersion,
}
: undefined,
defaultMajorVersion: '5.6',
});
}
protected defaultParameterGroup(_scope: Construct): IParameterGroup | undefined {
// the default.aurora5.6 ParameterGroup is actually the default,
// so just return undefined in this case
return undefined;
}
}
/**
* The versions for the Aurora MySQL cluster engine
* (those returned by `DatabaseClusterEngine.auroraMysql`).
*
* https://docs.aws.amazon.com/AmazonRDS/latest/AuroraMySQLReleaseNotes/Welcome.html
*/
export class AuroraMysqlEngineVersion {
/**
* Version "5.7.12".
* @deprecated Version 5.7.12 is no longer supported by Amazon RDS.
*/
public static readonly VER_5_7_12 = AuroraMysqlEngineVersion.builtIn_5_7('12', false);
/**
* Version "5.7.mysql_aurora.2.02.3"
* @deprecated Version 5.7.mysql_aurora.2.02.3 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_02_3 = AuroraMysqlEngineVersion.builtIn_5_7('2.02.3');
/**
* Version "5.7.mysql_aurora.2.03.2".
* @deprecated Version 5.7.mysql_aurora.2.03.2 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_03_2 = AuroraMysqlEngineVersion.builtIn_5_7('2.03.2');
/**
* Version "5.7.mysql_aurora.2.03.3".
* @deprecated Version 5.7.mysql_aurora.2.03.3 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_03_3 = AuroraMysqlEngineVersion.builtIn_5_7('2.03.3');
/**
* Version "5.7.mysql_aurora.2.03.4".
* @deprecated Version 5.7.mysql_aurora.2.03.4 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_03_4 = AuroraMysqlEngineVersion.builtIn_5_7('2.03.4');
/**
* Version "5.7.mysql_aurora.2.04.0".
* @deprecated Version 5.7.mysql_aurora.2.04.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_04_0 = AuroraMysqlEngineVersion.builtIn_5_7('2.04.0');
/**
* Version "5.7.mysql_aurora.2.04.1".
* @deprecated Version 5.7.mysql_aurora.2.04.1 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_04_1 = AuroraMysqlEngineVersion.builtIn_5_7('2.04.1');
/**
* Version "5.7.mysql_aurora.2.04.2".
* @deprecated Version 5.7.mysql_aurora.2.04.2 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_04_2 = AuroraMysqlEngineVersion.builtIn_5_7('2.04.2');
/**
* Version "5.7.mysql_aurora.2.04.3".
* @deprecated Version 5.7.mysql_aurora.2.04.3 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_04_3 = AuroraMysqlEngineVersion.builtIn_5_7('2.04.3');
/**
* Version "5.7.mysql_aurora.2.04.4".
* @deprecated Version 5.7.mysql_aurora.2.04.4 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_04_4 = AuroraMysqlEngineVersion.builtIn_5_7('2.04.4');
/**
* Version "5.7.mysql_aurora.2.04.5".
* @deprecated Version 5.7.mysql_aurora.2.04.5 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_04_5 = AuroraMysqlEngineVersion.builtIn_5_7('2.04.5');
/**
* Version "5.7.mysql_aurora.2.04.6".
* @deprecated Version 5.7.mysql_aurora.2.04.6 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_04_6 = AuroraMysqlEngineVersion.builtIn_5_7('2.04.6');
/**
* Version "5.7.mysql_aurora.2.04.7".
* @deprecated Version 5.7.mysql_aurora.2.04.7 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_04_7 = AuroraMysqlEngineVersion.builtIn_5_7('2.04.7');
/**
* Version "5.7.mysql_aurora.2.04.8".
* @deprecated Version 5.7.mysql_aurora.2.04.8 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_04_8 = AuroraMysqlEngineVersion.builtIn_5_7('2.04.8');
/**
* Version "5.7.mysql_aurora.2.04.9"
* @deprecated Version 5.7.mysql_aurora.2.04.9 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_04_9 = AuroraMysqlEngineVersion.builtIn_5_7('2.04.9');
/**
* Version "5.7.mysql_aurora.2.05.0".
* @deprecated Version 5.7.mysql_aurora.2.05.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_05_0 = AuroraMysqlEngineVersion.builtIn_5_7('2.05.0');
/**
* Version "5.7.mysql_aurora.2.05.1"
* @deprecated Version 5.7.mysql_aurora.2.05.1 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_05_1 = AuroraMysqlEngineVersion.builtIn_5_7('2.05.1');
/**
* Version "5.7.mysql_aurora.2.06.0".
* @deprecated Version 5.7.mysql_aurora.2.06.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_06_0 = AuroraMysqlEngineVersion.builtIn_5_7('2.06.0');
/**
* Version "5.7.mysql_aurora.2.07.0".
* @deprecated Version 5.7.mysql_aurora.2.07.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_0 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.0');
/**
* Version "5.7.mysql_aurora.2.07.1".
* @deprecated Version 5.7.mysql_aurora.2.07.1 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_1 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.1');
/**
* Version "5.7.mysql_aurora.2.07.2".
* @deprecated Version 5.7.mysql_aurora.2.07.2 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_2 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.2');
/**
* Version "5.7.mysql_aurora.2.07.3".
* @deprecated Version 5.7.mysql_aurora.2.07.3 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_3 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.3');
/**
* Version "5.7.mysql_aurora.2.07.4"
* @deprecated Version 5.7.mysql_aurora.2.07.4 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_4 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.4');
/**
* Version "5.7.mysql_aurora.2.07.5".
* @deprecated Version 5.7.mysql_aurora.2.07.5 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_5 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.5');
/**
* Version "5.7.mysql_aurora.2.07.6".
* @deprecated Version 5.7.mysql_aurora.2.07.6 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_6 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.6');
/**
* Version "5.7.mysql_aurora.2.07.7".
* @deprecated Version 5.7.mysql_aurora.2.07.7 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_7 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.7');
/**
* Version "5.7.mysql_aurora.2.07.8".
* @deprecated Version 5.7.mysql_aurora.2.07.8 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_8 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.8');
/**
* Version "5.7.mysql_aurora.2.07.9".
* @deprecated Version 5.7.mysql_aurora.2.07.9 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_9 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.9');
/**
* Version "5.7.mysql_aurora.2.07.10".
* @deprecated Version 5.7.mysql_aurora.2.07.10 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_07_10 = AuroraMysqlEngineVersion.builtIn_5_7('2.07.10');
/**
* Version "5.7.mysql_aurora.2.08.0".
* @deprecated Version 5.7.mysql_aurora.2.08.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_08_0 = AuroraMysqlEngineVersion.builtIn_5_7('2.08.0');
/**
* Version "5.7.mysql_aurora.2.08.1".
* @deprecated Version 5.7.mysql_aurora.2.08.1 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_08_1 = AuroraMysqlEngineVersion.builtIn_5_7('2.08.1');
/**
* Version "5.7.mysql_aurora.2.08.2".
* @deprecated Version 5.7.mysql_aurora.2.08.2 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_08_2 = AuroraMysqlEngineVersion.builtIn_5_7('2.08.2');
/**
* Version "5.7.mysql_aurora.2.08.3".
* @deprecated Version 5.7.mysql_aurora.2.08.3 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_08_3 = AuroraMysqlEngineVersion.builtIn_5_7('2.08.3');
/**
* Version "5.7.mysql_aurora.2.08.4".
* @deprecated Version 5.7.mysql_aurora.2.08.4 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_08_4 = AuroraMysqlEngineVersion.builtIn_5_7('2.08.4');
/**
* Version "5.7.mysql_aurora.2.09.0".
* @deprecated Version 5.7.mysql_aurora.2.09.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_09_0 = AuroraMysqlEngineVersion.builtIn_5_7('2.09.0');
/**
* Version "5.7.mysql_aurora.2.09.1".
* @deprecated Version 5.7.mysql_aurora.2.09.1 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_09_1 = AuroraMysqlEngineVersion.builtIn_5_7('2.09.1');
/**
* Version "5.7.mysql_aurora.2.09.2".
* @deprecated Version 5.7.mysql_aurora.2.09.2 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_09_2 = AuroraMysqlEngineVersion.builtIn_5_7('2.09.2');
/**
* Version "5.7.mysql_aurora.2.09.3".
* @deprecated Version 5.7.mysql_aurora.2.09.3 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_09_3 = AuroraMysqlEngineVersion.builtIn_5_7('2.09.3');
/**
* Version "5.7.mysql_aurora.2.10.0".
* @deprecated Version 5.7.mysql_aurora.2.10.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_10_0 = AuroraMysqlEngineVersion.builtIn_5_7('2.10.0');
/**
* Version "5.7.mysql_aurora.2.10.1".
* @deprecated Version 5.7.mysql_aurora.2.10.1 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_10_1 = AuroraMysqlEngineVersion.builtIn_5_7('2.10.1');
/**
* Version "5.7.mysql_aurora.2.10.2".
* @deprecated Version 5.7.mysql_aurora.2.10.2 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_10_2 = AuroraMysqlEngineVersion.builtIn_5_7('2.10.2');
/**
* Version "5.7.mysql_aurora.2.10.3".
* @deprecated Version 5.7.mysql_aurora.2.10.3 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_10_3 = AuroraMysqlEngineVersion.builtIn_5_7('2.10.3');
/**
* Version "5.7.mysql_aurora.2.11.0"
* @deprecated Version 5.7.mysql_aurora.2.11.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_2_11_0 = AuroraMysqlEngineVersion.builtIn_5_7('2.11.0');
/** Version "5.7.mysql_aurora.2.11.1". */
public static readonly VER_2_11_1 = AuroraMysqlEngineVersion.builtIn_5_7('2.11.1');
/** Version "5.7.mysql_aurora.2.11.2". */
public static readonly VER_2_11_2 = AuroraMysqlEngineVersion.builtIn_5_7('2.11.2');
/** Version "5.7.mysql_aurora.2.11.3". */
public static readonly VER_2_11_3 = AuroraMysqlEngineVersion.builtIn_5_7('2.11.3');
/** Version "5.7.mysql_aurora.2.11.4". */
public static readonly VER_2_11_4 = AuroraMysqlEngineVersion.builtIn_5_7('2.11.4');
/** Version "5.7.mysql_aurora.2.11.5". */
public static readonly VER_2_11_5 = AuroraMysqlEngineVersion.builtIn_5_7('2.11.5');
/** Version "5.7.mysql_aurora.2.12.0". */
public static readonly VER_2_12_0 = AuroraMysqlEngineVersion.builtIn_5_7('2.12.0');
/** Version "5.7.mysql_aurora.2.12.1". */
public static readonly VER_2_12_1 = AuroraMysqlEngineVersion.builtIn_5_7('2.12.1');
/** Version "5.7.mysql_aurora.2.12.2". */
public static readonly VER_2_12_2 = AuroraMysqlEngineVersion.builtIn_5_7('2.12.2');
/** Version "5.7.mysql_aurora.2.12.3". */
public static readonly VER_2_12_3 = AuroraMysqlEngineVersion.builtIn_5_7('2.12.3');
/**
* Version "8.0.mysql_aurora.3.01.0"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.01.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_01_0 = AuroraMysqlEngineVersion.builtIn_8_0('3.01.0');
/**
* Version "8.0.mysql_aurora.3.01.1"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.01.1 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_01_1 = AuroraMysqlEngineVersion.builtIn_8_0('3.01.1');
/**
* Version "8.0.mysql_aurora.3.02.0"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.02.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_02_0 = AuroraMysqlEngineVersion.builtIn_8_0('3.02.0');
/**
* Version "8.0.mysql_aurora.3.02.1"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.02.1 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_02_1 = AuroraMysqlEngineVersion.builtIn_8_0('3.02.1');
/**
* Version "8.0.mysql_aurora.3.02.2"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.02.2 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_02_2 = AuroraMysqlEngineVersion.builtIn_8_0('3.02.2');
/**
* Version "8.0.mysql_aurora.3.02.3"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.02.3 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_02_3 = AuroraMysqlEngineVersion.builtIn_8_0('3.02.3');
/**
* Version "8.0.mysql_aurora.3.03.0"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.03.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_03_0 = AuroraMysqlEngineVersion.builtIn_8_0('3.03.0');
/**
* Version "8.0.mysql_aurora.3.03.1"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.03.1 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_03_1 = AuroraMysqlEngineVersion.builtIn_8_0('3.03.1');
/**
* Version "8.0.mysql_aurora.3.03.2"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.03.2 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_03_2 = AuroraMysqlEngineVersion.builtIn_8_0('3.03.2');
/**
* Version "8.0.mysql_aurora.3.03.3"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.03.3 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_03_3 = AuroraMysqlEngineVersion.builtIn_8_0('3.03.3');
/** Version "8.0.mysql_aurora.3.04.0". */
public static readonly VER_3_04_0 = AuroraMysqlEngineVersion.builtIn_8_0('3.04.0');
/** Version "8.0.mysql_aurora.3.04.1". */
public static readonly VER_3_04_1 = AuroraMysqlEngineVersion.builtIn_8_0('3.04.1');
/** Version "8.0.mysql_aurora.3.04.2". */
public static readonly VER_3_04_2 = AuroraMysqlEngineVersion.builtIn_8_0('3.04.2');
/**
* Version "8.0.mysql_aurora.3.05.0"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.05.0 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_05_0 = AuroraMysqlEngineVersion.builtIn_8_0('3.05.0');
/**
* Version "8.0.mysql_aurora.3.05.1"
* @deprecated Aurora MySQL 8.0.mysql_aurora.3.05.1 is no longer supported by Amazon RDS.
*/
public static readonly VER_3_05_1 = AuroraMysqlEngineVersion.builtIn_8_0('3.05.1');
/** Version "8.0.mysql_aurora.3.05.2". */
public static readonly VER_3_05_2 = AuroraMysqlEngineVersion.builtIn_8_0('3.05.2');
/** Version "8.0.mysql_aurora.3.06.0". */
public static readonly VER_3_06_0 = AuroraMysqlEngineVersion.builtIn_8_0('3.06.0');
/** Version "8.0.mysql_aurora.3.06.1". */
public static readonly VER_3_06_1 = AuroraMysqlEngineVersion.builtIn_8_0('3.06.1');
/** Version "8.0.mysql_aurora.3.07.0". */
public static readonly VER_3_07_0 = AuroraMysqlEngineVersion.builtIn_8_0('3.07.0');
/** Version "8.0.mysql_aurora.3.07.1". */
public static readonly VER_3_07_1 = AuroraMysqlEngineVersion.builtIn_8_0('3.07.1');
/** Version "8.0.mysql_aurora.3.08.0". */
public static readonly VER_3_08_0 = AuroraMysqlEngineVersion.builtIn_8_0('3.08.0');
/**
* Create a new AuroraMysqlEngineVersion with an arbitrary version.
*
* @param auroraMysqlFullVersion the full version string,
* for example "5.7.mysql_aurora.2.78.3.6"
* @param auroraMysqlMajorVersion the major version of the engine,
* defaults to "5.7"
*/
public static of(auroraMysqlFullVersion: string, auroraMysqlMajorVersion?: string): AuroraMysqlEngineVersion {
return new AuroraMysqlEngineVersion(auroraMysqlFullVersion, auroraMysqlMajorVersion);
}
private static builtIn_5_7(minorVersion: string, addStandardPrefix: boolean = true): AuroraMysqlEngineVersion {
return new AuroraMysqlEngineVersion(`5.7.${addStandardPrefix ? 'mysql_aurora.' : ''}${minorVersion}`);
}
private static builtIn_8_0(minorVersion: string): AuroraMysqlEngineVersion {
// 8.0 of the MySQL engine needs to combine the import and export Roles
return new AuroraMysqlEngineVersion(`8.0.mysql_aurora.${minorVersion}`, '8.0', true);
}
/** The full version string, for example, "5.7.mysql_aurora.1.78.3.6". */
public readonly auroraMysqlFullVersion: string;
/** The major version of the engine. Currently, it's either "5.7", or "8.0". */
public readonly auroraMysqlMajorVersion: string;
/**
* Whether this version requires combining the import and export IAM Roles.
*
* @internal
*/
public readonly _combineImportAndExportRoles?: boolean;
private constructor(
auroraMysqlFullVersion: string, auroraMysqlMajorVersion: string = '5.7',
combineImportAndExportRoles?: boolean,
) {
this.auroraMysqlFullVersion = auroraMysqlFullVersion;
this.auroraMysqlMajorVersion = auroraMysqlMajorVersion;
this._combineImportAndExportRoles = combineImportAndExportRoles;
}
}
/**
* Creation properties of the Aurora MySQL database cluster engine.
* Used in `DatabaseClusterEngine.auroraMysql`.
*/
export interface AuroraMysqlClusterEngineProps {
/** The version of the Aurora MySQL cluster engine. */
readonly version: AuroraMysqlEngineVersion;
}
class AuroraMysqlClusterEngine extends MySqlClusterEngineBase {
constructor(version?: AuroraMysqlEngineVersion) {
super({
engineType: 'aurora-mysql',
engineVersion: version
? {
fullVersion: version.auroraMysqlFullVersion,
majorVersion: version.auroraMysqlMajorVersion,
}
: undefined,
defaultMajorVersion: '5.7',
combineImportAndExportRoles: version?._combineImportAndExportRoles,
});
}
protected defaultParameterGroup(scope: Construct): IParameterGroup | undefined {
return ParameterGroup.fromParameterGroupName(scope, 'AuroraMySqlDatabaseClusterEngineDefaultParameterGroup',
`default.${this.parameterGroupFamily}`);
}
}
/**
* Features supported by this version of the Aurora Postgres cluster engine.
*/
export interface AuroraPostgresEngineFeatures {
/**
* Whether this version of the Aurora Postgres cluster engine supports the S3 data import feature.
*
* @default false
*/
readonly s3Import?: boolean;
/**
* Whether this version of the Aurora Postgres cluster engine supports the S3 data export feature.
*
* @default false
*/
readonly s3Export?: boolean;
}
/**
* The versions for the Aurora PostgreSQL cluster engine
* (those returned by `DatabaseClusterEngine.auroraPostgres`).
*
* https://docs.aws.amazon.com/AmazonRDS/latest/AuroraPostgreSQLReleaseNotes/AuroraPostgreSQL.Updates.html
*/
export class AuroraPostgresEngineVersion {
/**
* Version "9.6.8".
* @deprecated Version 9.6.8 is no longer supported by Amazon RDS.
*/
public static readonly VER_9_6_8 = AuroraPostgresEngineVersion.of('9.6.8', '9.6');
/**
* Version "9.6.9".
* @deprecated Version 9.6.9 is no longer supported by Amazon RDS.
*/
public static readonly VER_9_6_9 = AuroraPostgresEngineVersion.of('9.6.9', '9.6');
/**
* Version "9.6.11".
* @deprecated Version 9.6.11 is no longer supported by Amazon RDS.
*/
public static readonly VER_9_6_11 = AuroraPostgresEngineVersion.of('9.6.11', '9.6');
/**
* Version "9.6.12".
* @deprecated Version 9.6.12 is no longer supported by Amazon RDS.
*/
public static readonly VER_9_6_12 = AuroraPostgresEngineVersion.of('9.6.12', '9.6');
/**
* Version "9.6.16".
* @deprecated Version 9.6.16 is no longer supported by Amazon RDS.
*/
public static readonly VER_9_6_16 = AuroraPostgresEngineVersion.of('9.6.16', '9.6');
/**
* Version "9.6.17".
* @deprecated Version 9.6.17 is no longer supported by Amazon RDS.
*/
public static readonly VER_9_6_17 = AuroraPostgresEngineVersion.of('9.6.17', '9.6');
/**
* Version "9.6.18".
* @deprecated Version 9.6.18 is no longer supported by Amazon RDS.
*/
public static readonly VER_9_6_18 = AuroraPostgresEngineVersion.of('9.6.18', '9.6');
/**
* Version "9.6.19".
* @deprecated Version 9.6.19 is no longer supported by Amazon RDS.
*/
public static readonly VER_9_6_19 = AuroraPostgresEngineVersion.of('9.6.19', '9.6');
/**
* Version "9.6.22"
* @deprecated Version 9.6.22 is no longer supported by Amazon RDS.
*/
public static readonly VER_9_6_22 = AuroraPostgresEngineVersion.of('9.6.22', '9.6');
/**
* Version "10.4".
* @deprecated Version 10.4 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_4 = AuroraPostgresEngineVersion.of('10.4', '10');
/**
* Version "10.5".
* @deprecated Version 10.5 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_5 = AuroraPostgresEngineVersion.of('10.5', '10');
/**
* Version "10.6".
* @deprecated Version 10.6 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_6 = AuroraPostgresEngineVersion.of('10.6', '10');
/**
* Version "10.7".
* @deprecated Version 10.7 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_7 = AuroraPostgresEngineVersion.of('10.7', '10', { s3Import: true });
/**
* Version "10.11".
* @deprecated Version 10.11 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_11 = AuroraPostgresEngineVersion.of('10.11', '10', { s3Import: true, s3Export: true });
/**
* Version "10.12".
* @deprecated Version 10.12 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_12 = AuroraPostgresEngineVersion.of('10.12', '10', { s3Import: true, s3Export: true });
/**
* Version "10.13".
* @deprecated Version 10.13 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_13 = AuroraPostgresEngineVersion.of('10.13', '10', { s3Import: true, s3Export: true });
/**
* Version "10.14".
* @deprecated Version 10.14 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_14 = AuroraPostgresEngineVersion.of('10.14', '10', { s3Import: true, s3Export: true });
/**
* Version "10.16".
* @deprecated Version 10.16 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_16 = AuroraPostgresEngineVersion.of('10.16', '10', { s3Import: true, s3Export: true });
/**
* Version "10.17".
* @deprecated Version 10.17 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_17 = AuroraPostgresEngineVersion.of('10.17', '10', { s3Import: true, s3Export: true });
/**
* Version "10.18".
* @deprecated Version 10.18 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_18 = AuroraPostgresEngineVersion.of('10.18', '10', { s3Import: true, s3Export: true });
/**
* Version "10.19".
* @deprecated Version 10.19 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_19 = AuroraPostgresEngineVersion.of('10.19', '10', { s3Import: true, s3Export: true });
/**
* Version "10.20".
* @deprecated Version 10.20 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_20 = AuroraPostgresEngineVersion.of('10.20', '10', { s3Import: true, s3Export: true });
/**
* Version "10.21".
* @deprecated Version 10.21 is no longer supported by Amazon RDS.
*/
public static readonly VER_10_21 = AuroraPostgresEngineVersion.of('10.21', '10', { s3Import: true, s3Export: true });
/**
* Version "11.4".
* @deprecated Version 11.4 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_4 = AuroraPostgresEngineVersion.of('11.4', '11', { s3Import: true });
/**
* Version "11.6".
* @deprecated Version 11.6 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_6 = AuroraPostgresEngineVersion.of('11.6', '11', { s3Import: true, s3Export: true });
/**
* Version "11.7".
* @deprecated Version 11.7 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_7 = AuroraPostgresEngineVersion.of('11.7', '11', { s3Import: true, s3Export: true });
/**
* Version "11.8".
* @deprecated Version 11.8 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_8 = AuroraPostgresEngineVersion.of('11.8', '11', { s3Import: true, s3Export: true });
/** Version "11.9". */
public static readonly VER_11_9 = AuroraPostgresEngineVersion.of('11.9', '11', { s3Import: true, s3Export: true });
/**
* Version "11.11".
* @deprecated Version 11.11 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_11 = AuroraPostgresEngineVersion.of('11.11', '11', { s3Import: true, s3Export: true });
/**
* Version "11.12".
* @deprecated Version 11.12 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_12 = AuroraPostgresEngineVersion.of('11.12', '11', { s3Import: true, s3Export: true });
/**
* Version "11.13".
* @deprecated Version 11.13 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_13 = AuroraPostgresEngineVersion.of('11.13', '11', { s3Import: true, s3Export: true });
/**
* Version "11.14".
* @deprecated Version 11.14 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_14 = AuroraPostgresEngineVersion.of('11.14', '11', { s3Import: true, s3Export: true });
/**
* Version "11.15".
* @deprecated Version 11.15 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_15 = AuroraPostgresEngineVersion.of('11.15', '11', { s3Import: true, s3Export: true });
/**
* Version "11.16"
* @deprecated Version 11.16 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_16 = AuroraPostgresEngineVersion.of('11.16', '11', { s3Import: true, s3Export: true });
/**
* Version "11.17"
* @deprecated Version 11.17 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_17 = AuroraPostgresEngineVersion.of('11.17', '11', { s3Import: true, s3Export: true });
/**
* Version "11.18"
* @deprecated Version 11.18 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_18 = AuroraPostgresEngineVersion.of('11.18', '11', { s3Import: true, s3Export: true });
/**
* Version "11.19"
* @deprecated Version 11.19 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_19 = AuroraPostgresEngineVersion.of('11.19', '11', { s3Import: true, s3Export: true });
/**
* Version "11.20"
* @deprecated Version 11.20 is no longer supported by Amazon RDS.
*/
public static readonly VER_11_20 = AuroraPostgresEngineVersion.of('11.20', '11', { s3Import: true, s3Export: true });
/** Version "11.21". */
public static readonly VER_11_21 = AuroraPostgresEngineVersion.of('11.21', '11', { s3Import: true, s3Export: true });
/**
* Version "12.4".
* @deprecated Version 12.4 is no longer supported by Amazon RDS.
*/
public static readonly VER_12_4 = AuroraPostgresEngineVersion.of('12.4', '12', { s3Import: true, s3Export: true });
/**
* Version "12.6".
* @deprecated Version 12.6 is no longer supported by Amazon RDS.
*/
public static readonly VER_12_6 = AuroraPostgresEngineVersion.of('12.6', '12', { s3Import: true, s3Export: true });
/**
* Version "12.7".
* @deprecated Version 12.7 is no longer supported by Amazon RDS.
*/
public static readonly VER_12_7 = AuroraPostgresEngineVersion.of('12.7', '12', { s3Import: true, s3Export: true });
/**
* Version "12.8".
* @deprecated Version 12.8 is no longer supported by Amazon RDS.
*/
public static readonly VER_12_8 = AuroraPostgresEngineVersion.of('12.8', '12', { s3Import: true, s3Export: true });
/** Version "12.9". */
public static readonly VER_12_9 = AuroraPostgresEngineVersion.of('12.9', '12', { s3Import: true, s3Export: true });
/**
* Version "12.10".
* @deprecated Version 12.10 is no longer supported by Amazon RDS.
*/
public static readonly VER_12_10 = AuroraPostgresEngineVersion.of('12.10', '12', { s3Import: true, s3Export: true });
/** Version "12.11". */
public static readonly VER_12_11 = AuroraPostgresEngineVersion.of('12.11', '12', { s3Import: true, s3Export: true });
/** Version "12.12". */
public static readonly VER_12_12 = AuroraPostgresEngineVersion.of('12.12', '12', { s3Import: true, s3Export: true });
/** Version "12.13". */
public static readonly VER_12_13 = AuroraPostgresEngineVersion.of('12.13', '12', { s3Import: true, s3Export: true });
/** Version "12.14". */
public static readonly VER_12_14 = AuroraPostgresEngineVersion.of('12.14', '12', { s3Import: true, s3Export: true });
/** Version "12.15". */
public static readonly VER_12_15 = AuroraPostgresEngineVersion.of('12.15', '12', { s3Import: true, s3Export: true });
/** Version "12.16". */
public static readonly VER_12_16 = AuroraPostgresEngineVersion.of('12.16', '12', { s3Import: true, s3Export: true });
/** Version "12.17". */
public static readonly VER_12_17 = AuroraPostgresEngineVersion.of('12.17', '12', { s3Import: true, s3Export: true });
/** Version "12.18". */
public static readonly VER_12_18 = AuroraPostgresEngineVersion.of('12.18', '12', { s3Import: true, s3Export: true });
/** Version "12.19". */
public static readonly VER_12_19 = AuroraPostgresEngineVersion.of('12.19', '12', { s3Import: true, s3Export: true });
/** Version "12.20". */
public static readonly VER_12_20 = AuroraPostgresEngineVersion.of('12.20', '12', { s3Import: true, s3Export: true });
/** Version "12.21". */
public static readonly VER_12_21 = AuroraPostgresEngineVersion.of('12.21', '12', { s3Import: true, s3Export: true });
/** Version "12.22". */
public static readonly VER_12_22 = AuroraPostgresEngineVersion.of('12.22', '12', { s3Import: true, s3Export: true });
/**
* Version "13.3".
* @deprecated Version 13.3 is no longer supported by Amazon RDS.
*/
public static readonly VER_13_3 = AuroraPostgresEngineVersion.of('13.3', '13', { s3Import: true, s3Export: true });
/**
* Version "13.4".
* @deprecated Version 13.4 is no longer supported by Amazon RDS.
*/
public static readonly VER_13_4 = AuroraPostgresEngineVersion.of('13.4', '13', { s3Import: true, s3Export: true });
/**
* Version "13.5".
* @deprecated Version 13.5 is no longer supported by Amazon RDS.
*/
public static readonly VER_13_5 = AuroraPostgresEngineVersion.of('13.5', '13', { s3Import: true, s3Export: true });
/**
* Version "13.6".
* @deprecated Version 13.6 is no longer supported by Amazon RDS.
*/
public static readonly VER_13_6 = AuroraPostgresEngineVersion.of('13.6', '13', { s3Import: true, s3Export: true });
/** Version "13.7". */