aws-cdk-lib.aws_rds.AuroraMysqlClusterEngineProps

interface AuroraMysqlClusterEngineProps

LanguageType name
.NETAmazon.CDK.AWS.RDS.AuroraMysqlClusterEngineProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsrds#AuroraMysqlClusterEngineProps
Javasoftware.amazon.awscdk.services.rds.AuroraMysqlClusterEngineProps
Pythonaws_cdk.aws_rds.AuroraMysqlClusterEngineProps
TypeScript (source)aws-cdk-lib » aws_rds » AuroraMysqlClusterEngineProps

Creation properties of the Aurora MySQL database cluster engine.

Used in DatabaseClusterEngine.auroraMysql.

Example

declare const vpc: ec2.Vpc;
const cluster = new rds.DatabaseCluster(this, 'Database', {
  engine: rds.DatabaseClusterEngine.auroraMysql({ version: rds.AuroraMysqlEngineVersion.VER_2_08_1 }),
  writer: rds.ClusterInstance.provisioned('writer', {
    instanceType: ec2.InstanceType.of(ec2.InstanceClass.R6G, ec2.InstanceSize.XLARGE4),
  }),
  serverlessV2MinCapacity: 6.5,
  serverlessV2MaxCapacity: 64,
  readers: [
    // will be put in promotion tier 1 and will scale with the writer
    rds.ClusterInstance.serverlessV2('reader1', { scaleWithWriter: true }),
    // will be put in promotion tier 2 and will not scale with the writer
    rds.ClusterInstance.serverlessV2('reader2'),
  ]
  vpc,
});

Properties

NameTypeDescription
versionAuroraMysqlEngineVersionThe version of the Aurora MySQL cluster engine.

version

Type: AuroraMysqlEngineVersion

The version of the Aurora MySQL cluster engine.