BicepValueFactoryProxy
Handle
interface BicepValueFactoryProxy { asString(value: BicepValueProxy): BicepValueProxy; binary( left: BicepValueProxy, operator: BinaryBicepOperator, right: BicepValueProxy): BicepValueProxy; boolean(value: boolean): BicepValueProxy; concat(values: BicepValueProxy[]): BicepValueProxy; conditional( condition: BicepValueProxy, consequent: BicepValueProxy, alternate: BicepValueProxy): BicepValueProxy; createGuid(values: BicepValueProxy[]): BicepValueProxy; createStringBuilder(): BicepStringBuilderProxy; deployment(): BicepValueProxy; double(value: number): BicepValueProxy; function( name: string, args: BicepValueProxy[]): BicepValueProxy; guid(value: guid): BicepValueProxy; identifier(bicepIdentifier: string): BicepValueProxy; index( value: BicepValueProxy, index: string | number | BicepValueProxy): BicepValueProxy; integer(value: number): BicepValueProxy; location(name: string): BicepValueProxy; member( value: BicepValueProxy, member: string): BicepValueProxy; parameter( parameter: ParameterResource, bicepIdentifier?: string): BicepValueProxy; parseJson(value: BicepValueProxy): BicepValueProxy; referenceExpression( expression: ReferenceExpression, bicepIdentifier?: string, isSecure?: boolean): BicepValueProxy; resourceGroup(): BicepValueProxy; resourceIdentifier(resource: ProvisionableResourceProxy): BicepValueProxy; string(value: string): BicepValueProxy; subscription(): BicepValueProxy; subscriptionResourceId(values: BicepValueProxy[]): BicepValueProxy; take( value: string | BicepValueProxy, count: number | BicepValueProxy): BicepValueProxy; tenant(): BicepValueProxy; timeSpan(value: timespan): BicepValueProxy; toLower(value: BicepValueProxy): BicepValueProxy; toUpper(value: BicepValueProxy): BicepValueProxy; unary( operator: UnaryBicepOperator, value: BicepValueProxy): BicepValueProxy; uniqueString(values: BicepValueProxy[]): BicepValueProxy; uri(value: uri): BicepValueProxy;}32 members
Methods
method
asString Creates an explicitly typed Bicep string expression.
asString(value: BicepValueProxy): BicepValueProxyParameters
valueBicepValueProxy The value to convert.Returns
BicepValueProxy method
binaryCreates a binary Bicep expression.
binary( left: BicepValueProxy, operator: BinaryBicepOperator, right: BicepValueProxy): BicepValueProxyParameters
leftBicepValueProxy The left operand.operatorBinaryBicepOperator The binary operator.rightBicepValueProxy The right operand.Returns
BicepValueProxy method
booleanCreates a Boolean literal.
boolean(value: boolean): BicepValueProxyParameters
valuebooleanThe Boolean value.Returns
BicepValueProxy method
concatCreates a Bicep expression that concatenates string values.
concat(values: BicepValueProxy[]): BicepValueProxyParameters
valuesBicepValueProxy[] The values to concatenate.Returns
BicepValueProxy method
conditionalCreates a conditional Bicep expression.
conditional( condition: BicepValueProxy, consequent: BicepValueProxy, alternate: BicepValueProxy): BicepValueProxyParameters
conditionBicepValueProxy The condition expression.consequentBicepValueProxy The value used when the condition is true.alternateBicepValueProxy The value used when the condition is false.Returns
BicepValueProxy method
createGuid Creates a deterministic GUID from the supplied values.
createGuid(values: BicepValueProxy[]): BicepValueProxyParameters
valuesBicepValueProxy[] The values used to create the GUID.Returns
BicepValueProxy method
createStringBuilder Creates a builder for an interpolated Bicep string.
createStringBuilder(): BicepStringBuilderProxyReturns
BicepStringBuilderProxy method
deploymentCreates an expression for the current deployment.
deployment(): BicepValueProxyReturns
BicepValueProxy method
doubleCreates a double-precision numeric literal.
double(value: number): BicepValueProxyParameters
valuenumberThe numeric value.Returns
BicepValueProxy method
functionCreates a Bicep function-call expression.
function( name: string, args: BicepValueProxy[]): BicepValueProxyParameters
namestringThe Bicep function name.argsBicepValueProxy[] The function arguments.Returns
BicepValueProxy method
guidCreates a GUID literal.
guid(value: guid): BicepValueProxyParameters
valueguidThe GUID value.Returns
BicepValueProxy method
identifierCreates a Bicep identifier expression.
identifier(bicepIdentifier: string): BicepValueProxyParameters
bicepIdentifier stringThe Bicep identifier.Returns
BicepValueProxy method
indexCreates an expression that accesses an indexed value.
index( value: BicepValueProxy, index: string | number | BicepValueProxy): BicepValueProxyParameters
valueBicepValueProxy The value to index.indexstring | number | BicepValueProxy The string or integer index.Returns
BicepValueProxy method
integerCreates an integer literal.
integer(value: number): BicepValueProxyParameters
valuenumberThe integer value.Returns
BicepValueProxy method
locationCreates an Azure location literal.
location(name: string): BicepValueProxyParameters
namestringThe Azure location name.Returns
BicepValueProxy method
memberCreates an expression that accesses a named member.
member( value: BicepValueProxy, member: string): BicepValueProxyParameters
valueBicepValueProxy The value containing the member.memberstringThe member name.Returns
BicepValueProxy method
parameterCreates a Bicep parameter reference for an Aspire parameter.
parameter( parameter: ParameterResource, bicepIdentifier?: string): BicepValueProxyParameters
parameterParameterResource The Aspire parameter resource.bicepIdentifier stringoptionalThe optional Bicep parameter identifier.Returns
BicepValueProxy method
parseJson Creates an expression that parses a JSON string.
parseJson(value: BicepValueProxy): BicepValueProxyParameters
valueBicepValueProxy The JSON string value.Returns
BicepValueProxy method
referenceExpression Creates a Bicep parameter reference for an Aspire reference expression.
referenceExpression( expression: ReferenceExpression, bicepIdentifier?: string, isSecure?: boolean): BicepValueProxyParameters
expressionReferenceExpression The Aspire reference expression.bicepIdentifier stringoptionalThe optional Bicep parameter identifier.isSecure booleanoptionalWhether the parameter contains secure data.Returns
BicepValueProxy method
resourceGroup Creates an expression for the current resource group.
resourceGroup(): BicepValueProxyReturns
BicepValueProxy method
resourceIdentifier Creates a Bicep identifier expression for a provisionable resource.
resourceIdentifier(resource: ProvisionableResourceProxy): BicepValueProxyParameters
resourceProvisionableResourceProxy The provisionable resource.Returns
BicepValueProxy method
stringCreates a string literal.
string(value: string): BicepValueProxyParameters
valuestringThe string value.Returns
BicepValueProxy method
subscriptionCreates an expression for the current subscription.
subscription(): BicepValueProxyReturns
BicepValueProxy method
subscriptionResourceId Creates a subscription-scoped resource identifier.
subscriptionResourceId(values: BicepValueProxy[]): BicepValueProxyParameters
valuesBicepValueProxy[] The resource type and name segments.Returns
BicepValueProxy method
takeCreates a Bicep expression that takes characters from the start of a string.
take( value: string | BicepValueProxy, count: number | BicepValueProxy): BicepValueProxyParameters
valuestring | BicepValueProxy The string value.countnumber | BicepValueProxy The number of characters to take.Returns
BicepValueProxy method
tenantCreates an expression for the current tenant.
tenant(): BicepValueProxyReturns
BicepValueProxy method
timeSpan Creates a time-span literal.
timeSpan(value: timespan): BicepValueProxyParameters
valuetimespanThe time-span value.Returns
BicepValueProxy method
toLower Creates a lowercase string expression.
toLower(value: BicepValueProxy): BicepValueProxyParameters
valueBicepValueProxy The value to convert.Returns
BicepValueProxy method
toUpper Creates an uppercase string expression.
toUpper(value: BicepValueProxy): BicepValueProxyParameters
valueBicepValueProxy The value to convert.Returns
BicepValueProxy method
unaryCreates a unary Bicep expression.
unary( operator: UnaryBicepOperator, value: BicepValueProxy): BicepValueProxyParameters
operatorUnaryBicepOperator The unary operator.valueBicepValueProxy The operand.Returns
BicepValueProxy method
uniqueString Creates a deterministic unique string from the supplied values.
uniqueString(values: BicepValueProxy[]): BicepValueProxyParameters
valuesBicepValueProxy[] The values used to create the unique string.Returns
BicepValueProxy method
uriCreates a URI literal.
uri(value: uri): BicepValueProxyParameters
valueuriThe URI value.Returns
BicepValueProxy