Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PostgresServerResource.WithPassword

Method
📦 Aspire.Hosting.PostgreSQL v17.0.0
type PostgresServerResource interface {
// ... 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

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: