You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generates a new audit trail token in organization, replacing any existing token.
6
+
---
7
+
8
+
9
+
<!-- Please do not edit this file, it is generated. -->
10
+
# tfe_audit_trail_token
11
+
12
+
Generates a new audit trail token in organization, replacing any existing token.
13
+
14
+
Note that only organizations that have the [audit-logging entitlement](https://developer.hashicorp.com/terraform/cloud-docs/api-docs#audit-logging) may create audit trail tokens.
15
+
16
+
## Example Usage
17
+
18
+
Basic usage:
19
+
20
+
```csharp
21
+
usingConstructs;
22
+
usingHashiCorp.Cdktf;
23
+
/*Provider bindings are generated by running cdktf get.
24
+
See https://cdk.tf/provider-generation for more details.*/
Copy file name to clipboardExpand all lines: website/docs/cdktf/csharp/r/workspace.html.markdown
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,6 @@ Provides a workspace resource.
13
13
14
14
~> **NOTE:** Setting the execution mode and agent pool affinity directly on the workspace is deprecated in favor of using both [tfe_workspace_settings](workspace_settings) and [tfe_organization_default_settings](organization_default_settings), since they allow more precise control and fully support [agent_pool_allowed_workspaces](agent_pool_allowed_workspaces). Use caution when unsetting `ExecutionMode`, as it now leaves any prior value unmanaged instead of reverting to the old default value of `"remote"`.
15
15
16
-
~> **NOTE:** Using `GlobalRemoteState` or `RemoteStateConsumerIds` requires using the provider with HCP Terraform or an instance of Terraform Enterprise at least as recent as v202104-1.
17
-
18
16
## Example Usage
19
17
20
18
Basic usage:
@@ -101,7 +99,7 @@ The following arguments are supported:
101
99
trigger prefixes describe a set of paths which must contain changes for a
102
100
VCS push to trigger a run. If disabled, any push will trigger a run.
103
101
*`ForceDelete` - (Optional) If this attribute is present on a workspace that is being deleted through the provider, it will use the existing force delete API. If this attribute is not present or false it will safe delete the workspace.
104
-
*`GlobalRemoteState` - (Optional) Whether the workspace allows all workspaces in the organization to access its state data during runs. If false, then only specifically approved workspaces can access its state (`RemoteStateConsumerIds`).
102
+
*`GlobalRemoteState` - (Optional) **Deprecated**Whether the workspace allows all workspaces in the organization to access its state data during runs. Use [tfe_workspace_settings](workspace_settings) instead.
105
103
*`Operations` - **Deprecated** Whether to use remote execution mode.
106
104
Defaults to `True`. When set to `False`, the workspace will be used for
107
105
state storage only. This value _must not_ be provided if `ExecutionMode` is
@@ -116,7 +114,7 @@ The following arguments are supported:
116
114
is `False`. The provider uses `True` as any workspace provisioned with
117
115
`False` would need to then have a run manually queued out-of-band before
118
116
accepting webhooks.
119
-
*`RemoteStateConsumerIds` - (Optional) The set of workspace IDs set as explicit remote state consumers for the given workspace.
117
+
*`RemoteStateConsumerIds` - (Optional) **Deprecated**The set of workspace IDs set as explicit remote state consumers for the given workspace. Use [tfe_workspace_settings](workspace_settings) instead.
120
118
*`SourceName` - (Optional) A friendly name for the application or client
121
119
creating this workspace. If set, this will be displayed on the workspace as
This resource may be used as a data source when no optional arguments are defined:
85
121
86
122
```csharp
@@ -119,6 +155,8 @@ The following arguments are supported:
119
155
to be set to `Agent`. This value _must not_ be provided if `ExecutionMode` is set to any other value.
120
156
*`ExecutionMode` - (Optional) Which [execution mode](https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#execution-mode)
121
157
to use. Using HCP Terraform, valid values are `Remote`, `Local` or `Agent`. When set to `Local`, the workspace will be used for state storage only. **Important:** If you omit this attribute, the resource configures the workspace to use your organization's default execution mode (which in turn defaults to `Remote`), removing any explicit value that might have previously been set for the workspace.
158
+
*`GlobalRemoteState` - (Optional) Whether the workspace allows all workspaces in the organization to access its state data during runs. If false, then only specifically approved workspaces can access its state (`RemoteStateConsumerIds`). By default, HashiCorp recommends you do not allow other workspaces to access their state. We recommend that you follow the principle of least privilege and only enable state access between workspaces that specifically need information from each other.
159
+
*`RemoteStateConsumerIds` - (Optional) The set of workspace IDs set as explicit remote state consumers for the given workspace. To set this attribute, global_remote_state must be false.
Copy file name to clipboardExpand all lines: website/docs/cdktf/csharp/r/workspace_variable_set.html.markdown
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ description: |-
9
9
<!-- Please do not edit this file, it is generated. -->
10
10
# tfe_workspace_variable_set
11
11
12
-
Adds and removes variable sets from a workspace
12
+
Adds and removes a workspace from a variable set's scope.
13
13
14
14
-> **Note:**`TfeVariableSet` has a deprecated argument `WorkspaceIds` that should not be used alongside this resource. They attempt to manage the same attachments and are mutually exclusive.
15
15
@@ -74,4 +74,4 @@ Workspace Variable Sets can be imported; use `<ORGANIZATION>/<WORKSPACE NAME>/<V
0 commit comments