DatabaseClusterEngine

class aws_cdk.aws_rds.DatabaseClusterEngine

Bases: object

A database cluster engine.

Provides mapping to the serverless application used for secret rotation.

ExampleMetadata

infused

Example:

# vpc: ec2.Vpc


cluster = rds.ServerlessCluster(self, "AnotherCluster",
    engine=rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
    parameter_group=rds.ParameterGroup.from_parameter_group_name(self, "ParameterGroup", "default.aurora-postgresql10"),
    vpc=vpc,
    scaling=rds.ServerlessScalingOptions(
        auto_pause=Duration.minutes(10),  # default is to pause after 5 minutes of idle time
        min_capacity=rds.AuroraCapacityUnit.ACU_8,  # default is 2 Aurora capacity units (ACUs)
        max_capacity=rds.AuroraCapacityUnit.ACU_32
    )
)

Attributes

AURORA = <jsii._reference_map.InterfaceDynamicProxy object>
AURORA_MYSQL = <jsii._reference_map.InterfaceDynamicProxy object>
AURORA_POSTGRESQL = <jsii._reference_map.InterfaceDynamicProxy object>

Static Methods

classmethod aurora(*, version)

Creates a new plain Aurora database cluster engine.

Parameters

version (AuroraEngineVersion) – The version of the Aurora cluster engine.

Return type

IClusterEngine

classmethod aurora_mysql(*, version)

Creates a new Aurora MySQL database cluster engine.

Parameters

version (AuroraMysqlEngineVersion) – The version of the Aurora MySQL cluster engine.

Return type

IClusterEngine

classmethod aurora_postgres(*, version)

Creates a new Aurora PostgreSQL database cluster engine.

Parameters

version (AuroraPostgresEngineVersion) – The version of the Aurora PostgreSQL cluster engine.

Return type

IClusterEngine