withVolume
Method
interface ProjectResource { // ... omitted for brevity withVolume( target: string, name: string, env: string, isReadOnly?: boolean): ProjectResource;}Signature
method
withVolume builderAdds a volume to a project resource.
withVolume( target: string, name: string, env: string, isReadOnly?: boolean): ProjectResourceParameters
targetstringThe mount path inside the published container.namestringThe volume name.envstringThe environment variable that receives the effective volume path.isReadOnly booleanoptional= FalseWhether the published volume is read-only.Returns
ProjectResource Applies to
This method applies to the following types: