import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog AI Gateway routing policy resource. A policy routes requests that match an inbound pattern to ordered tiers of provider and model targets: the gateway tries the first tier, then falls back to the next. Each inbound pattern has one policy per scope, organization-wide or for one user. This resource is in Preview. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Route coding-agent traffic to Codex on the production provider, falling back to any provider serving Claude Sonnet. * const codingAgent = new datadog.AiGatewayPolicy("coding_agent", { * inbound: "coding-agent", * tiers: [ * { * targets: [{ * provider: "prod-us", * model: "gpt-5.2-codex", * }], * }, * { * targets: [{ * model: "claude-sonnet-5*", * }], * }, * ], * }); * ``` * * ## Import * * Use the `pulumi import` command. For example: * * Organization-wide policy: the inbound pattern * * ```sh * $ pulumi import datadog:index/aiGatewayPolicy:AiGatewayPolicy coding_agent "coding-agent" * ``` * * User-scoped policy: : * * ```sh * $ pulumi import datadog:index/aiGatewayPolicy:AiGatewayPolicy coding_agent "55555555-5555-5555-5555-555555555555:coding-agent" * ``` */ export declare class AiGatewayPolicy extends pulumi.CustomResource { /** * Get an existing AiGatewayPolicy 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?: AiGatewayPolicyState, opts?: pulumi.CustomResourceOptions): AiGatewayPolicy; /** * Check whether an existing AiGatewayPolicy 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?: AiGatewayPolicyState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of AiGatewayPolicy. 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 AiGatewayPolicy; /** * Inbound request pattern the policy applies to, such as `coding-agent` or `gpt-5*`. It must not contain whitespace, and `*` is allowed only as a trailing wildcard. Changing it replaces the policy. */ readonly inbound: pulumi.Output; /** * Routing priority of the policy. Defaults to `0`. */ readonly priority: pulumi.Output; /** * Ordered fallback tiers. The gateway routes to a target in the first tier and falls back to later tiers. */ readonly tiers: pulumi.Output; /** * UUID of a Datadog user. When set, the policy applies only to that user's requests; otherwise it applies to the whole organization. Changing it replaces the policy. */ readonly userId: pulumi.Output; /** * Create a AiGatewayPolicy 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: AiGatewayPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AiGatewayPolicy resources. */ export interface AiGatewayPolicyState { /** * Inbound request pattern the policy applies to, such as `coding-agent` or `gpt-5*`. It must not contain whitespace, and `*` is allowed only as a trailing wildcard. Changing it replaces the policy. */ inbound?: pulumi.Input; /** * Routing priority of the policy. Defaults to `0`. */ priority?: pulumi.Input; /** * Ordered fallback tiers. The gateway routes to a target in the first tier and falls back to later tiers. */ tiers?: pulumi.Input[] | undefined>; /** * UUID of a Datadog user. When set, the policy applies only to that user's requests; otherwise it applies to the whole organization. Changing it replaces the policy. */ userId?: pulumi.Input; } /** * The set of arguments for constructing a AiGatewayPolicy resource. */ export interface AiGatewayPolicyArgs { /** * Inbound request pattern the policy applies to, such as `coding-agent` or `gpt-5*`. It must not contain whitespace, and `*` is allowed only as a trailing wildcard. Changing it replaces the policy. */ inbound: pulumi.Input; /** * Routing priority of the policy. Defaults to `0`. */ priority?: pulumi.Input; /** * Ordered fallback tiers. The gateway routes to a target in the first tier and falls back to later tiers. */ tiers: pulumi.Input[]>; /** * UUID of a Datadog user. When set, the policy applies only to that user's requests; otherwise it applies to the whole organization. Changing it replaces the policy. */ userId?: pulumi.Input; } //# sourceMappingURL=aiGatewayPolicy.d.ts.map