interface PostgresInstanceEngineProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.RDS.PostgresInstanceEngineProps |
Java | software.amazon.awscdk.services.rds.PostgresInstanceEngineProps |
Python | aws_cdk.aws_rds.PostgresInstanceEngineProps |
TypeScript (source) | @aws-cdk/aws-rds » PostgresInstanceEngineProps |
Properties for PostgreSQL instance engines.
Used in {@link DatabaseInstanceEngine.postgres}.
Example
declare const vpc: ec2.Vpc;
const engine = rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_12_3 });
const myKey = new kms.Key(this, 'MyKey');
new rds.DatabaseInstance(this, 'InstanceWithCustomizedSecret', {
engine,
vpc,
credentials: rds.Credentials.fromGeneratedSecret('postgres', {
secretName: 'my-cool-name',
encryptionKey: myKey,
excludeCharacters: '!&*^#@()',
replicaRegions: [{ region: 'eu-west-1' }, { region: 'eu-west-2' }],
}),
});
Properties
| Name | Type | Description |
|---|---|---|
| version | Postgres | The exact version of the engine to use. |
version
Type:
Postgres
The exact version of the engine to use.

.NET
Java
Python
TypeScript (