Skip to content

Commit 982aaca

Browse files
authored
cdktf: update index.html.markdown,r/workspace_variable_set.html.markdown,r/workspace_settings.markdown,r/workspace_run_task.html.markdown,r/workspace_run.html.markdown,r/workspace_policy_set_exclusion.html.markdown,r/workspace_policy_set.html.markdown,r/workspace.html.markdown,r/variable_set.html.markdown,r/variable.html.markdown,r/tfe_test_variable.html.markdown,r/terraform_version.html.markdown,r/team_token.html.markdown,r/team_project_access.html.markdown,r/team_organization_members.html.markdown,r/team_organization_member.html.markdown,r/team_notification_configuration.html.markdown,r/team_members.html.markdown,r/team_member.html.markdown,r/team_access.html.markdown,r/team.html.markdown,r/stack.html.markdown,r/ssh_key.html.markdown,r/sentinel_version.html.markdown,r/sentinel_policy.html.markdown,r/saml_settings.html.markdown,r/run_trigger.html.markdown,r/registry_provider.html.markdown,r/registry_module.html.markdown,r/registry_gpg_key.html.markdown,r/project_variable_set.html.markdown,r/project_policy_set.html.markdown,r/project_oauth_client.html.markdown,r/project.html.markdown,r/policy_set_parameter.html.markdown,r/policy_set.html.markdown,r/policy.html.markdown,r/organization_token.html.markdown,r/organization_run_task_global_settings.html.markdown,r/organization_run_task.html.markdown,r/organization_module_sharing.html.markdown,r/organization_membership.html.markdown,r/organization_default_settings.html.markdown,r/organization.html.markdown,r/opa_version.html.markdown,r/oauth_client.html.markdown,r/notification_configuration.html.markdown,r/no_code_module.html.markdown,r/data_retention_policy.html.markdown,r/audit_trail_token.html.markdown,r/agent_token.html.markdown,r/agent_pool_allowed_workspaces.html.markdown,r/agent_pool.html.markdown,r/admin_organization_settings.markdown,ephemeral-resources/team_token.html.markdown,ephemeral-resources/outputs.html.markdown,d/workspace_run_task.html.markdown,d/workspace_ids.html.markdown,d/workspace.html.markdown,d/variables.html.markdown,d/variable_set.html.markdown,d/teams.html.markdown,d/team_project_access.html.markdown,d/team_access.html.markdown,d/team.html.markdown,d/ssh_key.html.markdown,d/slug.html.markdown,d/saml_settings.html.markdown,d/registry_providers.html.markdown,d/registry_provider.html.markdown,d/registry_module.html.markdown,d/registry_gpg_keys.html.markdown,d/registry_gpg_key.html.markdown,d/projects.html.markdown,d/project.html.markdown,d/policy_set.html.markdown,d/outputs.html.markdown,d/organizations.html.markdown,d/organization_tags.html.markdown,d/organization_run_task_global_settings.html.markdown,d/organization_run_task.html.markdown,d/organization_membership.html.markdown,d/organization_members.html.markdown,d/organization.html.markdown,d/oauth_client.html.markdown,d/no_code_module.html.markdown,d/ip_ranges.html.markdown,d/github_app_installation.html.markdown,d/agent_pool.html.markdown (#1810)
1 parent 46f621e commit 982aaca

8 files changed

+60
-46
lines changed

website/docs/cdktf/python/index.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The above snippet using `required_providers` is for Terraform 0.13+; if you are
8888

8989
```hcl
9090
provider "tfe" {
91-
version = "~> 0.67.1"
91+
version = "~> 0.68.2"
9292
...
9393
}
9494
```
@@ -137,4 +137,4 @@ The following arguments are supported:
137137
arguments. Ensure that the organization already exists prior to using this argument.
138138
This can also be specified using the `TFE_ORGANIZATION` environment variable.
139139

140-
<!-- cache-key: cdktf-0.20.8 input-a4528fac3136fd1ca80fe48358dfb8ad565e80df9b4ece24df86ee2def3f2649 -->
140+
<!-- cache-key: cdktf-0.20.8 input-9df793588a393a858f4d0ccae14286d12f56c0f73462371960e11e05b4787cb9 -->

website/docs/cdktf/python/r/agent_pool_allowed_workspaces.html.markdown

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In this example, the agent pool and workspace are connected through other resour
2222
```python
2323
# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
2424
from constructs import Construct
25-
from cdktf import Fn, Token, TerraformStack
25+
from cdktf import TerraformStack
2626
#
2727
# Provider bindings are generated by running `cdktf get`.
2828
# See https://cdk.tf/provider-generation for more details.
@@ -50,8 +50,7 @@ class MyConvertedCode(TerraformStack):
5050
)
5151
allowed = AgentPoolAllowedWorkspaces(self, "allowed",
5252
agent_pool_id=test_agent_pool.id,
53-
allowed_workspace_ids=Token.as_list("${[ for key, value in ${" +
54-
Fn.lookup_nested(test, ["*", "id"]) + "} : value]}")
53+
allowed_workspace_ids=[test_workspace.id]
5554
)
5655
WorkspaceSettings(self, "test-workspace-settings",
5756
agent_pool_id=allowed.id,
@@ -76,4 +75,4 @@ A resource can be imported; use `<AGENT POOL ID>` as the import ID. For example:
7675
terraform import tfe_agent_pool_allowed_workspaces.foobar apool-rW0KoLSlnuNb5adB
7776
```
7877

79-
<!-- cache-key: cdktf-0.20.8 input-9157c4476b01641ff5f39d382cbf6147fe46fcc8df4d82d12d9452c6388262a7 -->
78+
<!-- cache-key: cdktf-0.20.8 input-3c5ea53d912d7e5791e5aa07bbc7d490cc3e015ca39df9eaa3767bdc205fb195 -->

website/docs/cdktf/python/r/team.html.markdown

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,25 @@ class MyConvertedCode(TerraformStack):
3535

3636
Organization Permission usage:
3737

38-
```hcl
39-
resource "tfe_team" "test" {
40-
name = "my-team-name"
41-
organization = "my-org-name"
42-
organization_access {
43-
manage_vcs_settings = true
44-
}
45-
}
38+
```python
39+
# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
40+
from constructs import Construct
41+
from cdktf import TerraformStack
42+
#
43+
# Provider bindings are generated by running `cdktf get`.
44+
# See https://cdk.tf/provider-generation for more details.
45+
#
46+
from imports.tfe.team import Team
47+
class MyConvertedCode(TerraformStack):
48+
def __init__(self, scope, name):
49+
super().__init__(scope, name)
50+
Team(self, "test",
51+
name="my-team-name",
52+
organization="my-org-name",
53+
organization_access=TeamOrganizationAccess(
54+
manage_vcs_settings=True
55+
)
56+
)
4657
```
4758

4859
## Argument Reference
@@ -91,4 +102,4 @@ or
91102
terraform import tfe_team.test my-org-name/my-team-name
92103
```
93104

94-
<!-- cache-key: cdktf-0.20.8 input-d9bc393198d4cc776e7fe4082a32d50cc258f18eded6123cefeca267b75b61a6 -->
105+
<!-- cache-key: cdktf-0.20.8 input-a8ccaf24709755acb4147f606dfe99a6622d27a90417431b77a46ddfcd1985f8 -->

website/docs/cdktf/python/r/workspace_settings.markdown

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ This resource can be used to self manage a workspace created from `terraform ini
175175
```python
176176
# DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
177177
from constructs import Construct
178-
from cdktf import Fn, Token, TerraformStack
178+
from cdktf import Token, TerraformStack
179179
#
180180
# Provider bindings are generated by running `cdktf get`.
181181
# See https://cdk.tf/provider-generation for more details.
@@ -186,10 +186,8 @@ class MyConvertedCode(TerraformStack):
186186
def __init__(self, scope, name):
187187
super().__init__(scope, name)
188188
self = DataTfeWorkspace(self, "self",
189-
name=Token.as_string(
190-
Fn.lookup_nested(Fn.split("/", tfc_workspace_slug.string_value), ["1"])),
191-
organization=Token.as_string(
192-
Fn.lookup_nested(Fn.split("/", tfc_workspace_slug.string_value), ["0"]))
189+
name="self-managed",
190+
organization="foo"
193191
)
194192
tfe_workspace_settings_self = WorkspaceSettings(self, "self_1",
195193
assessments_enabled=True,
@@ -242,4 +240,4 @@ terraform import tfe_workspace_settings.test ws-CH5in3chf8RJjrVd
242240
terraform import tfe_workspace_settings.test my-org-name/my-wkspace-name
243241
```
244242

245-
<!-- cache-key: cdktf-0.20.8 input-ae37db8425cb90bf9d23460da7f257de504c63f7e3ecf246d845b2d4ccfe3df1 -->
243+
<!-- cache-key: cdktf-0.20.8 input-f1d216f1370b1d9132b01fb3aa83be95a84df918dc873a73de20e2c851d5dc85 -->

website/docs/cdktf/typescript/index.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The above snippet using `required_providers` is for Terraform 0.13+; if you are
9191

9292
```hcl
9393
provider "tfe" {
94-
version = "~> 0.67.1"
94+
version = "~> 0.68.2"
9595
...
9696
}
9797
```
@@ -147,4 +147,4 @@ The following arguments are supported:
147147
arguments. Ensure that the organization already exists prior to using this argument.
148148
This can also be specified using the `TFE_ORGANIZATION` environment variable.
149149

150-
<!-- cache-key: cdktf-0.20.8 input-a4528fac3136fd1ca80fe48358dfb8ad565e80df9b4ece24df86ee2def3f2649 -->
150+
<!-- cache-key: cdktf-0.20.8 input-9df793588a393a858f4d0ccae14286d12f56c0f73462371960e11e05b4787cb9 -->

website/docs/cdktf/typescript/r/agent_pool_allowed_workspaces.html.markdown

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In this example, the agent pool and workspace are connected through other resour
2222
```typescript
2323
// DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
2424
import { Construct } from "constructs";
25-
import { Fn, Token, TerraformStack } from "cdktf";
25+
import { TerraformStack } from "cdktf";
2626
/*
2727
* Provider bindings are generated by running `cdktf get`.
2828
* See https://cdk.tf/provider-generation for more details.
@@ -50,11 +50,7 @@ class MyConvertedCode extends TerraformStack {
5050
});
5151
const allowed = new AgentPoolAllowedWorkspaces(this, "allowed", {
5252
agentPoolId: testAgentPool.id,
53-
allowedWorkspaceIds: Token.asList(
54-
"${[ for key, value in ${" +
55-
Fn.lookupNested(test, ["*", "id"]) +
56-
"} : value]}"
57-
),
53+
allowedWorkspaceIds: [testWorkspace.id],
5854
});
5955
new WorkspaceSettings(this, "test-workspace-settings", {
6056
agentPoolId: allowed.id,
@@ -82,4 +78,4 @@ A resource can be imported; use `<AGENT POOL ID>` as the import ID. For example:
8278
terraform import tfe_agent_pool_allowed_workspaces.foobar apool-rW0KoLSlnuNb5adB
8379
```
8480

85-
<!-- cache-key: cdktf-0.20.8 input-9157c4476b01641ff5f39d382cbf6147fe46fcc8df4d82d12d9452c6388262a7 -->
81+
<!-- cache-key: cdktf-0.20.8 input-3c5ea53d912d7e5791e5aa07bbc7d490cc3e015ca39df9eaa3767bdc205fb195 -->

website/docs/cdktf/typescript/r/team.html.markdown

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,28 @@ class MyConvertedCode extends TerraformStack {
3838

3939
Organization Permission usage:
4040

41-
```hcl
42-
resource "tfe_team" "test" {
43-
name = "my-team-name"
44-
organization = "my-org-name"
45-
organization_access {
46-
manage_vcs_settings = true
41+
```typescript
42+
// DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
43+
import { Construct } from "constructs";
44+
import { TerraformStack } from "cdktf";
45+
/*
46+
* Provider bindings are generated by running `cdktf get`.
47+
* See https://cdk.tf/provider-generation for more details.
48+
*/
49+
import { Team } from "./.gen/providers/tfe/team";
50+
class MyConvertedCode extends TerraformStack {
51+
constructor(scope: Construct, name: string) {
52+
super(scope, name);
53+
new Team(this, "test", {
54+
name: "my-team-name",
55+
organization: "my-org-name",
56+
organizationAccess: {
57+
manageVcsSettings: true,
58+
},
59+
});
4760
}
4861
}
62+
4963
```
5064

5165
## Argument Reference
@@ -94,4 +108,4 @@ or
94108
terraform import tfe_team.test my-org-name/my-team-name
95109
```
96110

97-
<!-- cache-key: cdktf-0.20.8 input-d9bc393198d4cc776e7fe4082a32d50cc258f18eded6123cefeca267b75b61a6 -->
111+
<!-- cache-key: cdktf-0.20.8 input-a8ccaf24709755acb4147f606dfe99a6622d27a90417431b77a46ddfcd1985f8 -->

website/docs/cdktf/typescript/r/workspace_settings.markdown

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ This resource can be used to self manage a workspace created from `terraform ini
213213
```typescript
214214
// DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
215215
import { Construct } from "constructs";
216-
import { Fn, Token, TerraformStack } from "cdktf";
216+
import { Token, TerraformStack } from "cdktf";
217217
/*
218218
* Provider bindings are generated by running `cdktf get`.
219219
* See https://cdk.tf/provider-generation for more details.
@@ -224,15 +224,11 @@ class MyConvertedCode extends TerraformStack {
224224
constructor(scope: Construct, name: string) {
225225
super(scope, name);
226226
const self = new DataTfeWorkspace(this, "self", {
227-
name: Token.asString(
228-
Fn.lookupNested(Fn.split("/", tfcWorkspaceSlug.stringValue), ["1"])
229-
),
230-
organization: Token.asString(
231-
Fn.lookupNested(Fn.split("/", tfcWorkspaceSlug.stringValue), ["0"])
232-
),
227+
name: "self-managed",
228+
organization: "foo",
233229
});
234230
const tfeWorkspaceSettingsSelf = new WorkspaceSettings(this, "self_1", {
235-
assessments_enabled: true,
231+
assessmentsEnabled: true,
236232
tags: {
237233
prod: "true",
238234
},
@@ -285,4 +281,4 @@ terraform import tfe_workspace_settings.test ws-CH5in3chf8RJjrVd
285281
terraform import tfe_workspace_settings.test my-org-name/my-wkspace-name
286282
```
287283

288-
<!-- cache-key: cdktf-0.20.8 input-ae37db8425cb90bf9d23460da7f257de504c63f7e3ecf246d845b2d4ccfe3df1 -->
284+
<!-- cache-key: cdktf-0.20.8 input-f1d216f1370b1d9132b01fb3aa83be95a84df918dc873a73de20e2c851d5dc85 -->

0 commit comments

Comments
 (0)