Watch Aspire live streamsDocsTry Aspire

MongoDBReplicaSetResource

Handle
📦 Aspire.Hosting.MongoDB v13.6.0
interface MongoDBReplicaSetResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly members: MongoDBServerResource[];
readonly sharedKeyFileParameter: ParameterResource;
readonly sharedPasswordParameter: ParameterResource;
readonly sharedUserNameParameter: ParameterResource;
readonly sharedUserNameReference: ReferenceExpression;
withMember(member: MongoDBServerResource): MongoDBReplicaSetResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
Gets the combined connection string for the MongoDB replica set, which includes the endpoints of all members, interpretable by the MongoDB driver.
propertymembersMongoDBServerResource[]get
Gets the MongoDB server resources that are members of this replica set, in the order they were added.
propertysharedKeyFileParameterParameterResourceget
Gets the parameter that contains the content of the key file used for internal authentication between members of the MongoDB replica set.
propertysharedPasswordParameterParameterResourceget
Gets the parameter that contains the password for authenticating to the MongoDB replica set.
propertysharedUserNameParameterParameterResourceget
Gets the parameter that contains the username for authenticating to the MongoDB replica set.
propertysharedUserNameReferenceReferenceExpressionget
Gets a reference to the username for the MongoDB replica set.

Methods

methodwithMemberbuilder
Adds a MongoDB server resource as a member of the replica set.
withMember(member: MongoDBServerResource): MongoDBReplicaSetResource
memberMongoDBServerResource
MongoDBReplicaSetResource