class DatabaseInstanceEngine
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.RDS.DatabaseInstanceEngine |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#DatabaseInstanceEngine |
Java | software.amazon.awscdk.services.rds.DatabaseInstanceEngine |
Python | aws_cdk.aws_rds.DatabaseInstanceEngine |
TypeScript (source) | aws-cdk-lib » aws_rds » DatabaseInstanceEngine |
A database instance engine.
Provides mapping to DatabaseEngine used for secret rotation.
Example
declare const vpc: ec2.Vpc;
const iopsInstance = new rds.DatabaseInstance(this, 'IopsInstance', {
engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_0_39 }),
vpc,
storageType: rds.StorageType.IO1,
iops: 5000,
});
const gp3Instance = new rds.DatabaseInstance(this, 'Gp3Instance', {
engine: rds.DatabaseInstanceEngine.mysql({ version: rds.MysqlEngineVersion.VER_8_0_39 }),
vpc,
allocatedStorage: 500,
storageType: rds.StorageType.GP3,
storageThroughput: 500, // only applicable for GP3
});
Initializer
new DatabaseInstanceEngine()
Properties
Name | Type | Description |
---|---|---|
static MARIADB | IInstance | The unversioned 'mariadb' instance engine. |
static MYSQL | IInstance | The unversioned 'mysql' instance engine. |
static ORACLE_EE | IInstance | The unversioned 'oracle-ee' instance engine. |
static ORACLE_EE_CDB | IInstance | The unversioned 'oracle-ee-cdb' instance engine. |
static ORACLE_SE2 | IInstance | The unversioned 'oracle-se2' instance engine. |
static ORACLE_SE2_CDB | IInstance | The unversioned 'oracle-se2-cdb' instance engine. |
static POSTGRES | IInstance | The unversioned 'postgres' instance engine. |
static SQL_SERVER_EE | IInstance | The unversioned 'sqlserver-ee' instance engine. |
static SQL_SERVER_EX | IInstance | The unversioned 'sqlserver-ex' instance engine. |
static SQL_SERVER_SE | IInstance | The unversioned 'sqlserver-se' instance engine. |
static SQL_SERVER_WEB | IInstance | The unversioned 'sqlserver-web' instance engine. |
static MARIADB
Type:
IInstance
The unversioned 'mariadb' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the mariaDb()
method
static MYSQL
Type:
IInstance
The unversioned 'mysql' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the mysql()
method
static ORACLE_EE
Type:
IInstance
The unversioned 'oracle-ee' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the oracleEe()
method
static ORACLE_EE_CDB
Type:
IInstance
The unversioned 'oracle-ee-cdb' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the oracleEeCdb()
method
static ORACLE_SE2
Type:
IInstance
The unversioned 'oracle-se2' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the oracleSe2()
method
static ORACLE_SE2_CDB
Type:
IInstance
The unversioned 'oracle-se2-cdb' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the oracleSe2Cdb()
method
static POSTGRES
Type:
IInstance
The unversioned 'postgres' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the postgres()
method
static SQL_SERVER_EE
Type:
IInstance
The unversioned 'sqlserver-ee' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the sqlServerEe()
method
static SQL_SERVER_EX
Type:
IInstance
The unversioned 'sqlserver-ex' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the sqlServerEx()
method
static SQL_SERVER_SE
Type:
IInstance
The unversioned 'sqlserver-se' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the sqlServerSe()
method
static SQL_SERVER_WEB
Type:
IInstance
The unversioned 'sqlserver-web' instance engine.
NOTE: using unversioned engines is an availability risk.
We recommend using versioned engines created using the sqlServerWeb()
method
Methods
Name | Description |
---|---|
static maria | Creates a new MariaDB instance engine. |
static mysql(props) | Creates a new MySQL instance engine. |
static oracle | Creates a new Oracle Enterprise Edition instance engine. |
static oracle | Creates a new Oracle Enterprise Edition (CDB) instance engine. |
static oracle | Creates a new Oracle Standard Edition 2 instance engine. |
static oracle | Creates a new Oracle Standard Edition 2 (CDB) instance engine. |
static postgres(props) | Creates a new PostgreSQL instance engine. |
static sql | Creates a new SQL Server Enterprise Edition instance engine. |
static sql | Creates a new SQL Server Express Edition instance engine. |
static sql | Creates a new SQL Server Standard Edition instance engine. |
static sql | Creates a new SQL Server Web Edition instance engine. |
Db(props)
static mariapublic static mariaDb(props: MariaDbInstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new MariaDB instance engine.
static mysql(props)
public static mysql(props: MySqlInstanceEngineProps): IInstanceEngine
Parameters
- props
My
Sql Instance Engine Props
Returns
Creates a new MySQL instance engine.
Ee(props)
static oraclepublic static oracleEe(props: OracleEeInstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new Oracle Enterprise Edition instance engine.
EeCdb(props)
static oraclepublic static oracleEeCdb(props: OracleEeCdbInstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new Oracle Enterprise Edition (CDB) instance engine.
Se2(props)
static oraclepublic static oracleSe2(props: OracleSe2InstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new Oracle Standard Edition 2 instance engine.
Se2Cdb(props)
static oraclepublic static oracleSe2Cdb(props: OracleSe2CdbInstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new Oracle Standard Edition 2 (CDB) instance engine.
static postgres(props)
public static postgres(props: PostgresInstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new PostgreSQL instance engine.
ServerEe(props)
static sqlpublic static sqlServerEe(props: SqlServerEeInstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new SQL Server Enterprise Edition instance engine.
ServerEx(props)
static sqlpublic static sqlServerEx(props: SqlServerExInstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new SQL Server Express Edition instance engine.
ServerSe(props)
static sqlpublic static sqlServerSe(props: SqlServerSeInstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new SQL Server Standard Edition instance engine.
ServerWeb(props)
static sqlpublic static sqlServerWeb(props: SqlServerWebInstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new SQL Server Web Edition instance engine.