IResourceWithConnectionString
Interface
interface IResourceWithConnectionString { getConnectionProperty(key: string): ReferenceExpression; onConnectionStringAvailable(callback: (arg: ConnectionStringAvailableEvent) => Promise<void>): IResourceWithConnectionString; withConnectionProperty( name: string, value: string | ReferenceExpression): IResourceWithConnectionString;}Methods
method
getConnectionProperty Retrieves the value of a specified connection property from the resource's connection properties.
getConnectionProperty(key: string): ReferenceExpressionParameters
keystringThe key of the connection property to retrieve. Cannot be null.Returns
ReferenceExpression Subscribes to the ConnectionStringAvailable event.
onConnectionStringAvailable(callback: (arg: ConnectionStringAvailableEvent) => Promise<void>): IResourceWithConnectionStringParameters
callback(arg: ConnectionStringAvailableEvent) => Promise<void> The callback to invoke when the event fires.Returns
IResourceWithConnectionString Adds a connection property annotation to the resource being built.
withConnectionProperty( name: string, value: string | ReferenceExpression): IResourceWithConnectionStringParameters
namestringThe name of the connection property to add.valuestring | ReferenceExpression The value to assign to the connection property, specified as a string or reference expression.Returns
IResourceWithConnectionString