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_iot_billing_group #1761

Merged
Merged
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
17 changes: 15 additions & 2 deletions docs/resources/iot_billing_group.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_iot_billing_group Resource - terraform-provider-awscc"
subcategory: ""
description: |-
Expand All @@ -10,7 +9,21 @@ description: |-

Resource Type definition for AWS::IoT::BillingGroup

## Example Usage

```terraform
resource "awscc_iot_billing_group" "example" {
billing_group_name = "example"
billing_group_properties = {
billing_group_description = "Example billing group"
}

tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
```

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

```shell
$ terraform import awscc_iot_billing_group.example <resource ID>
```
```
11 changes: 11 additions & 0 deletions examples/resources/awscc_iot_billing_group/iot_billing_group.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
resource "awscc_iot_billing_group" "example" {
billing_group_name = "example"
billing_group_properties = {
billing_group_description = "Example billing group"
}

tags = [{
key = "Modified By"
value = "AWSCC"
}]
}
25 changes: 25 additions & 0 deletions templates/resources/iot_billing_group.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/iot_billing_group.tf" .Name)}}

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

## Import

Import is supported using the following syntax:

{{ codefile "shell" .ImportFile }}

{{- end }}
Loading