class DatabaseInstanceEngine
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.RDS.DatabaseInstanceEngine |
Java | software.amazon.awscdk.services.rds.DatabaseInstanceEngine |
Python | aws_cdk.aws_rds.DatabaseInstanceEngine |
TypeScript (source) | @aws-cdk/aws-rds » DatabaseInstanceEngine |
A database instance engine.
Provides mapping to DatabaseEngine used for secret rotation.
Example
declare const vpc: ec2.Vpc;
new rds.DatabaseInstanceFromSnapshot(this, 'Instance', {
snapshotIdentifier: 'my-snapshot',
engine: rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_12_3 }),
// optional, defaults to m5.large
instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.LARGE),
vpc,
});
declare const sourceInstance: rds.DatabaseInstance;
new rds.DatabaseInstanceReadReplica(this, 'ReadReplica', {
sourceDatabaseInstance: sourceInstance,
instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.LARGE),
vpc,
});
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_SE | IInstance | The unversioned 'oracle-se' instance engine. |
static ORACLE_SE1 | IInstance | The unversioned 'oracle-se1' instance engine. |
static ORACLE_SE2 | IInstance | The unversioned 'oracle-se2' 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 {@link 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 {@link 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 {@link oracleEe()} method
static ORACLE_SE
⚠️ Deprecated: instances can no longer be created with this engine. See https://forums.aws.amazon.com/ann.jspa?annID=7341
Type:
IInstance
The unversioned 'oracle-se' instance engine.
static ORACLE_SE1
⚠️ Deprecated: instances can no longer be created with this engine. See https://forums.aws.amazon.com/ann.jspa?annID=7341
Type:
IInstance
The unversioned 'oracle-se1' instance engine.
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 {@link oracleSe2()} 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 {@link 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 {@link 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 {@link 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 {@link 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 {@link 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 Standard Edition instance engine. |
static oracle | Creates a new Oracle Standard Edition 1 instance engine. |
static oracle | Creates a new Oracle Standard Edition 1 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.
Se(props)
static oraclepublic static oracleSe(props: OracleSeInstanceEngineProps): IInstanceEngine
⚠️ Deprecated: instances can no longer be created with this engine. See https://forums.aws.amazon.com/ann.jspa?annID=7341
Parameters
Returns
Creates a new Oracle Standard Edition instance engine.
Se1(props)
static oraclepublic static oracleSe1(props: OracleSe1InstanceEngineProps): IInstanceEngine
⚠️ Deprecated: instances can no longer be created with this engine. See https://forums.aws.amazon.com/ann.jspa?annID=7341
Parameters
Returns
Creates a new Oracle Standard Edition 1 instance engine.
Se2(props)
static oraclepublic static oracleSe2(props: OracleSe2InstanceEngineProps): IInstanceEngine
Parameters
Returns
Creates a new Oracle Standard Edition 1 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.