1. Packages
  2. Databricks
  3. API Docs
  4. Budget
Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi

databricks.Budget

Explore with Pulumi AI

databricks logo
Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi

    Initialize provider with alias = "account", and host pointing to the account URL, like, host = "https://accounts.cloud.databricks.com". Use provider = databricks.account for all account-level resources.

    This feature is in Public Preview.

    This resource allows you to manage Databricks Budgets.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const _this = new databricks.Budget("this", {
        displayName: "databricks-workspace-budget",
        alertConfigurations: [{
            timePeriod: "MONTH",
            triggerType: "CUMULATIVE_SPENDING_EXCEEDED",
            quantityType: "LIST_PRICE_DOLLARS_USD",
            quantityThreshold: "840",
            actionConfigurations: [{
                actionType: "EMAIL_NOTIFICATION",
                target: "abc@gmail.com",
            }],
        }],
        filter: {
            workspaceId: {
                operator: "IN",
                values: [1234567890098765],
            },
            tags: [
                {
                    key: "Team",
                    value: {
                        operator: "IN",
                        values: ["Data Science"],
                    },
                },
                {
                    key: "Environment",
                    value: {
                        operator: "IN",
                        values: ["Development"],
                    },
                },
            ],
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    this = databricks.Budget("this",
        display_name="databricks-workspace-budget",
        alert_configurations=[{
            "time_period": "MONTH",
            "trigger_type": "CUMULATIVE_SPENDING_EXCEEDED",
            "quantity_type": "LIST_PRICE_DOLLARS_USD",
            "quantity_threshold": "840",
            "action_configurations": [{
                "action_type": "EMAIL_NOTIFICATION",
                "target": "abc@gmail.com",
            }],
        }],
        filter={
            "workspace_id": {
                "operator": "IN",
                "values": [1234567890098765],
            },
            "tags": [
                {
                    "key": "Team",
                    "value": {
                        "operator": "IN",
                        "values": ["Data Science"],
                    },
                },
                {
                    "key": "Environment",
                    "value": {
                        "operator": "IN",
                        "values": ["Development"],
                    },
                },
            ],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewBudget(ctx, "this", &databricks.BudgetArgs{
    			DisplayName: pulumi.String("databricks-workspace-budget"),
    			AlertConfigurations: databricks.BudgetAlertConfigurationArray{
    				&databricks.BudgetAlertConfigurationArgs{
    					TimePeriod:        pulumi.String("MONTH"),
    					TriggerType:       pulumi.String("CUMULATIVE_SPENDING_EXCEEDED"),
    					QuantityType:      pulumi.String("LIST_PRICE_DOLLARS_USD"),
    					QuantityThreshold: pulumi.String("840"),
    					ActionConfigurations: databricks.BudgetAlertConfigurationActionConfigurationArray{
    						&databricks.BudgetAlertConfigurationActionConfigurationArgs{
    							ActionType: pulumi.String("EMAIL_NOTIFICATION"),
    							Target:     pulumi.String("abc@gmail.com"),
    						},
    					},
    				},
    			},
    			Filter: &databricks.BudgetFilterArgs{
    				WorkspaceId: &databricks.BudgetFilterWorkspaceIdArgs{
    					Operator: pulumi.String("IN"),
    					Values: pulumi.IntArray{
    						pulumi.Int(1234567890098765),
    					},
    				},
    				Tags: databricks.BudgetFilterTagArray{
    					&databricks.BudgetFilterTagArgs{
    						Key: pulumi.String("Team"),
    						Value: &databricks.BudgetFilterTagValueArgs{
    							Operator: pulumi.String("IN"),
    							Values: pulumi.StringArray{
    								pulumi.String("Data Science"),
    							},
    						},
    					},
    					&databricks.BudgetFilterTagArgs{
    						Key: pulumi.String("Environment"),
    						Value: &databricks.BudgetFilterTagValueArgs{
    							Operator: pulumi.String("IN"),
    							Values: pulumi.StringArray{
    								pulumi.String("Development"),
    							},
    						},
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = new Databricks.Budget("this", new()
        {
            DisplayName = "databricks-workspace-budget",
            AlertConfigurations = new[]
            {
                new Databricks.Inputs.BudgetAlertConfigurationArgs
                {
                    TimePeriod = "MONTH",
                    TriggerType = "CUMULATIVE_SPENDING_EXCEEDED",
                    QuantityType = "LIST_PRICE_DOLLARS_USD",
                    QuantityThreshold = "840",
                    ActionConfigurations = new[]
                    {
                        new Databricks.Inputs.BudgetAlertConfigurationActionConfigurationArgs
                        {
                            ActionType = "EMAIL_NOTIFICATION",
                            Target = "abc@gmail.com",
                        },
                    },
                },
            },
            Filter = new Databricks.Inputs.BudgetFilterArgs
            {
                WorkspaceId = new Databricks.Inputs.BudgetFilterWorkspaceIdArgs
                {
                    Operator = "IN",
                    Values = new[]
                    {
                        1234567890098765,
                    },
                },
                Tags = new[]
                {
                    new Databricks.Inputs.BudgetFilterTagArgs
                    {
                        Key = "Team",
                        Value = new Databricks.Inputs.BudgetFilterTagValueArgs
                        {
                            Operator = "IN",
                            Values = new[]
                            {
                                "Data Science",
                            },
                        },
                    },
                    new Databricks.Inputs.BudgetFilterTagArgs
                    {
                        Key = "Environment",
                        Value = new Databricks.Inputs.BudgetFilterTagValueArgs
                        {
                            Operator = "IN",
                            Values = new[]
                            {
                                "Development",
                            },
                        },
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.Budget;
    import com.pulumi.databricks.BudgetArgs;
    import com.pulumi.databricks.inputs.BudgetAlertConfigurationArgs;
    import com.pulumi.databricks.inputs.BudgetFilterArgs;
    import com.pulumi.databricks.inputs.BudgetFilterWorkspaceIdArgs;
    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 this_ = new Budget("this", BudgetArgs.builder()
                .displayName("databricks-workspace-budget")
                .alertConfigurations(BudgetAlertConfigurationArgs.builder()
                    .timePeriod("MONTH")
                    .triggerType("CUMULATIVE_SPENDING_EXCEEDED")
                    .quantityType("LIST_PRICE_DOLLARS_USD")
                    .quantityThreshold("840")
                    .actionConfigurations(BudgetAlertConfigurationActionConfigurationArgs.builder()
                        .actionType("EMAIL_NOTIFICATION")
                        .target("abc@gmail.com")
                        .build())
                    .build())
                .filter(BudgetFilterArgs.builder()
                    .workspaceId(BudgetFilterWorkspaceIdArgs.builder()
                        .operator("IN")
                        .values(1234567890098765)
                        .build())
                    .tags(                
                        BudgetFilterTagArgs.builder()
                            .key("Team")
                            .value(BudgetFilterTagValueArgs.builder()
                                .operator("IN")
                                .values("Data Science")
                                .build())
                            .build(),
                        BudgetFilterTagArgs.builder()
                            .key("Environment")
                            .value(BudgetFilterTagValueArgs.builder()
                                .operator("IN")
                                .values("Development")
                                .build())
                            .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      this:
        type: databricks:Budget
        properties:
          displayName: databricks-workspace-budget
          alertConfigurations:
            - timePeriod: MONTH
              triggerType: CUMULATIVE_SPENDING_EXCEEDED
              quantityType: LIST_PRICE_DOLLARS_USD
              quantityThreshold: '840'
              actionConfigurations:
                - actionType: EMAIL_NOTIFICATION
                  target: abc@gmail.com
          filter:
            workspaceId:
              operator: IN
              values:
                - 1.234567890098765e+15
            tags:
              - key: Team
                value:
                  operator: IN
                  values:
                    - Data Science
              - key: Environment
                value:
                  operator: IN
                  values:
                    - Development
    

    The following resources are used in the context:

    • databricks.MwsWorkspaces to set up Databricks workspaces.

    Create Budget Resource

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

    Constructor syntax

    new Budget(name: string, args?: BudgetArgs, opts?: CustomResourceOptions);
    @overload
    def Budget(resource_name: str,
               args: Optional[BudgetArgs] = None,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Budget(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               account_id: Optional[str] = None,
               alert_configurations: Optional[Sequence[BudgetAlertConfigurationArgs]] = None,
               budget_configuration_id: Optional[str] = None,
               create_time: Optional[int] = None,
               display_name: Optional[str] = None,
               filter: Optional[BudgetFilterArgs] = None,
               update_time: Optional[int] = None)
    func NewBudget(ctx *Context, name string, args *BudgetArgs, opts ...ResourceOption) (*Budget, error)
    public Budget(string name, BudgetArgs? args = null, CustomResourceOptions? opts = null)
    public Budget(String name, BudgetArgs args)
    public Budget(String name, BudgetArgs args, CustomResourceOptions options)
    
    type: databricks:Budget
    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 BudgetArgs
    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 BudgetArgs
    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 BudgetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BudgetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BudgetArgs
    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 budgetResource = new Databricks.Budget("budgetResource", new()
    {
        AccountId = "string",
        AlertConfigurations = new[]
        {
            new Databricks.Inputs.BudgetAlertConfigurationArgs
            {
                ActionConfigurations = new[]
                {
                    new Databricks.Inputs.BudgetAlertConfigurationActionConfigurationArgs
                    {
                        ActionConfigurationId = "string",
                        ActionType = "string",
                        Target = "string",
                    },
                },
                AlertConfigurationId = "string",
                QuantityThreshold = "string",
                QuantityType = "string",
                TimePeriod = "string",
                TriggerType = "string",
            },
        },
        BudgetConfigurationId = "string",
        CreateTime = 0,
        DisplayName = "string",
        Filter = new Databricks.Inputs.BudgetFilterArgs
        {
            Tags = new[]
            {
                new Databricks.Inputs.BudgetFilterTagArgs
                {
                    Key = "string",
                    Value = new Databricks.Inputs.BudgetFilterTagValueArgs
                    {
                        Operator = "string",
                        Values = new[]
                        {
                            "string",
                        },
                    },
                },
            },
            WorkspaceId = new Databricks.Inputs.BudgetFilterWorkspaceIdArgs
            {
                Operator = "string",
                Values = new[]
                {
                    0,
                },
            },
        },
        UpdateTime = 0,
    });
    
    example, err := databricks.NewBudget(ctx, "budgetResource", &databricks.BudgetArgs{
    	AccountId: pulumi.String("string"),
    	AlertConfigurations: databricks.BudgetAlertConfigurationArray{
    		&databricks.BudgetAlertConfigurationArgs{
    			ActionConfigurations: databricks.BudgetAlertConfigurationActionConfigurationArray{
    				&databricks.BudgetAlertConfigurationActionConfigurationArgs{
    					ActionConfigurationId: pulumi.String("string"),
    					ActionType:            pulumi.String("string"),
    					Target:                pulumi.String("string"),
    				},
    			},
    			AlertConfigurationId: pulumi.String("string"),
    			QuantityThreshold:    pulumi.String("string"),
    			QuantityType:         pulumi.String("string"),
    			TimePeriod:           pulumi.String("string"),
    			TriggerType:          pulumi.String("string"),
    		},
    	},
    	BudgetConfigurationId: pulumi.String("string"),
    	CreateTime:            pulumi.Int(0),
    	DisplayName:           pulumi.String("string"),
    	Filter: &databricks.BudgetFilterArgs{
    		Tags: databricks.BudgetFilterTagArray{
    			&databricks.BudgetFilterTagArgs{
    				Key: pulumi.String("string"),
    				Value: &databricks.BudgetFilterTagValueArgs{
    					Operator: pulumi.String("string"),
    					Values: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    		},
    		WorkspaceId: &databricks.BudgetFilterWorkspaceIdArgs{
    			Operator: pulumi.String("string"),
    			Values: pulumi.IntArray{
    				pulumi.Int(0),
    			},
    		},
    	},
    	UpdateTime: pulumi.Int(0),
    })
    
    var budgetResource = new Budget("budgetResource", BudgetArgs.builder()
        .accountId("string")
        .alertConfigurations(BudgetAlertConfigurationArgs.builder()
            .actionConfigurations(BudgetAlertConfigurationActionConfigurationArgs.builder()
                .actionConfigurationId("string")
                .actionType("string")
                .target("string")
                .build())
            .alertConfigurationId("string")
            .quantityThreshold("string")
            .quantityType("string")
            .timePeriod("string")
            .triggerType("string")
            .build())
        .budgetConfigurationId("string")
        .createTime(0)
        .displayName("string")
        .filter(BudgetFilterArgs.builder()
            .tags(BudgetFilterTagArgs.builder()
                .key("string")
                .value(BudgetFilterTagValueArgs.builder()
                    .operator("string")
                    .values("string")
                    .build())
                .build())
            .workspaceId(BudgetFilterWorkspaceIdArgs.builder()
                .operator("string")
                .values(0)
                .build())
            .build())
        .updateTime(0)
        .build());
    
    budget_resource = databricks.Budget("budgetResource",
        account_id="string",
        alert_configurations=[{
            "action_configurations": [{
                "action_configuration_id": "string",
                "action_type": "string",
                "target": "string",
            }],
            "alert_configuration_id": "string",
            "quantity_threshold": "string",
            "quantity_type": "string",
            "time_period": "string",
            "trigger_type": "string",
        }],
        budget_configuration_id="string",
        create_time=0,
        display_name="string",
        filter={
            "tags": [{
                "key": "string",
                "value": {
                    "operator": "string",
                    "values": ["string"],
                },
            }],
            "workspace_id": {
                "operator": "string",
                "values": [0],
            },
        },
        update_time=0)
    
    const budgetResource = new databricks.Budget("budgetResource", {
        accountId: "string",
        alertConfigurations: [{
            actionConfigurations: [{
                actionConfigurationId: "string",
                actionType: "string",
                target: "string",
            }],
            alertConfigurationId: "string",
            quantityThreshold: "string",
            quantityType: "string",
            timePeriod: "string",
            triggerType: "string",
        }],
        budgetConfigurationId: "string",
        createTime: 0,
        displayName: "string",
        filter: {
            tags: [{
                key: "string",
                value: {
                    operator: "string",
                    values: ["string"],
                },
            }],
            workspaceId: {
                operator: "string",
                values: [0],
            },
        },
        updateTime: 0,
    });
    
    type: databricks:Budget
    properties:
        accountId: string
        alertConfigurations:
            - actionConfigurations:
                - actionConfigurationId: string
                  actionType: string
                  target: string
              alertConfigurationId: string
              quantityThreshold: string
              quantityType: string
              timePeriod: string
              triggerType: string
        budgetConfigurationId: string
        createTime: 0
        displayName: string
        filter:
            tags:
                - key: string
                  value:
                    operator: string
                    values:
                        - string
            workspaceId:
                operator: string
                values:
                    - 0
        updateTime: 0
    

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

    AccountId string
    The ID of the Databricks Account.
    AlertConfigurations List<BudgetAlertConfiguration>
    BudgetConfigurationId string
    The ID of the budget configuration.
    CreateTime int
    DisplayName string
    Name of the budget in Databricks Account.
    Filter BudgetFilter
    UpdateTime int
    AccountId string
    The ID of the Databricks Account.
    AlertConfigurations []BudgetAlertConfigurationArgs
    BudgetConfigurationId string
    The ID of the budget configuration.
    CreateTime int
    DisplayName string
    Name of the budget in Databricks Account.
    Filter BudgetFilterArgs
    UpdateTime int
    accountId String
    The ID of the Databricks Account.
    alertConfigurations List<BudgetAlertConfiguration>
    budgetConfigurationId String
    The ID of the budget configuration.
    createTime Integer
    displayName String
    Name of the budget in Databricks Account.
    filter BudgetFilter
    updateTime Integer
    accountId string
    The ID of the Databricks Account.
    alertConfigurations BudgetAlertConfiguration[]
    budgetConfigurationId string
    The ID of the budget configuration.
    createTime number
    displayName string
    Name of the budget in Databricks Account.
    filter BudgetFilter
    updateTime number
    account_id str
    The ID of the Databricks Account.
    alert_configurations Sequence[BudgetAlertConfigurationArgs]
    budget_configuration_id str
    The ID of the budget configuration.
    create_time int
    display_name str
    Name of the budget in Databricks Account.
    filter BudgetFilterArgs
    update_time int
    accountId String
    The ID of the Databricks Account.
    alertConfigurations List<Property Map>
    budgetConfigurationId String
    The ID of the budget configuration.
    createTime Number
    displayName String
    Name of the budget in Databricks Account.
    filter Property Map
    updateTime Number

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Budget 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 Budget Resource

    Get an existing Budget 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?: BudgetState, opts?: CustomResourceOptions): Budget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            alert_configurations: Optional[Sequence[BudgetAlertConfigurationArgs]] = None,
            budget_configuration_id: Optional[str] = None,
            create_time: Optional[int] = None,
            display_name: Optional[str] = None,
            filter: Optional[BudgetFilterArgs] = None,
            update_time: Optional[int] = None) -> Budget
    func GetBudget(ctx *Context, name string, id IDInput, state *BudgetState, opts ...ResourceOption) (*Budget, error)
    public static Budget Get(string name, Input<string> id, BudgetState? state, CustomResourceOptions? opts = null)
    public static Budget get(String name, Output<String> id, BudgetState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AccountId string
    The ID of the Databricks Account.
    AlertConfigurations List<BudgetAlertConfiguration>
    BudgetConfigurationId string
    The ID of the budget configuration.
    CreateTime int
    DisplayName string
    Name of the budget in Databricks Account.
    Filter BudgetFilter
    UpdateTime int
    AccountId string
    The ID of the Databricks Account.
    AlertConfigurations []BudgetAlertConfigurationArgs
    BudgetConfigurationId string
    The ID of the budget configuration.
    CreateTime int
    DisplayName string
    Name of the budget in Databricks Account.
    Filter BudgetFilterArgs
    UpdateTime int
    accountId String
    The ID of the Databricks Account.
    alertConfigurations List<BudgetAlertConfiguration>
    budgetConfigurationId String
    The ID of the budget configuration.
    createTime Integer
    displayName String
    Name of the budget in Databricks Account.
    filter BudgetFilter
    updateTime Integer
    accountId string
    The ID of the Databricks Account.
    alertConfigurations BudgetAlertConfiguration[]
    budgetConfigurationId string
    The ID of the budget configuration.
    createTime number
    displayName string
    Name of the budget in Databricks Account.
    filter BudgetFilter
    updateTime number
    account_id str
    The ID of the Databricks Account.
    alert_configurations Sequence[BudgetAlertConfigurationArgs]
    budget_configuration_id str
    The ID of the budget configuration.
    create_time int
    display_name str
    Name of the budget in Databricks Account.
    filter BudgetFilterArgs
    update_time int
    accountId String
    The ID of the Databricks Account.
    alertConfigurations List<Property Map>
    budgetConfigurationId String
    The ID of the budget configuration.
    createTime Number
    displayName String
    Name of the budget in Databricks Account.
    filter Property Map
    updateTime Number

    Supporting Types

    BudgetAlertConfiguration, BudgetAlertConfigurationArgs

    ActionConfigurations List<BudgetAlertConfigurationActionConfiguration>
    List of action configurations to take when the budget alert is triggered. Consists of the following fields:
    AlertConfigurationId string
    QuantityThreshold string
    The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on quantity_type.
    QuantityType string
    The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum: LIST_PRICE_DOLLARS_USD)
    TimePeriod string
    The time window of usage data for the budget. (Enum: MONTH)
    TriggerType string
    The evaluation method to determine when this budget alert is in a triggered state. (Enum: CUMULATIVE_SPENDING_EXCEEDED)
    ActionConfigurations []BudgetAlertConfigurationActionConfiguration
    List of action configurations to take when the budget alert is triggered. Consists of the following fields:
    AlertConfigurationId string
    QuantityThreshold string
    The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on quantity_type.
    QuantityType string
    The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum: LIST_PRICE_DOLLARS_USD)
    TimePeriod string
    The time window of usage data for the budget. (Enum: MONTH)
    TriggerType string
    The evaluation method to determine when this budget alert is in a triggered state. (Enum: CUMULATIVE_SPENDING_EXCEEDED)
    actionConfigurations List<BudgetAlertConfigurationActionConfiguration>
    List of action configurations to take when the budget alert is triggered. Consists of the following fields:
    alertConfigurationId String
    quantityThreshold String
    The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on quantity_type.
    quantityType String
    The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum: LIST_PRICE_DOLLARS_USD)
    timePeriod String
    The time window of usage data for the budget. (Enum: MONTH)
    triggerType String
    The evaluation method to determine when this budget alert is in a triggered state. (Enum: CUMULATIVE_SPENDING_EXCEEDED)
    actionConfigurations BudgetAlertConfigurationActionConfiguration[]
    List of action configurations to take when the budget alert is triggered. Consists of the following fields:
    alertConfigurationId string
    quantityThreshold string
    The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on quantity_type.
    quantityType string
    The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum: LIST_PRICE_DOLLARS_USD)
    timePeriod string
    The time window of usage data for the budget. (Enum: MONTH)
    triggerType string
    The evaluation method to determine when this budget alert is in a triggered state. (Enum: CUMULATIVE_SPENDING_EXCEEDED)
    action_configurations Sequence[BudgetAlertConfigurationActionConfiguration]
    List of action configurations to take when the budget alert is triggered. Consists of the following fields:
    alert_configuration_id str
    quantity_threshold str
    The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on quantity_type.
    quantity_type str
    The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum: LIST_PRICE_DOLLARS_USD)
    time_period str
    The time window of usage data for the budget. (Enum: MONTH)
    trigger_type str
    The evaluation method to determine when this budget alert is in a triggered state. (Enum: CUMULATIVE_SPENDING_EXCEEDED)
    actionConfigurations List<Property Map>
    List of action configurations to take when the budget alert is triggered. Consists of the following fields:
    alertConfigurationId String
    quantityThreshold String
    The threshold for the budget alert to determine if it is in a triggered state. The number is evaluated based on quantity_type.
    quantityType String
    The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum: LIST_PRICE_DOLLARS_USD)
    timePeriod String
    The time window of usage data for the budget. (Enum: MONTH)
    triggerType String
    The evaluation method to determine when this budget alert is in a triggered state. (Enum: CUMULATIVE_SPENDING_EXCEEDED)

    BudgetAlertConfigurationActionConfiguration, BudgetAlertConfigurationActionConfigurationArgs

    ActionConfigurationId string
    ActionType string
    The type of action to take when the budget alert is triggered. (Enum: EMAIL_NOTIFICATION)
    Target string
    The target of the action. For EMAIL_NOTIFICATION, this is the email address to send the notification to.
    ActionConfigurationId string
    ActionType string
    The type of action to take when the budget alert is triggered. (Enum: EMAIL_NOTIFICATION)
    Target string
    The target of the action. For EMAIL_NOTIFICATION, this is the email address to send the notification to.
    actionConfigurationId String
    actionType String
    The type of action to take when the budget alert is triggered. (Enum: EMAIL_NOTIFICATION)
    target String
    The target of the action. For EMAIL_NOTIFICATION, this is the email address to send the notification to.
    actionConfigurationId string
    actionType string
    The type of action to take when the budget alert is triggered. (Enum: EMAIL_NOTIFICATION)
    target string
    The target of the action. For EMAIL_NOTIFICATION, this is the email address to send the notification to.
    action_configuration_id str
    action_type str
    The type of action to take when the budget alert is triggered. (Enum: EMAIL_NOTIFICATION)
    target str
    The target of the action. For EMAIL_NOTIFICATION, this is the email address to send the notification to.
    actionConfigurationId String
    actionType String
    The type of action to take when the budget alert is triggered. (Enum: EMAIL_NOTIFICATION)
    target String
    The target of the action. For EMAIL_NOTIFICATION, this is the email address to send the notification to.

    BudgetFilter, BudgetFilterArgs

    Tags List<BudgetFilterTag>
    List of tags to filter by. Consists of the following fields:
    WorkspaceId BudgetFilterWorkspaceId
    Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
    Tags []BudgetFilterTag
    List of tags to filter by. Consists of the following fields:
    WorkspaceId BudgetFilterWorkspaceId
    Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
    tags List<BudgetFilterTag>
    List of tags to filter by. Consists of the following fields:
    workspaceId BudgetFilterWorkspaceId
    Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
    tags BudgetFilterTag[]
    List of tags to filter by. Consists of the following fields:
    workspaceId BudgetFilterWorkspaceId
    Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
    tags Sequence[BudgetFilterTag]
    List of tags to filter by. Consists of the following fields:
    workspace_id BudgetFilterWorkspaceId
    Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
    tags List<Property Map>
    List of tags to filter by. Consists of the following fields:
    workspaceId Property Map
    Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:

    BudgetFilterTag, BudgetFilterTagArgs

    Key string
    The key of the tag.
    Value BudgetFilterTagValue
    Consists of the following fields:
    Key string
    The key of the tag.
    Value BudgetFilterTagValue
    Consists of the following fields:
    key String
    The key of the tag.
    value BudgetFilterTagValue
    Consists of the following fields:
    key string
    The key of the tag.
    value BudgetFilterTagValue
    Consists of the following fields:
    key str
    The key of the tag.
    value BudgetFilterTagValue
    Consists of the following fields:
    key String
    The key of the tag.
    value Property Map
    Consists of the following fields:

    BudgetFilterTagValue, BudgetFilterTagValueArgs

    Operator string
    The operator to use for the filter. (Enum: IN)
    Values List<string>
    The values to filter by.
    Operator string
    The operator to use for the filter. (Enum: IN)
    Values []string
    The values to filter by.
    operator String
    The operator to use for the filter. (Enum: IN)
    values List<String>
    The values to filter by.
    operator string
    The operator to use for the filter. (Enum: IN)
    values string[]
    The values to filter by.
    operator str
    The operator to use for the filter. (Enum: IN)
    values Sequence[str]
    The values to filter by.
    operator String
    The operator to use for the filter. (Enum: IN)
    values List<String>
    The values to filter by.

    BudgetFilterWorkspaceId, BudgetFilterWorkspaceIdArgs

    Operator string
    The operator to use for the filter. (Enum: IN)
    Values List<int>
    The values to filter by.
    Operator string
    The operator to use for the filter. (Enum: IN)
    Values []int
    The values to filter by.
    operator String
    The operator to use for the filter. (Enum: IN)
    values List<Integer>
    The values to filter by.
    operator string
    The operator to use for the filter. (Enum: IN)
    values number[]
    The values to filter by.
    operator str
    The operator to use for the filter. (Enum: IN)
    values Sequence[int]
    The values to filter by.
    operator String
    The operator to use for the filter. (Enum: IN)
    values List<Number>
    The values to filter by.

    Import

    This resource can be imported by Databricks account ID and Budget.

    $ pulumi import databricks:index/budget:Budget this '<account_id>|<budget_configuration_id>'
    

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

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi