property
primaryEndpoint EndpointReference getGets the primary endpoint for the MongoDB server.
API references are intentionally omitted from this search. To find API references, please search these dedicated API pages instead:
interface MongoDBServerResource extends IComputeResource, IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithArgs, IResourceWithConnectionString, IResourceWithEndpoints, IResourceWithEnvironment, IResourceWithProbes, IResourceWithWaitSupport, IValueProvider, IValueWithReferences { readonly connectionStringExpression: ReferenceExpression; readonly databases: Dict<string,string>; readonly host: EndpointReferenceExpression; passwordParameter: ParameterResource; readonly port: EndpointReferenceExpression; readonly primaryEndpoint: EndpointReference; replicaSetName: string; readonly tlsEnabled: boolean; readonly uriExpression: ReferenceExpression; userNameParameter: ParameterResource; readonly userNameReference: ReferenceExpression; addDatabase( name: string, databaseName?: string): MongoDBDatabaseResource; withBindIpAll(): MongoDBServerResource; withDataBindMount( source: string, isReadOnly?: boolean): MongoDBServerResource; withDataVolume( name?: string, isReadOnly?: boolean): MongoDBServerResource; withInitFiles(source: string): MongoDBServerResource; withKeyFile( keyValue: IExpressionValue, keyFilePath?: string): MongoDBServerResource; withMongoExpress(configureContainer?: (obj: MongoExpressContainerResource) => Promise<void>, containerName?: string): MongoDBServerResource; withRepl(): MongoDBServerResource; withReplicaSet(name?: string): MongoDBServerResource; withTlsAllowInvalidCertificates(): MongoDBServerResource; withTlsMode(mode?: MongoDBTlsMode): MongoDBServerResource;}connectionStringExpression ReferenceExpression getdatabasesDict<string,string> gethostEndpointReferenceExpression getpasswordParameter ParameterResource get · setportEndpointReferenceExpression getprimaryEndpoint EndpointReference getreplicaSetName stringget · settlsEnabled booleangeturiExpression ReferenceExpression getuserNameParameter ParameterResource get · setuserNameReference ReferenceExpression getaddDatabase( name: string, databaseName?: string): MongoDBDatabaseResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.databaseName stringoptionalThe name of the database. If not provided, this defaults to the same value as `name`.Returns
MongoDBDatabaseResource withBindIpAll(): MongoDBServerResourceReturns
MongoDBServerResource withDataBindMount( source: string, isReadOnly?: boolean): MongoDBServerResourceParameters
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
MongoDBServerResource withDataVolume( name?: string, isReadOnly?: boolean): MongoDBServerResourceParameters
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
MongoDBServerResource withInitFiles(source: string): MongoDBServerResourceParameters
sourcestringThe source file or directory on the host to copy into the container.Returns
MongoDBServerResource withKeyFile( keyValue: IExpressionValue, keyFilePath?: string): MongoDBServerResourceParameters
keyValue IExpressionValue The content of the keyfile. This is a shared secret: every member of the replica set has to be given the same value, and anything holding it can authenticate as a member of the cluster.keyFilePath stringoptional= /etc/rs.keyThe absolute path the keyfile is mounted at inside the container, which has to include a file name. Defaults to `/etc/rs.key`.Returns
MongoDBServerResource withMongoExpress(configureContainer?: (obj: MongoExpressContainerResource) => Promise<void>, containerName?: string): MongoDBServerResourceParameters
configureContainer (obj: MongoExpressContainerResource) => Promise<void> optionalConfiguration callback for Mongo Express container resource.containerName stringoptionalThe name of the container (Optional).Returns
MongoDBServerResource withRepl(): MongoDBServerResourceReturns
MongoDBServerResource withReplicaSet(name?: string): MongoDBServerResourceParameters
namestringoptionalThe replica set name. Defaults to the resource name, or the name previously configured by this method.Returns
MongoDBServerResource withTlsAllowInvalidCertificates(): MongoDBServerResourceReturns
MongoDBServerResource withTlsMode(mode?: MongoDBTlsMode): MongoDBServerResourceParameters
modeMongoDBTlsMode optional= RequireTlsThe TLS mode to run the MongoDB server in.Returns
MongoDBServerResource