Interface IServerlessV2ClusterInstanceProps
Options for creating a serverless v2 instance.
Inherited Members
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IServerlessV2ClusterInstanceProps : IClusterInstanceOptions
Syntax (vb)
Public Interface IServerlessV2ClusterInstanceProps
Inherits IClusterInstanceOptions
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
var cluster = new DatabaseCluster(this, "Database", new DatabaseClusterProps {
Engine = DatabaseClusterEngine.AuroraMysql(new AuroraMysqlClusterEngineProps { Version = AuroraMysqlEngineVersion.VER_3_01_0 }),
Writer = ClusterInstance.Provisioned("writer", new ProvisionedClusterInstanceProps {
CaCertificate = CaCertificate.RDS_CA_RSA2048_G1
}),
Readers = new [] { ClusterInstance.ServerlessV2("reader", new ServerlessV2ClusterInstanceProps {
CaCertificate = CaCertificate.Of("custom-ca")
}) },
Vpc = vpc
});
Synopsis
Properties
ScaleWithWriter | Only applicable to reader instances. |
Properties
ScaleWithWriter
Only applicable to reader instances.
virtual Nullable<bool> ScaleWithWriter { get; }
Property Value
System.Nullable<System.Boolean>
Remarks
If this is true then the instance will be placed in promotion tier 1, otherwise it will be placed in promotion tier 2.
For serverless v2 instances this means:
Default: false