MongoDBReplicaSetResource
Handle
Represents a MongoDB replica set resource in the application model. A replica set is a group of MongoDB servers that maintain the same data set, providing redundancy and high availability.
type MongoDBReplicaSetResource interface { ExpressionValue Resource ResourceWithConnectionString ResourceWithWaitSupport}8 members
Properties
property
ConnectionStringExpression *ReferenceExpression getGets the combined connection string for the MongoDB replica set, which includes the endpoints of all members, interpretable by the MongoDB driver.
ConnectionStringExpression() *ReferenceExpressionproperty
Members[]MongoDBServerResource getGets the MongoDB server resources that are members of this replica set, in the order they were added.
Members() ([]MongoDBServerResource, error)property
ResourceTypeDisplayName stringgetGets the ResourceTypeDisplayName property
ResourceTypeDisplayName() (string, error)Methods
Adds a MongoDB server resource as a member of the replica set.
WithMember(member MongoDBServerResource) MongoDBReplicaSetResourceParameters
memberMongoDBServerResource The MongoDB server resource that represents the member to add to this replica set.Returns
MongoDBReplicaSetResource A reference to the I.
Returns a handle; failures surface later via Err().