Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithPassword

Method
📦 Aspire.Hosting.PostgreSQL v17.0.0
func (PostgresServerResource) 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().

Applies to

This method applies to the following types: