IResourceWithEnvironment.withEnvironmentCallback
Method
interface IResourceWithEnvironment { // ... omitted for brevity withEnvironmentCallback(callback: (arg: EnvironmentCallbackContext) => Promise<void>): IResourceWithEnvironment;}Signature
method
withEnvironmentCallback builderAllows for the population of environment variables on a resource.
withEnvironmentCallback(callback: (arg: EnvironmentCallbackContext) => Promise<void>): IResourceWithEnvironmentParameters
callback(arg: EnvironmentCallbackContext) => Promise<void> A callback that allows for deferred execution for computing many environment variables. This runs after resources have been allocated by the orchestrator and allows access to other resources to resolve computed data, e.g. connection strings, ports.Returns
IResourceWithEnvironment Defined on
This method is defined on the following type: