interface PostgresInstanceEngineProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.RDS.PostgresInstanceEngineProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#PostgresInstanceEngineProps |
Java | software.amazon.awscdk.services.rds.PostgresInstanceEngineProps |
Python | aws_cdk.aws_rds.PostgresInstanceEngineProps |
TypeScript (source) | aws-cdk-lib » aws_rds » PostgresInstanceEngineProps |
Properties for PostgreSQL instance engines.
Used in DatabaseInstanceEngine.postgres.
Example
declare const vpc: ec2.Vpc;
const engine = rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_16_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
Go
Java
Python
TypeScript (