Skip to content

Commit 89a46e9

Browse files
committed
cdktf: update r/organization_module_sharing.html.markdown,r/organization_membership.html.markdown,r/organization.html.markdown,r/oauth_client.html.markdown,r/notification_configuration.html.markdown,r/no_code_module.html.markdown,r/agent_token.html.markdown,r/agent_pool_allowed_workspaces.html.markdown,r/agent_pool.html.markdown,r/admin_organization_settings.markdown
1 parent ec0e459 commit 89a46e9

20 files changed

+624
-510
lines changed

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

Lines changed: 42 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: |-
55
Manages admin settings for an organization (Terraform Enterprise Only).
66
---
77

8+
9+
<!-- Please do not edit this file, it is generated. -->
810
# tfe_admin_organization_settings
911

1012
Manage admin settings for an organization. This resource requires the
@@ -15,39 +17,45 @@ incorporating an admin token in your provider config.
1517

1618
Basic usage:
1719

18-
```hcl
19-
20-
provider "tfe" {
21-
hostname = var.hostname
22-
token = var.token
23-
}
24-
25-
provider "tfe" {
26-
alias = "admin"
27-
hostname = var.hostname
28-
token = var.admin_token
29-
}
30-
31-
resource "tfe_organization" "a-module-producer" {
32-
name = "my-org"
33-
34-
}
35-
36-
resource "tfe_organization" "a-module-consumer" {
37-
name = "my-other-org"
38-
39-
}
40-
41-
resource "tfe_admin_organization_settings" "test-settings" {
42-
provider = tfe.admin
43-
organization = tfe_organization.a-module-producer.name
44-
workspace_limit = 15
45-
access_beta_tools = false
46-
global_module_sharing = false
47-
module_sharing_consumer_organizations = [
48-
tfe_organization.a-module-consumer.name
49-
]
50-
}
20+
```python
21+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
22+
from constructs import Construct
23+
from cdktf import TerraformStack
24+
#
25+
# Provider bindings are generated by running `cdktf get`.
26+
# See https://cdk.tf/provider-generation for more details.
27+
#
28+
from imports.tfe.admin_organization_settings import AdminOrganizationSettings
29+
from imports.tfe.organization import Organization
30+
from imports.tfe.provider import TfeProvider
31+
class MyConvertedCode(TerraformStack):
32+
def __init__(self, scope, name):
33+
super().__init__(scope, name)
34+
TfeProvider(self, "tfe",
35+
hostname=hostname.string_value,
36+
token=token.string_value
37+
)
38+
admin = TfeProvider(self, "tfe_1",
39+
alias="admin",
40+
hostname=hostname.string_value,
41+
token=admin_token.string_value
42+
)
43+
a_module_consumer = Organization(self, "a-module-consumer",
44+
45+
name="my-other-org"
46+
)
47+
a_module_producer = Organization(self, "a-module-producer",
48+
49+
name="my-org"
50+
)
51+
AdminOrganizationSettings(self, "test-settings",
52+
access_beta_tools=False,
53+
global_module_sharing=False,
54+
module_sharing_consumer_organizations=[a_module_consumer.name],
55+
organization=a_module_producer.name,
56+
provider="${tfe.admin}",
57+
workspace_limit=15
58+
)
5159
```
5260

5361
## Argument Reference
@@ -68,4 +76,4 @@ The following arguments are supported:
6876

6977
This resource does not manage the creation of an organization and there is no need to import it.
7078

71-
<!-- cache-key: cdktf-0.17.0-pre.15 input-513d248f99cf75a1469fc2846ea390faf571c1296655be1472abf867f8405ff8 -->
79+
<!-- cache-key: cdktf-0.17.1 input-513d248f99cf75a1469fc2846ea390faf571c1296655be1472abf867f8405ff8 -->

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

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,25 @@ pools to run remote operations with isolated, private, or on-premises infrastruc
1818
Basic usage:
1919

2020
```python
21-
import constructs as constructs
22-
import cdktf as cdktf
23-
# Provider bindings are generated by running cdktf get.
21+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
22+
from constructs import Construct
23+
from cdktf import TerraformStack
24+
#
25+
# Provider bindings are generated by running `cdktf get`.
2426
# See https://cdk.tf/provider-generation for more details.
25-
import ...gen.providers.tfe as tfe
26-
class MyConvertedCode(cdktf.TerraformStack):
27+
#
28+
from imports.tfe.agent_pool import AgentPool
29+
from imports.tfe.organization import Organization
30+
class MyConvertedCode(TerraformStack):
2731
def __init__(self, scope, name):
2832
super().__init__(scope, name)
29-
tfe_organization_test_organization = tfe.organization.Organization(self, "test-organization",
33+
test_organization = Organization(self, "test-organization",
3034
3135
name="my-org-name"
3236
)
33-
tfe.agent_pool.AgentPool(self, "test-agent-pool",
37+
AgentPool(self, "test-agent-pool",
3438
name="my-agent-pool-name",
35-
organization=cdktf.Token.as_string(tfe_organization_test_organization.name),
39+
organization=test_organization.name,
3640
organization_scoped=True
3741
)
3842
```
@@ -63,4 +67,4 @@ terraform import tfe_agent_pool.test apool-rW0KoLSlnuNb5adB
6367
terraform import tfe_workspace.test my-org-name/my-agent-pool-name
6468
```
6569

66-
<!-- cache-key: cdktf-0.17.0-pre.15 input-0c7f696f1755518d4d25139bde27181a2162728db0756dfc60a6fe8e169b3689 -->
70+
<!-- cache-key: cdktf-0.17.1 input-0c7f696f1755518d4d25139bde27181a2162728db0756dfc60a6fe8e169b3689 -->

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

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,38 @@ for Business account.
1919

2020
Basic usage:
2121

22-
```hcl
23-
resource "tfe_organization" "test-organization" {
24-
name = "my-org-name"
25-
26-
}
27-
28-
resource "tfe_workspace" "test" {
29-
name = "my-workspace-name"
30-
organization = tfe_organization.test.name
31-
}
32-
33-
resource "tfe_agent_pool" "test-agent-pool" {
34-
name = "my-agent-pool-name"
35-
organization = tfe_organization.test-organization.name
36-
organization_scoped = true
37-
}
38-
39-
resource "tfe_agent_pool_allowed_workspaces" "foobar" {
40-
agent_pool_id = tfe_agent_pool.foobar.id
41-
allowed_workspace_ids = [tfe_workspace.test.id]
42-
}
22+
```python
23+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
24+
from constructs import Construct
25+
from cdktf import Token, TerraformStack
26+
#
27+
# Provider bindings are generated by running `cdktf get`.
28+
# See https://cdk.tf/provider-generation for more details.
29+
#
30+
from imports.tfe.agent_pool import AgentPool
31+
from imports.tfe.agent_pool_allowed_workspaces import AgentPoolAllowedWorkspaces
32+
from imports.tfe.organization import Organization
33+
from imports.tfe.workspace import Workspace
34+
class MyConvertedCode(TerraformStack):
35+
def __init__(self, scope, name):
36+
super().__init__(scope, name)
37+
test_organization = Organization(self, "test-organization",
38+
39+
name="my-org-name"
40+
)
41+
test = Workspace(self, "test",
42+
name="my-workspace-name",
43+
organization=Token.as_string(tfe_organization_test.name)
44+
)
45+
AgentPool(self, "test-agent-pool",
46+
name="my-agent-pool-name",
47+
organization=test_organization.name,
48+
organization_scoped=True
49+
)
50+
AgentPoolAllowedWorkspaces(self, "foobar",
51+
agent_pool_id=Token.as_string(tfe_agent_pool_foobar.id),
52+
allowed_workspace_ids=[test.id]
53+
)
4354
```
4455

4556
## Argument Reference
@@ -59,4 +70,4 @@ terraform import tfe_agent_pool_allowed_workspaces.foobar apool-rW0KoLSlnuNb5adB
5970
```
6071

6172

62-
<!-- cache-key: cdktf-0.17.0-pre.15 input-0830c2350c9bc1d08e42086147e2faab617c9e3df62a7fdecdc74ef5e6b8439f -->
73+
<!-- cache-key: cdktf-0.17.1 input-0830c2350c9bc1d08e42086147e2faab617c9e3df62a7fdecdc74ef5e6b8439f -->

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

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: |-
55
Manages agent tokens
66
---
77

8+
9+
<!-- Please do not edit this file, it is generated. -->
810
# tfe_agent_token
911

1012
Each agent pool has its own set of tokens which are not shared across pools.
@@ -15,24 +17,29 @@ These tokens allow agents to communicate securely with Terraform Cloud.
1517
Basic usage:
1618

1719
```python
18-
import constructs as constructs
19-
import cdktf as cdktf
20-
# Provider bindings are generated by running cdktf get.
20+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
21+
from constructs import Construct
22+
from cdktf import TerraformStack
23+
#
24+
# Provider bindings are generated by running `cdktf get`.
2125
# See https://cdk.tf/provider-generation for more details.
22-
import ...gen.providers.tfe as tfe
23-
class MyConvertedCode(cdktf.TerraformStack):
26+
#
27+
from imports.tfe.agent_pool import AgentPool
28+
from imports.tfe.agent_token import AgentToken
29+
from imports.tfe.organization import Organization
30+
class MyConvertedCode(TerraformStack):
2431
def __init__(self, scope, name):
2532
super().__init__(scope, name)
26-
tfe_organization_test_organization = tfe.organization.Organization(self, "test-organization",
33+
test_organization = Organization(self, "test-organization",
2734
2835
name="my-org-name"
2936
)
30-
tfe_agent_pool_test_agent_pool = tfe.agent_pool.AgentPool(self, "test-agent-pool",
37+
test_agent_pool = AgentPool(self, "test-agent-pool",
3138
name="my-agent-pool-name",
32-
organization=cdktf.Token.as_string(tfe_organization_test_organization.id)
39+
organization=test_organization.id
3340
)
34-
tfe.agent_token.AgentToken(self, "test-agent-token",
35-
agent_pool_id=cdktf.Token.as_string(tfe_agent_pool_test_agent_pool.id),
41+
AgentToken(self, "test-agent-token",
42+
agent_pool_id=test_agent_pool.id,
3643
description="my-agent-token-name"
3744
)
3845
```
@@ -50,4 +57,4 @@ The following arguments are supported:
5057
* `description` - The description of agent token.
5158
* `token` - The generated token.
5259

53-
<!-- cache-key: cdktf-0.17.0-pre.15 input-0b48bd828d88ed48d140d96f6cf5b5dd1fd182cfb82d3bf6211f7610464c0f01 -->
60+
<!-- cache-key: cdktf-0.17.1 input-0b48bd828d88ed48d140d96f6cf5b5dd1fd182cfb82d3bf6211f7610464c0f01 -->

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

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,33 @@ Creates, updates and destroys no-code module for registry modules.
1616
Basic usage:
1717

1818
```python
19-
import constructs as constructs
20-
import cdktf as cdktf
21-
# Provider bindings are generated by running cdktf get.
19+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
20+
from constructs import Construct
21+
from cdktf import Token, TerraformStack
22+
#
23+
# Provider bindings are generated by running `cdktf get`.
2224
# See https://cdk.tf/provider-generation for more details.
23-
import ...gen.providers.tfe as tfe
24-
class MyConvertedCode(cdktf.TerraformStack):
25+
#
26+
from imports.tfe.no_code_module import NoCodeModule
27+
from imports.tfe.organization import Organization
28+
from imports.tfe.registry_module import RegistryModule
29+
class MyConvertedCode(TerraformStack):
2530
def __init__(self, scope, name):
2631
super().__init__(scope, name)
27-
tfe_organization_foobar = tfe.organization.Organization(self, "foobar",
32+
foobar = Organization(self, "foobar",
2833
2934
name="my-org-name"
3035
)
31-
tfe_registry_module_foobar = tfe.registry_module.RegistryModule(self, "foobar_1",
36+
tfe_registry_module_foobar = RegistryModule(self, "foobar_1",
3237
module_provider="my_provider",
3338
name="test_module",
34-
organization=cdktf.Token.as_string(tfe_organization_foobar.id)
39+
organization=foobar.id
3540
)
3641
# This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.
3742
tfe_registry_module_foobar.override_logical_id("foobar")
38-
tfe_no_code_module_foobar = tfe.no_code_module.NoCodeModule(self, "foobar_2",
39-
organization=cdktf.Token.as_string(tfe_organization_foobar.id),
40-
registry_module=cdktf.Token.as_string(tfe_registry_module_foobar.id)
43+
tfe_no_code_module_foobar = NoCodeModule(self, "foobar_2",
44+
organization=foobar.id,
45+
registry_module=Token.as_string(tfe_registry_module_foobar.id)
4146
)
4247
# This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.
4348
tfe_no_code_module_foobar.override_logical_id("foobar")
@@ -46,28 +51,33 @@ class MyConvertedCode(cdktf.TerraformStack):
4651
Creating a no-code module with variable options:
4752

4853
```python
49-
import constructs as constructs
50-
import cdktf as cdktf
51-
# Provider bindings are generated by running cdktf get.
54+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
55+
from constructs import Construct
56+
from cdktf import Token, TerraformStack
57+
#
58+
# Provider bindings are generated by running `cdktf get`.
5259
# See https://cdk.tf/provider-generation for more details.
53-
import ...gen.providers.tfe as tfe
54-
class MyConvertedCode(cdktf.TerraformStack):
60+
#
61+
from imports.tfe.no_code_module import NoCodeModule
62+
from imports.tfe.organization import Organization
63+
from imports.tfe.registry_module import RegistryModule
64+
class MyConvertedCode(TerraformStack):
5565
def __init__(self, scope, name):
5666
super().__init__(scope, name)
57-
tfe_organization_foobar = tfe.organization.Organization(self, "foobar",
67+
foobar = Organization(self, "foobar",
5868
5969
name="my-org-name"
6070
)
61-
tfe_registry_module_foobar = tfe.registry_module.RegistryModule(self, "foobar_1",
71+
tfe_registry_module_foobar = RegistryModule(self, "foobar_1",
6272
module_provider="my_provider",
6373
name="test_module",
64-
organization=cdktf.Token.as_string(tfe_organization_foobar.id)
74+
organization=foobar.id
6575
)
6676
# This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.
6777
tfe_registry_module_foobar.override_logical_id("foobar")
68-
tfe_no_code_module_foobar = tfe.no_code_module.NoCodeModule(self, "foobar_2",
69-
organization=cdktf.Token.as_string(tfe_organization_foobar.id),
70-
registry_module=cdktf.Token.as_string(tfe_registry_module_foobar.id),
78+
tfe_no_code_module_foobar = NoCodeModule(self, "foobar_2",
79+
organization=foobar.id,
80+
registry_module=Token.as_string(tfe_registry_module_foobar.id),
7181
variable_options=[NoCodeModuleVariableOptions(
7282
name="ami",
7383
options=["ami-0", "ami-1", "ami-2"],
@@ -109,4 +119,4 @@ No-code modules can be imported; use `<NO CODE MODULE ID>` as the import ID. For
109119
terraform import tfe_no_code_module.test nocode-qV9JnKRkmtMa4zcA
110120
```
111121

112-
<!-- cache-key: cdktf-0.17.0-pre.15 input-1204d286dd93ad6b8890ea46ff233ae490bae459320c56bddd6dbe876dc0cdb5 -->
122+
<!-- cache-key: cdktf-0.17.1 input-1204d286dd93ad6b8890ea46ff233ae490bae459320c56bddd6dbe876dc0cdb5 -->

0 commit comments

Comments
 (0)