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