Interface IAuroraMysqlClusterEngineProps
Creation properties of the Aurora MySQL database cluster engine.
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IAuroraMysqlClusterEngineProps
Syntax (vb)
Public Interface IAuroraMysqlClusterEngineProps
Remarks
Used in DatabaseClusterEngine.auroraMysql.
ExampleMetadata: infused
Examples
Vpc vpc;
var cluster = new DatabaseCluster(this, "Database", new DatabaseClusterProps {
Engine = DatabaseClusterEngine.AuroraMysql(new AuroraMysqlClusterEngineProps { Version = AuroraMysqlEngineVersion.VER_3_01_0 }),
Credentials = Credentials.FromGeneratedSecret("clusteradmin"), // Optional - will default to 'admin' username and generated password
Writer = ClusterInstance.Provisioned("writer", new ProvisionedClusterInstanceProps {
PubliclyAccessible = false
}),
Readers = new [] { ClusterInstance.Provisioned("reader1", new ProvisionedClusterInstanceProps { PromotionTier = 1 }), ClusterInstance.ServerlessV2("reader2") },
VpcSubnets = new SubnetSelection {
SubnetType = SubnetType.PRIVATE_WITH_EGRESS
},
Vpc = vpc
});
Synopsis
Properties
| Version | The version of the Aurora MySQL cluster engine. |
Properties
Version
The version of the Aurora MySQL cluster engine.
AuroraMysqlEngineVersion Version { get; }
Property Value
Remarks
Used in DatabaseClusterEngine.auroraMysql.
ExampleMetadata: infused