import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog AI Gateway routing rule resource. A routing rule is a named route that sends requests to ordered tiers of destinations: the gateway tries the first tier, then falls back to the next. Requests select a rule by its slug. This resource is in Preview. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Spread coding traffic 70/30 between two models on the production provider, falling back to another routing rule. * const coding = new datadog.AiGatewayRoutingRule("coding", { * slug: "coding", * tiers: [ * { * ordering: "weighted_affinity", * targets: [ * { * provider: "prod-us", * model: "gpt-5.2-codex", * weight: 70, * }, * { * provider: "prod-us", * model: "gpt-4o-mini", * weight: 30, * }, * ], * }, * { * targets: [{ * routingRule: "general", * }], * }, * ], * }); * ``` * * ## Import * * Use the `pulumi import` command. For example: * * The import ID is the routing rule's slug * * ```sh * $ pulumi import datadog:index/aiGatewayRoutingRule:AiGatewayRoutingRule coding "coding" * ``` */ export declare class AiGatewayRoutingRule extends pulumi.CustomResource { /** * Get an existing AiGatewayRoutingRule 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?: AiGatewayRoutingRuleState, opts?: pulumi.CustomResourceOptions): AiGatewayRoutingRule; /** * Check whether an existing AiGatewayRoutingRule 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?: AiGatewayRoutingRuleState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of AiGatewayRoutingRule. 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 AiGatewayRoutingRule; /** * Numeric ID of the routing rule. Restriction policies on the routing rule use it as `ai-gateway-route:`. */ readonly routeId: pulumi.Output; /** * Organization-unique slug of the routing rule, in lowercase kebab case. Changing it replaces the routing rule. */ readonly slug: pulumi.Output; /** * Ordered fallback tiers. The gateway routes to a destination in the first tier and falls back to later tiers. */ readonly tiers: pulumi.Output; /** * Create a AiGatewayRoutingRule 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: AiGatewayRoutingRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AiGatewayRoutingRule resources. */ export interface AiGatewayRoutingRuleState { /** * Numeric ID of the routing rule. Restriction policies on the routing rule use it as `ai-gateway-route:`. */ routeId?: pulumi.Input; /** * Organization-unique slug of the routing rule, in lowercase kebab case. Changing it replaces the routing rule. */ slug?: pulumi.Input; /** * Ordered fallback tiers. The gateway routes to a destination in the first tier and falls back to later tiers. */ tiers?: pulumi.Input[] | undefined>; } /** * The set of arguments for constructing a AiGatewayRoutingRule resource. */ export interface AiGatewayRoutingRuleArgs { /** * Organization-unique slug of the routing rule, in lowercase kebab case. Changing it replaces the routing rule. */ slug: pulumi.Input; /** * Ordered fallback tiers. The gateway routes to a destination in the first tier and falls back to later tiers. */ tiers: pulumi.Input[]>; } //# sourceMappingURL=aiGatewayRoutingRule.d.ts.map