Fork me on GitHub

Module budgets

@pulumi/aws > budgets

Index

budgets/budget.ts

class Budget

Provides a budgets budget resource. Budgets use the cost visualisation provided by Cost Explorer to show you the status of your budgets, to provide forecasts of your estimated costs, and to track your AWS usage, including your free tier usage.

constructor

new Budget(name: string, args: BudgetArgs, opts?: pulumi.CustomResourceOptions)

Create a Budget resource with the given unique name, arguments, and options.

  • name The unique name of the resource.
  • args The arguments to use to populate this resource's properties.
  • opts A bag of options that control this resource's behavior.

method get

public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: BudgetState): Budget

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

method getProvider

getProvider(moduleMember: string): ProviderResource | undefined

method isInstance

static isInstance(obj: any): boolean

Returns true if the given object is an instance of CustomResource. This is designed to work even when multiple copies of the Pulumi SDK have been loaded into the same process.

property accountId

public accountId: pulumi.Output<string>;

The ID of the target account for budget. Will use current user’s account_id by default if omitted.

property budgetType

public budgetType: pulumi.Output<string>;

Whether this budget tracks monetary cost or usage.

property costFilters

public costFilters: pulumi.Output<{ ... }>;

Map of CostFilters key/value pairs to apply to the budget.

property costTypes

public costTypes: pulumi.Output<{ ... }>;

Object containing CostTypes The types of cost included in a budget, such as tax and subscriptions..

property id

id: Output<ID>;

id is the provider-assigned unique ID for this managed resource. It is set during deployments and may be missing (undefined) during planning phases.

property limitAmount

public limitAmount: pulumi.Output<string>;

The amount of cost or usage being measured for a budget.

property limitUnit

public limitUnit: pulumi.Output<string>;

The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation.

property name

public name: pulumi.Output<string>;

The name of a budget. Unique within accounts.

property namePrefix

public namePrefix: pulumi.Output<string>;

The prefix of the name of a budget. Unique within accounts.

property timePeriodEnd

public timePeriodEnd: pulumi.Output<string | undefined>;

The end of the time period covered by the budget. There are no restrictions on the end date. Format: 2017-01-01_12:00.

property timePeriodStart

public timePeriodStart: pulumi.Output<string>;

The start of the time period covered by the budget. The start date must come before the end date. Format: 2017-01-01_12:00.

property timeUnit

public timeUnit: pulumi.Output<string>;

The length of time until a budget resets the actual and forecasted spend. Valid values: MONTHLY, QUARTERLY, ANNUALLY.

property urn

urn: Output<URN>;

urn is the stable logical URN used to distinctly address a resource, both before and after deployments.

interface BudgetArgs

The set of arguments for constructing a Budget resource.

property accountId

accountId?: pulumi.Input<string>;

The ID of the target account for budget. Will use current user’s account_id by default if omitted.

property budgetType

budgetType: pulumi.Input<string>;

Whether this budget tracks monetary cost or usage.

property costFilters

costFilters?: pulumi.Input<{ ... }>;

Map of CostFilters key/value pairs to apply to the budget.

property costTypes

costTypes?: pulumi.Input<{ ... }>;

Object containing CostTypes The types of cost included in a budget, such as tax and subscriptions..

property limitAmount

limitAmount: pulumi.Input<string>;

The amount of cost or usage being measured for a budget.

property limitUnit

limitUnit: pulumi.Input<string>;

The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation.

property name

name?: pulumi.Input<string>;

The name of a budget. Unique within accounts.

property namePrefix

namePrefix?: pulumi.Input<string>;

The prefix of the name of a budget. Unique within accounts.

property timePeriodEnd

timePeriodEnd?: pulumi.Input<string>;

The end of the time period covered by the budget. There are no restrictions on the end date. Format: 2017-01-01_12:00.

property timePeriodStart

timePeriodStart: pulumi.Input<string>;

The start of the time period covered by the budget. The start date must come before the end date. Format: 2017-01-01_12:00.

property timeUnit

timeUnit: pulumi.Input<string>;

The length of time until a budget resets the actual and forecasted spend. Valid values: MONTHLY, QUARTERLY, ANNUALLY.

interface BudgetState

Input properties used for looking up and filtering Budget resources.

property accountId

accountId?: pulumi.Input<string>;

The ID of the target account for budget. Will use current user’s account_id by default if omitted.

property budgetType

budgetType?: pulumi.Input<string>;

Whether this budget tracks monetary cost or usage.

property costFilters

costFilters?: pulumi.Input<{ ... }>;

Map of CostFilters key/value pairs to apply to the budget.

property costTypes

costTypes?: pulumi.Input<{ ... }>;

Object containing CostTypes The types of cost included in a budget, such as tax and subscriptions..

property limitAmount

limitAmount?: pulumi.Input<string>;

The amount of cost or usage being measured for a budget.

property limitUnit

limitUnit?: pulumi.Input<string>;

The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation.

property name

name?: pulumi.Input<string>;

The name of a budget. Unique within accounts.

property namePrefix

namePrefix?: pulumi.Input<string>;

The prefix of the name of a budget. Unique within accounts.

property timePeriodEnd

timePeriodEnd?: pulumi.Input<string>;

The end of the time period covered by the budget. There are no restrictions on the end date. Format: 2017-01-01_12:00.

property timePeriodStart

timePeriodStart?: pulumi.Input<string>;

The start of the time period covered by the budget. The start date must come before the end date. Format: 2017-01-01_12:00.

property timeUnit

timeUnit?: pulumi.Input<string>;

The length of time until a budget resets the actual and forecasted spend. Valid values: MONTHLY, QUARTERLY, ANNUALLY.