AuroraMysqlClusterEngineProps

class aws_cdk.aws_rds.AuroraMysqlClusterEngineProps(*, version)

Bases: object

Creation properties of the Aurora MySQL database cluster engine.

Used in {@link DatabaseClusterEngine.auroraMysql}.

Parameters

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

Example:

# vpc is of type Vpc

cluster = rds.DatabaseCluster(self, "Database",
    engine=rds.DatabaseClusterEngine.aurora_mysql(version=rds.AuroraMysqlEngineVersion.VER_2_08_1),
    credentials=rds.Credentials.from_generated_secret("clusteradmin"),  # Optional - will default to 'admin' username and generated password
    instance_props=rds.InstanceProps(
        # optional , defaults to t3.medium
        instance_type=ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.SMALL),
        vpc_subnets=ec2.SubnetSelection(
            subnet_type=ec2.SubnetType.PRIVATE
        ),
        vpc=vpc
    )
)

Attributes

version

The version of the Aurora MySQL cluster engine.

Return type

AuroraMysqlEngineVersion