Interface PostgresInstanceEngineProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
PostgresInstanceEngineProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.125.0 (build fdbe357)",
date="2026-01-19T12:04:00.928Z")
@Stability(Stable)
public interface PostgresInstanceEngineProps
extends software.amazon.jsii.JsiiSerializable
Properties for PostgreSQL instance engines.
Used in DatabaseInstanceEngine.postgres.
Example:
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");
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forPostgresInstanceEnginePropsstatic final classAn implementation forPostgresInstanceEngineProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVersion
The exact version of the engine to use. -
builder
-