import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides a Datadog Cost Custom Forecast resource. This resource manages the custom forecast override entries for a `datadog.CostBudget`. **Note:** each entry's `(month, tag_filters)` combination must correspond to an existing entry on the referenced budget, and the budget must exist before this resource is created. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as datadog from "@pulumi/datadog"; * * // A budget with two monthly entries for the same tag combination, plus a * // custom forecast override for the first month. The entry's (month, tag_filters) * // must match one of the budget's own entries. * const example = new datadog.CostBudget("example", { * name: "Engineering Q1 Budget", * metricsQuery: "sum:aws.cost.amortized{service:ec2} by {service}", * startMonth: 202601, * endMonth: 202602, * entries: [ * { * amount: 1000, * month: 202601, * tagFilters: [{ * tagKey: "service", * tagValue: "ec2", * }], * }, * { * amount: 1200, * month: 202602, * tagFilters: [{ * tagKey: "service", * tagValue: "ec2", * }], * }, * ], * }); * const exampleCostCustomForecast = new datadog.CostCustomForecast("example", { * budgetUid: example.budgetId, * entries: [{ * amount: 900, * month: 202601, * tagFilters: [{ * tagKey: "service", * tagValue: "ec2", * }], * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Cost custom forecasts are imported using the parent budget's UUID, e.g. * * ```sh * $ pulumi import datadog:index/costCustomForecast:CostCustomForecast example a1b2c3d4-e5f6-7890-abcd-ef1234567890 * ``` */ export declare class CostCustomForecast extends pulumi.CustomResource { /** * Get an existing CostCustomForecast 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?: CostCustomForecastState, opts?: pulumi.CustomResourceOptions): CostCustomForecast; /** * Check whether an existing CostCustomForecast 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?: CostCustomForecastState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of CostCustomForecast. 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 CostCustomForecast; /** * The UUID of the budget that this custom forecast belongs to. Changing this value forces a new resource to be created. */ readonly budgetUid: pulumi.Output; /** * Timestamp the custom forecast was created, in Unix milliseconds. */ readonly createdAt: pulumi.Output; /** * The ID of the user that created the custom forecast. */ readonly createdBy: pulumi.Output; /** * Monthly custom forecast entries. Each entry overrides the forecast for one `(month, tag_filters)` combination that must already exist as a budget entry. To remove all custom forecast entries, destroy this resource rather than setting an empty `entries` set. */ readonly entries: pulumi.Output; /** * Timestamp the custom forecast was last updated, in Unix milliseconds. */ readonly updatedAt: pulumi.Output; /** * The ID of the user that last updated the custom forecast. */ readonly updatedBy: pulumi.Output; /** * Create a CostCustomForecast 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: CostCustomForecastArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CostCustomForecast resources. */ export interface CostCustomForecastState { /** * The UUID of the budget that this custom forecast belongs to. Changing this value forces a new resource to be created. */ budgetUid?: pulumi.Input; /** * Timestamp the custom forecast was created, in Unix milliseconds. */ createdAt?: pulumi.Input; /** * The ID of the user that created the custom forecast. */ createdBy?: pulumi.Input; /** * Monthly custom forecast entries. Each entry overrides the forecast for one `(month, tag_filters)` combination that must already exist as a budget entry. To remove all custom forecast entries, destroy this resource rather than setting an empty `entries` set. */ entries?: pulumi.Input[] | undefined>; /** * Timestamp the custom forecast was last updated, in Unix milliseconds. */ updatedAt?: pulumi.Input; /** * The ID of the user that last updated the custom forecast. */ updatedBy?: pulumi.Input; } /** * The set of arguments for constructing a CostCustomForecast resource. */ export interface CostCustomForecastArgs { /** * The UUID of the budget that this custom forecast belongs to. Changing this value forces a new resource to be created. */ budgetUid: pulumi.Input; /** * Monthly custom forecast entries. Each entry overrides the forecast for one `(month, tag_filters)` combination that must already exist as a budget entry. To remove all custom forecast entries, destroy this resource rather than setting an empty `entries` set. */ entries?: pulumi.Input[] | undefined>; } //# sourceMappingURL=costCustomForecast.d.ts.map