1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Budget
  5. CostAnomalyMonitorCostanomalymonitorenabletogglesManagement
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

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCostAnomalyMonitorCostanomalymonitorenabletogglesManagement = new oci.budget.CostAnomalyMonitorCostanomalymonitorenabletogglesManagement("test_cost_anomaly_monitor_costanomalymonitorenabletoggles_management", {
        costAnomalyMonitorId: testCostAnomalyMonitor.id,
        enableCostanomalymonitorenabletoggle: enableCostanomalymonitorenabletoggle,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cost_anomaly_monitor_costanomalymonitorenabletoggles_management = oci.budget.CostAnomalyMonitorCostanomalymonitorenabletogglesManagement("test_cost_anomaly_monitor_costanomalymonitorenabletoggles_management",
        cost_anomaly_monitor_id=test_cost_anomaly_monitor["id"],
        enable_costanomalymonitorenabletoggle=enable_costanomalymonitorenabletoggle)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/budget"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := budget.NewCostAnomalyMonitorCostanomalymonitorenabletogglesManagement(ctx, "test_cost_anomaly_monitor_costanomalymonitorenabletoggles_management", &budget.CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs{
    			CostAnomalyMonitorId:                 pulumi.Any(testCostAnomalyMonitor.Id),
    			EnableCostanomalymonitorenabletoggle: pulumi.Any(enableCostanomalymonitorenabletoggle),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testCostAnomalyMonitorCostanomalymonitorenabletogglesManagement = new Oci.Budget.CostAnomalyMonitorCostanomalymonitorenabletogglesManagement("test_cost_anomaly_monitor_costanomalymonitorenabletoggles_management", new()
        {
            CostAnomalyMonitorId = testCostAnomalyMonitor.Id,
            EnableCostanomalymonitorenabletoggle = enableCostanomalymonitorenabletoggle,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Budget.CostAnomalyMonitorCostanomalymonitorenabletogglesManagement;
    import com.pulumi.oci.Budget.CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var testCostAnomalyMonitorCostanomalymonitorenabletogglesManagement = new CostAnomalyMonitorCostanomalymonitorenabletogglesManagement("testCostAnomalyMonitorCostanomalymonitorenabletogglesManagement", CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs.builder()
                .costAnomalyMonitorId(testCostAnomalyMonitor.id())
                .enableCostanomalymonitorenabletoggle(enableCostanomalymonitorenabletoggle)
                .build());
    
        }
    }
    
    resources:
      testCostAnomalyMonitorCostanomalymonitorenabletogglesManagement:
        type: oci:Budget:CostAnomalyMonitorCostanomalymonitorenabletogglesManagement
        name: test_cost_anomaly_monitor_costanomalymonitorenabletoggles_management
        properties:
          costAnomalyMonitorId: ${testCostAnomalyMonitor.id}
          enableCostanomalymonitorenabletoggle: ${enableCostanomalymonitorenabletoggle}
    

    Create CostAnomalyMonitorCostanomalymonitorenabletogglesManagement Resource

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

    Constructor syntax

    new CostAnomalyMonitorCostanomalymonitorenabletogglesManagement(name: string, args: CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs, opts?: CustomResourceOptions);
    @overload
    def CostAnomalyMonitorCostanomalymonitorenabletogglesManagement(resource_name: str,
                                                                    args: CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs,
                                                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def CostAnomalyMonitorCostanomalymonitorenabletogglesManagement(resource_name: str,
                                                                    opts: Optional[ResourceOptions] = None,
                                                                    cost_anomaly_monitor_id: Optional[str] = None,
                                                                    enable_costanomalymonitorenabletoggle: Optional[bool] = None)
    func NewCostAnomalyMonitorCostanomalymonitorenabletogglesManagement(ctx *Context, name string, args CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs, opts ...ResourceOption) (*CostAnomalyMonitorCostanomalymonitorenabletogglesManagement, error)
    public CostAnomalyMonitorCostanomalymonitorenabletogglesManagement(string name, CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs args, CustomResourceOptions? opts = null)
    public CostAnomalyMonitorCostanomalymonitorenabletogglesManagement(String name, CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs args)
    public CostAnomalyMonitorCostanomalymonitorenabletogglesManagement(String name, CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs args, CustomResourceOptions options)
    
    type: oci:Budget:CostAnomalyMonitorCostanomalymonitorenabletogglesManagement
    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 CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs
    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 CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs
    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 CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs
    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 costAnomalyMonitorCostanomalymonitorenabletogglesManagementResource = new Oci.Budget.CostAnomalyMonitorCostanomalymonitorenabletogglesManagement("costAnomalyMonitorCostanomalymonitorenabletogglesManagementResource", new()
    {
        CostAnomalyMonitorId = "string",
        EnableCostanomalymonitorenabletoggle = false,
    });
    
    example, err := budget.NewCostAnomalyMonitorCostanomalymonitorenabletogglesManagement(ctx, "costAnomalyMonitorCostanomalymonitorenabletogglesManagementResource", &budget.CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs{
    	CostAnomalyMonitorId:                 pulumi.String("string"),
    	EnableCostanomalymonitorenabletoggle: pulumi.Bool(false),
    })
    
    var costAnomalyMonitorCostanomalymonitorenabletogglesManagementResource = new CostAnomalyMonitorCostanomalymonitorenabletogglesManagement("costAnomalyMonitorCostanomalymonitorenabletogglesManagementResource", CostAnomalyMonitorCostanomalymonitorenabletogglesManagementArgs.builder()
        .costAnomalyMonitorId("string")
        .enableCostanomalymonitorenabletoggle(false)
        .build());
    
    cost_anomaly_monitor_costanomalymonitorenabletoggles_management_resource = oci.budget.CostAnomalyMonitorCostanomalymonitorenabletogglesManagement("costAnomalyMonitorCostanomalymonitorenabletogglesManagementResource",
        cost_anomaly_monitor_id="string",
        enable_costanomalymonitorenabletoggle=False)
    
    const costAnomalyMonitorCostanomalymonitorenabletogglesManagementResource = new oci.budget.CostAnomalyMonitorCostanomalymonitorenabletogglesManagement("costAnomalyMonitorCostanomalymonitorenabletogglesManagementResource", {
        costAnomalyMonitorId: "string",
        enableCostanomalymonitorenabletoggle: false,
    });
    
    type: oci:Budget:CostAnomalyMonitorCostanomalymonitorenabletogglesManagement
    properties:
        costAnomalyMonitorId: string
        enableCostanomalymonitorenabletoggle: false
    

    CostAnomalyMonitorCostanomalymonitorenabletogglesManagement 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 CostAnomalyMonitorCostanomalymonitorenabletogglesManagement resource accepts the following input properties:

    CostAnomalyMonitorId string
    The unique costAnomalyMonitor OCID.
    EnableCostanomalymonitorenabletoggle bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

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

    CostAnomalyMonitorId string
    The unique costAnomalyMonitor OCID.
    EnableCostanomalymonitorenabletoggle bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

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

    costAnomalyMonitorId String
    The unique costAnomalyMonitor OCID.
    enableCostanomalymonitorenabletoggle Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

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

    costAnomalyMonitorId string
    The unique costAnomalyMonitor OCID.
    enableCostanomalymonitorenabletoggle boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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_monitor_id str
    The unique costAnomalyMonitor OCID.
    enable_costanomalymonitorenabletoggle bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

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

    costAnomalyMonitorId String
    The unique costAnomalyMonitor OCID.
    enableCostanomalymonitorenabletoggle Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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 CostAnomalyMonitorCostanomalymonitorenabletogglesManagement resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CostAnomalyMonitorCostanomalymonitorenabletogglesManagement Resource

    Get an existing CostAnomalyMonitorCostanomalymonitorenabletogglesManagement 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?: CostAnomalyMonitorCostanomalymonitorenabletogglesManagementState, opts?: CustomResourceOptions): CostAnomalyMonitorCostanomalymonitorenabletogglesManagement
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cost_anomaly_monitor_id: Optional[str] = None,
            enable_costanomalymonitorenabletoggle: Optional[bool] = None) -> CostAnomalyMonitorCostanomalymonitorenabletogglesManagement
    func GetCostAnomalyMonitorCostanomalymonitorenabletogglesManagement(ctx *Context, name string, id IDInput, state *CostAnomalyMonitorCostanomalymonitorenabletogglesManagementState, opts ...ResourceOption) (*CostAnomalyMonitorCostanomalymonitorenabletogglesManagement, error)
    public static CostAnomalyMonitorCostanomalymonitorenabletogglesManagement Get(string name, Input<string> id, CostAnomalyMonitorCostanomalymonitorenabletogglesManagementState? state, CustomResourceOptions? opts = null)
    public static CostAnomalyMonitorCostanomalymonitorenabletogglesManagement get(String name, Output<String> id, CostAnomalyMonitorCostanomalymonitorenabletogglesManagementState state, CustomResourceOptions options)
    resources:  _:    type: oci:Budget:CostAnomalyMonitorCostanomalymonitorenabletogglesManagement    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:
    CostAnomalyMonitorId string
    The unique costAnomalyMonitor OCID.
    EnableCostanomalymonitorenabletoggle bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

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

    CostAnomalyMonitorId string
    The unique costAnomalyMonitor OCID.
    EnableCostanomalymonitorenabletoggle bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

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

    costAnomalyMonitorId String
    The unique costAnomalyMonitor OCID.
    enableCostanomalymonitorenabletoggle Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

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

    costAnomalyMonitorId string
    The unique costAnomalyMonitor OCID.
    enableCostanomalymonitorenabletoggle boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

    ** 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_monitor_id str
    The unique costAnomalyMonitor OCID.
    enable_costanomalymonitorenabletoggle bool

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

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

    costAnomalyMonitorId String
    The unique costAnomalyMonitor OCID.
    enableCostanomalymonitorenabletoggle Boolean

    (Updatable) A required field when set to true calls enable action and when set to false calls disable action.

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

    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