Files
terraform-docs/format/testdata/markdown/document-OnlyInputs.golden
Khosrow Moossavi 90942f73b8 Move format package from internal to public
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-09-28 14:43:26 -04:00

310 lines
3.1 KiB
Plaintext

## Inputs
The following input variables are supported:
### unquoted
Description: n/a
Type: `any`
Default: n/a
### bool-3
Description: n/a
Type: `bool`
Default: `true`
### bool-2
Description: It's bool number two.
Type: `bool`
Default: `false`
### bool-1
Description: It's bool number one.
Type: `bool`
Default: `true`
### string-3
Description: n/a
Type: `string`
Default: `""`
### string-2
Description: It's string number two.
Type: `string`
Default: n/a
### string-1
Description: It's string number one.
Type: `string`
Default: `"bar"`
### string-special-chars
Description: n/a
Type: `string`
Default: `"\\.<>[]{}_-"`
### number-3
Description: n/a
Type: `number`
Default: `"19"`
### number-4
Description: n/a
Type: `number`
Default: `15.75`
### number-2
Description: It's number number two.
Type: `number`
Default: n/a
### number-1
Description: It's number number one.
Type: `number`
Default: `42`
### map-3
Description: n/a
Type: `map`
Default: `{}`
### map-2
Description: It's map number two.
Type: `map`
Default: n/a
### map-1
Description: It's map number one.
Type: `map`
Default:
```json
{
"a": 1,
"b": 2,
"c": 3
}
```
### list-3
Description: n/a
Type: `list`
Default: `[]`
### list-2
Description: It's list number two.
Type: `list`
Default: n/a
### list-1
Description: It's list number one.
Type: `list`
Default:
```json
[
"a",
"b",
"c"
]
```
### input_with_underscores
Description: A variable with underscores.
Type: `any`
Default: n/a
### input-with-pipe
Description: It includes v1 | v2 | v3
Type: `string`
Default: `"v1"`
### input-with-code-block
Description: This is a complicated one. We need a newline.
And an example in a code block
```
default = [
"machine rack01:neptune"
]
```
Type: `list`
Default:
```json
[
"name rack:location"
]
```
### long_type
Description: This description is itself markdown.
It spans over multiple lines.
Type:
```hcl
object({
name = string,
foo = object({ foo = string, bar = string }),
bar = object({ foo = string, bar = string }),
fizz = list(string),
buzz = list(string)
})
```
Default:
```json
{
"bar": {
"bar": "bar",
"foo": "bar"
},
"buzz": [
"fizz",
"buzz"
],
"fizz": [],
"foo": {
"bar": "foo",
"foo": "foo"
},
"name": "hello"
}
```
### no-escape-default-value
Description: The description contains `something_with_underscore`. Defaults to 'VALUE_WITH_UNDERSCORE'.
Type: `string`
Default: `"VALUE_WITH_UNDERSCORE"`
### with-url
Description: The description contains url. https://www.domain.com/foo/bar_baz.html
Type: `string`
Default: `""`
### string_default_empty
Description: n/a
Type: `string`
Default: `""`
### string_default_null
Description: n/a
Type: `string`
Default: `null`
### string_no_default
Description: n/a
Type: `string`
Default: n/a
### number_default_zero
Description: n/a
Type: `number`
Default: `0`
### bool_default_false
Description: n/a
Type: `bool`
Default: `false`
### list_default_empty
Description: n/a
Type: `list(string)`
Default: `[]`
### object_default_empty
Description: n/a
Type: `object({})`
Default: `{}`