import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Cost Anomaly Monitor resource in Oracle Cloud Infrastructure Budget service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/budgets/latest/CostAnomalyMonitor * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/budget * * Creates a new costAnomaly Monitor. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testCostAnomalyMonitor = new oci.budget.CostAnomalyMonitor("test_cost_anomaly_monitor", { * compartmentId: compartmentId, * name: costAnomalyMonitorName, * targetResourceFilter: costAnomalyMonitorTargetResourceFilter, * costAlertSubscriptionMap: { * costAlertSubscriptionId: testCostAlertSubscription.id, * operator: costAnomalyMonitorCostAlertSubscriptionMapOperator, * thresholdAbsoluteValue: Number(costAnomalyMonitorCostAlertSubscriptionMapThresholdAbsoluteValue), * thresholdRelativePercent: Number(costAnomalyMonitorCostAlertSubscriptionMapThresholdRelativePercent), * }, * definedTags: { * "Operations.CostCenter": "42", * }, * description: costAnomalyMonitorDescription, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * CostAnomalyMonitors can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Budget/costAnomalyMonitor:CostAnomalyMonitor test_cost_anomaly_monitor "id" * ``` */ export declare class CostAnomalyMonitor extends pulumi.CustomResource { /** * Get an existing CostAnomalyMonitor 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?: CostAnomalyMonitorState, opts?: pulumi.CustomResourceOptions): CostAnomalyMonitor; /** * Returns true if the given object is an instance of CostAnomalyMonitor. 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 CostAnomalyMonitor; /** * The OCID of the compartment. */ readonly compartmentId: pulumi.Output; /** * (Updatable) The mapping of cost monitor to alert subscription along with thresholds. */ readonly costAlertSubscriptionMap: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) The description of the cost anomaly monitor. */ readonly description: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * The current state details of the cost monitor. */ readonly lifecycleDetails: pulumi.Output; /** * The name of the cost anomaly monitor. Avoid entering confidential information. */ readonly name: pulumi.Output; /** * The current state of the cost monitor. */ readonly state: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). System tags can be viewed by users, but can only be created by the system. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly targetResourceFilter: pulumi.Output; /** * The time that the cost monitor was created. */ readonly timeCreated: pulumi.Output; /** * The time that the cost monitor was last updated. */ readonly timeUpdated: pulumi.Output; /** * Type of cost monitor */ readonly type: pulumi.Output; /** * Create a CostAnomalyMonitor 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: CostAnomalyMonitorArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CostAnomalyMonitor resources. */ export interface CostAnomalyMonitorState { /** * The OCID of the compartment. */ compartmentId?: pulumi.Input; /** * (Updatable) The mapping of cost monitor to alert subscription along with thresholds. */ costAlertSubscriptionMap?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The description of the cost anomaly monitor. */ description?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The current state details of the cost monitor. */ lifecycleDetails?: pulumi.Input; /** * The name of the cost anomaly monitor. Avoid entering confidential information. */ name?: pulumi.Input; /** * The current state of the cost monitor. */ state?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). System tags can be viewed by users, but can only be created by the system. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ targetResourceFilter?: pulumi.Input; /** * The time that the cost monitor was created. */ timeCreated?: pulumi.Input; /** * The time that the cost monitor was last updated. */ timeUpdated?: pulumi.Input; /** * Type of cost monitor */ type?: pulumi.Input; } /** * The set of arguments for constructing a CostAnomalyMonitor resource. */ export interface CostAnomalyMonitorArgs { /** * The OCID of the compartment. */ compartmentId: pulumi.Input; /** * (Updatable) The mapping of cost monitor to alert subscription along with thresholds. */ costAlertSubscriptionMap?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) The description of the cost anomaly monitor. */ description?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The name of the cost anomaly monitor. Avoid entering confidential information. */ name?: pulumi.Input; /** * The filter object to target resources for cost monitor. Cost generated by one or more resources identified by this filter is monitored for anomalous deviations. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ targetResourceFilter: pulumi.Input; } //# sourceMappingURL=costAnomalyMonitor.d.ts.map