aws-cdk-lib.aws_rds.PostgresInstanceEngineProps

interface PostgresInstanceEngineProps

LanguageType name
.NETAmazon.CDK.AWS.RDS.PostgresInstanceEngineProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsrds#PostgresInstanceEngineProps
Javasoftware.amazon.awscdk.services.rds.PostgresInstanceEngineProps
Pythonaws_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_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
versionPostgresEngineVersionThe exact version of the engine to use.

version

Type: PostgresEngineVersion

The exact version of the engine to use.