Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MongodbProfile

import type { MongodbProfile } from "https://googleapis.deno.dev/v1/datastream:v1.ts";

MongoDB profile.

interface MongodbProfile {
additionalOptions?: {
[key: string]: string;
}
;
hostAddresses?: HostAddress[];
password?: string;
replicaSet?: string;
secretManagerStoredPassword?: string;
srvConnectionFormat?: SrvConnectionFormat;
sslConfig?: MongodbSslConfig;
standardConnectionFormat?: StandardConnectionFormat;
username?: string;
}

§Properties

§
additionalOptions?: {
[key: string]: string;
}
[src]

Optional. Specifies additional options for the MongoDB connection. The options should be sent as key-value pairs, for example: additional_options = {"serverSelectionTimeoutMS": "10000", "directConnection": "true"}. Keys are case-sensitive and should match the official MongoDB connection string options: https://www.mongodb.com/docs/manual/reference/connection-string-options/ The server will not modify the values provided by the user.

§
hostAddresses?: HostAddress[]
[src]

Required. List of host addresses for a MongoDB cluster. For SRV connection format, this list must contain exactly one DNS host without a port. For Standard connection format, this list must contain all the required hosts in the cluster with their respective ports.

§
password?: string
[src]

Optional. Password for the MongoDB connection. Mutually exclusive with the secret_manager_stored_password field.

§
replicaSet?: string
[src]

Optional. Name of the replica set. Only needed for self hosted replica set type MongoDB cluster. For SRV connection format, this field must be empty. For Standard connection format, this field must be specified.

§
secretManagerStoredPassword?: string
[src]

Optional. A reference to a Secret Manager resource name storing the SQLServer connection password. Mutually exclusive with the password field.

§
srvConnectionFormat?: SrvConnectionFormat
[src]

Srv connection format.

§

Optional. SSL configuration for the MongoDB connection.

§
standardConnectionFormat?: StandardConnectionFormat
[src]

Standard connection format.

§
username?: string
[src]

Required. Username for the MongoDB connection.