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 instance = new rds.DatabaseInstance(this, 'Database', {
engine: rds.DatabaseInstanceEngine.postgres({
version: rds.PostgresEngineVersion.VER_17_7,
}),
vpc,
iamAuthentication: true,
});
const proxy = new rds.DatabaseProxy(this, 'Proxy', {
proxyTarget: rds.ProxyTarget.fromInstance(instance),
vpc,
defaultAuthScheme: rds.DefaultAuthScheme.IAM_AUTH, // No secrets required
});
// Grant IAM permissions for database connection
const role = new iam.Role(this, 'DBRole', { assumedBy: new iam.AccountPrincipal(this.account) });
proxy.grantConnect(role, 'database-user'); // Database user must be specified when using IAM auth
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 (