MysqlEngineVersion

class aws_cdk.aws_rds.MysqlEngineVersion(*args: Any, **kwargs)

Bases: object

The versions for the MySQL instance engines (those returned by {@link DatabaseInstanceEngine.mysql}).

Example:

# vpc is of type Vpc

role = iam.Role(self, "RDSDirectoryServicesRole",
    assumed_by=iam.ServicePrincipal("rds.amazonaws.com"),
    managed_policies=[
        iam.ManagedPolicy.from_aws_managed_policy_name("service-role/AmazonRDSDirectoryServiceAccess")
    ]
)
instance = rds.DatabaseInstance(self, "Instance",
    engine=rds.DatabaseInstanceEngine.mysql(version=rds.MysqlEngineVersion.VER_8_0_19),
    vpc=vpc,
    domain="d-????????",  # The ID of the domain for the instance to join.
    domain_role=role
)

Attributes

VER_5_5 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_5_46 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_5_53 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_5_57 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_5_59 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_5_61 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_34 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_35 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_37 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_39 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_40 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_41 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_43 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_44 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_46 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_48 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_49 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_6_51 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_16 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_17 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_19 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_21 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_22 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_23 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_24 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_25 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_26 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_28 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_30 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_31 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_33 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_5_7_34 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_11 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_13 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_15 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_16 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_17 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_19 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_20 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_21 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_23 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_25 = <aws_cdk.aws_rds.MysqlEngineVersion object>
VER_8_0_26 = <aws_cdk.aws_rds.MysqlEngineVersion object>
mysql_full_version

The full version string, for example, “10.5.28”.

Return type

str

mysql_major_version

The major version of the engine, for example, “10.5”.

Return type

str

Static Methods

classmethod of(mysql_full_version, mysql_major_version)

Create a new MysqlEngineVersion with an arbitrary version.

Parameters
  • mysql_full_version (str) – the full version string, for example “8.1.43”.

  • mysql_major_version (str) – the major version of the engine, for example “8.1”.

Return type

MysqlEngineVersion