property
primaryEndpoint EndpointReference getGets the primary endpoint for the NATS server.
API references are intentionally omitted from this search. To find API references, please search these dedicated API pages instead:
interface NatsServerResource extends IComputeResource, IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithArgs, IResourceWithConnectionString, IResourceWithEndpoints, IResourceWithEnvironment, IResourceWithProbes, IResourceWithWaitSupport, IValueProvider, IValueWithReferences { readonly connectionStringExpression: ReferenceExpression; readonly host: EndpointReferenceExpression; passwordParameter: ParameterResource; readonly port: EndpointReferenceExpression; readonly primaryEndpoint: EndpointReference; readonly resourceTypeDisplayName: string; readonly uriExpression: ReferenceExpression; userNameParameter: ParameterResource; readonly userNameReference: ReferenceExpression; withDataBindMount( source: string, isReadOnly?: boolean): NatsServerResource; withDataVolume( name?: string, isReadOnly?: boolean): NatsServerResource; withJetStream(): NatsServerResource;}connectionStringExpression ReferenceExpression gethostEndpointReferenceExpression getpasswordParameter ParameterResource get · setportEndpointReferenceExpression getprimaryEndpoint EndpointReference getresourceTypeDisplayName stringgeturiExpression ReferenceExpression getuserNameParameter ParameterResource get · setuserNameReference ReferenceExpression getwithDataBindMount( source: string, isReadOnly?: boolean): NatsServerResourceParameters
sourcestringThe source directory on the host to mount into the container.isReadOnly booleanoptional= FalseA flag that indicates if this is a read-only mount.Returns
NatsServerResource withDataVolume( name?: string, isReadOnly?: boolean): NatsServerResourceParameters
namestringoptionalThe name of the volume. Defaults to an auto-generated name based on the application and resource names.isReadOnly booleanoptional= FalseA flag that indicates if this is a read-only volume.Returns
NatsServerResource withJetStream(): NatsServerResourceReturns
NatsServerResource