From 9e79c98e70a39bb390ade4777e8abdaebf92ba35 Mon Sep 17 00:00:00 2001 From: Manu Chandrasekhar Date: Mon, 27 May 2024 23:02:30 -0400 Subject: [PATCH] docs: added example for awscc_iot_billing_group --- docs/resources/iot_billing_group.md | 17 +++++++++++-- .../iot_billing_group.tf | 11 ++++++++ templates/resources/iot_billing_group.md.tmpl | 25 +++++++++++++++++++ 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 examples/resources/awscc_iot_billing_group/iot_billing_group.tf create mode 100644 templates/resources/iot_billing_group.md.tmpl diff --git a/docs/resources/iot_billing_group.md b/docs/resources/iot_billing_group.md index 931595a36..17c50538c 100644 --- a/docs/resources/iot_billing_group.md +++ b/docs/resources/iot_billing_group.md @@ -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: |- @@ -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 @@ -49,4 +62,4 @@ Import is supported using the following syntax: ```shell $ terraform import awscc_iot_billing_group.example -``` +``` \ No newline at end of file diff --git a/examples/resources/awscc_iot_billing_group/iot_billing_group.tf b/examples/resources/awscc_iot_billing_group/iot_billing_group.tf new file mode 100644 index 000000000..7c534ba73 --- /dev/null +++ b/examples/resources/awscc_iot_billing_group/iot_billing_group.tf @@ -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" + }] +} diff --git a/templates/resources/iot_billing_group.md.tmpl b/templates/resources/iot_billing_group.md.tmpl new file mode 100644 index 000000000..81a10800a --- /dev/null +++ b/templates/resources/iot_billing_group.md.tmpl @@ -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 }} \ No newline at end of file