Skip to content

Commit 9516340

Browse files
committed
feat(provider): introduce destination resource
1 parent df188fe commit 9516340

35 files changed

+4112
-164
lines changed

docs/resources/destination.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
# generated by https://github.com/hashicorp/terraform-plugin-docs
3+
page_title: "censusworkspace_destination Resource - terraform-provider-censusworkspace"
4+
subcategory: ""
5+
description: |-
6+
7+
---
8+
9+
# censusworkspace_destination (Resource)
10+
11+
12+
13+
## Example Usage
14+
15+
```terraform
16+
resource "censusworkspace_destination" "test" {
17+
name = "custom"
18+
19+
type = "custom_api"
20+
21+
credentials = jsonencode({
22+
webhook_url = "https://example.org/census-destination"
23+
})
24+
}
25+
```
26+
27+
<!-- schema generated by tfplugindocs -->
28+
## Schema
29+
30+
### Required
31+
32+
- `name` (String) The name of this destination.
33+
- `type` (String) The type of connection to be used for this destination. A valid type is the `service_name` of a connector returned from the `/connectors` endpoint, where the connector is marked as `creatable_via_api`.
34+
35+
### Optional
36+
37+
- `credentials` (String) The credentials needed to create each type of connection. These can be found in the `GET /connectors` API for most destinations.
38+
39+
### Read-Only
40+
41+
- `connection_details` (String) Connection details associated with this destination.
42+
- `created_at` (String) When the connection was created
43+
- `id` (String) The ID of this resource.
44+
- `last_test_succeeded` (Boolean) Indicates if the last connection test to this destination was successful.
45+
- `last_tested_at` (String) Timestamp of when the last connection test was conducted on this destination.
46+
47+
## Import
48+
49+
Import is supported using the following syntax:
50+
51+
```shell
52+
terraform import censusworkspace_destination.this 12345
53+
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
terraform import censusworkspace_destination.this 12345
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
resource "censusworkspace_destination" "test" {
2+
name = "custom"
3+
4+
type = "custom_api"
5+
6+
credentials = jsonencode({
7+
webhook_url = "https://example.org/census-destination"
8+
})
9+
}

0 commit comments

Comments
 (0)