withTlsMode

Method
📦 Aspire.Hosting.MongoDB v17.0.0
interface MongoDBServerResource {
// ... omitted for brevity
withTlsMode(mode?: MongoDBTlsMode): MongoDBServerResource;
}

Signature

methodwithTlsModebuilder
Configures the `--tlsMode` the MongoDB server is started with when TLS is active.
withTlsMode(mode?: MongoDBTlsMode): MongoDBServerResource
modeMongoDBTlsModeoptional= RequireTlsThe TLS mode to run the MongoDB server in.
MongoDBServerResource

Applies to

This method applies to the following types: