MongoDBReplicaSetResource
Handle
interface MongoDBReplicaSetResource extends IExpressionValue, IManifestExpressionProvider, IResource, IResourceWithConnectionString, IResourceWithWaitSupport, IValueProvider, IValueWithReferences { readonly connectionStringExpression: ReferenceExpression; readonly members: MongoDBServerResource[]; readonly resourceTypeDisplayName: string; readonly sharedKeyFileParameter: ParameterResource; readonly sharedPasswordParameter: ParameterResource; readonly sharedUserNameParameter: ParameterResource; readonly sharedUserNameReference: ReferenceExpression; withMember(member: MongoDBServerResource): MongoDBReplicaSetResource;}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.
property
membersMongoDBServerResource[] getGets the MongoDB server resources that are members of this replica set, in the order they were added.
property
resourceTypeDisplayName stringgetGets the ResourceTypeDisplayName property
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