interface AuroraMysqlClusterEngineProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.RDS.AuroraMysqlClusterEngineProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#AuroraMysqlClusterEngineProps |
Java | software.amazon.awscdk.services.rds.AuroraMysqlClusterEngineProps |
Python | aws_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_3_01_0 }),
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
Name | Type | Description |
---|---|---|
version | Aurora | The version of the Aurora MySQL cluster engine. |
version
Type:
Aurora
The version of the Aurora MySQL cluster engine.