AuroraPostgresClusterEngineProps

class aws_cdk.aws_rds.AuroraPostgresClusterEngineProps(*, version)

Bases: object

Creation properties of the Aurora PostgreSQL database cluster engine.

Used in DatabaseClusterEngine.auroraPostgres.

Parameters:

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

ExampleMetadata:

infused

Example:

# vpc: ec2.Vpc

cluster = rds.DatabaseCluster(self, "Database",
    engine=rds.DatabaseClusterEngine.aurora_postgres(version=rds.AuroraPostgresEngineVersion.VER_15_2),
    credentials=rds.Credentials.from_username("adminuser", password=SecretValue.unsafe_plain_text("7959866cacc02c2d243ecfe177464fe6")),
    writer=rds.ClusterInstance.provisioned("writer",
        publicly_accessible=False
    ),
    readers=[
        rds.ClusterInstance.provisioned("reader")
    ],
    storage_type=rds.DBClusterStorageType.AURORA_IOPT1,
    vpc_subnets=ec2.SubnetSelection(
        subnet_type=ec2.SubnetType.PRIVATE_WITH_EGRESS
    ),
    vpc=vpc
)

Attributes

version

The version of the Aurora PostgreSQL cluster engine.