PostgresInstanceEngineProps

class aws_cdk.aws_rds.PostgresInstanceEngineProps(*, version)

Bases: object

Properties for PostgreSQL instance engines.

Used in {@link DatabaseInstanceEngine.postgres}.

Parameters

version (PostgresEngineVersion) – The exact version of the engine to use.

Example:

# vpc is of type Vpc

engine = rds.DatabaseInstanceEngine.postgres(version=rds.PostgresEngineVersion.VER_12_3)
my_key = kms.Key(self, "MyKey")

rds.DatabaseInstance(self, "InstanceWithCustomizedSecret",
    engine=engine,
    vpc=vpc,
    credentials=rds.Credentials.from_generated_secret("postgres",
        secret_name="my-cool-name",
        encryption_key=my_key,
        exclude_characters="!&*^#@()",
        replica_regions=[secretsmanager.ReplicaRegion(region="eu-west-1"), secretsmanager.ReplicaRegion(region="eu-west-2")]
    )
)

Attributes

version

The exact version of the engine to use.

Return type

PostgresEngineVersion