-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new configuration document for connection turbot_guardrails
- Loading branch information
1 parent
bc099b2
commit fcf932f
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
docs/reference/config-files/connection/turbot_guardrails.md
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,44 @@ | ||
--- | ||
title: guardrails | ||
sidebar_label: guardrails | ||
--- | ||
|
||
# guardrails | ||
|
||
The `guardrails` connection can be used to access [Turbot Guardrails](https://turbot.com/guardrails) resources. | ||
|
||
```hcl | ||
connection "guardrails" "my_guardrail" { | ||
access_key = "c8e2c2ed-1ca8-429b-b369-123..." | ||
secret_key = "a3d8385d-47f7-40c5-a90c-123..." | ||
workspace = "https://my_workspace.sass.turbot.com" | ||
} | ||
``` | ||
|
||
## Arguments | ||
|
||
| Name | Type | Required? | Description | | ||
| ------------ | ------ | --------- | ------------- | | ||
| `access_key` | String | Optional | Access key | | ||
| `secret_key` | String | Optional | Secret key | | ||
| `workspace` | String | Optional | Workspace URL | | ||
|
||
All arguments are optional, and a `guardrails` connection with no arguments will behave the same as the [default connection](#default-connection). | ||
|
||
## Attributes (Read-Only) | ||
|
||
| Attribute | Type | Description | | ||
| --------- | ---- | ----------------------------------------------------------------------------------------------------------------------------- | | ||
| `env` | Map | A map of the resolved connection-related environment variables (`TURBOT_ACCESS_KEY`, `TURBOT_SECRET_KEY`, `TURBOT_WORKSPACE`) | | ||
|
||
## Default Connection | ||
|
||
The `guardrails` connection type includes an implicit, default connection (`connection.guardrails.default`) that will be configured using the environment variables `TURBOT_ACCESS_KEY`, `TURBOT_SECRET_KEY`, and `TURBOT_WORKSPACE`. | ||
|
||
```hcl | ||
connection "guardrails" "my_guardrail" { | ||
access_key = env("TURBOT_ACCESS_KEY") | ||
secret_key = env("TURBOT_SECRET_KEY") | ||
workspace = env("TURBOT_WORKSPACE") | ||
} | ||
``` |