ProjectResource
Handle
interface ProjectResource extends IComputeResource, IContainerFilesDestinationResource, IDotnetProgramResource, IResource, IResourceWithArgs, IResourceWithEndpoints, IResourceWithEnvironment, IResourceWithProbes, IResourceWithWaitSupport, IResourceWithServiceDiscovery { disableForwardedHeaders(): ProjectResource; publishAsDockerFile(configure?: (obj: ContainerResource) => Promise<void>): ProjectResource; withEndpointsInEnvironment(endpointNames: string[]): ProjectResource; withReplicas(replicas: number): ProjectResource; withVolume( target: string, name: string, env: string, isReadOnly?: boolean): ProjectResource;}5 members
Methods
Configures the project to disable forwarded headers when being published.
disableForwardedHeaders(): ProjectResourceReturns
ProjectResourcePublishes a project as a Docker file with optional container configuration
publishAsDockerFile(configure?: (obj: ContainerResource) => Promise<void>): ProjectResourceParameters
configure(obj: ContainerResource) => Promise<void>optionalReturns
ProjectResourceIncludes only the specified project endpoint names in environment-variable injection.
withEndpointsInEnvironment(endpointNames: string[]): ProjectResourceParameters
endpointNamesstring[]Returns
ProjectResourceConfigures how many replicas of the project should be created for the project.
withReplicas(replicas: number): ProjectResourceParameters
replicasnumberReturns
ProjectResourceAdds a volume to a project resource.
withVolume( target: string, name: string, env: string, isReadOnly?: boolean): ProjectResourceParameters
targetstringnamestringenvstringisReadOnlybooleanoptional= FalseReturns
ProjectResource