-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Erik Veld
committed
May 11, 2023
1 parent
7e095c9
commit e48cfa5
Showing
6 changed files
with
156 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import MetaProperties from "./shared/meta.mdx" | ||
|
||
# Random creature `random_creature` | ||
|
||
<Intro> | ||
The `random_creature` resource allow the creation of random creatures. | ||
</Intro> | ||
|
||
## Properties | ||
|
||
<Properties> | ||
<Property name="value" type="string" value="" readonly> | ||
The generated random creature. | ||
</Property> | ||
</Properties> | ||
|
||
<MetaProperties/> | ||
|
||
## Examples | ||
|
||
```hcl | ||
resource "random_creature" "creature" {} | ||
output "creature" { | ||
value = resource.random_creature.creature.value | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import MetaProperties from "./shared/meta.mdx" | ||
|
||
# Random ID `random_id` | ||
|
||
<Intro> | ||
The `random_id` resource allows the creation of random IDs. | ||
</Intro> | ||
|
||
## Properties | ||
|
||
<Properties> | ||
<Property name="byte_length" type="int" required="true" value="0"> | ||
The number of bytes to use when generating the random ID. | ||
</Property> | ||
|
||
<Property name="value" type="int" value="" readonly> | ||
The generated random ID. | ||
</Property> | ||
</Properties> | ||
|
||
<MetaProperties/> | ||
|
||
## Examples | ||
|
||
```hcl | ||
resource "random_id" "id" { | ||
byte_length = 4 | ||
} | ||
output "id_hex" { | ||
value = resource.random_id.id.hex | ||
} | ||
output "id_dec" { | ||
value = resource.random_id.id.dec | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import MetaProperties from "./shared/meta.mdx" | ||
|
||
# Random Password `random_password` | ||
|
||
<Intro> | ||
The `random_password` resource allows the creation of random passwords. | ||
</Intro> | ||
|
||
## Properties | ||
|
||
<Properties> | ||
<Property name="length" type="int" required="true" value="0"> | ||
The length of the generated value. | ||
</Property> | ||
<Property name="special" type="bool" required="false" value="true"> | ||
Wether or not to include special characters in the generated password. | ||
</Property> | ||
<Property name="numeric" type="bool" required="false" value="true"> | ||
Wether or not to include numeric characters in the generated password. | ||
</Property> | ||
<Property name="upper" type="bool" required="false" value="true"> | ||
Wether or not to include uppercase characters in the generated password. | ||
</Property> | ||
<Property name="lower" type="bool" required="false" value="true"> | ||
Wether or not to include lowercase characters in the generated password. | ||
</Property> | ||
|
||
<Property name="min_special" type="int" required="false" value="0"> | ||
The minimum number of special characters to include in the generated password. | ||
</Property> | ||
<Property name="min_numeric" type="int" required="false" value="0"> | ||
The minimum number of numeric characters to include in the generated password. | ||
</Property> | ||
<Property name="min_upper" type="int" required="false" value="0"> | ||
The minimum number of uppercase characters to include in the generated password. | ||
</Property> | ||
<Property name="min_lower" type="int" required="false" value="0"> | ||
The minimum number of lowercase characters to include in the generated password. | ||
</Property> | ||
|
||
<Property name="value" type="int" value="" readonly> | ||
The generated password. | ||
</Property> | ||
</Properties> | ||
|
||
<MetaProperties/> | ||
|
||
## Examples | ||
|
||
```hcl | ||
resource "random_password" "password" { | ||
length = 32 | ||
} | ||
output "password" { | ||
value = resource.random_password.password.value | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import MetaProperties from "./shared/meta.mdx" | ||
|
||
# Random UUID `random_uuid` | ||
|
||
<Intro> | ||
The `random_uuid` resource allows the creation of random UUIDs. | ||
</Intro> | ||
|
||
## Properties | ||
|
||
<Properties> | ||
<Property name="value" type="string" value="" readonly> | ||
The generated random UUID. | ||
</Property> | ||
</Properties> | ||
|
||
<MetaProperties/> | ||
|
||
## Examples | ||
|
||
```hcl | ||
resource "random_uuid" "uuid" {} | ||
output "uuid" { | ||
value = resource.random_uuid.uuid.value | ||
} | ||
``` |