withEnvironment
Method
interface ContainerResource { // ... omitted for brevity withEnvironment( name: string, value: string | ReferenceExpression | EndpointReference | ParameterResource | ExternalServiceResource | IResourceWithConnectionString | IExpressionValue): IResourceWithEnvironment;}Signature
method
withEnvironmentbuilderSets an environment variable
withEnvironment( name: string, value: string | ReferenceExpression | EndpointReference | ParameterResource | ExternalServiceResource | IResourceWithConnectionString | IExpressionValue): IResourceWithEnvironmentParameters
namestringvaluestring | ReferenceExpression | EndpointReference | ParameterResource | ExternalServiceResource | IResourceWithConnectionString | IExpressionValueReturns
IResourceWithEnvironmentApplies to
This method applies to the following types: