databricks.Budget
Explore with Pulumi AI
Initialize provider with
alias = "account"
, andhost
pointing to the account URL, like,host = "https://accounts.cloud.databricks.com"
. Useprovider = 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
Related Resources
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:
- Account
Id string - The ID of the Databricks Account.
- Alert
Configurations List<BudgetAlert Configuration> - Budget
Configuration stringId - The ID of the budget configuration.
- Create
Time int - Display
Name string - Name of the budget in Databricks Account.
- Filter
Budget
Filter - Update
Time int
- Account
Id string - The ID of the Databricks Account.
- Alert
Configurations []BudgetAlert Configuration Args - Budget
Configuration stringId - The ID of the budget configuration.
- Create
Time int - Display
Name string - Name of the budget in Databricks Account.
- Filter
Budget
Filter Args - Update
Time int
- account
Id String - The ID of the Databricks Account.
- alert
Configurations List<BudgetAlert Configuration> - budget
Configuration StringId - The ID of the budget configuration.
- create
Time Integer - display
Name String - Name of the budget in Databricks Account.
- filter
Budget
Filter - update
Time Integer
- account
Id string - The ID of the Databricks Account.
- alert
Configurations BudgetAlert Configuration[] - budget
Configuration stringId - The ID of the budget configuration.
- create
Time number - display
Name string - Name of the budget in Databricks Account.
- filter
Budget
Filter - update
Time number
- account_
id str - The ID of the Databricks Account.
- alert_
configurations Sequence[BudgetAlert Configuration Args] - budget_
configuration_ strid - The ID of the budget configuration.
- create_
time int - display_
name str - Name of the budget in Databricks Account.
- filter
Budget
Filter Args - update_
time int
- account
Id String - The ID of the Databricks Account.
- alert
Configurations List<Property Map> - budget
Configuration StringId - The ID of the budget configuration.
- create
Time Number - display
Name String - Name of the budget in Databricks Account.
- filter Property Map
- update
Time 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.
- Account
Id string - The ID of the Databricks Account.
- Alert
Configurations List<BudgetAlert Configuration> - Budget
Configuration stringId - The ID of the budget configuration.
- Create
Time int - Display
Name string - Name of the budget in Databricks Account.
- Filter
Budget
Filter - Update
Time int
- Account
Id string - The ID of the Databricks Account.
- Alert
Configurations []BudgetAlert Configuration Args - Budget
Configuration stringId - The ID of the budget configuration.
- Create
Time int - Display
Name string - Name of the budget in Databricks Account.
- Filter
Budget
Filter Args - Update
Time int
- account
Id String - The ID of the Databricks Account.
- alert
Configurations List<BudgetAlert Configuration> - budget
Configuration StringId - The ID of the budget configuration.
- create
Time Integer - display
Name String - Name of the budget in Databricks Account.
- filter
Budget
Filter - update
Time Integer
- account
Id string - The ID of the Databricks Account.
- alert
Configurations BudgetAlert Configuration[] - budget
Configuration stringId - The ID of the budget configuration.
- create
Time number - display
Name string - Name of the budget in Databricks Account.
- filter
Budget
Filter - update
Time number
- account_
id str - The ID of the Databricks Account.
- alert_
configurations Sequence[BudgetAlert Configuration Args] - budget_
configuration_ strid - The ID of the budget configuration.
- create_
time int - display_
name str - Name of the budget in Databricks Account.
- filter
Budget
Filter Args - update_
time int
- account
Id String - The ID of the Databricks Account.
- alert
Configurations List<Property Map> - budget
Configuration StringId - The ID of the budget configuration.
- create
Time Number - display
Name String - Name of the budget in Databricks Account.
- filter Property Map
- update
Time Number
Supporting Types
BudgetAlertConfiguration, BudgetAlertConfigurationArgs
- Action
Configurations List<BudgetAlert Configuration Action Configuration> - List of action configurations to take when the budget alert is triggered. Consists of the following fields:
- Alert
Configuration stringId - Quantity
Threshold string - 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 string - The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum:
LIST_PRICE_DOLLARS_USD
) - Time
Period string - The time window of usage data for the budget. (Enum:
MONTH
) - Trigger
Type string - The evaluation method to determine when this budget alert is in a triggered state. (Enum:
CUMULATIVE_SPENDING_EXCEEDED
)
- Action
Configurations []BudgetAlert Configuration Action Configuration - List of action configurations to take when the budget alert is triggered. Consists of the following fields:
- Alert
Configuration stringId - Quantity
Threshold string - 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 string - The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum:
LIST_PRICE_DOLLARS_USD
) - Time
Period string - The time window of usage data for the budget. (Enum:
MONTH
) - Trigger
Type string - The evaluation method to determine when this budget alert is in a triggered state. (Enum:
CUMULATIVE_SPENDING_EXCEEDED
)
- action
Configurations List<BudgetAlert Configuration Action Configuration> - List of action configurations to take when the budget alert is triggered. Consists of the following fields:
- alert
Configuration StringId - quantity
Threshold String - 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 String - The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum:
LIST_PRICE_DOLLARS_USD
) - time
Period String - The time window of usage data for the budget. (Enum:
MONTH
) - trigger
Type String - The evaluation method to determine when this budget alert is in a triggered state. (Enum:
CUMULATIVE_SPENDING_EXCEEDED
)
- action
Configurations BudgetAlert Configuration Action Configuration[] - List of action configurations to take when the budget alert is triggered. Consists of the following fields:
- alert
Configuration stringId - quantity
Threshold string - 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 string - The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum:
LIST_PRICE_DOLLARS_USD
) - time
Period string - The time window of usage data for the budget. (Enum:
MONTH
) - trigger
Type string - The evaluation method to determine when this budget alert is in a triggered state. (Enum:
CUMULATIVE_SPENDING_EXCEEDED
)
- action_
configurations Sequence[BudgetAlert Configuration Action Configuration] - List of action configurations to take when the budget alert is triggered. Consists of the following fields:
- alert_
configuration_ strid - 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
)
- action
Configurations List<Property Map> - List of action configurations to take when the budget alert is triggered. Consists of the following fields:
- alert
Configuration StringId - quantity
Threshold String - 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 String - The way to calculate cost for this budget alert. This is what quantity_threshold is measured in. (Enum:
LIST_PRICE_DOLLARS_USD
) - time
Period String - The time window of usage data for the budget. (Enum:
MONTH
) - trigger
Type String - The evaluation method to determine when this budget alert is in a triggered state. (Enum:
CUMULATIVE_SPENDING_EXCEEDED
)
BudgetAlertConfigurationActionConfiguration, BudgetAlertConfigurationActionConfigurationArgs
- Action
Configuration stringId - Action
Type 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 stringId - Action
Type 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 StringId - action
Type 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 stringId - action
Type 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_ strid - 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.
- action
Configuration StringId - action
Type 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
- List<Budget
Filter Tag> - List of tags to filter by. Consists of the following fields:
- Workspace
Id BudgetFilter Workspace Id - Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
- []Budget
Filter Tag - List of tags to filter by. Consists of the following fields:
- Workspace
Id BudgetFilter Workspace Id - Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
- List<Budget
Filter Tag> - List of tags to filter by. Consists of the following fields:
- workspace
Id BudgetFilter Workspace Id - Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
- Budget
Filter Tag[] - List of tags to filter by. Consists of the following fields:
- workspace
Id BudgetFilter Workspace Id - Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
- Sequence[Budget
Filter Tag] - List of tags to filter by. Consists of the following fields:
- workspace_
id BudgetFilter Workspace Id - Filter by workspace ID (if empty, include usage all usage for this account). Consists of the following fields:
- List<Property Map>
- List of tags to filter by. Consists of the following fields:
- workspace
Id 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
Budget
Filter Tag Value - Consists of the following fields:
- Key string
- The key of the tag.
- Value
Budget
Filter Tag Value - Consists of the following fields:
- key String
- The key of the tag.
- value
Budget
Filter Tag Value - Consists of the following fields:
- key string
- The key of the tag.
- value
Budget
Filter Tag Value - Consists of the following fields:
- key str
- The key of the tag.
- value
Budget
Filter Tag Value - Consists of the following fields:
- key String
- The key of the tag.
- value Property Map
- Consists of the following fields:
BudgetFilterTagValue, BudgetFilterTagValueArgs
BudgetFilterWorkspaceId, BudgetFilterWorkspaceIdArgs
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.