aws-cdk-lib.aws_rds.PostgresEngineVersion

class PostgresEngineVersion

LanguageType name
.NETAmazon.CDK.AWS.RDS.PostgresEngineVersion
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsrds#PostgresEngineVersion
Javasoftware.amazon.awscdk.services.rds.PostgresEngineVersion
Pythonaws_cdk.aws_rds.PostgresEngineVersion
TypeScript (source)aws-cdk-lib » aws_rds » PostgresEngineVersion

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

Example

declare const vpc: ec2.Vpc;
const engine = rds.DatabaseInstanceEngine.postgres({ version: rds.PostgresEngineVersion.VER_15_2 });
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

NameTypeDescription
postgresFullVersionstringThe full version string, for example, "13.11".
postgresMajorVersionstringThe major version of the engine, for example, "13".
static VER_10⚠️PostgresEngineVersionVersion "10" (only a major version, without a specific minor version).
static VER_10_1⚠️PostgresEngineVersionVersion "10.1".
static VER_10_10⚠️PostgresEngineVersionVersion "10.10".
static VER_10_11⚠️PostgresEngineVersionVersion "10.11".
static VER_10_12⚠️PostgresEngineVersionVersion "10.12".
static VER_10_13⚠️PostgresEngineVersionVersion "10.13".
static VER_10_14⚠️PostgresEngineVersionVersion "10.14".
static VER_10_15⚠️PostgresEngineVersionVersion "10.15".
static VER_10_16⚠️PostgresEngineVersionVersion "10.16".
static VER_10_17⚠️PostgresEngineVersionVersion "10.17".
static VER_10_18⚠️PostgresEngineVersionVersion "10.18".
static VER_10_19⚠️PostgresEngineVersionVersion "10.19".
static VER_10_20⚠️PostgresEngineVersionVersion "10.20".
static VER_10_21⚠️PostgresEngineVersionVersion "10.21".
static VER_10_22⚠️PostgresEngineVersionVersion "10.22".
static VER_10_23⚠️PostgresEngineVersionVersion "10.23".
static VER_10_3⚠️PostgresEngineVersionVersion "10.3".
static VER_10_4⚠️PostgresEngineVersionVersion "10.4".
static VER_10_5⚠️PostgresEngineVersionVersion "10.5".
static VER_10_6⚠️PostgresEngineVersionVersion "10.6".
static VER_10_7⚠️PostgresEngineVersionVersion "10.7".
static VER_10_9⚠️PostgresEngineVersionVersion "10.9".
static VER_11PostgresEngineVersionVersion "11" (only a major version, without a specific minor version).
static VER_11_1PostgresEngineVersionVersion "11.1".
static VER_11_10PostgresEngineVersionVersion "11.10".
static VER_11_11PostgresEngineVersionVersion "11.11".
static VER_11_12PostgresEngineVersionVersion "11.12".
static VER_11_13PostgresEngineVersionVersion "11.13".
static VER_11_14PostgresEngineVersionVersion "11.14".
static VER_11_15PostgresEngineVersionVersion "11.15".
static VER_11_16PostgresEngineVersionVersion "11.16".
static VER_11_17PostgresEngineVersionVersion "11.17".
static VER_11_18PostgresEngineVersionVersion "11.18".
static VER_11_19PostgresEngineVersionVersion "11.19".
static VER_11_2PostgresEngineVersionVersion "11.2".
static VER_11_20PostgresEngineVersionVersion "11.20".
static VER_11_4PostgresEngineVersionVersion "11.4".
static VER_11_5PostgresEngineVersionVersion "11.5".
static VER_11_6PostgresEngineVersionVersion "11.6".
static VER_11_7PostgresEngineVersionVersion "11.7".
static VER_11_8PostgresEngineVersionVersion "11.8".
static VER_11_9PostgresEngineVersionVersion "11.9".
static VER_12PostgresEngineVersionVersion "12" (only a major version, without a specific minor version).
static VER_12_10PostgresEngineVersionVersion "12.10".
static VER_12_11PostgresEngineVersionVersion "12.11".
static VER_12_12PostgresEngineVersionVersion "12.12".
static VER_12_13PostgresEngineVersionVersion "12.13".
static VER_12_14PostgresEngineVersionVersion "12.14".
static VER_12_15PostgresEngineVersionVersion "12.15".
static VER_12_2PostgresEngineVersionVersion "12.2".
static VER_12_3PostgresEngineVersionVersion "12.3".
static VER_12_4PostgresEngineVersionVersion "12.4".
static VER_12_5PostgresEngineVersionVersion "12.5".
static VER_12_6PostgresEngineVersionVersion "12.6".
static VER_12_7PostgresEngineVersionVersion "12.7".
static VER_12_8PostgresEngineVersionVersion "12.8".
static VER_12_9PostgresEngineVersionVersion "12.9".
static VER_13PostgresEngineVersionVersion "13" (only a major version, without a specific minor version).
static VER_13_1PostgresEngineVersionVersion "13.1".
static VER_13_10PostgresEngineVersionVersion "13.10".
static VER_13_11PostgresEngineVersionVersion "13.11".
static VER_13_2PostgresEngineVersionVersion "13.2".
static VER_13_3PostgresEngineVersionVersion "13.3".
static VER_13_4PostgresEngineVersionVersion "13.4".
static VER_13_5PostgresEngineVersionVersion "13.5".
static VER_13_6PostgresEngineVersionVersion "13.6".
static VER_13_7PostgresEngineVersionVersion "13.7".
static VER_13_8PostgresEngineVersionVersion "13.8".
static VER_13_9PostgresEngineVersionVersion "13.9".
static VER_14PostgresEngineVersionVersion "14" (only a major version, without a specific minor version).
static VER_14_1PostgresEngineVersionVersion "14.1".
static VER_14_2PostgresEngineVersionVersion "14.2".
static VER_14_3PostgresEngineVersionVersion "14.3".
static VER_14_4PostgresEngineVersionVersion "14.4".
static VER_14_5PostgresEngineVersionVersion "14.5".
static VER_14_6PostgresEngineVersionVersion "14.6".
static VER_14_7PostgresEngineVersionVersion "14.7".
static VER_14_8PostgresEngineVersionVersion "14.8".
static VER_15PostgresEngineVersionVersion "15" (only a major version, without a specific minor version).
static VER_15_2PostgresEngineVersionVersion "15.2".
static VER_15_3PostgresEngineVersionVersion "15.3".
static VER_9_6_24⚠️PostgresEngineVersionVersion "9.6.24".

postgresFullVersion

Type: string

The full version string, for example, "13.11".


postgresMajorVersion

Type: string

The major version of the engine, for example, "13".


static VER_10⚠️

⚠️ Deprecated: PostgreSQL 10 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10" (only a major version, without a specific minor version).


static VER_10_1⚠️

⚠️ Deprecated: PostgreSQL 10 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.1".


static VER_10_10⚠️

⚠️ Deprecated: PostgreSQL 10.10 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.10".


static VER_10_11⚠️

⚠️ Deprecated: PostgreSQL 10.11 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.11".


static VER_10_12⚠️

⚠️ Deprecated: PostgreSQL 10.12 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.12".


static VER_10_13⚠️

⚠️ Deprecated: PostgreSQL 10.13 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.13".


static VER_10_14⚠️

⚠️ Deprecated: PostgreSQL 10.14 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.14".


static VER_10_15⚠️

⚠️ Deprecated: PostgreSQL 10.15 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.15".


static VER_10_16⚠️

⚠️ Deprecated: PostgreSQL 10.16 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.16".


static VER_10_17⚠️

⚠️ Deprecated: PostgreSQL 10.17 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.17".


static VER_10_18⚠️

⚠️ Deprecated: PostgreSQL 10.18 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.18".


static VER_10_19⚠️

⚠️ Deprecated: PostgreSQL 10.19 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.19".


static VER_10_20⚠️

⚠️ Deprecated: PostgreSQL 10.20 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.20".


static VER_10_21⚠️

⚠️ Deprecated: PostgreSQL 10.21 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.21".


static VER_10_22⚠️

⚠️ Deprecated: PostgreSQL 10.22 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.22".


static VER_10_23⚠️

⚠️ Deprecated: PostgreSQL 10.23 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.23".


static VER_10_3⚠️

⚠️ Deprecated: PostgreSQL 10.3 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.3".


static VER_10_4⚠️

⚠️ Deprecated: PostgreSQL 10.4 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.4".


static VER_10_5⚠️

⚠️ Deprecated: PostgreSQL 10.5 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.5".


static VER_10_6⚠️

⚠️ Deprecated: PostgreSQL 10.6 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.6".


static VER_10_7⚠️

⚠️ Deprecated: PostgreSQL 10.7 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.7".


static VER_10_9⚠️

⚠️ Deprecated: PostgreSQL 10.9 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "10.9".


static VER_11

Type: PostgresEngineVersion

Version "11" (only a major version, without a specific minor version).


static VER_11_1

Type: PostgresEngineVersion

Version "11.1".


static VER_11_10

Type: PostgresEngineVersion

Version "11.10".


static VER_11_11

Type: PostgresEngineVersion

Version "11.11".


static VER_11_12

Type: PostgresEngineVersion

Version "11.12".


static VER_11_13

Type: PostgresEngineVersion

Version "11.13".


static VER_11_14

Type: PostgresEngineVersion

Version "11.14".


static VER_11_15

Type: PostgresEngineVersion

Version "11.15".


static VER_11_16

Type: PostgresEngineVersion

Version "11.16".


static VER_11_17

Type: PostgresEngineVersion

Version "11.17".


static VER_11_18

Type: PostgresEngineVersion

Version "11.18".


static VER_11_19

Type: PostgresEngineVersion

Version "11.19".


static VER_11_2

Type: PostgresEngineVersion

Version "11.2".


static VER_11_20

Type: PostgresEngineVersion

Version "11.20".


static VER_11_4

Type: PostgresEngineVersion

Version "11.4".


static VER_11_5

Type: PostgresEngineVersion

Version "11.5".


static VER_11_6

Type: PostgresEngineVersion

Version "11.6".


static VER_11_7

Type: PostgresEngineVersion

Version "11.7".


static VER_11_8

Type: PostgresEngineVersion

Version "11.8".


static VER_11_9

Type: PostgresEngineVersion

Version "11.9".


static VER_12

Type: PostgresEngineVersion

Version "12" (only a major version, without a specific minor version).


static VER_12_10

Type: PostgresEngineVersion

Version "12.10".


static VER_12_11

Type: PostgresEngineVersion

Version "12.11".


static VER_12_12

Type: PostgresEngineVersion

Version "12.12".


static VER_12_13

Type: PostgresEngineVersion

Version "12.13".


static VER_12_14

Type: PostgresEngineVersion

Version "12.14".


static VER_12_15

Type: PostgresEngineVersion

Version "12.15".


static VER_12_2

Type: PostgresEngineVersion

Version "12.2".


static VER_12_3

Type: PostgresEngineVersion

Version "12.3".


static VER_12_4

Type: PostgresEngineVersion

Version "12.4".


static VER_12_5

Type: PostgresEngineVersion

Version "12.5".


static VER_12_6

Type: PostgresEngineVersion

Version "12.6".


static VER_12_7

Type: PostgresEngineVersion

Version "12.7".


static VER_12_8

Type: PostgresEngineVersion

Version "12.8".


static VER_12_9

Type: PostgresEngineVersion

Version "12.9".


static VER_13

Type: PostgresEngineVersion

Version "13" (only a major version, without a specific minor version).


static VER_13_1

Type: PostgresEngineVersion

Version "13.1".


static VER_13_10

Type: PostgresEngineVersion

Version "13.10".


static VER_13_11

Type: PostgresEngineVersion

Version "13.11".


static VER_13_2

Type: PostgresEngineVersion

Version "13.2".


static VER_13_3

Type: PostgresEngineVersion

Version "13.3".


static VER_13_4

Type: PostgresEngineVersion

Version "13.4".


static VER_13_5

Type: PostgresEngineVersion

Version "13.5".


static VER_13_6

Type: PostgresEngineVersion

Version "13.6".


static VER_13_7

Type: PostgresEngineVersion

Version "13.7".


static VER_13_8

Type: PostgresEngineVersion

Version "13.8".


static VER_13_9

Type: PostgresEngineVersion

Version "13.9".


static VER_14

Type: PostgresEngineVersion

Version "14" (only a major version, without a specific minor version).


static VER_14_1

Type: PostgresEngineVersion

Version "14.1".


static VER_14_2

Type: PostgresEngineVersion

Version "14.2".


static VER_14_3

Type: PostgresEngineVersion

Version "14.3".


static VER_14_4

Type: PostgresEngineVersion

Version "14.4".


static VER_14_5

Type: PostgresEngineVersion

Version "14.5".


static VER_14_6

Type: PostgresEngineVersion

Version "14.6".


static VER_14_7

Type: PostgresEngineVersion

Version "14.7".


static VER_14_8

Type: PostgresEngineVersion

Version "14.8".


static VER_15

Type: PostgresEngineVersion

Version "15" (only a major version, without a specific minor version).


static VER_15_2

Type: PostgresEngineVersion

Version "15.2".


static VER_15_3

Type: PostgresEngineVersion

Version "15.3".


static VER_9_6_24⚠️

⚠️ Deprecated: PostgreSQL 9.6 is no longer supported by Amazon RDS.

Type: PostgresEngineVersion

Version "9.6.24".

Methods

NameDescription
static of(postgresFullVersion, postgresMajorVersion, postgresFeatures?)Create a new PostgresEngineVersion with an arbitrary version.

static of(postgresFullVersion, postgresMajorVersion, postgresFeatures?)

public static of(postgresFullVersion: string, postgresMajorVersion: string, postgresFeatures?: PostgresEngineFeatures): PostgresEngineVersion

Parameters

  • postgresFullVersion string — the full version string, for example "13.11".
  • postgresMajorVersion string — the major version of the engine, for example "13".
  • postgresFeatures PostgresEngineFeatures

Returns

  • PostgresEngineVersion

Create a new PostgresEngineVersion with an arbitrary version.