Interface AuroraMysqlClusterEngineProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AuroraMysqlClusterEngineProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:25.658Z")
@Stability(Stable)
public interface AuroraMysqlClusterEngineProps
extends software.amazon.jsii.JsiiSerializable
Creation properties of the Aurora MySQL database cluster engine.
Used in DatabaseClusterEngine.auroraMysql
.
Example:
Vpc vpc; DatabaseCluster cluster = DatabaseCluster.Builder.create(this, "Database") .engine(DatabaseClusterEngine.auroraMysql(AuroraMysqlClusterEngineProps.builder().version(AuroraMysqlEngineVersion.VER_3_01_0).build())) .credentials(Credentials.fromGeneratedSecret("clusteradmin")) // Optional - will default to 'admin' username and generated password .writer(ClusterInstance.provisioned("writer", ProvisionedClusterInstanceProps.builder() .publiclyAccessible(false) .build())) .readers(List.of(ClusterInstance.provisioned("reader1", ProvisionedClusterInstanceProps.builder().promotionTier(1).build()), ClusterInstance.serverlessV2("reader2"))) .vpcSubnets(SubnetSelection.builder() .subnetType(SubnetType.PRIVATE_WITH_EGRESS) .build()) .vpc(vpc) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAuroraMysqlClusterEngineProps
static final class
An implementation forAuroraMysqlClusterEngineProps
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVersion
The version of the Aurora MySQL cluster engine. -
builder
-