YarpResource
Handle TypeScript
interface YarpResource extends IComputeResource, IContainerFilesDestinationResource, IResource, IResourceWithArgs, IResourceWithEndpoints, IResourceWithEnvironment, IResourceWithProbes, IResourceWithWaitSupport, IResourceWithServiceDiscovery { publishWithStaticFiles(resourceWithFiles: IResourceWithContainerFiles): YarpResource; withConfiguration(configurationBuilder: (obj: IYarpConfigurationBuilder) => void): YarpResource; withHostHttpsPort(port: number): YarpResource; withHostPort(port: number): YarpResource; withStaticFiles(): YarpResource;} 5 members
Methods
method
publishWithStaticFiles builder In publish mode, generates a Dockerfile that copies static files from the specified resource into /app/wwwroot.
publishWithStaticFiles(resourceWithFiles: IResourceWithContainerFiles): YarpResourceParameters
resourceWithFiles IResourceWithContainerFiles Returns
YarpResource method
withConfiguration builder Configure the YARP resource.
withConfiguration(configurationBuilder: (obj: IYarpConfigurationBuilder) => void): YarpResourceParameters
configurationBuilder (obj: IYarpConfigurationBuilder) => void Returns
YarpResource method
withHostHttpsPort builder Configures the host HTTPS port that the YARP resource is exposed on instead of using randomly assigned port.
withHostHttpsPort(port: number): YarpResourceParameters
port number Returns
YarpResource method
withHostPort builder Configures the host port that the YARP resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): YarpResourceParameters
port number Returns
YarpResource method
withStaticFiles builder Enables static file serving in the YARP resource. Static files are served from the wwwroot folder.
withStaticFiles(): YarpResourceReturns
YarpResource