class DatabaseClusterEngine
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.RDS.DatabaseClusterEngine |
Java | software.amazon.awscdk.services.rds.DatabaseClusterEngine |
Python | aws_cdk.aws_rds.DatabaseClusterEngine |
TypeScript (source) | @aws-cdk/aws-rds » DatabaseClusterEngine |
A database cluster engine.
Provides mapping to the serverless application used for secret rotation.
Example
declare const vpc: ec2.Vpc;
const cluster = new rds.ServerlessCluster(this, 'AnotherCluster', {
engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
parameterGroup: rds.ParameterGroup.fromParameterGroupName(this, 'ParameterGroup', 'default.aurora-postgresql10'),
vpc,
scaling: {
autoPause: Duration.minutes(10), // default is to pause after 5 minutes of idle time
minCapacity: rds.AuroraCapacityUnit.ACU_8, // default is 2 Aurora capacity units (ACUs)
maxCapacity: rds.AuroraCapacityUnit.ACU_32, // default is 16 Aurora capacity units (ACUs)
}
});
Initializer
new DatabaseClusterEngine()
Properties
Name | Type | Description |
---|---|---|
static AURORA | ICluster | The unversioned 'aurora' cluster engine. |
static AURORA_MYSQL | ICluster | The unversioned 'aurora-msql' cluster engine. |
static AURORA_POSTGRESQL | ICluster | The unversioned 'aurora-postgresql' cluster engine. |
static AURORA
Type:
ICluster
The unversioned 'aurora' cluster engine.
Note: we do not recommend using unversioned engines for non-serverless Clusters, as that can pose an availability risk. We recommend using versioned engines created using the {@link aurora()} method
static AURORA_MYSQL
Type:
ICluster
The unversioned 'aurora-msql' cluster engine.
Note: we do not recommend using unversioned engines for non-serverless Clusters, as that can pose an availability risk. We recommend using versioned engines created using the {@link auroraMysql()} method
static AURORA_POSTGRESQL
Type:
ICluster
The unversioned 'aurora-postgresql' cluster engine.
Note: we do not recommend using unversioned engines for non-serverless Clusters, as that can pose an availability risk. We recommend using versioned engines created using the {@link auroraPostgres()} method
Methods
Name | Description |
---|---|
static aurora(props) | Creates a new plain Aurora database cluster engine. |
static aurora | Creates a new Aurora MySQL database cluster engine. |
static aurora | Creates a new Aurora PostgreSQL database cluster engine. |
static aurora(props)
public static aurora(props: AuroraClusterEngineProps): IClusterEngine
Parameters
- props
Aurora
Cluster Engine Props
Returns
Creates a new plain Aurora database cluster engine.
Mysql(props)
static aurorapublic static auroraMysql(props: AuroraMysqlClusterEngineProps): IClusterEngine
Parameters
Returns
Creates a new Aurora MySQL database cluster engine.
Postgres(props)
static aurorapublic static auroraPostgres(props: AuroraPostgresClusterEngineProps): IClusterEngine
Parameters
Returns
Creates a new Aurora PostgreSQL database cluster engine.