Skip to content
v2.278.0

MysqlEngineVersion Class ​

The versions for the MySQL instance engines (those returned by DatabaseInstanceEngine.mysql).

Example ​

ts
declare const vpc: ec2.Vpc;
declare const kmsKey: kms.Key;
const instance = new rds.DatabaseInstance(this, 'Instance', {
  engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_0_39 }),
  instanceType: ec2.InstanceType.of(ec2.InstanceClass.R7G, ec2.InstanceSize.LARGE),
  vpc,
  enablePerformanceInsights: true,
  performanceInsightRetention: rds.PerformanceInsightRetention.LONG_TERM,
  performanceInsightEncryptionKey: kmsKey,
});
python
# vpc: ec2.Vpc
# kms_key: kms.Key

instance = rds.DatabaseInstance(self, "Instance",
    engine=rds.DatabaseInstanceEngine.mysql(version=rds.MysqlEngineVersion.VER_8_0_39),
    instance_type=ec2.InstanceType.of(ec2.InstanceClass.R7G, ec2.InstanceSize.LARGE),
    vpc=vpc,
    enable_performance_insights=True,
    performance_insight_retention=rds.PerformanceInsightRetention.LONG_TERM,
    performance_insight_encryption_key=kms_key
)
java
Vpc vpc;
Key kmsKey;

DatabaseInstance instance = DatabaseInstance.Builder.create(this, "Instance")
        .engine(DatabaseInstanceEngine.mysql(MySqlInstanceEngineProps.builder().version(MysqlEngineVersion.VER_8_0_39).build()))
        .instanceType(InstanceType.of(InstanceClass.R7G, InstanceSize.LARGE))
        .vpc(vpc)
        .enablePerformanceInsights(true)
        .performanceInsightRetention(PerformanceInsightRetention.LONG_TERM)
        .performanceInsightEncryptionKey(kmsKey)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
Vpc vpc;
Key kmsKey;

var instance = new DatabaseInstance(this, "Instance", new DatabaseInstanceProps {
    Engine = DatabaseInstanceEngine.Mysql(new MySqlInstanceEngineProps { Version = MysqlEngineVersion.VER_8_0_39 }),
    InstanceType = InstanceType.Of(InstanceClass.R7G, InstanceSize.LARGE),
    Vpc = vpc,
    EnablePerformanceInsights = true,
    PerformanceInsightRetention = PerformanceInsightRetention.LONG_TERM,
    PerformanceInsightEncryptionKey = kmsKey
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var vpc Vpc
var kmsKey Key

instance := rds.NewDatabaseInstance(this, jsii.String("Instance"), &DatabaseInstanceProps{
	Engine: rds.DatabaseInstanceEngine_Mysql(&MySqlInstanceEngineProps{
		Version: rds.MysqlEngineVersion_VER_8_0_39(),
	}),
	InstanceType: ec2.InstanceType_Of(ec2.InstanceClass_R7G, ec2.InstanceSize_LARGE),
	Vpc: Vpc,
	EnablePerformanceInsights: jsii.Boolean(true),
	PerformanceInsightRetention: rds.PerformanceInsightRetention_LONG_TERM,
	PerformanceInsightEncryptionKey: kmsKey,
})

Properties ​

mysqlFullVersionstringmysql_full_versionstrmysqlFullVersionStringMysqlFullVersionstringMysqlFullVersion*string #
The full version string, for example, "10.5.28".
mysqlMajorVersionstringmysql_major_versionstrmysqlMajorVersionStringMysqlMajorVersionstringMysqlMajorVersion*string #
The major version of the engine, for example, "10.5".
VER_5_5_54MysqlEngineVersionVER_5_5_54MysqlEngineVersionVER_5_5_54MysqlEngineVersionVER_5_5_54MysqlEngineVersionVER_5_5_54MysqlEngineVersion static deprecated #
MySQL 5.5.54 is no longer supported by Amazon RDS.
Version "5.7" (only a major version, without a specific minor version).
VER_5_7_16MysqlEngineVersionVER_5_7_16MysqlEngineVersionVER_5_7_16MysqlEngineVersionVER_5_7_16MysqlEngineVersionVER_5_7_16MysqlEngineVersion static deprecated #
MySQL 5.7.16 is no longer supported by Amazon RDS.
VER_5_7_17MysqlEngineVersionVER_5_7_17MysqlEngineVersionVER_5_7_17MysqlEngineVersionVER_5_7_17MysqlEngineVersionVER_5_7_17MysqlEngineVersion static deprecated #
MySQL 5.7.17 is no longer supported by Amazon RDS.
VER_5_7_19MysqlEngineVersionVER_5_7_19MysqlEngineVersionVER_5_7_19MysqlEngineVersionVER_5_7_19MysqlEngineVersionVER_5_7_19MysqlEngineVersion static deprecated #
MySQL 5.7.19 is no longer supported by Amazon RDS.
VER_5_7_21MysqlEngineVersionVER_5_7_21MysqlEngineVersionVER_5_7_21MysqlEngineVersionVER_5_7_21MysqlEngineVersionVER_5_7_21MysqlEngineVersion static deprecated #
MySQL 5.7.21 is no longer supported by Amazon RDS.
VER_5_7_22MysqlEngineVersionVER_5_7_22MysqlEngineVersionVER_5_7_22MysqlEngineVersionVER_5_7_22MysqlEngineVersionVER_5_7_22MysqlEngineVersion static deprecated #
MySQL 5.7.22 is no longer supported by Amazon RDS.
VER_5_7_23MysqlEngineVersionVER_5_7_23MysqlEngineVersionVER_5_7_23MysqlEngineVersionVER_5_7_23MysqlEngineVersionVER_5_7_23MysqlEngineVersion static deprecated #
MySQL 5.7.23 is no longer supported by Amazon RDS.
VER_5_7_24MysqlEngineVersionVER_5_7_24MysqlEngineVersionVER_5_7_24MysqlEngineVersionVER_5_7_24MysqlEngineVersionVER_5_7_24MysqlEngineVersion static deprecated #
MySQL 5.7.24 is no longer supported by Amazon RDS.
VER_5_7_25MysqlEngineVersionVER_5_7_25MysqlEngineVersionVER_5_7_25MysqlEngineVersionVER_5_7_25MysqlEngineVersionVER_5_7_25MysqlEngineVersion static deprecated #
MySQL 5.7.25 is no longer supported by Amazon RDS.
VER_5_7_26MysqlEngineVersionVER_5_7_26MysqlEngineVersionVER_5_7_26MysqlEngineVersionVER_5_7_26MysqlEngineVersionVER_5_7_26MysqlEngineVersion static deprecated #
MySQL 5.7.26 is no longer supported by Amazon RDS.
VER_5_7_28MysqlEngineVersionVER_5_7_28MysqlEngineVersionVER_5_7_28MysqlEngineVersionVER_5_7_28MysqlEngineVersionVER_5_7_28MysqlEngineVersion static deprecated #
MySQL 5.7.28 is no longer supported by Amazon RDS.
VER_5_7_30MysqlEngineVersionVER_5_7_30MysqlEngineVersionVER_5_7_30MysqlEngineVersionVER_5_7_30MysqlEngineVersionVER_5_7_30MysqlEngineVersion static deprecated #
MySQL 5.7.30 is no longer supported by Amazon RDS.
VER_5_7_31MysqlEngineVersionVER_5_7_31MysqlEngineVersionVER_5_7_31MysqlEngineVersionVER_5_7_31MysqlEngineVersionVER_5_7_31MysqlEngineVersion static deprecated #
MySQL 5.7.31 is no longer supported by Amazon RDS.
VER_5_7_33MysqlEngineVersionVER_5_7_33MysqlEngineVersionVER_5_7_33MysqlEngineVersionVER_5_7_33MysqlEngineVersionVER_5_7_33MysqlEngineVersion static deprecated #
MySQL 5.7.33 is no longer supported by Amazon RDS.
VER_5_7_34MysqlEngineVersionVER_5_7_34MysqlEngineVersionVER_5_7_34MysqlEngineVersionVER_5_7_34MysqlEngineVersionVER_5_7_34MysqlEngineVersion static deprecated #
MySQL 5.7.34 is no longer supported by Amazon RDS.
VER_5_7_35MysqlEngineVersionVER_5_7_35MysqlEngineVersionVER_5_7_35MysqlEngineVersionVER_5_7_35MysqlEngineVersionVER_5_7_35MysqlEngineVersion static deprecated #
MySQL 5.7.35 is no longer supported by Amazon RDS.
VER_5_7_36MysqlEngineVersionVER_5_7_36MysqlEngineVersionVER_5_7_36MysqlEngineVersionVER_5_7_36MysqlEngineVersionVER_5_7_36MysqlEngineVersion static deprecated #
MySQL 5.7.36 is no longer supported by Amazon RDS.
VER_5_7_37MysqlEngineVersionVER_5_7_37MysqlEngineVersionVER_5_7_37MysqlEngineVersionVER_5_7_37MysqlEngineVersionVER_5_7_37MysqlEngineVersion static deprecated #
MySQL 5.7.37 is no longer supported by Amazon RDS.
VER_5_7_38MysqlEngineVersionVER_5_7_38MysqlEngineVersionVER_5_7_38MysqlEngineVersionVER_5_7_38MysqlEngineVersionVER_5_7_38MysqlEngineVersion static deprecated #
MySQL 5.7.38 is no longer supported by Amazon RDS.
VER_5_7_39MysqlEngineVersionVER_5_7_39MysqlEngineVersionVER_5_7_39MysqlEngineVersionVER_5_7_39MysqlEngineVersionVER_5_7_39MysqlEngineVersion static deprecated #
MySQL 5.7.39 is no longer supported by Amazon RDS.
VER_5_7_40MysqlEngineVersionVER_5_7_40MysqlEngineVersionVER_5_7_40MysqlEngineVersionVER_5_7_40MysqlEngineVersionVER_5_7_40MysqlEngineVersion static deprecated #
MySQL 5.7.40 is no longer supported by Amazon RDS.
VER_5_7_41MysqlEngineVersionVER_5_7_41MysqlEngineVersionVER_5_7_41MysqlEngineVersionVER_5_7_41MysqlEngineVersionVER_5_7_41MysqlEngineVersion static deprecated #
MySQL 5.7.41 is no longer supported by Amazon RDS.
VER_5_7_42MysqlEngineVersionVER_5_7_42MysqlEngineVersionVER_5_7_42MysqlEngineVersionVER_5_7_42MysqlEngineVersionVER_5_7_42MysqlEngineVersion static deprecated #
MySQL 5.7.42 is no longer supported by Amazon RDS.
VER_5_7_43MysqlEngineVersionVER_5_7_43MysqlEngineVersionVER_5_7_43MysqlEngineVersionVER_5_7_43MysqlEngineVersionVER_5_7_43MysqlEngineVersion static deprecated #
MySQL 5.7.43 is no longer supported by Amazon RDS.
VER_5_7_44MysqlEngineVersionVER_5_7_44MysqlEngineVersionVER_5_7_44MysqlEngineVersionVER_5_7_44MysqlEngineVersionVER_5_7_44MysqlEngineVersion static deprecated #
MySQL 5.7.44 is no longer supported by Amazon RDS.
VER_5_7_44_RDS_20240408MysqlEngineVersionVER_5_7_44_RDS_20240408MysqlEngineVersionVER_5_7_44_RDS_20240408MysqlEngineVersionVER_5_7_44_RDS_20240408MysqlEngineVersionVER_5_7_44_RDS_20240408MysqlEngineVersion static deprecated #
MySQL 5.7.44-rds.20240408 is no longer supported by Amazon RDS.
VER_5_7_44_RDS_20240529MysqlEngineVersionVER_5_7_44_RDS_20240529MysqlEngineVersionVER_5_7_44_RDS_20240529MysqlEngineVersionVER_5_7_44_RDS_20240529MysqlEngineVersionVER_5_7_44_RDS_20240529MysqlEngineVersion static deprecated #
MySQL 5.7.44-rds.20240529 is no longer supported by Amazon RDS.
VER_5_7_44_RDS_20240808MysqlEngineVersionVER_5_7_44_RDS_20240808MysqlEngineVersionVER_5_7_44_RDS_20240808MysqlEngineVersionVER_5_7_44_RDS_20240808MysqlEngineVersionVER_5_7_44_RDS_20240808MysqlEngineVersion static deprecated #
MySQL 5.7.44-rds.20240808 is no longer supported by Amazon RDS.
VER_5_7_44_RDS_20250103MysqlEngineVersionVER_5_7_44_RDS_20250103MysqlEngineVersionVER_5_7_44_RDS_20250103MysqlEngineVersionVER_5_7_44_RDS_20250103MysqlEngineVersionVER_5_7_44_RDS_20250103MysqlEngineVersion static deprecated #
MySQL 5.7.44-rds.20250103 is no longer supported by Amazon RDS.
VER_5_7_44_RDS_20250213MysqlEngineVersionVER_5_7_44_RDS_20250213MysqlEngineVersionVER_5_7_44_RDS_20250213MysqlEngineVersionVER_5_7_44_RDS_20250213MysqlEngineVersionVER_5_7_44_RDS_20250213MysqlEngineVersion static #
Version "5.7.44-rds.20250213".
VER_5_7_44_RDS_20250508MysqlEngineVersionVER_5_7_44_RDS_20250508MysqlEngineVersionVER_5_7_44_RDS_20250508MysqlEngineVersionVER_5_7_44_RDS_20250508MysqlEngineVersionVER_5_7_44_RDS_20250508MysqlEngineVersion static #
Version "5.7.44-rds.20250508".
VER_5_7_44_RDS_20250818MysqlEngineVersionVER_5_7_44_RDS_20250818MysqlEngineVersionVER_5_7_44_RDS_20250818MysqlEngineVersionVER_5_7_44_RDS_20250818MysqlEngineVersionVER_5_7_44_RDS_20250818MysqlEngineVersion static #
Version "5.7.44-rds.20250818".
VER_5_7_44_RDS_20251212MysqlEngineVersionVER_5_7_44_RDS_20251212MysqlEngineVersionVER_5_7_44_RDS_20251212MysqlEngineVersionVER_5_7_44_RDS_20251212MysqlEngineVersionVER_5_7_44_RDS_20251212MysqlEngineVersion static #
Version "5.7.44-rds.20251212".
VER_5_7_44_RDS_20260212MysqlEngineVersionVER_5_7_44_RDS_20260212MysqlEngineVersionVER_5_7_44_RDS_20260212MysqlEngineVersionVER_5_7_44_RDS_20260212MysqlEngineVersionVER_5_7_44_RDS_20260212MysqlEngineVersion static #
Version "5.7.44-rds.20260212".
VER_5_7_44_RDS_20260521MysqlEngineVersionVER_5_7_44_RDS_20260521MysqlEngineVersionVER_5_7_44_RDS_20260521MysqlEngineVersionVER_5_7_44_RDS_20260521MysqlEngineVersionVER_5_7_44_RDS_20260521MysqlEngineVersion static #
Version "5.7.44-rds.20260521".
Version "8.0" (only a major version, without a specific minor version).
VER_8_0_11MysqlEngineVersionVER_8_0_11MysqlEngineVersionVER_8_0_11MysqlEngineVersionVER_8_0_11MysqlEngineVersionVER_8_0_11MysqlEngineVersion static deprecated #
MySQL 8.0.11 is no longer supported by Amazon RDS.
VER_8_0_13MysqlEngineVersionVER_8_0_13MysqlEngineVersionVER_8_0_13MysqlEngineVersionVER_8_0_13MysqlEngineVersionVER_8_0_13MysqlEngineVersion static deprecated #
MySQL 8.0.13 is no longer supported by Amazon RDS.
VER_8_0_15MysqlEngineVersionVER_8_0_15MysqlEngineVersionVER_8_0_15MysqlEngineVersionVER_8_0_15MysqlEngineVersionVER_8_0_15MysqlEngineVersion static deprecated #
MySQL 8.0.15 is no longer supported by Amazon RDS.
VER_8_0_16MysqlEngineVersionVER_8_0_16MysqlEngineVersionVER_8_0_16MysqlEngineVersionVER_8_0_16MysqlEngineVersionVER_8_0_16MysqlEngineVersion static deprecated #
MySQL 8.0.16 is no longer supported by Amazon RDS.
VER_8_0_17MysqlEngineVersionVER_8_0_17MysqlEngineVersionVER_8_0_17MysqlEngineVersionVER_8_0_17MysqlEngineVersionVER_8_0_17MysqlEngineVersion static deprecated #
MySQL 8.0.17 is no longer supported by Amazon RDS.
VER_8_0_19MysqlEngineVersionVER_8_0_19MysqlEngineVersionVER_8_0_19MysqlEngineVersionVER_8_0_19MysqlEngineVersionVER_8_0_19MysqlEngineVersion static deprecated #
MySQL 8.0.19 is no longer supported by Amazon RDS.
VER_8_0_20MysqlEngineVersionVER_8_0_20MysqlEngineVersionVER_8_0_20MysqlEngineVersionVER_8_0_20MysqlEngineVersionVER_8_0_20MysqlEngineVersion static deprecated #
MySQL 8.0.20 is no longer supported by Amazon RDS.
VER_8_0_21MysqlEngineVersionVER_8_0_21MysqlEngineVersionVER_8_0_21MysqlEngineVersionVER_8_0_21MysqlEngineVersionVER_8_0_21MysqlEngineVersion static deprecated #
MySQL 8.0.21 is no longer supported by Amazon RDS.
VER_8_0_23MysqlEngineVersionVER_8_0_23MysqlEngineVersionVER_8_0_23MysqlEngineVersionVER_8_0_23MysqlEngineVersionVER_8_0_23MysqlEngineVersion static deprecated #
MySQL 8.0.23 is no longer supported by Amazon RDS.
VER_8_0_25MysqlEngineVersionVER_8_0_25MysqlEngineVersionVER_8_0_25MysqlEngineVersionVER_8_0_25MysqlEngineVersionVER_8_0_25MysqlEngineVersion static deprecated #
MySQL 8.0.25 is no longer supported by Amazon RDS.
VER_8_0_26MysqlEngineVersionVER_8_0_26MysqlEngineVersionVER_8_0_26MysqlEngineVersionVER_8_0_26MysqlEngineVersionVER_8_0_26MysqlEngineVersion static deprecated #
MySQL 8.0.26 is no longer supported by Amazon RDS.
VER_8_0_27MysqlEngineVersionVER_8_0_27MysqlEngineVersionVER_8_0_27MysqlEngineVersionVER_8_0_27MysqlEngineVersionVER_8_0_27MysqlEngineVersion static deprecated #
MySQL 8.0.27 is no longer supported by Amazon RDS.
VER_8_0_28MysqlEngineVersionVER_8_0_28MysqlEngineVersionVER_8_0_28MysqlEngineVersionVER_8_0_28MysqlEngineVersionVER_8_0_28MysqlEngineVersion static deprecated #
MySQL 8.0.28 is no longer supported by Amazon RDS.
VER_8_0_29MysqlEngineVersionVER_8_0_29MysqlEngineVersionVER_8_0_29MysqlEngineVersionVER_8_0_29MysqlEngineVersionVER_8_0_29MysqlEngineVersion static deprecated #
MySQL 8.0.29 is no longer supported by Amazon RDS.
VER_8_0_30MysqlEngineVersionVER_8_0_30MysqlEngineVersionVER_8_0_30MysqlEngineVersionVER_8_0_30MysqlEngineVersionVER_8_0_30MysqlEngineVersion static deprecated #
MySQL 8.0.30 is no longer supported by Amazon RDS.
VER_8_0_31MysqlEngineVersionVER_8_0_31MysqlEngineVersionVER_8_0_31MysqlEngineVersionVER_8_0_31MysqlEngineVersionVER_8_0_31MysqlEngineVersion static deprecated #
MySQL 8.0.31 is no longer supported by Amazon RDS.
VER_8_0_32MysqlEngineVersionVER_8_0_32MysqlEngineVersionVER_8_0_32MysqlEngineVersionVER_8_0_32MysqlEngineVersionVER_8_0_32MysqlEngineVersion static deprecated #
MySQL 8.0.32 is no longer supported by Amazon RDS.
VER_8_0_33MysqlEngineVersionVER_8_0_33MysqlEngineVersionVER_8_0_33MysqlEngineVersionVER_8_0_33MysqlEngineVersionVER_8_0_33MysqlEngineVersion static deprecated #
MySQL 8.0.33 is no longer supported by Amazon RDS.
VER_8_0_34MysqlEngineVersionVER_8_0_34MysqlEngineVersionVER_8_0_34MysqlEngineVersionVER_8_0_34MysqlEngineVersionVER_8_0_34MysqlEngineVersion static deprecated #
MySQL 8.0.34 is no longer supported by Amazon RDS.
VER_8_0_35MysqlEngineVersionVER_8_0_35MysqlEngineVersionVER_8_0_35MysqlEngineVersionVER_8_0_35MysqlEngineVersionVER_8_0_35MysqlEngineVersion static deprecated #
MySQL 8.0.35 is no longer supported by Amazon RDS.
VER_8_0_36MysqlEngineVersionVER_8_0_36MysqlEngineVersionVER_8_0_36MysqlEngineVersionVER_8_0_36MysqlEngineVersionVER_8_0_36MysqlEngineVersion static deprecated #
MySQL 8.0.36 is no longer supported by Amazon RDS.
VER_8_0_37MysqlEngineVersionVER_8_0_37MysqlEngineVersionVER_8_0_37MysqlEngineVersionVER_8_0_37MysqlEngineVersionVER_8_0_37MysqlEngineVersion static deprecated #
MySQL 8.0.37 is no longer supported by Amazon RDS.
VER_8_0_39MysqlEngineVersionVER_8_0_39MysqlEngineVersionVER_8_0_39MysqlEngineVersionVER_8_0_39MysqlEngineVersionVER_8_0_39MysqlEngineVersion static deprecated #
MySQL 8.0.39 is no longer supported by Amazon RDS.
VER_8_0_40MysqlEngineVersionVER_8_0_40MysqlEngineVersionVER_8_0_40MysqlEngineVersionVER_8_0_40MysqlEngineVersionVER_8_0_40MysqlEngineVersion static deprecated #
MySQL 8.0.40 is no longer supported by Amazon RDS.
VER_8_0_41MysqlEngineVersionVER_8_0_41MysqlEngineVersionVER_8_0_41MysqlEngineVersionVER_8_0_41MysqlEngineVersionVER_8_0_41MysqlEngineVersion static deprecated #
MySQL 8.0.41 is no longer supported by Amazon RDS.
Version "8.0.42".
Version "8.0.43".
Version "8.0.44".
Version "8.0.45".
Version "8.0.46".
Version "8.4.10".
VER_8_4_3MysqlEngineVersionVER_8_4_3MysqlEngineVersionVER_8_4_3MysqlEngineVersionVER_8_4_3MysqlEngineVersionVER_8_4_3MysqlEngineVersion static deprecated #
MySQL 8.4.3 is no longer supported by Amazon RDS.
VER_8_4_4MysqlEngineVersionVER_8_4_4MysqlEngineVersionVER_8_4_4MysqlEngineVersionVER_8_4_4MysqlEngineVersionVER_8_4_4MysqlEngineVersion static deprecated #
MySQL 8.4.4 is no longer supported by Amazon RDS.
Version "8.4.5".
Version "8.4.6".
Version "8.4.7".
Version "8.4.8".
Version "8.4.9".

Methods ​

of(mysqlFullVersion: string, mysqlMajorVersion: string): MysqlEngineVersion // chainable@staticmethod def of(mysql_full_version: str, mysql_major_version: str) -> MysqlEngineVersionpublic static MysqlEngineVersion of(String mysqlFullVersion, String mysqlMajorVersion)public static MysqlEngineVersion Of(string mysqlFullVersion, string mysqlMajorVersion)func Of(MysqlFullVersion *string, MysqlMajorVersion *string) MysqlEngineVersion static #
Create a new MysqlEngineVersion with an arbitrary version.
2 parameters

Parameters

  • mysqlFullVersionmysql_full_versionmysqlFullVersionmysqlFullVersionMysqlFullVersion — the full version string, for example "8.1.43".
  • mysqlMajorVersionmysql_major_versionmysqlMajorVersionmysqlMajorVersionMysqlMajorVersion — the major version of the engine, for example "8.1".