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
ProjectResource Publishes a project as a Docker file with optional container configuration
publishAsDockerFile(configure?: (obj: ContainerResource) => Promise<void>): ProjectResourceParameters
configure(obj: ContainerResource) => Promise<void> optionalOptional action to configure the container resourceReturns
ProjectResource Includes only the specified project endpoint names in environment-variable injection.
withEndpointsInEnvironment(endpointNames: string[]): ProjectResourceParameters
endpointNames string[]The endpoint names to include in environment variables.Returns
ProjectResource Configures how many replicas of the project should be created for the project.
withReplicas(replicas: number): ProjectResourceParameters
replicasnumberThe number of replicas.Returns
ProjectResource Adds 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