import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog AI Gateway rate limit resource. A rate limit caps requests or tokens per rolling minute for the requests that match its scope. This resource is in Preview. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * const mlPlatform = datadog.getTeam({ * filterKeyword: "ml-platform", * }); * // Cap the ML platform team's OpenAI traffic. * const mlPlatformOpenai = new datadog.AiGatewayRateLimit("ml_platform_openai", { * name: "ml-platform-openai", * mode: "ENFORCE", * requestsPerMinute: 600, * inputTokensPerMinute: 2000000, * teamId: mlPlatform.then(mlPlatform => mlPlatform.id), * tags: { * provider: "openai", * }, * }); * ``` * * ## Import * * Use the `pulumi import` command. For example: * * ```sh * $ pulumi import datadog:index/aiGatewayRateLimit:AiGatewayRateLimit ml_platform_openai "" * ``` */ export declare class AiGatewayRateLimit extends pulumi.CustomResource { /** * Get an existing AiGatewayRateLimit resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: AiGatewayRateLimitState, opts?: pulumi.CustomResourceOptions): AiGatewayRateLimit; /** * Check whether an existing AiGatewayRateLimit resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: AiGatewayRateLimitState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of AiGatewayRateLimit. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AiGatewayRateLimit; /** * Whether the rate limit is active. Defaults to `true`. */ readonly enabled: pulumi.Output; /** * Maximum input tokens per rolling minute. Value must be at least 1. */ readonly inputTokensPerMinute: pulumi.Output; /** * Whether the rate limit rejects requests over the limit (`ENFORCE`) or only alerts (`ALERT`). Defaults to the server's default when unset. Valid values are `ALERT`, `ENFORCE`. */ readonly mode: pulumi.Output; /** * Name of the rate limit. */ readonly name: pulumi.Output; /** * Maximum output tokens per rolling minute. Value must be at least 1. */ readonly outputTokensPerMinute: pulumi.Output; /** * Maximum requests per rolling minute. At least one of `requestsPerMinute`, `inputTokensPerMinute`, and `outputTokensPerMinute` is required. Value must be at least 1. */ readonly requestsPerMinute: pulumi.Output; /** * Scope tags, such as `provider`, `model`, or `mlApp`. A request counts toward the limit when it has all of these tags. Keys must be lowercase. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * UUID of a Datadog Team. When set, only requests attributed to this team count toward the limit. */ readonly teamId: pulumi.Output; /** * UUID of a Datadog user. When set, only requests attributed to this user count toward the limit. */ readonly userId: pulumi.Output; /** * Create a AiGatewayRateLimit resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AiGatewayRateLimitArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AiGatewayRateLimit resources. */ export interface AiGatewayRateLimitState { /** * Whether the rate limit is active. Defaults to `true`. */ enabled?: pulumi.Input; /** * Maximum input tokens per rolling minute. Value must be at least 1. */ inputTokensPerMinute?: pulumi.Input; /** * Whether the rate limit rejects requests over the limit (`ENFORCE`) or only alerts (`ALERT`). Defaults to the server's default when unset. Valid values are `ALERT`, `ENFORCE`. */ mode?: pulumi.Input; /** * Name of the rate limit. */ name?: pulumi.Input; /** * Maximum output tokens per rolling minute. Value must be at least 1. */ outputTokensPerMinute?: pulumi.Input; /** * Maximum requests per rolling minute. At least one of `requestsPerMinute`, `inputTokensPerMinute`, and `outputTokensPerMinute` is required. Value must be at least 1. */ requestsPerMinute?: pulumi.Input; /** * Scope tags, such as `provider`, `model`, or `mlApp`. A request counts toward the limit when it has all of these tags. Keys must be lowercase. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * UUID of a Datadog Team. When set, only requests attributed to this team count toward the limit. */ teamId?: pulumi.Input; /** * UUID of a Datadog user. When set, only requests attributed to this user count toward the limit. */ userId?: pulumi.Input; } /** * The set of arguments for constructing a AiGatewayRateLimit resource. */ export interface AiGatewayRateLimitArgs { /** * Whether the rate limit is active. Defaults to `true`. */ enabled?: pulumi.Input; /** * Maximum input tokens per rolling minute. Value must be at least 1. */ inputTokensPerMinute?: pulumi.Input; /** * Whether the rate limit rejects requests over the limit (`ENFORCE`) or only alerts (`ALERT`). Defaults to the server's default when unset. Valid values are `ALERT`, `ENFORCE`. */ mode?: pulumi.Input; /** * Name of the rate limit. */ name: pulumi.Input; /** * Maximum output tokens per rolling minute. Value must be at least 1. */ outputTokensPerMinute?: pulumi.Input; /** * Maximum requests per rolling minute. At least one of `requestsPerMinute`, `inputTokensPerMinute`, and `outputTokensPerMinute` is required. Value must be at least 1. */ requestsPerMinute?: pulumi.Input; /** * Scope tags, such as `provider`, `model`, or `mlApp`. A request counts toward the limit when it has all of these tags. Keys must be lowercase. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * UUID of a Datadog Team. When set, only requests attributed to this team count toward the limit. */ teamId?: pulumi.Input; /** * UUID of a Datadog user. When set, only requests attributed to this user count toward the limit. */ userId?: pulumi.Input; } //# sourceMappingURL=aiGatewayRateLimit.d.ts.map