AuroraMysqlClusterEngineProps

class aws_cdk.aws_rds.AuroraMysqlClusterEngineProps(*, version)

Bases: object

Creation properties of the Aurora MySQL database cluster engine.

Used in DatabaseClusterEngine.auroraMysql.

Parameters:

version (AuroraMysqlEngineVersion) – The version of the Aurora MySQL cluster engine.

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc

cluster = rds.DatabaseCluster(self, "Database",
    engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_3_01_0),
    writer=rds.ClusterInstance.provisioned("writer",
        instance_type=ec2.InstanceType.of(ec2.InstanceClass.R6G, ec2.InstanceSize.XLARGE4)
    ),
    serverless_v2_min_capacity=6.5,
    serverless_v2_max_capacity=64,
    readers=[
        # will be put in promotion tier 1 and will scale with the writer
        rds.ClusterInstance.serverless_v2("reader1", scale_with_writer=True),
        # will be put in promotion tier 2 and will not scale with the writer
        rds.ClusterInstance.serverless_v2("reader2")
    ],
    vpc=vpc
)

Attributes

version

The version of the Aurora MySQL cluster engine.