Skip to content

Commit 2d6c2ef

Browse files
committed
Add resource template
1 parent 51eca7f commit 2d6c2ef

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "{{.Name}} {{.Type}} - {{.RenderedProviderName}}"
4+
subcategory: "Kibana"
5+
description: |-
6+
{{ .Description | plainmarkdown | trimspace | prefixlines " " }}
7+
---
8+
9+
# {{.Name}} ({{.Type}})
10+
11+
{{ .Description | trimspace }}
12+
13+
## Example Usage
14+
15+
### IP address list
16+
17+
{{ tffile "examples/resources/elasticstack_kibana_security_list/resource.tf" }}
18+
19+
### Keyword list with custom list_id
20+
21+
{{ tffile "examples/resources/elasticstack_kibana_security_list/resource_keyword.tf" }}
22+
23+
{{ .SchemaMarkdown | trimspace }}
24+
{{- if or .HasImport .HasImportIDConfig .HasImportIdentityConfig }}
25+
26+
## Import
27+
28+
Import is supported using the following syntax:
29+
{{- end }}
30+
{{- if .HasImportIdentityConfig }}
31+
32+
In Terraform v1.12.0 and later, the [`import` block](https://developer.hashicorp.com/terraform/language/import) can be used with the `identity` attribute, for example:
33+
34+
{{tffile .ImportIdentityConfigFile }}
35+
36+
{{ .IdentitySchemaMarkdown | trimspace }}
37+
{{- end }}
38+
{{- if .HasImportIDConfig }}
39+
40+
In Terraform v1.5.0 and later, the [`import` block](https://developer.hashicorp.com/terraform/language/import) can be used with the `id` attribute, for example:
41+
42+
{{tffile .ImportIDConfigFile }}
43+
{{- end }}
44+
{{- if .HasImport }}
45+
46+
The [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import) can be used, for example:
47+
48+
{{codefile "shell" .ImportFile }}
49+
{{- end }}

0 commit comments

Comments
 (0)