Watch Aspire live streamsDocsTry Aspire

PostgresServerResource.withPassword

Method
📦 Aspire.Hosting.PostgreSQL v17.0.0
interface PostgresServerResource {
// ... omitted for brevity
withPassword(password: ParameterResource): PostgresServerResource;
}

Signature

methodwithPasswordbuilder
Configures the password that the PostgreSQL resource is used.
withPassword(password: ParameterResource): PostgresServerResource
passwordParameterResourceThe parameter used to provide the password for the PostgreSQL resource.
PostgresServerResource

Defined on

This method is defined on the following type: