IResourceWithEndpoints.withEndpoint
Method
interface IResourceWithEndpoints { // ... omitted for brevity withEndpoint( port?: number, targetPort?: number, scheme?: string, name?: string, env?: string, isProxied?: boolean, isExternal?: boolean, protocol?: ProtocolType): IResourceWithEndpoints;}Signature
method
withEndpointbuilderAdds a network endpoint
withEndpoint( port?: number, targetPort?: number, scheme?: string, name?: string, env?: string, isProxied?: boolean, isExternal?: boolean, protocol?: ProtocolType): IResourceWithEndpointsParameters
portnumberoptionaltargetPortnumberoptionalschemestringoptionalnamestringoptionalenvstringoptionalisProxiedbooleanoptionalisExternalbooleanoptionalprotocolProtocolTypeoptionalReturns
IResourceWithEndpointsDefined on
This method is defined on the following type: