import * as pulumi from "@pulumi/pulumi"; /** * Provides a Datadog AI Gateway data capture override resource. An override sets the data capture mode for the requests that match its scope, instead of the organization default set by `datadog.AiGatewayGovernance`. When several overrides match a request, `metadataOnly` takes precedence over `fullCapture`. This resource is in Preview. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // Record only metadata for the coding assistant's requests, regardless of the organization default. * const codingAssistant = new datadog.AiGatewayDataCaptureOverride("coding_assistant", { * name: "coding-assistant-metadata-only", * mode: "metadata_only", * metadataCaptures: [ * "tool_usage", * "tool_names", * ], * tags: { * ml_app: "coding-assistant", * }, * }); * ``` * * ## Import * * Use the `pulumi import` command. For example: * * ```sh * $ pulumi import datadog:index/aiGatewayDataCaptureOverride:AiGatewayDataCaptureOverride coding_assistant "" * ``` */ export declare class AiGatewayDataCaptureOverride extends pulumi.CustomResource { /** * Get an existing AiGatewayDataCaptureOverride 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?: AiGatewayDataCaptureOverrideState, opts?: pulumi.CustomResourceOptions): AiGatewayDataCaptureOverride; /** * Check whether an existing AiGatewayDataCaptureOverride 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?: AiGatewayDataCaptureOverrideState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of AiGatewayDataCaptureOverride. 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 AiGatewayDataCaptureOverride; /** * Set to `true` to confirm a change that can turn on full capture for more requests, such as creating a `fullCapture` override or deleting a `metadataOnly` one. The API rejects such a change without it. Defaults to `false`. */ readonly confirmFullCapture: pulumi.Output; /** * Items that Metadata-only capture adds to matching spans. Some items require others: `toolOutputSize`, `toolNames`, and `conversationShape` require `toolUsage`, and `inputSizeByRole` requires `toolOutputSize`. When unset, Terraform leaves the current items unchanged. To record no items, use an empty set. */ readonly metadataCaptures: pulumi.Output; /** * Data capture mode for matching requests. `metadataOnly` records request metadata without prompt or completion content; `fullCapture` also records content. Valid values are `metadataOnly`, `fullCapture`. */ readonly mode: pulumi.Output; /** * Display name of the override. Names need not be unique. String length must be at least 1. */ readonly name: pulumi.Output; /** * Revision of the override. It increases with every change. */ readonly revision: pulumi.Output; /** * Request tags the override matches, such as `provider`, `model`, or `mlApp`. A request matches 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, the override matches requests that select this team with the `x-ai-gateway-team` header. At least one of `teamId`, `userId`, and `tags` is required. */ readonly teamId: pulumi.Output; /** * UUID of a Datadog user. When set, the override matches requests from this user. */ readonly userId: pulumi.Output; /** * Create a AiGatewayDataCaptureOverride 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: AiGatewayDataCaptureOverrideArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AiGatewayDataCaptureOverride resources. */ export interface AiGatewayDataCaptureOverrideState { /** * Set to `true` to confirm a change that can turn on full capture for more requests, such as creating a `fullCapture` override or deleting a `metadataOnly` one. The API rejects such a change without it. Defaults to `false`. */ confirmFullCapture?: pulumi.Input; /** * Items that Metadata-only capture adds to matching spans. Some items require others: `toolOutputSize`, `toolNames`, and `conversationShape` require `toolUsage`, and `inputSizeByRole` requires `toolOutputSize`. When unset, Terraform leaves the current items unchanged. To record no items, use an empty set. */ metadataCaptures?: pulumi.Input[] | undefined>; /** * Data capture mode for matching requests. `metadataOnly` records request metadata without prompt or completion content; `fullCapture` also records content. Valid values are `metadataOnly`, `fullCapture`. */ mode?: pulumi.Input; /** * Display name of the override. Names need not be unique. String length must be at least 1. */ name?: pulumi.Input; /** * Revision of the override. It increases with every change. */ revision?: pulumi.Input; /** * Request tags the override matches, such as `provider`, `model`, or `mlApp`. A request matches 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, the override matches requests that select this team with the `x-ai-gateway-team` header. At least one of `teamId`, `userId`, and `tags` is required. */ teamId?: pulumi.Input; /** * UUID of a Datadog user. When set, the override matches requests from this user. */ userId?: pulumi.Input; } /** * The set of arguments for constructing a AiGatewayDataCaptureOverride resource. */ export interface AiGatewayDataCaptureOverrideArgs { /** * Set to `true` to confirm a change that can turn on full capture for more requests, such as creating a `fullCapture` override or deleting a `metadataOnly` one. The API rejects such a change without it. Defaults to `false`. */ confirmFullCapture?: pulumi.Input; /** * Items that Metadata-only capture adds to matching spans. Some items require others: `toolOutputSize`, `toolNames`, and `conversationShape` require `toolUsage`, and `inputSizeByRole` requires `toolOutputSize`. When unset, Terraform leaves the current items unchanged. To record no items, use an empty set. */ metadataCaptures?: pulumi.Input[] | undefined>; /** * Data capture mode for matching requests. `metadataOnly` records request metadata without prompt or completion content; `fullCapture` also records content. Valid values are `metadataOnly`, `fullCapture`. */ mode: pulumi.Input; /** * Display name of the override. Names need not be unique. String length must be at least 1. */ name: pulumi.Input; /** * Request tags the override matches, such as `provider`, `model`, or `mlApp`. A request matches 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, the override matches requests that select this team with the `x-ai-gateway-team` header. At least one of `teamId`, `userId`, and `tags` is required. */ teamId?: pulumi.Input; /** * UUID of a Datadog user. When set, the override matches requests from this user. */ userId?: pulumi.Input; } //# sourceMappingURL=aiGatewayDataCaptureOverride.d.ts.map