Skip to content
v2.277.0

PostgresEngineVersion Class ​

The versions for the PostgreSQL instance engines (those returned by DatabaseInstanceEngine.postgres).

Example ​

ts
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
python
# vpc: ec2.Vpc

instance = rds.DatabaseInstance(self, "Database",
    engine=rds.DatabaseInstanceEngine.postgres(
        version=rds.PostgresEngineVersion.VER_17_7
    ),
    vpc=vpc,
    iam_authentication=True
)

proxy = rds.DatabaseProxy(self, "Proxy",
    proxy_target=rds.ProxyTarget.from_instance(instance),
    vpc=vpc,
    default_auth_scheme=rds.DefaultAuthScheme.IAM_AUTH
)

# Grant IAM permissions for database connection
role = iam.Role(self, "DBRole", assumed_by=iam.AccountPrincipal(self.account))
proxy.grant_connect(role, "database-user")
java
Vpc vpc;

DatabaseInstance instance = DatabaseInstance.Builder.create(this, "Database")
        .engine(DatabaseInstanceEngine.postgres(PostgresInstanceEngineProps.builder()
                .version(PostgresEngineVersion.VER_17_7)
                .build()))
        .vpc(vpc)
        .iamAuthentication(true)
        .build();

DatabaseProxy proxy = DatabaseProxy.Builder.create(this, "Proxy")
        .proxyTarget(ProxyTarget.fromInstance(instance))
        .vpc(vpc)
        .defaultAuthScheme(DefaultAuthScheme.IAM_AUTH)
        .build();

// Grant IAM permissions for database connection
Role role = Role.Builder.create(this, "DBRole").assumedBy(new AccountPrincipal(this.account)).build();
proxy.grantConnect(role, "database-user");
csharp
// Install: dotnet add package Amazon.CDK.Lib
Vpc vpc;

var instance = new DatabaseInstance(this, "Database", new DatabaseInstanceProps {
    Engine = DatabaseInstanceEngine.Postgres(new PostgresInstanceEngineProps {
        Version = PostgresEngineVersion.VER_17_7
    }),
    Vpc = vpc,
    IamAuthentication = true
});

var proxy = new DatabaseProxy(this, "Proxy", new DatabaseProxyProps {
    ProxyTarget = ProxyTarget.FromInstance(instance),
    Vpc = vpc,
    DefaultAuthScheme = DefaultAuthScheme.IAM_AUTH
});

// Grant IAM permissions for database connection
var role = new Role(this, "DBRole", new RoleProps { AssumedBy = new AccountPrincipal(Account) });
proxy.GrantConnect(role, "database-user");
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var vpc Vpc

instance := rds.NewDatabaseInstance(this, jsii.String("Database"), &DatabaseInstanceProps{
	Engine: rds.DatabaseInstanceEngine_Postgres(&PostgresInstanceEngineProps{
		Version: rds.PostgresEngineVersion_VER_17_7(),
	}),
	Vpc: Vpc,
	IamAuthentication: jsii.Boolean(true),
})

proxy := rds.NewDatabaseProxy(this, jsii.String("Proxy"), &DatabaseProxyProps{
	ProxyTarget: rds.ProxyTarget_FromInstance(instance),
	Vpc: Vpc,
	DefaultAuthScheme: rds.DefaultAuthScheme_IAM_AUTH,
})

// Grant IAM permissions for database connection
role := iam.NewRole(this, jsii.String("DBRole"), &RoleProps{
	AssumedBy: iam.NewAccountPrincipal(this.Account),
})
proxy.GrantConnect(role, jsii.String("database-user"))

Properties ​

postgresFullVersionstringpostgres_full_versionstrpostgresFullVersionStringPostgresFullVersionstringPostgresFullVersion*string #
The full version string, for example, "13.11".
postgresMajorVersionstringpostgres_major_versionstrpostgresMajorVersionStringPostgresMajorVersionstringPostgresMajorVersion*string #
The major version of the engine, for example, "13".
PostgreSQL 10 is no longer supported by Amazon RDS.
PostgreSQL 10 is no longer supported by Amazon RDS.
PostgreSQL 10.10 is no longer supported by Amazon RDS.
PostgreSQL 10.11 is no longer supported by Amazon RDS.
PostgreSQL 10.12 is no longer supported by Amazon RDS.
PostgreSQL 10.13 is no longer supported by Amazon RDS.
PostgreSQL 10.14 is no longer supported by Amazon RDS.
PostgreSQL 10.15 is no longer supported by Amazon RDS.
PostgreSQL 10.16 is no longer supported by Amazon RDS.
PostgreSQL 10.17 is no longer supported by Amazon RDS.
PostgreSQL 10.18 is no longer supported by Amazon RDS.
PostgreSQL 10.19 is no longer supported by Amazon RDS.
PostgreSQL 10.20 is no longer supported by Amazon RDS.
PostgreSQL 10.21 is no longer supported by Amazon RDS.
PostgreSQL 10.22 is no longer supported by Amazon RDS.
PostgreSQL 10.23 is no longer supported by Amazon RDS.
PostgreSQL 10.3 is no longer supported by Amazon RDS.
PostgreSQL 10.4 is no longer supported by Amazon RDS.
PostgreSQL 10.5 is no longer supported by Amazon RDS.
PostgreSQL 10.6 is no longer supported by Amazon RDS.
PostgreSQL 10.7 is no longer supported by Amazon RDS.
PostgreSQL 10.9 is no longer supported by Amazon RDS.
Version "11" (only a major version, without a specific minor version).
PostgreSQL 11.1 is no longer supported by Amazon RDS.
PostgreSQL 11.10 is no longer supported by Amazon RDS.
PostgreSQL 11.11 is no longer supported by Amazon RDS.
PostgreSQL 11.12 is no longer supported by Amazon RDS.
PostgreSQL 11.13 is no longer supported by Amazon RDS.
PostgreSQL 11.14 is no longer supported by Amazon RDS.
PostgreSQL 11.15 is no longer supported by Amazon RDS.
PostgreSQL 11.16 is no longer supported by Amazon RDS.
PostgreSQL 11.17 is no longer supported by Amazon RDS.
PostgreSQL 11.18 is no longer supported by Amazon RDS.
PostgreSQL 11.19 is no longer supported by Amazon RDS.
PostgreSQL 11.2 is no longer supported by Amazon RDS.
PostgreSQL 11.20 is no longer supported by Amazon RDS.
PostgreSQL 11.21 is no longer supported by Amazon RDS.
PostgreSQL 11.22 is no longer supported by Amazon RDS.
VER_11_22_RDS_20240418PostgresEngineVersionVER_11_22_RDS_20240418PostgresEngineVersionVER_11_22_RDS_20240418PostgresEngineVersionVER_11_22_RDS_20240418PostgresEngineVersionVER_11_22_RDS_20240418PostgresEngineVersion static #
Version "11.22-rds.20240418".
VER_11_22_RDS_20240509PostgresEngineVersionVER_11_22_RDS_20240509PostgresEngineVersionVER_11_22_RDS_20240509PostgresEngineVersionVER_11_22_RDS_20240509PostgresEngineVersionVER_11_22_RDS_20240509PostgresEngineVersion static #
Version "11.22-rds.20240509".
VER_11_22_RDS_20240808PostgresEngineVersionVER_11_22_RDS_20240808PostgresEngineVersionVER_11_22_RDS_20240808PostgresEngineVersionVER_11_22_RDS_20240808PostgresEngineVersionVER_11_22_RDS_20240808PostgresEngineVersion static deprecated #
PostgreSQL 11.22-rds.20240808 is no longer supported by Amazon RDS.
VER_11_22_RDS_20241121PostgresEngineVersionVER_11_22_RDS_20241121PostgresEngineVersionVER_11_22_RDS_20241121PostgresEngineVersionVER_11_22_RDS_20241121PostgresEngineVersionVER_11_22_RDS_20241121PostgresEngineVersion static deprecated #
PostgreSQL 11.22-RDS.20241121 is no longer supported by Amazon RDS.
VER_11_22_RDS_20250220PostgresEngineVersionVER_11_22_RDS_20250220PostgresEngineVersionVER_11_22_RDS_20250220PostgresEngineVersionVER_11_22_RDS_20250220PostgresEngineVersionVER_11_22_RDS_20250220PostgresEngineVersion static deprecated #
PostgreSQL 11.22-rds.20250220 is no longer supported by Amazon RDS.
VER_11_22_RDS_20250508PostgresEngineVersionVER_11_22_RDS_20250508PostgresEngineVersionVER_11_22_RDS_20250508PostgresEngineVersionVER_11_22_RDS_20250508PostgresEngineVersionVER_11_22_RDS_20250508PostgresEngineVersion static deprecated #
PostgreSQL 11.22-rds.20250508 is no longer supported by Amazon RDS.
VER_11_22_RDS_20250814PostgresEngineVersionVER_11_22_RDS_20250814PostgresEngineVersionVER_11_22_RDS_20250814PostgresEngineVersionVER_11_22_RDS_20250814PostgresEngineVersionVER_11_22_RDS_20250814PostgresEngineVersion static deprecated #
PostgreSQL 11.22-rds.20250814 is no longer supported by Amazon RDS.
VER_11_22_RDS_20251114PostgresEngineVersionVER_11_22_RDS_20251114PostgresEngineVersionVER_11_22_RDS_20251114PostgresEngineVersionVER_11_22_RDS_20251114PostgresEngineVersionVER_11_22_RDS_20251114PostgresEngineVersion static #
Version "11.22-rds.20251114".
PostgreSQL 11.4 is no longer supported by Amazon RDS.
PostgreSQL 11.5 is no longer supported by Amazon RDS.
PostgreSQL 11.6 is no longer supported by Amazon RDS.
PostgreSQL 11.7 is no longer supported by Amazon RDS.
PostgreSQL 11.8 is no longer supported by Amazon RDS.
PostgreSQL 11.9 is no longer supported by Amazon RDS.
Version "12" (only a major version, without a specific minor version).
PostgreSQL 12.10 is no longer supported by Amazon RDS.
PostgreSQL 12.11 is no longer supported by Amazon RDS.
PostgreSQL 12.12 is no longer supported by Amazon RDS.
PostgreSQL 12.13 is no longer supported by Amazon RDS.
PostgreSQL 12.14 is no longer supported by Amazon RDS.
PostgreSQL 12.15 is no longer supported by Amazon RDS.
PostgreSQL 12.16 is no longer supported by Amazon RDS.
PostgreSQL 12.17 is no longer supported by Amazon RDS.
PostgreSQL 12.18 is no longer supported by Amazon RDS.
PostgreSQL 12.19 is no longer supported by Amazon RDS.
PostgreSQL 12.2 is no longer supported by Amazon RDS.
PostgreSQL 12.20 is no longer supported by Amazon RDS.
PostgreSQL 12.21 is no longer supported by Amazon RDS.
VER_12_22_RDS_20250220PostgresEngineVersionVER_12_22_RDS_20250220PostgresEngineVersionVER_12_22_RDS_20250220PostgresEngineVersionVER_12_22_RDS_20250220PostgresEngineVersionVER_12_22_RDS_20250220PostgresEngineVersion static deprecated #
PostgreSQL 12.22-rds.20250220 is no longer supported by Amazon RDS.
VER_12_22_RDS_20250508PostgresEngineVersionVER_12_22_RDS_20250508PostgresEngineVersionVER_12_22_RDS_20250508PostgresEngineVersionVER_12_22_RDS_20250508PostgresEngineVersionVER_12_22_RDS_20250508PostgresEngineVersion static deprecated #
PostgreSQL 12.22-rds.20250508 is no longer supported by Amazon RDS.
VER_12_22_RDS_20250814PostgresEngineVersionVER_12_22_RDS_20250814PostgresEngineVersionVER_12_22_RDS_20250814PostgresEngineVersionVER_12_22_RDS_20250814PostgresEngineVersionVER_12_22_RDS_20250814PostgresEngineVersion static deprecated #
PostgreSQL 12.22-rds.20250814 is no longer supported by Amazon RDS.
VER_12_22_RDS_20251114PostgresEngineVersionVER_12_22_RDS_20251114PostgresEngineVersionVER_12_22_RDS_20251114PostgresEngineVersionVER_12_22_RDS_20251114PostgresEngineVersionVER_12_22_RDS_20251114PostgresEngineVersion static #
Version "12.22-rds.20251114".
PostgreSQL 12.3 is no longer supported by Amazon RDS.
PostgreSQL 12.4 is no longer supported by Amazon RDS.
PostgreSQL 12.5 is no longer supported by Amazon RDS.
PostgreSQL 12.6 is no longer supported by Amazon RDS.
PostgreSQL 12.7 is no longer supported by Amazon RDS.
PostgreSQL 12.8 is no longer supported by Amazon RDS.
PostgreSQL 12.9 is no longer supported by Amazon RDS.
Version "13" (only a major version, without a specific minor version).
PostgreSQL 13.1 is no longer supported by Amazon RDS.
PostgreSQL 13.10 is no longer supported by Amazon RDS.
PostgreSQL 13.11 is no longer supported by Amazon RDS.
PostgreSQL 13.12 is no longer supported by Amazon RDS.
PostgreSQL 13.13 is no longer supported by Amazon RDS.
PostgreSQL 13.14 is no longer supported by Amazon RDS.
PostgreSQL 13.17 is no longer supported by Amazon RDS
PostgreSQL 13.19 is no longer supported by Amazon RDS
PostgreSQL 13.2 is no longer supported by Amazon RDS.
PostgreSQL 13.3 is no longer supported by Amazon RDS.
PostgreSQL 13.4 is no longer supported by Amazon RDS.
PostgreSQL 13.5 is no longer supported by Amazon RDS.
PostgreSQL 13.6 is no longer supported by Amazon RDS.
PostgreSQL 13.7 is no longer supported by Amazon RDS.
PostgreSQL 13.8 is no longer supported by Amazon RDS.
PostgreSQL 13.9 is no longer supported by Amazon RDS.
Version "14" (only a major version, without a specific minor version).
PostgreSQL 14.1 is no longer supported by Amazon RDS.
PostgreSQL 14.10 is no longer supported by Amazon RDS.
PostgreSQL 14.11 is no longer supported by Amazon RDS.
PostgreSQL 14.14 is no longer supported by Amazon RDS
PostgreSQL 14.16 is no longer supported by Amazon RDS
PostgreSQL 14.2 is no longer supported by Amazon RDS.
PostgreSQL 14.3 is no longer supported by Amazon RDS.
PostgreSQL 14.4 is no longer supported by Amazon RDS.
PostgreSQL 14.5 is no longer supported by Amazon RDS.
PostgreSQL 14.6 is no longer supported by Amazon RDS.
PostgreSQL 14.7 is no longer supported by Amazon RDS.
PostgreSQL 14.8 is no longer supported by Amazon RDS.
PostgreSQL 14.9 is no longer supported by Amazon RDS.
Version "15" (only a major version, without a specific minor version).
PostgreSQL 15.11 is no longer supported by Amazon RDS
PostgreSQL 15.2 is no longer supported by Amazon RDS.
PostgreSQL 15.3 is no longer supported by Amazon RDS.
PostgreSQL 15.4 is no longer supported by Amazon RDS.
PostgreSQL 15.5 is no longer supported by Amazon RDS
PostgreSQL 15.6 is no longer supported by Amazon RDS
PostgreSQL 15.9 is no longer supported by Amazon RDS
Version "16" (only a major version, without a specific minor version).
PostgreSQL 16.1 is no longer supported by Amazon RDS
PostgreSQL 16.2 is no longer supported by Amazon RDS
PostgreSQL 16.5 is no longer supported by Amazon RDS
PostgreSQL 16.7 is no longer supported by Amazon RDS
Version "17" (only a major version, without a specific minor version).
PostgreSQL 17.1 is no longer supported by Amazon RDS
PostgreSQL 17.3 is no longer supported by Amazon RDS
Version "18" (only a major version, without a specific minor version).
PostgreSQL 9.6 is no longer supported by Amazon RDS.

Methods ​

of(postgresFullVersion: string, postgresMajorVersion: string, postgresFeatures?: PostgresEngineFeatures): PostgresEngineVersion // chainable@staticmethod def of(postgres_full_version: str, postgres_major_version: str, postgres_features: typing.Optional[PostgresEngineFeatures] = None) -> PostgresEngineVersionpublic static PostgresEngineVersion of(String postgresFullVersion, String postgresMajorVersion, PostgresEngineFeatures postgresFeatures)public static PostgresEngineVersion Of(string postgresFullVersion, string postgresMajorVersion, PostgresEngineFeatures? postgresFeatures = null)func Of(PostgresFullVersion *string, PostgresMajorVersion *string, PostgresFeatures PostgresEngineFeatures) PostgresEngineVersion static #
Create a new PostgresEngineVersion with an arbitrary version.
2 parameters

Parameters

  • postgresFullVersionpostgres_full_versionpostgresFullVersionpostgresFullVersionPostgresFullVersion — the full version string, for example "13.11".
  • postgresMajorVersionpostgres_major_versionpostgresMajorVersionpostgresMajorVersionPostgresMajorVersion — the major version of the engine, for example "13".