Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: added example for awscc_billingconductor_custom_line_item #1862

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 27 additions & 3 deletions docs/resources/billingconductor_custom_line_item.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "awscc_billingconductor_custom_line_item Resource - terraform-provider-awscc"
subcategory: ""
description: |-
Expand All @@ -10,7 +9,32 @@ description: |-

A custom line item is an one time charge that is applied to a specific billing group's bill.


## Example Usage

```terraform
resource "awscc_billingconductor_custom_line_item" "example" {
billing_group_arn = awscc_billingconductor_billing_group.example.arn
name = "example"
description = "Example description"
account_id = "123456789012"
custom_line_item_charge_details = {
flat = {
charge_value = 1
}
type = "FEE"
}
billing_period_range = {
inclusive_start_billing_period = "2024-07"
}
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]

}
```

<!-- schema generated by tfplugindocs -->
## Schema
Expand Down Expand Up @@ -105,4 +129,4 @@ Import is supported using the following syntax:

```shell
$ terraform import awscc_billingconductor_custom_line_item.example <resource ID>
```
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
resource "awscc_billingconductor_custom_line_item" "example" {
billing_group_arn = awscc_billingconductor_billing_group.example.arn
name = "example"
description = "Example description"
account_id = "123456789012"
custom_line_item_charge_details = {
flat = {
charge_value = 1
}
type = "FEE"
}
billing_period_range = {
inclusive_start_billing_period = "2024-07"
}
tags = [
{
key = "Modified By"
value = "AWSCC"
}
]

}
25 changes: 25 additions & 0 deletions templates/resources/billingconductor_custom_line_item.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}"
subcategory: ""
description: |-
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
---

# {{.Name}} ({{.Type}})

{{ .Description | trimspace }}

## Example Usage

{{ tffile (printf "examples/resources/%s/billingconductor_custom_line_item.tf" .Name)}}

{{ .SchemaMarkdown | trimspace }}
{{- if .HasImport }}

## Import

Import is supported using the following syntax:

{{ codefile "shell" .ImportFile }}

{{- end }}
Loading