-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
needs tests. bump vantage-go examples tf fmt cleanup
- Loading branch information
Showing
12 changed files
with
615 additions
and
515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "vantage_budgets Data Source - terraform-provider-vantage" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# vantage_budgets (Data Source) | ||
|
||
|
||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Read-Only | ||
|
||
- `budgets` (Attributes List) (see [below for nested schema](#nestedatt--budgets)) | ||
|
||
<a id="nestedatt--budgets"></a> | ||
### Nested Schema for `budgets` | ||
|
||
Read-Only: | ||
|
||
- `budget_alert_tokens` (List of String) The tokens of the BudgetAlerts associated with the Budget. | ||
- `cost_report_token` (String) The token of the Report associated with the Budget. | ||
- `created_at` (String) The date and time, in UTC, the Budget was created. ISO 8601 Formatted. | ||
- `name` (String) The name of the Budget. | ||
- `performance` (Attributes List) The historical performance of the Budget. (see [below for nested schema](#nestedatt--budgets--performance)) | ||
- `periods` (Attributes List) The budget periods associated with the Budget. (see [below for nested schema](#nestedatt--budgets--periods)) | ||
- `token` (String) | ||
- `user_token` (String) The token for the User who created this Budget. | ||
- `workspace_token` (String) The token for the Workspace the Budget is a part of. | ||
|
||
<a id="nestedatt--budgets--performance"></a> | ||
### Nested Schema for `budgets.performance` | ||
|
||
Read-Only: | ||
|
||
- `actual` (String) The date and time, in UTC, the Budget was created. ISO 8601 Formatted. | ||
- `amount` (String) The amount of the Budget Period as a string to ensure precision. | ||
- `date` (String) The date and time, in UTC, the Budget was created. ISO 8601 Formatted. | ||
|
||
|
||
<a id="nestedatt--budgets--periods"></a> | ||
### Nested Schema for `budgets.periods` | ||
|
||
Read-Only: | ||
|
||
- `amount` (String) The amount of the Budget Period as a string to ensure precision. | ||
- `end_at` (String) The date and time, in UTC, the Budget was created. ISO 8601 Formatted. | ||
- `start_at` (String) The date and time, in UTC, the Budget was created. ISO 8601 Formatted. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "vantage_budget Resource - terraform-provider-vantage" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# vantage_budget (Resource) | ||
|
||
|
||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the Budget. | ||
|
||
### Optional | ||
|
||
- `cost_report_token` (String) The CostReport token. | ||
- `periods` (Attributes List) The periods for the Budget. The start_at and end_at must be iso8601 formatted e.g. YYYY-MM-DD. (see [below for nested schema](#nestedatt--periods)) | ||
- `workspace_token` (String) The token of the Workspace to add the Budget to. | ||
|
||
### Read-Only | ||
|
||
- `budget_alert_tokens` (List of String) The tokens of the BudgetAlerts associated with the Budget. | ||
- `created_at` (String) The date and time, in UTC, the Budget was created. ISO 8601 Formatted. | ||
- `performance` (Attributes List) The historical performance of the Budget. (see [below for nested schema](#nestedatt--performance)) | ||
- `token` (String) The token of the budget | ||
- `user_token` (String) The token for the User who created this Budget. | ||
|
||
<a id="nestedatt--periods"></a> | ||
### Nested Schema for `periods` | ||
|
||
Required: | ||
|
||
- `amount` (Number) The amount of the period. | ||
- `start_at` (String) The start date of the period. | ||
|
||
Optional: | ||
|
||
- `end_at` (String) The end date of the period. | ||
|
||
|
||
<a id="nestedatt--performance"></a> | ||
### Nested Schema for `performance` | ||
|
||
Read-Only: | ||
|
||
- `actual` (String) The date and time, in UTC, the Budget was created. ISO 8601 Formatted. | ||
- `amount` (String) The amount of the Budget Period as a string to ensure precision. | ||
- `date` (String) The date and time, in UTC, the Budget was created. ISO 8601 Formatted. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
data "vantage_budgets" "all" {} | ||
|
||
output "all_budgets" { | ||
value = data.vantage_budgets.all | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
resource "vantage_budget" "demo_budget" { | ||
name = "Demo Budget" | ||
cost_report_token = vantage_cost_report.demo_report.token | ||
periods = [ | ||
{ | ||
start_at = "2023-12-01" | ||
end_at = "2024-01-01" | ||
amount = 1000 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.