interface MySqlInstanceEngineProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.RDS.MySqlInstanceEngineProps |
Java | software.amazon.awscdk.services.rds.MySqlInstanceEngineProps |
Python | aws_cdk.aws_rds.MySqlInstanceEngineProps |
TypeScript (source) | @aws-cdk/aws-rds » MySqlInstanceEngineProps |
Properties for MySQL instance engines.
Used in {@link DatabaseInstanceEngine.mysql}.
Example
declare const vpc: ec2.Vpc;
const role = new iam.Role(this, 'RDSDirectoryServicesRole', {
assumedBy: new iam.ServicePrincipal('rds.amazonaws.com'),
managedPolicies: [
iam.ManagedPolicy.fromAwsManagedPolicyName('service-role/AmazonRDSDirectoryServiceAccess'),
],
});
const instance = new rds.DatabaseInstance(this, 'Instance', {
engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_0_19 }),
vpc,
domain: 'd-????????', // The ID of the domain for the instance to join.
domainRole: role, // Optional - will be create automatically if not provided.
});
Properties
Name | Type | Description |
---|---|---|
version | Mysql | The exact version of the engine to use. |
version
Type:
Mysql
The exact version of the engine to use.