This page documents the language specification for the aws package. If you're looking for help working with the inputs, outputs, or functions of aws resources in a Pulumi program, please see the resource documentation for examples and API reference.
budgets¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-aws repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-aws repo.
- class
pulumi_aws.budgets.Budget(resource_name, opts=None, account_id=None, budget_type=None, cost_filters=None, cost_types=None, limit_amount=None, limit_unit=None, name=None, name_prefix=None, notifications=None, time_period_end=None, time_period_start=None, time_unit=None, __props__=None, __name__=None, __opts__=None)¶ 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.
import pulumi import pulumi_aws as aws ec2 = aws.budgets.Budget("ec2", budget_type="COST", cost_filters={ "Service": "Amazon Elastic Compute Cloud - Compute", }, limit_amount="1200", limit_unit="USD", notifications=[{ "comparison_operator": "GREATER_THAN", "notification_type": "FORECASTED", "subscriberEmailAddresses": ["test@example.com"], "threshold": 100, "thresholdType": "PERCENTAGE", }], time_period_end="2087-06-15_00:00", time_period_start="2017-07-01_00:00", time_unit="MONTHLY")
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
account_id (pulumi.Input[str]) – The ID of the target account for budget. Will use current user’s account_id by default if omitted.
budget_type (pulumi.Input[str]) – Whether this budget tracks monetary cost or usage.
cost_filters (pulumi.Input[dict]) – Map of CostFilters key/value pairs to apply to the budget.
cost_types (pulumi.Input[dict]) – Object containing CostTypes The types of cost included in a budget, such as tax and subscriptions..
limit_amount (pulumi.Input[str]) – The amount of cost or usage being measured for a budget.
limit_unit (pulumi.Input[str]) – The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation.
name (pulumi.Input[str]) – The name of a budget. Unique within accounts.
name_prefix (pulumi.Input[str]) – The prefix of the name of a budget. Unique within accounts.
notifications (pulumi.Input[list]) – Object containing Budget Notifications. Can be used multiple times to define more than one budget notification
time_period_end (pulumi.Input[str]) – The end of the time period covered by the budget. There are no restrictions on the end date. Format:
2017-01-01_12:00.time_period_start (pulumi.Input[str]) – 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.time_unit (pulumi.Input[str]) – The length of time until a budget resets the actual and forecasted spend. Valid values:
MONTHLY,QUARTERLY,ANNUALLY.
The cost_types object supports the following:
includeCredit(pulumi.Input[bool]) - A boolean value whether to include credits in the cost budget. Defaults totrueincludeDiscount(pulumi.Input[bool]) - Specifies whether a budget includes discounts. Defaults totrueincludeOtherSubscription(pulumi.Input[bool]) - A boolean value whether to include other subscription costs in the cost budget. Defaults totrueincludeRecurring(pulumi.Input[bool]) - A boolean value whether to include recurring costs in the cost budget. Defaults totrueincludeRefund(pulumi.Input[bool]) - A boolean value whether to include refunds in the cost budget. Defaults totrueincludeSubscription(pulumi.Input[bool]) - A boolean value whether to include subscriptions in the cost budget. Defaults totrueincludeSupport(pulumi.Input[bool]) - A boolean value whether to include support costs in the cost budget. Defaults totrueincludeTax(pulumi.Input[bool]) - A boolean value whether to include tax in the cost budget. Defaults totrueincludeUpfront(pulumi.Input[bool]) - A boolean value whether to include upfront costs in the cost budget. Defaults totrueuseAmortized(pulumi.Input[bool]) - Specifies whether a budget uses the amortized rate. Defaults tofalseuseBlended(pulumi.Input[bool]) - A boolean value whether to use blended costs in the cost budget. Defaults tofalse
The notifications object supports the following:
comparison_operator(pulumi.Input[str]) - (Required) Comparison operator to use to evaluate the condition. Can beLESS_THAN,EQUAL_TOorGREATER_THAN.notification_type(pulumi.Input[str]) - (Required) What kind of budget value to notify on. Can beACTUALorFORECASTEDsubscriberEmailAddresses(pulumi.Input[list]) - (Optional) E-Mail addresses to notify. Either this orsubscriber_sns_topic_arnsis required.subscriberSnsTopicArns(pulumi.Input[list]) - (Optional) SNS topics to notify. Either this orsubscriber_email_addressesis required.threshold(pulumi.Input[float]) - (Required) Threshold when the notification should be sent.thresholdType(pulumi.Input[str]) - (Required) What kind of threshold is defined. Can bePERCENTAGEORABSOLUTE_VALUE.
account_id: pulumi.Output[str] = None¶The ID of the target account for budget. Will use current user’s account_id by default if omitted.
budget_type: pulumi.Output[str] = None¶Whether this budget tracks monetary cost or usage.
cost_filters: pulumi.Output[dict] = None¶Map of CostFilters key/value pairs to apply to the budget.
cost_types: pulumi.Output[dict] = None¶Object containing CostTypes The types of cost included in a budget, such as tax and subscriptions..
includeCredit(bool) - A boolean value whether to include credits in the cost budget. Defaults totrueincludeDiscount(bool) - Specifies whether a budget includes discounts. Defaults totrueincludeOtherSubscription(bool) - A boolean value whether to include other subscription costs in the cost budget. Defaults totrueincludeRecurring(bool) - A boolean value whether to include recurring costs in the cost budget. Defaults totrueincludeRefund(bool) - A boolean value whether to include refunds in the cost budget. Defaults totrueincludeSubscription(bool) - A boolean value whether to include subscriptions in the cost budget. Defaults totrueincludeSupport(bool) - A boolean value whether to include support costs in the cost budget. Defaults totrueincludeTax(bool) - A boolean value whether to include tax in the cost budget. Defaults totrueincludeUpfront(bool) - A boolean value whether to include upfront costs in the cost budget. Defaults totrueuseAmortized(bool) - Specifies whether a budget uses the amortized rate. Defaults tofalseuseBlended(bool) - A boolean value whether to use blended costs in the cost budget. Defaults tofalse
limit_amount: pulumi.Output[str] = None¶The amount of cost or usage being measured for a budget.
limit_unit: pulumi.Output[str] = None¶The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation.
name: pulumi.Output[str] = None¶The name of a budget. Unique within accounts.
name_prefix: pulumi.Output[str] = None¶The prefix of the name of a budget. Unique within accounts.
notifications: pulumi.Output[list] = None¶Object containing Budget Notifications. Can be used multiple times to define more than one budget notification
comparison_operator(str) - (Required) Comparison operator to use to evaluate the condition. Can beLESS_THAN,EQUAL_TOorGREATER_THAN.notification_type(str) - (Required) What kind of budget value to notify on. Can beACTUALorFORECASTEDsubscriberEmailAddresses(list) - (Optional) E-Mail addresses to notify. Either this orsubscriber_sns_topic_arnsis required.subscriberSnsTopicArns(list) - (Optional) SNS topics to notify. Either this orsubscriber_email_addressesis required.threshold(float) - (Required) Threshold when the notification should be sent.thresholdType(str) - (Required) What kind of threshold is defined. Can bePERCENTAGEORABSOLUTE_VALUE.
time_period_end: pulumi.Output[str] = None¶The end of the time period covered by the budget. There are no restrictions on the end date. Format:
2017-01-01_12:00.
time_period_start: pulumi.Output[str] = None¶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.
time_unit: pulumi.Output[str] = None¶The length of time until a budget resets the actual and forecasted spend. Valid values:
MONTHLY,QUARTERLY,ANNUALLY.
- static
get(resource_name, id, opts=None, account_id=None, budget_type=None, cost_filters=None, cost_types=None, limit_amount=None, limit_unit=None, name=None, name_prefix=None, notifications=None, time_period_end=None, time_period_start=None, time_unit=None)¶ Get an existing Budget resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
account_id (pulumi.Input[str]) – The ID of the target account for budget. Will use current user’s account_id by default if omitted.
budget_type (pulumi.Input[str]) – Whether this budget tracks monetary cost or usage.
cost_filters (pulumi.Input[dict]) – Map of CostFilters key/value pairs to apply to the budget.
cost_types (pulumi.Input[dict]) – Object containing CostTypes The types of cost included in a budget, such as tax and subscriptions..
limit_amount (pulumi.Input[str]) – The amount of cost or usage being measured for a budget.
limit_unit (pulumi.Input[str]) –
The unit of measurement used for the budget forecast, actual spend, or budget threshold, such as dollars or GB. See Spend documentation.
name (pulumi.Input[str]) – The name of a budget. Unique within accounts.
name_prefix (pulumi.Input[str]) – The prefix of the name of a budget. Unique within accounts.
notifications (pulumi.Input[list]) – Object containing Budget Notifications. Can be used multiple times to define more than one budget notification
time_period_end (pulumi.Input[str]) – The end of the time period covered by the budget. There are no restrictions on the end date. Format:
2017-01-01_12:00.time_period_start (pulumi.Input[str]) – 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.time_unit (pulumi.Input[str]) – The length of time until a budget resets the actual and forecasted spend. Valid values:
MONTHLY,QUARTERLY,ANNUALLY.
The cost_types object supports the following:
includeCredit(pulumi.Input[bool]) - A boolean value whether to include credits in the cost budget. Defaults totrueincludeDiscount(pulumi.Input[bool]) - Specifies whether a budget includes discounts. Defaults totrueincludeOtherSubscription(pulumi.Input[bool]) - A boolean value whether to include other subscription costs in the cost budget. Defaults totrueincludeRecurring(pulumi.Input[bool]) - A boolean value whether to include recurring costs in the cost budget. Defaults totrueincludeRefund(pulumi.Input[bool]) - A boolean value whether to include refunds in the cost budget. Defaults totrueincludeSubscription(pulumi.Input[bool]) - A boolean value whether to include subscriptions in the cost budget. Defaults totrueincludeSupport(pulumi.Input[bool]) - A boolean value whether to include support costs in the cost budget. Defaults totrueincludeTax(pulumi.Input[bool]) - A boolean value whether to include tax in the cost budget. Defaults totrueincludeUpfront(pulumi.Input[bool]) - A boolean value whether to include upfront costs in the cost budget. Defaults totrueuseAmortized(pulumi.Input[bool]) - Specifies whether a budget uses the amortized rate. Defaults tofalseuseBlended(pulumi.Input[bool]) - A boolean value whether to use blended costs in the cost budget. Defaults tofalse
The notifications object supports the following:
comparison_operator(pulumi.Input[str]) - (Required) Comparison operator to use to evaluate the condition. Can beLESS_THAN,EQUAL_TOorGREATER_THAN.notification_type(pulumi.Input[str]) - (Required) What kind of budget value to notify on. Can beACTUALorFORECASTEDsubscriberEmailAddresses(pulumi.Input[list]) - (Optional) E-Mail addresses to notify. Either this orsubscriber_sns_topic_arnsis required.subscriberSnsTopicArns(pulumi.Input[list]) - (Optional) SNS topics to notify. Either this orsubscriber_email_addressesis required.threshold(pulumi.Input[float]) - (Required) Threshold when the notification should be sent.thresholdType(pulumi.Input[str]) - (Required) What kind of threshold is defined. Can bePERCENTAGEORABSOLUTE_VALUE.
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str