IDistributedApplicationBuilder.addParameterFromConfiguration

Method
📦 Aspire.Hosting v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addParameterFromConfiguration(
name: string,
configurationKey: string,
secret?: boolean): ParameterResource;
}

Signature

methodaddParameterFromConfigurationbuilder
Adds a parameter resource to the application, with a value coming from configuration.
addParameterFromConfiguration(
name: string,
configurationKey: string,
secret?: boolean): ParameterResource
namestringName of parameter resource
configurationKeystringConfiguration key used to get the value of the parameter
secretbooleanoptional= FalseOptional flag indicating whether the parameter should be regarded as secret.
ParameterResource

Defined on

This method is defined on the following type: