ParameterResource

Handle
📦 Aspire.Hosting v17.0.0
interface ParameterResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IValueProvider {
asOptional(): ParameterResource;
asRequired(): ParameterResource;
setValueAsync(
value?: string,
cancellationToken?: cancellationToken): void;
tryGetCurrentValue(): string;
withCustomInput(options: ParameterCustomInputOptions): ParameterResource;
withDescription(
description: string,
enableMarkdown?: boolean): ParameterResource;
}

Methods

methodasOptionalbuilder
Marks the parameter resource as optional.
asOptional(): ParameterResource
ParameterResource
methodasRequiredbuilder
Marks the parameter resource as required.
asRequired(): ParameterResource
ParameterResource
Sets or replaces the value for this parameter.
setValueAsync(
value?: string,
cancellationToken?: cancellationToken): void
valuestringoptionalThe value to use for this parameter.
cancellationTokencancellationTokenoptionalThe cancellation token to observe while applying the value.
Gets the current value for this parameter without waiting for unresolved input.
tryGetCurrentValue(): string
string
methodwithCustomInputbuilder
Sets a custom input for the parameter resource from a polyglot AppHost.
withCustomInput(options: ParameterCustomInputOptions): ParameterResource
optionsParameterCustomInputOptionsOptions used to customize the input for the parameter.
ParameterResource
methodwithDescriptionbuilder
Sets the description of the parameter resource.
withDescription(
description: string,
enableMarkdown?: boolean): ParameterResource
descriptionstringThe parameter description.
enableMarkdownbooleanoptional= FalseA value indicating whether the description should be rendered as Markdown. `true` allows the description to contain Markdown elements such as links, text decoration and lists.
ParameterResource