ParameterResource
Represents a parameter resource.
type ParameterResource interface { ExpressionValue Resource}Methods
AsOptional() ParameterResourceReturns
ParameterResource The configured resource builder.
Returns a handle; failures surface later via Err().
AsRequired() ParameterResourceReturns
ParameterResource The configured resource builder.
Returns a handle; failures surface later via Err().
SetValueAsync SetValueAsync(options ...*SetValueAsyncOptions) errorParameters
options...*SetValueAsyncOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*SetValueAsyncOptions argument.
Value*stringThe value to use for this parameter.CancellationToken *CancellationToken The cancellation token to observe while applying the value.Returns
errorA task that completes when the value has been applied and observers have processed the change.
Returns error.
TryGetCurrentValue TryGetCurrentValue() (*string, error)Returns
(*string, error) The current parameter value, or null if the parameter does not currently have a non-empty value.
Returns (*string, error).
WithCustomInput(options *ParameterCustomInputOptions) ParameterResourceParameters
options*ParameterCustomInputOptions Options used to customize the input for the parameter.Returns
ParameterResource Resource builder for the parameter.
Returns a handle; failures surface later via Err().
WithDescription( description string, options ...*WithDescriptionOptions,) ParameterResourceParameters
descriptionstringThe parameter description.options...*WithDescriptionOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*WithDescriptionOptions argument.
EnableMarkdown *boolA 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.Returns
ParameterResource Resource builder for the parameter.
Returns a handle; failures surface later via Err().