Viewing docs for MongoDB Atlas v4.15.0
published on Friday, Aug 28, 2026 by Pulumi
published on Friday, Aug 28, 2026 by Pulumi
Viewing docs for MongoDB Atlas v4.15.0
published on Friday, Aug 28, 2026 by Pulumi
published on Friday, Aug 28, 2026 by Pulumi
mongodbatlas.AiModelRateLimit describes an AI Model Rate Limit for a specific model group within a project.
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const thisAiModelRateLimit = new mongodbatlas.AiModelRateLimit("this", {
projectId: projectId,
cloud: "ANY",
geography: "ANY",
modelGroupName: "embed_large",
requestsPerMinuteLimit: 100,
tokensPerMinuteLimit: 10000,
});
const _this = mongodbatlas.getAiModelRateLimitOutput({
projectId: projectId,
cloud: "ANY",
geography: "ANY",
modelGroupName: thisAiModelRateLimit.modelGroupName,
});
const thisGetAiModelRateLimits = mongodbatlas.getAiModelRateLimits({
projectId: projectId,
});
export const aiModelRateLimitRequestsPerMinute = thisAiModelRateLimit.requestsPerMinuteLimit;
export const aiModelRateLimitTokensPerMinute = thisAiModelRateLimit.tokensPerMinuteLimit;
export const aiModelRateLimitModelNames = _this.modelNames;
export const aiModelRateLimitEndpoint = _this.endpoint;
export const aiModelRateLimitsResults = thisGetAiModelRateLimits.then(thisGetAiModelRateLimits => thisGetAiModelRateLimits.results);
import pulumi
import pulumi_mongodbatlas as mongodbatlas
this_ai_model_rate_limit = mongodbatlas.AiModelRateLimit("this",
project_id=project_id,
cloud="ANY",
geography="ANY",
model_group_name="embed_large",
requests_per_minute_limit=100,
tokens_per_minute_limit=10000)
this = mongodbatlas.get_ai_model_rate_limit_output(project_id=project_id,
cloud="ANY",
geography="ANY",
model_group_name=this_ai_model_rate_limit.model_group_name)
this_get_ai_model_rate_limits = mongodbatlas.get_ai_model_rate_limits(project_id=project_id)
pulumi.export("aiModelRateLimitRequestsPerMinute", this_ai_model_rate_limit.requests_per_minute_limit)
pulumi.export("aiModelRateLimitTokensPerMinute", this_ai_model_rate_limit.tokens_per_minute_limit)
pulumi.export("aiModelRateLimitModelNames", this.model_names)
pulumi.export("aiModelRateLimitEndpoint", this.endpoint)
pulumi.export("aiModelRateLimitsResults", this_get_ai_model_rate_limits.results)
package main
import (
"github.com/pulumi/pulumi-mongodbatlas/sdk/v4/go/mongodbatlas"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
thisAiModelRateLimit, err := mongodbatlas.NewAiModelRateLimit(ctx, "this", &mongodbatlas.AiModelRateLimitArgs{
ProjectId: pulumi.Any(projectId),
Cloud: pulumi.String("ANY"),
Geography: pulumi.String("ANY"),
ModelGroupName: pulumi.String("embed_large"),
RequestsPerMinuteLimit: pulumi.Int(100),
TokensPerMinuteLimit: pulumi.Int(10000),
})
if err != nil {
return err
}
this := mongodbatlas.GetAiModelRateLimitOutput(ctx, mongodbatlas.GetAiModelRateLimitOutputArgs{
ProjectId: pulumi.Any(projectId),
Cloud: pulumi.String("ANY"),
Geography: pulumi.String("ANY"),
ModelGroupName: thisAiModelRateLimit.ModelGroupName,
}, nil)
thisGetAiModelRateLimits, err := mongodbatlas.GetAiModelRateLimits(ctx, &mongodbatlas.LookupAiModelRateLimitsArgs{
ProjectId: projectId,
}, nil)
if err != nil {
return err
}
ctx.Export("aiModelRateLimitRequestsPerMinute", thisAiModelRateLimit.RequestsPerMinuteLimit)
ctx.Export("aiModelRateLimitTokensPerMinute", thisAiModelRateLimit.TokensPerMinuteLimit)
ctx.Export("aiModelRateLimitModelNames", this.ModelNames())
ctx.Export("aiModelRateLimitEndpoint", this.Endpoint())
ctx.Export("aiModelRateLimitsResults", thisGetAiModelRateLimits.Results)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() =>
{
var thisAiModelRateLimit = new Mongodbatlas.AiModelRateLimit("this", new()
{
ProjectId = projectId,
Cloud = "ANY",
Geography = "ANY",
ModelGroupName = "embed_large",
RequestsPerMinuteLimit = 100,
TokensPerMinuteLimit = 10000,
});
var @this = Mongodbatlas.GetAiModelRateLimit.Invoke(new()
{
ProjectId = projectId,
Cloud = "ANY",
Geography = "ANY",
ModelGroupName = thisAiModelRateLimit.ModelGroupName,
});
var thisGetAiModelRateLimits = Mongodbatlas.GetAiModelRateLimits.Invoke(new()
{
ProjectId = projectId,
});
return new Dictionary<string, object?>
{
["aiModelRateLimitRequestsPerMinute"] = thisAiModelRateLimit.RequestsPerMinuteLimit,
["aiModelRateLimitTokensPerMinute"] = thisAiModelRateLimit.TokensPerMinuteLimit,
["aiModelRateLimitModelNames"] = @this.Apply(@this => @this.Apply(getAiModelRateLimitResult => getAiModelRateLimitResult.ModelNames)),
["aiModelRateLimitEndpoint"] = @this.Apply(@this => @this.Apply(getAiModelRateLimitResult => getAiModelRateLimitResult.Endpoint)),
["aiModelRateLimitsResults"] = thisGetAiModelRateLimits.Apply(getAiModelRateLimitsResult => getAiModelRateLimitsResult.Results),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.AiModelRateLimit;
import com.pulumi.mongodbatlas.AiModelRateLimitArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetAiModelRateLimitArgs;
import com.pulumi.mongodbatlas.inputs.GetAiModelRateLimitsArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var thisAiModelRateLimit = new AiModelRateLimit("thisAiModelRateLimit", AiModelRateLimitArgs.builder()
.projectId(projectId)
.cloud("ANY")
.geography("ANY")
.modelGroupName("embed_large")
.requestsPerMinuteLimit(100)
.tokensPerMinuteLimit(10000)
.build());
final var this = MongodbatlasFunctions.getAiModelRateLimit(GetAiModelRateLimitArgs.builder()
.projectId(projectId)
.cloud("ANY")
.geography("ANY")
.modelGroupName(thisAiModelRateLimit.modelGroupName())
.build());
final var thisGetAiModelRateLimits = MongodbatlasFunctions.getAiModelRateLimits(GetAiModelRateLimitsArgs.builder()
.projectId(projectId)
.build());
ctx.export("aiModelRateLimitRequestsPerMinute", thisAiModelRateLimit.requestsPerMinuteLimit());
ctx.export("aiModelRateLimitTokensPerMinute", thisAiModelRateLimit.tokensPerMinuteLimit());
ctx.export("aiModelRateLimitModelNames", this_.applyValue(_this_ -> _this_.modelNames()));
ctx.export("aiModelRateLimitEndpoint", this_.applyValue(_this_ -> _this_.endpoint()));
ctx.export("aiModelRateLimitsResults", thisGetAiModelRateLimits.results());
}
}
resources:
thisAiModelRateLimit:
type: mongodbatlas:AiModelRateLimit
name: this
properties:
projectId: ${projectId}
cloud: ANY
geography: ANY
modelGroupName: embed_large
requestsPerMinuteLimit: 100
tokensPerMinuteLimit: 10000
variables:
this:
fn::invoke:
function: mongodbatlas:getAiModelRateLimit
arguments:
projectId: ${projectId}
cloud: ANY
geography: ANY
modelGroupName: ${thisAiModelRateLimit.modelGroupName}
thisGetAiModelRateLimits:
fn::invoke:
function: mongodbatlas:getAiModelRateLimits
arguments:
projectId: ${projectId}
outputs:
aiModelRateLimitRequestsPerMinute: ${thisAiModelRateLimit.requestsPerMinuteLimit}
aiModelRateLimitTokensPerMinute: ${thisAiModelRateLimit.tokensPerMinuteLimit}
aiModelRateLimitModelNames: ${this.modelNames}
aiModelRateLimitEndpoint: ${this.endpoint}
aiModelRateLimitsResults: ${thisGetAiModelRateLimits.results}
pulumi {
required_providers {
mongodbatlas = {
source = "pulumi/mongodbatlas"
}
}
}
data "mongodbatlas_getaimodelratelimit" "this" {
project_id = projectId
cloud = "ANY"
geography = "ANY"
model_group_name = mongodbatlas_aimodelratelimit.this.model_group_name
}
data "mongodbatlas_getaimodelratelimits" "thisGetAiModelRateLimits" {
project_id = projectId
}
resource "mongodbatlas_aimodelratelimit" "this" {
project_id = projectId
cloud = "ANY"
geography = "ANY"
model_group_name = "embed_large"
requests_per_minute_limit = 100
tokens_per_minute_limit = 10000
}
output "aiModelRateLimitRequestsPerMinute" {
value = mongodbatlas_aimodelratelimit.this.requests_per_minute_limit
}
output "aiModelRateLimitTokensPerMinute" {
value = mongodbatlas_aimodelratelimit.this.tokens_per_minute_limit
}
output "aiModelRateLimitModelNames" {
value = data.mongodbatlas_getaimodelratelimit.this.model_names
}
output "aiModelRateLimitEndpoint" {
value = data.mongodbatlas_getaimodelratelimit.this.endpoint
}
output "aiModelRateLimitsResults" {
value = data.mongodbatlas_getaimodelratelimits.thisGetAiModelRateLimits.results
}
Using getAiModelRateLimit
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAiModelRateLimit(args: GetAiModelRateLimitArgs, opts?: InvokeOptions): Promise<GetAiModelRateLimitResult>
function getAiModelRateLimitOutput(args: GetAiModelRateLimitOutputArgs, opts?: InvokeOutputOptions): Output<GetAiModelRateLimitResult>def get_ai_model_rate_limit(cloud: Optional[str] = None,
geography: Optional[str] = None,
model_group_name: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAiModelRateLimitResult
def get_ai_model_rate_limit_output(cloud: pulumi.Input[Optional[str]] = None,
geography: pulumi.Input[Optional[str]] = None,
model_group_name: pulumi.Input[Optional[str]] = None,
project_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetAiModelRateLimitResult]func LookupAiModelRateLimit(ctx *Context, args *LookupAiModelRateLimitArgs, opts ...InvokeOption) (*LookupAiModelRateLimitResult, error)
func LookupAiModelRateLimitOutput(ctx *Context, args *LookupAiModelRateLimitOutputArgs, opts ...InvokeOption) LookupAiModelRateLimitResultOutput> Note: This function is named LookupAiModelRateLimit in the Go SDK.
public static class GetAiModelRateLimit
{
public static Task<GetAiModelRateLimitResult> InvokeAsync(GetAiModelRateLimitArgs args, InvokeOptions? opts = null)
public static Output<GetAiModelRateLimitResult> Invoke(GetAiModelRateLimitInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetAiModelRateLimitResult> Invoke(GetAiModelRateLimitInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetAiModelRateLimitResult> getAiModelRateLimit(GetAiModelRateLimitArgs args, InvokeOptions options)
public static Output<GetAiModelRateLimitResult> getAiModelRateLimit(GetAiModelRateLimitArgs args, InvokeOptions options)
public static Output<GetAiModelRateLimitResult> getAiModelRateLimit(GetAiModelRateLimitArgs args, InvokeOutputOptions options)
fn::invoke:
function: mongodbatlas:index/getAiModelRateLimit:getAiModelRateLimit
arguments:
# arguments dictionarydata "mongodbatlas_get_ai_model_rate_limit" "name" {
# arguments
}The following arguments are supported:
- Cloud string
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- Geography string
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- Model
Group stringName - The name of the model group to be retrieved.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- Cloud string
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- Geography string
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- Model
Group stringName - The name of the model group to be retrieved.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cloud string
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- geography string
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- model_
group_ stringname - The name of the model group to be retrieved.
- project_
id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cloud String
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- geography String
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- model
Group StringName - The name of the model group to be retrieved.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cloud string
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- geography string
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- model
Group stringName - The name of the model group to be retrieved.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cloud str
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- geography str
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- model_
group_ strname - The name of the model group to be retrieved.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
- cloud String
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- geography String
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- model
Group StringName - The name of the model group to be retrieved.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation.
getAiModelRateLimit Result
The following output properties are available:
- Cloud string
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- Endpoint string
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - Geography string
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- Model
Group stringName - The name of the model group to be retrieved.
- Model
Names List<string> - List of embedding model names included in this model group.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Requests
Per intMinute Limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- Tokens
Per intMinute Limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- Cloud string
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- Endpoint string
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - Geography string
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- Model
Group stringName - The name of the model group to be retrieved.
- Model
Names []string - List of embedding model names included in this model group.
- Project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - Requests
Per intMinute Limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- Tokens
Per intMinute Limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- cloud string
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- endpoint string
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - geography string
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- model_
group_ stringname - The name of the model group to be retrieved.
- model_
names list(string) - List of embedding model names included in this model group.
- project_
id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - requests_
per_ numberminute_ limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- tokens_
per_ numberminute_ limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- cloud String
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- endpoint String
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - geography String
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- model
Group StringName - The name of the model group to be retrieved.
- model
Names List<String> - List of embedding model names included in this model group.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - requests
Per IntegerMinute Limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- tokens
Per IntegerMinute Limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- cloud string
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- endpoint string
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - geography string
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- model
Group stringName - The name of the model group to be retrieved.
- model
Names string[] - List of embedding model names included in this model group.
- project
Id string - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - requests
Per numberMinute Limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- tokens
Per numberMinute Limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- cloud str
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- endpoint str
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - geography str
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- model_
group_ strname - The name of the model group to be retrieved.
- model_
names Sequence[str] - List of embedding model names included in this model group.
- project_
id str - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - requests_
per_ intminute_ limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- tokens_
per_ intminute_ limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- cloud String
- Cloud provider scope. Must be "ANY". Additional values will be supported in future API versions.
- endpoint String
- Server-computed endpoint hostname derived from
cloudandgeography. This field is read-only and must not be supplied in request bodies. - geography String
- Geography scope. Must be "ANY". Additional values will be supported in future API versions.
- model
Group StringName - The name of the model group to be retrieved.
- model
Names List<String> - List of embedding model names included in this model group.
- project
Id String - Unique 24-hexadecimal digit string that identifies your project, also known as
groupIdin the official documentation. - requests
Per NumberMinute Limit - The number of requests per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
- tokens
Per NumberMinute Limit - The number of tokens per minute allowed for this model group. Must be a positive integer. Cannot be more than the organization level limit for this group model.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.
Viewing docs for MongoDB Atlas v4.15.0
published on Friday, Aug 28, 2026 by Pulumi
published on Friday, Aug 28, 2026 by Pulumi