1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Budget
  5. CostAnomalyEvent
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi

    Example Usage

    Create CostAnomalyEvent Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CostAnomalyEvent(name: string, args: CostAnomalyEventArgs, opts?: CustomResourceOptions);
    @overload
    def CostAnomalyEvent(resource_name: str,
                         args: CostAnomalyEventArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def CostAnomalyEvent(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         cost_anomaly_event_id: Optional[str] = None,
                         defined_tags: Optional[Mapping[str, str]] = None,
                         feedback_response: Optional[str] = None,
                         freeform_tags: Optional[Mapping[str, str]] = None)
    func NewCostAnomalyEvent(ctx *Context, name string, args CostAnomalyEventArgs, opts ...ResourceOption) (*CostAnomalyEvent, error)
    public CostAnomalyEvent(string name, CostAnomalyEventArgs args, CustomResourceOptions? opts = null)
    public CostAnomalyEvent(String name, CostAnomalyEventArgs args)
    public CostAnomalyEvent(String name, CostAnomalyEventArgs args, CustomResourceOptions options)
    
    type: oci:Budget:CostAnomalyEvent
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CostAnomalyEventArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CostAnomalyEventArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CostAnomalyEventArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CostAnomalyEventArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CostAnomalyEventArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var costAnomalyEventResource = new Oci.Budget.CostAnomalyEvent("costAnomalyEventResource", new()
    {
        CostAnomalyEventId = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        FeedbackResponse = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := budget.NewCostAnomalyEvent(ctx, "costAnomalyEventResource", &budget.CostAnomalyEventArgs{
    	CostAnomalyEventId: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FeedbackResponse: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var costAnomalyEventResource = new CostAnomalyEvent("costAnomalyEventResource", CostAnomalyEventArgs.builder()
        .costAnomalyEventId("string")
        .definedTags(Map.of("string", "string"))
        .feedbackResponse("string")
        .freeformTags(Map.of("string", "string"))
        .build());
    
    cost_anomaly_event_resource = oci.budget.CostAnomalyEvent("costAnomalyEventResource",
        cost_anomaly_event_id="string",
        defined_tags={
            "string": "string",
        },
        feedback_response="string",
        freeform_tags={
            "string": "string",
        })
    
    const costAnomalyEventResource = new oci.budget.CostAnomalyEvent("costAnomalyEventResource", {
        costAnomalyEventId: "string",
        definedTags: {
            string: "string",
        },
        feedbackResponse: "string",
        freeformTags: {
            string: "string",
        },
    });
    
    type: oci:Budget:CostAnomalyEvent
    properties:
        costAnomalyEventId: string
        definedTags:
            string: string
        feedbackResponse: string
        freeformTags:
            string: string
    

    CostAnomalyEvent Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CostAnomalyEvent resource accepts the following input properties:

    CostAnomalyEventId string
    The unique costAnomalyEventId OCID.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FeedbackResponse string
    (Updatable) The feedback response for the cost anomaly event.
    FreeformTags Dictionary<string, string>

    (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. Example: {"Department": "Finance"}

    ** 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

    CostAnomalyEventId string
    The unique costAnomalyEventId OCID.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FeedbackResponse string
    (Updatable) The feedback response for the cost anomaly event.
    FreeformTags map[string]string

    (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. Example: {"Department": "Finance"}

    ** 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

    costAnomalyEventId String
    The unique costAnomalyEventId OCID.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedbackResponse String
    (Updatable) The feedback response for the cost anomaly event.
    freeformTags Map<String,String>

    (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. Example: {"Department": "Finance"}

    ** 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

    costAnomalyEventId string
    The unique costAnomalyEventId OCID.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedbackResponse string
    (Updatable) The feedback response for the cost anomaly event.
    freeformTags {[key: string]: string}

    (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. Example: {"Department": "Finance"}

    ** 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

    cost_anomaly_event_id str
    The unique costAnomalyEventId OCID.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedback_response str
    (Updatable) The feedback response for the cost anomaly event.
    freeform_tags Mapping[str, str]

    (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. Example: {"Department": "Finance"}

    ** 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

    costAnomalyEventId String
    The unique costAnomalyEventId OCID.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedbackResponse String
    (Updatable) The feedback response for the cost anomaly event.
    freeformTags Map<String>

    (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. Example: {"Department": "Finance"}

    ** 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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CostAnomalyEvent resource produces the following output properties:

    CompartmentId string
    The OCID of the compartment.
    CostAnomalyName string
    The name of the associated cost monitor.
    CostImpact double
    The cost impact of the detected anomaly.
    CostMonitorId string
    The OCID of the associated cost monitor.
    CostMonitorName string
    The name of the associated cost monitor.
    CostMonitorType string
    Type of cost monitor
    CostVariancePercentage double
    The cost variance percentage of the detected anomaly.
    Id string
    The provider-assigned unique ID for this managed resource.
    RootCauseDetail string
    The root cause details of the cost anomaly event.
    State string
    The current state of the cost anomaly event.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetResourceFilter 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.
    TimeAnomalyEventDate string
    The event date of the anomaly event.
    TimeCreated string
    The created time of the cost anomaly event.
    TimeUpdated string
    The updated time of the cost anomaly event.
    CompartmentId string
    The OCID of the compartment.
    CostAnomalyName string
    The name of the associated cost monitor.
    CostImpact float64
    The cost impact of the detected anomaly.
    CostMonitorId string
    The OCID of the associated cost monitor.
    CostMonitorName string
    The name of the associated cost monitor.
    CostMonitorType string
    Type of cost monitor
    CostVariancePercentage float64
    The cost variance percentage of the detected anomaly.
    Id string
    The provider-assigned unique ID for this managed resource.
    RootCauseDetail string
    The root cause details of the cost anomaly event.
    State string
    The current state of the cost anomaly event.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetResourceFilter 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.
    TimeAnomalyEventDate string
    The event date of the anomaly event.
    TimeCreated string
    The created time of the cost anomaly event.
    TimeUpdated string
    The updated time of the cost anomaly event.
    compartmentId String
    The OCID of the compartment.
    costAnomalyName String
    The name of the associated cost monitor.
    costImpact Double
    The cost impact of the detected anomaly.
    costMonitorId String
    The OCID of the associated cost monitor.
    costMonitorName String
    The name of the associated cost monitor.
    costMonitorType String
    Type of cost monitor
    costVariancePercentage Double
    The cost variance percentage of the detected anomaly.
    id String
    The provider-assigned unique ID for this managed resource.
    rootCauseDetail String
    The root cause details of the cost anomaly event.
    state String
    The current state of the cost anomaly event.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceFilter 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.
    timeAnomalyEventDate String
    The event date of the anomaly event.
    timeCreated String
    The created time of the cost anomaly event.
    timeUpdated String
    The updated time of the cost anomaly event.
    compartmentId string
    The OCID of the compartment.
    costAnomalyName string
    The name of the associated cost monitor.
    costImpact number
    The cost impact of the detected anomaly.
    costMonitorId string
    The OCID of the associated cost monitor.
    costMonitorName string
    The name of the associated cost monitor.
    costMonitorType string
    Type of cost monitor
    costVariancePercentage number
    The cost variance percentage of the detected anomaly.
    id string
    The provider-assigned unique ID for this managed resource.
    rootCauseDetail string
    The root cause details of the cost anomaly event.
    state string
    The current state of the cost anomaly event.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceFilter 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.
    timeAnomalyEventDate string
    The event date of the anomaly event.
    timeCreated string
    The created time of the cost anomaly event.
    timeUpdated string
    The updated time of the cost anomaly event.
    compartment_id str
    The OCID of the compartment.
    cost_anomaly_name str
    The name of the associated cost monitor.
    cost_impact float
    The cost impact of the detected anomaly.
    cost_monitor_id str
    The OCID of the associated cost monitor.
    cost_monitor_name str
    The name of the associated cost monitor.
    cost_monitor_type str
    Type of cost monitor
    cost_variance_percentage float
    The cost variance percentage of the detected anomaly.
    id str
    The provider-assigned unique ID for this managed resource.
    root_cause_detail str
    The root cause details of the cost anomaly event.
    state str
    The current state of the cost anomaly event.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_resource_filter str
    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.
    time_anomaly_event_date str
    The event date of the anomaly event.
    time_created str
    The created time of the cost anomaly event.
    time_updated str
    The updated time of the cost anomaly event.
    compartmentId String
    The OCID of the compartment.
    costAnomalyName String
    The name of the associated cost monitor.
    costImpact Number
    The cost impact of the detected anomaly.
    costMonitorId String
    The OCID of the associated cost monitor.
    costMonitorName String
    The name of the associated cost monitor.
    costMonitorType String
    Type of cost monitor
    costVariancePercentage Number
    The cost variance percentage of the detected anomaly.
    id String
    The provider-assigned unique ID for this managed resource.
    rootCauseDetail String
    The root cause details of the cost anomaly event.
    state String
    The current state of the cost anomaly event.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceFilter 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.
    timeAnomalyEventDate String
    The event date of the anomaly event.
    timeCreated String
    The created time of the cost anomaly event.
    timeUpdated String
    The updated time of the cost anomaly event.

    Look up Existing CostAnomalyEvent Resource

    Get an existing CostAnomalyEvent resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CostAnomalyEventState, opts?: CustomResourceOptions): CostAnomalyEvent
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            cost_anomaly_event_id: Optional[str] = None,
            cost_anomaly_name: Optional[str] = None,
            cost_impact: Optional[float] = None,
            cost_monitor_id: Optional[str] = None,
            cost_monitor_name: Optional[str] = None,
            cost_monitor_type: Optional[str] = None,
            cost_variance_percentage: Optional[float] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            feedback_response: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            root_cause_detail: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            target_resource_filter: Optional[str] = None,
            time_anomaly_event_date: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> CostAnomalyEvent
    func GetCostAnomalyEvent(ctx *Context, name string, id IDInput, state *CostAnomalyEventState, opts ...ResourceOption) (*CostAnomalyEvent, error)
    public static CostAnomalyEvent Get(string name, Input<string> id, CostAnomalyEventState? state, CustomResourceOptions? opts = null)
    public static CostAnomalyEvent get(String name, Output<String> id, CostAnomalyEventState state, CustomResourceOptions options)
    resources:  _:    type: oci:Budget:CostAnomalyEvent    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    The OCID of the compartment.
    CostAnomalyEventId string
    The unique costAnomalyEventId OCID.
    CostAnomalyName string
    The name of the associated cost monitor.
    CostImpact double
    The cost impact of the detected anomaly.
    CostMonitorId string
    The OCID of the associated cost monitor.
    CostMonitorName string
    The name of the associated cost monitor.
    CostMonitorType string
    Type of cost monitor
    CostVariancePercentage double
    The cost variance percentage of the detected anomaly.
    DefinedTags Dictionary<string, string>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FeedbackResponse string
    (Updatable) The feedback response for the cost anomaly event.
    FreeformTags Dictionary<string, string>

    (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. Example: {"Department": "Finance"}

    ** 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

    RootCauseDetail string
    The root cause details of the cost anomaly event.
    State string
    The current state of the cost anomaly event.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetResourceFilter 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.
    TimeAnomalyEventDate string
    The event date of the anomaly event.
    TimeCreated string
    The created time of the cost anomaly event.
    TimeUpdated string
    The updated time of the cost anomaly event.
    CompartmentId string
    The OCID of the compartment.
    CostAnomalyEventId string
    The unique costAnomalyEventId OCID.
    CostAnomalyName string
    The name of the associated cost monitor.
    CostImpact float64
    The cost impact of the detected anomaly.
    CostMonitorId string
    The OCID of the associated cost monitor.
    CostMonitorName string
    The name of the associated cost monitor.
    CostMonitorType string
    Type of cost monitor
    CostVariancePercentage float64
    The cost variance percentage of the detected anomaly.
    DefinedTags map[string]string
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    FeedbackResponse string
    (Updatable) The feedback response for the cost anomaly event.
    FreeformTags map[string]string

    (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. Example: {"Department": "Finance"}

    ** 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

    RootCauseDetail string
    The root cause details of the cost anomaly event.
    State string
    The current state of the cost anomaly event.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TargetResourceFilter 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.
    TimeAnomalyEventDate string
    The event date of the anomaly event.
    TimeCreated string
    The created time of the cost anomaly event.
    TimeUpdated string
    The updated time of the cost anomaly event.
    compartmentId String
    The OCID of the compartment.
    costAnomalyEventId String
    The unique costAnomalyEventId OCID.
    costAnomalyName String
    The name of the associated cost monitor.
    costImpact Double
    The cost impact of the detected anomaly.
    costMonitorId String
    The OCID of the associated cost monitor.
    costMonitorName String
    The name of the associated cost monitor.
    costMonitorType String
    Type of cost monitor
    costVariancePercentage Double
    The cost variance percentage of the detected anomaly.
    definedTags Map<String,String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedbackResponse String
    (Updatable) The feedback response for the cost anomaly event.
    freeformTags Map<String,String>

    (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. Example: {"Department": "Finance"}

    ** 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

    rootCauseDetail String
    The root cause details of the cost anomaly event.
    state String
    The current state of the cost anomaly event.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceFilter 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.
    timeAnomalyEventDate String
    The event date of the anomaly event.
    timeCreated String
    The created time of the cost anomaly event.
    timeUpdated String
    The updated time of the cost anomaly event.
    compartmentId string
    The OCID of the compartment.
    costAnomalyEventId string
    The unique costAnomalyEventId OCID.
    costAnomalyName string
    The name of the associated cost monitor.
    costImpact number
    The cost impact of the detected anomaly.
    costMonitorId string
    The OCID of the associated cost monitor.
    costMonitorName string
    The name of the associated cost monitor.
    costMonitorType string
    Type of cost monitor
    costVariancePercentage number
    The cost variance percentage of the detected anomaly.
    definedTags {[key: string]: string}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedbackResponse string
    (Updatable) The feedback response for the cost anomaly event.
    freeformTags {[key: string]: string}

    (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. Example: {"Department": "Finance"}

    ** 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

    rootCauseDetail string
    The root cause details of the cost anomaly event.
    state string
    The current state of the cost anomaly event.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceFilter 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.
    timeAnomalyEventDate string
    The event date of the anomaly event.
    timeCreated string
    The created time of the cost anomaly event.
    timeUpdated string
    The updated time of the cost anomaly event.
    compartment_id str
    The OCID of the compartment.
    cost_anomaly_event_id str
    The unique costAnomalyEventId OCID.
    cost_anomaly_name str
    The name of the associated cost monitor.
    cost_impact float
    The cost impact of the detected anomaly.
    cost_monitor_id str
    The OCID of the associated cost monitor.
    cost_monitor_name str
    The name of the associated cost monitor.
    cost_monitor_type str
    Type of cost monitor
    cost_variance_percentage float
    The cost variance percentage of the detected anomaly.
    defined_tags Mapping[str, str]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedback_response str
    (Updatable) The feedback response for the cost anomaly event.
    freeform_tags Mapping[str, str]

    (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. Example: {"Department": "Finance"}

    ** 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

    root_cause_detail str
    The root cause details of the cost anomaly event.
    state str
    The current state of the cost anomaly event.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    target_resource_filter str
    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.
    time_anomaly_event_date str
    The event date of the anomaly event.
    time_created str
    The created time of the cost anomaly event.
    time_updated str
    The updated time of the cost anomaly event.
    compartmentId String
    The OCID of the compartment.
    costAnomalyEventId String
    The unique costAnomalyEventId OCID.
    costAnomalyName String
    The name of the associated cost monitor.
    costImpact Number
    The cost impact of the detected anomaly.
    costMonitorId String
    The OCID of the associated cost monitor.
    costMonitorName String
    The name of the associated cost monitor.
    costMonitorType String
    Type of cost monitor
    costVariancePercentage Number
    The cost variance percentage of the detected anomaly.
    definedTags Map<String>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    feedbackResponse String
    (Updatable) The feedback response for the cost anomaly event.
    freeformTags Map<String>

    (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. Example: {"Department": "Finance"}

    ** 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

    rootCauseDetail String
    The root cause details of the cost anomaly event.
    state String
    The current state of the cost anomaly event.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    targetResourceFilter 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.
    timeAnomalyEventDate String
    The event date of the anomaly event.
    timeCreated String
    The created time of the cost anomaly event.
    timeUpdated String
    The updated time of the cost anomaly event.

    Import

    CostAnomalyEvents can be imported using the id, e.g.

    $ pulumi import oci:Budget/costAnomalyEvent:CostAnomalyEvent test_cost_anomaly_event "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.16.0 published on Wednesday, Jan 28, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate