Skip to content

Commit

Permalink
docs: added example for awscc_appconfig_application
Browse files Browse the repository at this point in the history
  • Loading branch information
quixoticmonk committed May 28, 2024
1 parent 3383371 commit 6016e75
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/resources/appconfig_application.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_appconfig_application Resource - terraform-provider-awscc"
subcategory: ""
description: |-
Expand All @@ -10,7 +9,19 @@ description: |-

Resource Type definition for AWS::AppConfig::Application

## Example Usage

```terraform
resource "awscc_appconfig_application" "example" {
name = "example"
description = "Example application"
tags = [{
key = "ModifiedBy"
value = "AWSCC"
}]
}
```

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

```shell
$ terraform import awscc_appconfig_application.example <resource ID>
```
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
resource "awscc_appconfig_application" "example" {
name = "example"
description = "Example application"

tags = [{
key = "ModifiedBy"
value = "AWSCC"
}]
}

25 changes: 25 additions & 0 deletions templates/resources/appconfig_application.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/appconfig_application.tf" .Name)}}

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

## Import

Import is supported using the following syntax:

{{ codefile "shell" .ImportFile }}

{{- end }}

0 comments on commit 6016e75

Please sign in to comment.