Skip to content

Commit ec0e459

Browse files
committed
cdktf: update r/run_trigger.html.markdown,r/registry_module.html.markdown,r/project_variable_set.html.markdown,r/project_policy_set.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.html.markdown
1 parent fe0292b commit ec0e459

20 files changed

+729
-530
lines changed

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: |-
55
Manages Run tasks.
66
---
77

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

1012
[Run tasks](https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings/run-tasks) allow Terraform Cloud to interact with external systems at specific points in the Terraform Cloud run lifecycle. Run tasks are reusable configurations that you can attach to any workspace in an organization.
@@ -16,15 +18,18 @@ The tfe_organization_run_task resource creates, updates and destroys [Organizati
1618
Basic usage:
1719

1820
```python
19-
import constructs as constructs
20-
import cdktf as cdktf
21-
# 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`.
2226
# See https://cdk.tf/provider-generation for more details.
23-
import ...gen.providers.tfe as tfe
24-
class MyConvertedCode(cdktf.TerraformStack):
27+
#
28+
from imports.tfe.organization_run_task import OrganizationRunTask
29+
class MyConvertedCode(TerraformStack):
2530
def __init__(self, scope, name):
2631
super().__init__(scope, name)
27-
tfe.organization_run_task.OrganizationRunTask(self, "example",
32+
OrganizationRunTask(self, "example",
2833
description="An example task",
2934
enabled=True,
3035
name="task-name",
@@ -58,4 +63,4 @@ import ID. For example:
5863
terraform import tfe_organization_run_task.test my-org-name/task-name
5964
```
6065

61-
<!-- cache-key: cdktf-0.17.0-pre.15 input-2482057418e7cc734368ed47d407a461dfa8ee113ddf7518616de198f1a08f83 -->
66+
<!-- cache-key: cdktf-0.17.1 input-2482057418e7cc734368ed47d407a461dfa8ee113ddf7518616de198f1a08f83 -->

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

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@ can be used to act as the organization service account.
1717
Basic usage:
1818

1919
```python
20-
import constructs as constructs
21-
import cdktf as cdktf
22-
# 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`.
2325
# See https://cdk.tf/provider-generation for more details.
24-
import ...gen.providers.tfe as tfe
25-
class MyConvertedCode(cdktf.TerraformStack):
26+
#
27+
from imports.tfe.organization_token import OrganizationToken
28+
class MyConvertedCode(TerraformStack):
2629
def __init__(self, scope, name):
2730
super().__init__(scope, name)
28-
tfe.organization_token.OrganizationToken(self, "test",
31+
OrganizationToken(self, "test",
2932
organization="my-org-name"
3033
)
3134
```
@@ -46,15 +49,28 @@ never expire.
4649

4750
When a token has an expiry:
4851

49-
```hcl
50-
resource "time_rotating" "example" {
51-
rotation_days = 30
52-
}
53-
54-
resource "tfe_organization_token" "test" {
55-
organization = data.tfe_organization.org.name
56-
expired_at = time_rotating.example.rotation_rfc3339
57-
}
52+
```python
53+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
54+
from constructs import Construct
55+
from cdktf import Token, TerraformStack
56+
#
57+
# Provider bindings are generated by running `cdktf get`.
58+
# See https://cdk.tf/provider-generation for more details.
59+
#
60+
from imports.tfe.organization_token import OrganizationToken
61+
from imports.time.rotating import Rotating
62+
class MyConvertedCode(TerraformStack):
63+
def __init__(self, scope, name):
64+
super().__init__(scope, name)
65+
# The following providers are missing schema information and might need manual adjustments to synthesize correctly: time.
66+
# For a more precise conversion please use the --provider flag in convert.
67+
example = Rotating(self, "example",
68+
rotation_days=30
69+
)
70+
OrganizationToken(self, "test",
71+
expired_at=Token.as_string(example.rotation_rfc3339),
72+
organization=Token.as_string(org.name)
73+
)
5874
```
5975

6076
## Attributes Reference
@@ -71,4 +87,4 @@ For example:
7187
terraform import tfe_organization_token.test my-org-name
7288
```
7389

74-
<!-- cache-key: cdktf-0.17.0-pre.15 input-5b9e020334a13d0577c4e9e4346975577380e0411aedc8378ee9dd8564dceb66 -->
90+
<!-- cache-key: cdktf-0.17.1 input-5b9e020334a13d0577c4e9e4346975577380e0411aedc8378ee9dd8564dceb66 -->

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

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ enforced during runs.
2121
Basic usage for Sentinel:
2222

2323
```python
24-
import constructs as constructs
25-
import cdktf as cdktf
26-
# Provider bindings are generated by running cdktf get.
24+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
25+
from constructs import Construct
26+
from cdktf import TerraformStack
27+
#
28+
# Provider bindings are generated by running `cdktf get`.
2729
# See https://cdk.tf/provider-generation for more details.
28-
import ...gen.providers.tfe as tfe
29-
class MyConvertedCode(cdktf.TerraformStack):
30+
#
31+
from imports.tfe.policy import Policy
32+
class MyConvertedCode(TerraformStack):
3033
def __init__(self, scope, name):
3134
super().__init__(scope, name)
32-
tfe.policy.Policy(self, "test",
35+
Policy(self, "test",
3336
description="This policy always passes",
3437
enforce_mode="hard-mandatory",
3538
kind="sentinel",
@@ -42,15 +45,18 @@ class MyConvertedCode(cdktf.TerraformStack):
4245
Basic usage for Open Policy Agent(OPA):
4346

4447
```python
45-
import constructs as constructs
46-
import cdktf as cdktf
47-
# Provider bindings are generated by running cdktf get.
48+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
49+
from constructs import Construct
50+
from cdktf import TerraformStack
51+
#
52+
# Provider bindings are generated by running `cdktf get`.
4853
# See https://cdk.tf/provider-generation for more details.
49-
import ...gen.providers.tfe as tfe
50-
class MyConvertedCode(cdktf.TerraformStack):
54+
#
55+
from imports.tfe.policy import Policy
56+
class MyConvertedCode(TerraformStack):
5157
def __init__(self, scope, name):
5258
super().__init__(scope, name)
53-
tfe.policy.Policy(self, "test",
59+
Policy(self, "test",
5460
description="This policy always passes",
5561
enforce_mode="mandatory",
5662
kind="opa",
@@ -91,4 +97,4 @@ import ID. For example:
9197
terraform import tfe_policy.test my-org-name/pol-wAs3zYmWAhYK7peR
9298
```
9399

94-
<!-- cache-key: cdktf-0.17.0-pre.15 input-ea229695faa93801409757c25356cacdfc7085cbdb339121ab75a922171703db -->
100+
<!-- cache-key: cdktf-0.17.1 input-ea229695faa93801409757c25356cacdfc7085cbdb339121ab75a922171703db -->

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

Lines changed: 74 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: |-
55
Manages policy sets.
66
---
77

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

1012
Policies are rules enforced on Terraform runs. Two policy-as-code frameworks are
@@ -19,54 +21,85 @@ for workspaces that the policy set is attached to.
1921

2022
Basic usage (VCS-based policy set):
2123

22-
```hcl
23-
resource "tfe_policy_set" "test" {
24-
name = "my-policy-set"
25-
description = "A brand new policy set"
26-
organization = "my-org-name"
27-
kind = "sentinel"
28-
policies_path = "policies/my-policy-set"
29-
workspace_ids = [tfe_workspace.test.id]
30-
31-
vcs_repo {
32-
identifier = "my-org-name/my-policy-set-repository"
33-
branch = "main"
34-
ingress_submodules = false
35-
oauth_token_id = tfe_oauth_client.test.oauth_token_id
36-
}
37-
}
24+
```python
25+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
26+
from constructs import Construct
27+
from cdktf import Token, TerraformStack
28+
#
29+
# Provider bindings are generated by running `cdktf get`.
30+
# See https://cdk.tf/provider-generation for more details.
31+
#
32+
from imports.tfe.policy_set import PolicySet
33+
class MyConvertedCode(TerraformStack):
34+
def __init__(self, scope, name):
35+
super().__init__(scope, name)
36+
PolicySet(self, "test",
37+
description="A brand new policy set",
38+
kind="sentinel",
39+
name="my-policy-set",
40+
organization="my-org-name",
41+
policies_path="policies/my-policy-set",
42+
vcs_repo=PolicySetVcsRepo(
43+
branch="main",
44+
identifier="my-org-name/my-policy-set-repository",
45+
ingress_submodules=False,
46+
oauth_token_id=Token.as_string(tfe_oauth_client_test.oauth_token_id)
47+
),
48+
workspace_ids=[Token.as_string(tfe_workspace_test.id)]
49+
)
3850
```
3951

4052
Using manually-specified policies:
4153

42-
```hcl
43-
resource "tfe_policy_set" "test" {
44-
name = "my-policy-set"
45-
description = "A brand new policy set"
46-
organization = "my-org-name"
47-
kind = "sentinel"
48-
policy_ids = [tfe_sentinel_policy.test.id]
49-
workspace_ids = [tfe_workspace.test.id]
50-
}
54+
```python
55+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
56+
from constructs import Construct
57+
from cdktf import Token, TerraformStack
58+
#
59+
# Provider bindings are generated by running `cdktf get`.
60+
# See https://cdk.tf/provider-generation for more details.
61+
#
62+
from imports.tfe.policy_set import PolicySet
63+
class MyConvertedCode(TerraformStack):
64+
def __init__(self, scope, name):
65+
super().__init__(scope, name)
66+
PolicySet(self, "test",
67+
description="A brand new policy set",
68+
kind="sentinel",
69+
name="my-policy-set",
70+
organization="my-org-name",
71+
policy_ids=[Token.as_string(tfe_sentinel_policy_test.id)],
72+
workspace_ids=[Token.as_string(tfe_workspace_test.id)]
73+
)
5174
```
5275

5376
Manually uploaded policy set, in lieu of VCS:
5477

55-
```hcl
56-
data "tfe_slug" "test" {
57-
// point to the local directory where the policies are located.
58-
source_path = "policies/my-policy-set"
59-
}
60-
61-
resource "tfe_policy_set" "test" {
62-
name = "my-policy-set"
63-
description = "A brand new policy set"
64-
organization = "my-org-name"
65-
workspace_ids = [tfe_workspace.test.id]
66-
67-
// reference the tfe_slug data source.
68-
slug = data.tfe_slug.test
69-
}
78+
```python
79+
# Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
80+
from constructs import Construct
81+
from cdktf import Token, TerraformStack
82+
#
83+
# Provider bindings are generated by running `cdktf get`.
84+
# See https://cdk.tf/provider-generation for more details.
85+
#
86+
from imports.tfe.data_tfe_slug import DataTfeSlug
87+
from imports.tfe.policy_set import PolicySet
88+
class MyConvertedCode(TerraformStack):
89+
def __init__(self, scope, name):
90+
super().__init__(scope, name)
91+
test = DataTfeSlug(self, "test",
92+
source_path="policies/my-policy-set"
93+
)
94+
tfe_policy_set_test = PolicySet(self, "test_1",
95+
description="A brand new policy set",
96+
name="my-policy-set",
97+
organization="my-org-name",
98+
slug=Token.as_string_map(test),
99+
workspace_ids=[Token.as_string(tfe_workspace_test.id)]
100+
)
101+
# This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.
102+
tfe_policy_set_test.override_logical_id("test")
70103
```
71104

72105
## Argument Reference
@@ -126,4 +159,4 @@ Policy sets can be imported; use `<POLICY SET ID>` as the import ID. For example
126159
terraform import tfe_policy_set.test polset-wAs3zYmWAhYK7peR
127160
```
128161

129-
<!-- cache-key: cdktf-0.17.0-pre.15 input-87dbe1491f5d0ac7c103cc9c7efc59a2174d7dcb1ad313a0a80615bf40216578 -->
162+
<!-- cache-key: cdktf-0.17.1 input-87dbe1491f5d0ac7c103cc9c7efc59a2174d7dcb1ad313a0a80615bf40216578 -->

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

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: |-
55
Manages policy set parameters.
66
---
77

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

1012
Creates, updates and destroys policy set parameters.
@@ -14,28 +16,32 @@ Creates, updates and destroys policy set parameters.
1416
Basic usage:
1517

1618
```python
17-
import constructs as constructs
18-
import cdktf as cdktf
19-
# 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`.
2024
# See https://cdk.tf/provider-generation for more details.
21-
import ...gen.providers.tfe as tfe
22-
class MyConvertedCode(cdktf.TerraformStack):
25+
#
26+
from imports.tfe.organization import Organization
27+
from imports.tfe.policy_set import PolicySet
28+
from imports.tfe.policy_set_parameter import PolicySetParameter
29+
class MyConvertedCode(TerraformStack):
2330
def __init__(self, scope, name):
2431
super().__init__(scope, name)
25-
tfe_organization_test = tfe.organization.Organization(self, "test",
32+
test = Organization(self, "test",
2633
2734
name="my-org-name"
2835
)
29-
tfe_policy_set_test = tfe.policy_set.PolicySet(self, "test_1",
36+
tfe_policy_set_test = PolicySet(self, "test_1",
3037
name="my-policy-set-name",
31-
organization=cdktf.Token.as_string(tfe_organization_test.id)
38+
organization=test.id
3239
)
3340
# This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.
3441
tfe_policy_set_test.override_logical_id("test")
35-
tfe_policy_set_parameter_test =
36-
tfe.policy_set_parameter.PolicySetParameter(self, "test_2",
42+
tfe_policy_set_parameter_test = PolicySetParameter(self, "test_2",
3743
key="my_key_name",
38-
policy_set_id=cdktf.Token.as_string(tfe_policy_set_test.id),
44+
policy_set_id=Token.as_string(tfe_policy_set_test.id),
3945
value="my_value_name"
4046
)
4147
# This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.
@@ -67,4 +73,4 @@ terraform import tfe_policy_set_parameter.test polset-wAs3zYmWAhYK7peR/var-5rTwn
6773
```
6874

6975

70-
<!-- cache-key: cdktf-0.17.0-pre.15 input-3d439f538435c91fac393d64ba8c1ac4db8481770f20e794bdb2cde671211a74 -->
76+
<!-- cache-key: cdktf-0.17.1 input-3d439f538435c91fac393d64ba8c1ac4db8481770f20e794bdb2cde671211a74 -->

0 commit comments

Comments
 (0)