From acbfaab26feb5748726f68dfc65b996b69a51ded Mon Sep 17 00:00:00 2001 From: Uk1288 <22062046+Uk1288@users.noreply.github.com> Date: Wed, 12 Feb 2025 21:30:56 +0000 Subject: [PATCH 1/2] cdktf: update documentation --- .../cdktf/csharp/d/projects.html.markdown | 6 +- .../cdktf/csharp/d/workspace.html.markdown | 3 +- website/docs/cdktf/csharp/index.html.markdown | 8 +- .../docs/cdktf/csharp/r/project.html.markdown | 3 +- .../r/team_project_access.html.markdown | 6 +- .../cdktf/csharp/r/workspace.html.markdown | 33 +++---- .../docs/cdktf/go/d/projects.html.markdown | 8 +- .../docs/cdktf/go/d/workspace.html.markdown | 3 +- website/docs/cdktf/go/index.html.markdown | 8 +- website/docs/cdktf/go/r/project.html.markdown | 3 +- .../go/r/team_project_access.html.markdown | 4 +- .../docs/cdktf/go/r/workspace.html.markdown | 92 +++++++------------ .../docs/cdktf/java/d/projects.html.markdown | 8 +- .../docs/cdktf/java/d/workspace.html.markdown | 3 +- website/docs/cdktf/java/index.html.markdown | 8 +- .../docs/cdktf/java/r/project.html.markdown | 3 +- .../java/r/team_project_access.html.markdown | 4 +- .../docs/cdktf/java/r/workspace.html.markdown | 3 +- .../cdktf/python/d/projects.html.markdown | 4 +- .../cdktf/python/d/workspace.html.markdown | 3 +- website/docs/cdktf/python/index.html.markdown | 8 +- .../docs/cdktf/python/r/project.html.markdown | 3 +- .../r/team_project_access.html.markdown | 6 +- .../cdktf/python/r/workspace.html.markdown | 32 +++---- .../cdktf/typescript/d/projects.html.markdown | 4 +- .../typescript/d/workspace.html.markdown | 3 +- .../docs/cdktf/typescript/index.html.markdown | 8 +- .../cdktf/typescript/r/project.html.markdown | 3 +- .../r/team_project_access.html.markdown | 4 +- .../typescript/r/workspace.html.markdown | 35 +++---- 30 files changed, 141 insertions(+), 178 deletions(-) diff --git a/website/docs/cdktf/csharp/d/projects.html.markdown b/website/docs/cdktf/csharp/d/projects.html.markdown index 65cdac39d..0e3553e68 100644 --- a/website/docs/cdktf/csharp/d/projects.html.markdown +++ b/website/docs/cdktf/csharp/d/projects.html.markdown @@ -23,7 +23,7 @@ class MyConvertedCode : TerraformStack { public MyConvertedCode(Construct scope, string name) : base(scope, name) { - new DataTfeProjects.DataTfeProjects(this, "all", new Struct { + new DataTfeProjects.DataTfeProjects(this, "all", new DataTfeProjectsConfig { Organization = "my-org-name" }); } @@ -43,6 +43,6 @@ The following arguments are supported: * `Name` - Name of the project. * `Description` - Description of the organization. * `Organization` - Name of the organization. + * `AutoDestroyActivityDuration` - A duration string for all workspaces in the project, representing time after each workspace's activity when an auto-destroy run will be triggered. - - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/csharp/d/workspace.html.markdown b/website/docs/cdktf/csharp/d/workspace.html.markdown index 95ff64ce5..fae655854 100644 --- a/website/docs/cdktf/csharp/d/workspace.html.markdown +++ b/website/docs/cdktf/csharp/d/workspace.html.markdown @@ -53,6 +53,7 @@ In addition to all arguments above, the following attributes are exported: * `AssessmentsEnabled` - (Available only in HCP Terraform) Indicates whether health assessments such as drift detection are enabled for the workspace. * `FileTriggersEnabled` - Indicates whether runs are triggered based on the changed files in a VCS push (if `True`) or always triggered on every push (if `False`). * `GlobalRemoteState` - (Optional) Whether the workspace should allow all workspaces in the organization to access its state data during runs. If false, then only specifically approved workspaces can access its state (determined by the `RemoteStateConsumerIds` argument). +* `InheritsProjectAutoDestroy` - Indicates whether this workspace inherits project auto destroy settings. * `RemoteStateConsumerIds` - (Optional) A set of workspace IDs that will be set as the remote state consumers for the given workspace. Cannot be used if `GlobalRemoteState` is set to `True`. * `Operations` - Indicates whether the workspace is using remote execution mode. Set to `False` to switch execution mode to local. `True` by default. * `PolicyCheckFailures` - The number of policy check failures from the latest run. @@ -90,4 +91,4 @@ The `VcsRepo` block contains: * `OauthTokenId` - OAuth token ID of the configured VCS connection. * `TagsRegex` - A regular expression used to trigger a Workspace run for matching Git tags. - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/csharp/index.html.markdown b/website/docs/cdktf/csharp/index.html.markdown index 3202fce88..486e3d2c2 100644 --- a/website/docs/cdktf/csharp/index.html.markdown +++ b/website/docs/cdktf/csharp/index.html.markdown @@ -77,7 +77,7 @@ automatically installed by `terraform init` in the future: terraform { required_providers { tfe = { - version = "~> 0.63.0" + version = "~> 0.64.0" } } } @@ -90,7 +90,7 @@ The above snippet using `RequiredProviders` is for Terraform 0.13+; if you are u ```hcl provider "tfe" { - version = "~> 0.63.0" + version = "~> 0.64.0" ... } ``` @@ -103,7 +103,7 @@ For more information on provider installation and constraining provider versions provider "tfe" { hostname = var.hostname # Optional, defaults to HCP Terraform `AppTerraformIo` token = var.token - version = "~> 0.63.0" + version = "~> 0.64.0" } # Create an organization @@ -129,4 +129,4 @@ The following arguments are supported: arguments. Ensure that the organization already exists prior to using this argument. This can also be specified using the `TfeOrganization` environment variable. - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/csharp/r/project.html.markdown b/website/docs/cdktf/csharp/r/project.html.markdown index c46f118d1..f3c04338f 100644 --- a/website/docs/cdktf/csharp/r/project.html.markdown +++ b/website/docs/cdktf/csharp/r/project.html.markdown @@ -46,6 +46,7 @@ The following arguments are supported: * TFE versions v202405-1 and later support between 3-40 characters * `Organization` - (Optional) Name of the organization. If omitted, organization must be defined in the provider config. * `Description` - (Optional) A description for the project. +* `AutoDestroyActivityDuration` - A duration string for all workspaces in the project, representing time after each workspace's activity when an auto-destroy run will be triggered. ## Attributes Reference @@ -61,4 +62,4 @@ Projects can be imported; use `` as the import ID. For example: terraform import tfe_project.test prj-niVoeESBXT8ZREhr ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/csharp/r/team_project_access.html.markdown b/website/docs/cdktf/csharp/r/team_project_access.html.markdown index 24536719d..b0e5723b2 100644 --- a/website/docs/cdktf/csharp/r/team_project_access.html.markdown +++ b/website/docs/cdktf/csharp/r/team_project_access.html.markdown @@ -64,6 +64,7 @@ The following permissions apply to the project itself. |---------------------|---------------------------------------------| | `Settings` | The permission to grant for the project's settings. Default: `Read`. Valid strings: `Read`, `Update`, or `Delete` | | `Teams` | The permission to grant for the project's teams. Default: `None`, Valid strings: `None`, `Read`, or `Manage` | +| `VariableSets` | The permission to grant for the project's variable sets. Default: `None`, Valid strings: `None`, `Read`, or `Write` | @@ -108,7 +109,8 @@ class MyConvertedCode : TerraformStack Access = "custom", ProjectAccess = new [] { new TeamProjectAccessProjectAccess { Settings = "read", - Teams = "none" + Teams = "none", + VariableSets = "write" } }, ProjectId = Token.AsString(tfeProjectTest.Id), TeamId = Token.AsString(tfeTeamDev.Id), @@ -141,4 +143,4 @@ example: terraform import tfe_team_project_access.admin tprj-2pmtXpZa4YzVMTPi ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/csharp/r/workspace.html.markdown b/website/docs/cdktf/csharp/r/workspace.html.markdown index ab6b032b5..23ed9a752 100644 --- a/website/docs/cdktf/csharp/r/workspace.html.markdown +++ b/website/docs/cdktf/csharp/r/workspace.html.markdown @@ -17,26 +17,16 @@ Provides a workspace resource. Basic usage: -```csharp -using Constructs; -using HashiCorp.Cdktf; -/*Provider bindings are generated by running cdktf get. -See https://cdk.tf/provider-generation for more details.*/ -using Gen.Providers.Tfe; -class MyConvertedCode : TerraformStack -{ - public MyConvertedCode(Construct scope, string name) : base(scope, name) - { - var tfeOrganizationTestOrganization = new Organization.Organization(this, "test-organization", new OrganizationConfig { - Email = "admin@company.com", - Name = "my-org-name" - }); - new Workspace.Workspace(this, "test", new WorkspaceConfig { - Name = "my-workspace-name", - Organization = Token.AsString(tfeOrganizationTestOrganization.Name), - TagNames = new [] { "test", "app" } - }); - } +```hcl +resource "tfe_organization" "test-organization" { + name = "my-org-name" + email = "admin@company.com" +} + +resource "tfe_workspace" "test" { + name = "my-workspace-name" + organization = tfe_organization.test-organization.name + tag_names = ["test", "app"] } ``` @@ -177,6 +167,7 @@ In addition to all arguments above, the following attributes are exported: * `Id` - The workspace ID. * `ResourceCount` - The number of resources managed by the workspace. * `HtmlUrl` - The URL to the browsable HTML overview of the workspace. +* `InheritsProjectAutoDestroy` - Indicates whether this workspace inherits project auto destroy settings. ## Import @@ -191,4 +182,4 @@ terraform import tfe_workspace.test ws-CH5in3chf8RJjrVd terraform import tfe_workspace.test my-org-name/my-wkspace-name ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/go/d/projects.html.markdown b/website/docs/cdktf/go/d/projects.html.markdown index 510817c92..ebf60488b 100644 --- a/website/docs/cdktf/go/d/projects.html.markdown +++ b/website/docs/cdktf/go/d/projects.html.markdown @@ -26,8 +26,8 @@ type myConvertedCode struct { func newMyConvertedCode(scope construct, name *string) *myConvertedCode { this := &myConvertedCode{} cdktf.NewTerraformStack_Override(this, scope, name) - dataTfeProjects.NewDataTfeProjects(this, jsii.String("all"), map[string]*string{ - "organization": jsii.String("my-org-name"), + dataTfeProjects.NewDataTfeProjects(this, jsii.String("all"), &dataTfeProjectsConfig{ + organization: jsii.String("my-org-name"), }) return this } @@ -46,6 +46,6 @@ The following arguments are supported: * `Name` - Name of the project. * `Description` - Description of the organization. * `Organization` - Name of the organization. + * `AutoDestroyActivityDuration` - A duration string for all workspaces in the project, representing time after each workspace's activity when an auto-destroy run will be triggered. - - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/go/d/workspace.html.markdown b/website/docs/cdktf/go/d/workspace.html.markdown index de9ad5453..234d81650 100644 --- a/website/docs/cdktf/go/d/workspace.html.markdown +++ b/website/docs/cdktf/go/d/workspace.html.markdown @@ -56,6 +56,7 @@ In addition to all arguments above, the following attributes are exported: * `AssessmentsEnabled` - (Available only in HCP Terraform) Indicates whether health assessments such as drift detection are enabled for the workspace. * `FileTriggersEnabled` - Indicates whether runs are triggered based on the changed files in a VCS push (if `True`) or always triggered on every push (if `False`). * `GlobalRemoteState` - (Optional) Whether the workspace should allow all workspaces in the organization to access its state data during runs. If false, then only specifically approved workspaces can access its state (determined by the `RemoteStateConsumerIds` argument). +* `InheritsProjectAutoDestroy` - Indicates whether this workspace inherits project auto destroy settings. * `RemoteStateConsumerIds` - (Optional) A set of workspace IDs that will be set as the remote state consumers for the given workspace. Cannot be used if `GlobalRemoteState` is set to `True`. * `Operations` - Indicates whether the workspace is using remote execution mode. Set to `False` to switch execution mode to local. `True` by default. * `PolicyCheckFailures` - The number of policy check failures from the latest run. @@ -93,4 +94,4 @@ The `VcsRepo` block contains: * `OauthTokenId` - OAuth token ID of the configured VCS connection. * `TagsRegex` - A regular expression used to trigger a Workspace run for matching Git tags. - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/go/index.html.markdown b/website/docs/cdktf/go/index.html.markdown index 3202fce88..486e3d2c2 100644 --- a/website/docs/cdktf/go/index.html.markdown +++ b/website/docs/cdktf/go/index.html.markdown @@ -77,7 +77,7 @@ automatically installed by `terraform init` in the future: terraform { required_providers { tfe = { - version = "~> 0.63.0" + version = "~> 0.64.0" } } } @@ -90,7 +90,7 @@ The above snippet using `RequiredProviders` is for Terraform 0.13+; if you are u ```hcl provider "tfe" { - version = "~> 0.63.0" + version = "~> 0.64.0" ... } ``` @@ -103,7 +103,7 @@ For more information on provider installation and constraining provider versions provider "tfe" { hostname = var.hostname # Optional, defaults to HCP Terraform `AppTerraformIo` token = var.token - version = "~> 0.63.0" + version = "~> 0.64.0" } # Create an organization @@ -129,4 +129,4 @@ The following arguments are supported: arguments. Ensure that the organization already exists prior to using this argument. This can also be specified using the `TfeOrganization` environment variable. - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/go/r/project.html.markdown b/website/docs/cdktf/go/r/project.html.markdown index df35773bc..a35320986 100644 --- a/website/docs/cdktf/go/r/project.html.markdown +++ b/website/docs/cdktf/go/r/project.html.markdown @@ -50,6 +50,7 @@ The following arguments are supported: * TFE versions v202405-1 and later support between 3-40 characters * `Organization` - (Optional) Name of the organization. If omitted, organization must be defined in the provider config. * `Description` - (Optional) A description for the project. +* `AutoDestroyActivityDuration` - A duration string for all workspaces in the project, representing time after each workspace's activity when an auto-destroy run will be triggered. ## Attributes Reference @@ -65,4 +66,4 @@ Projects can be imported; use `` as the import ID. For example: terraform import tfe_project.test prj-niVoeESBXT8ZREhr ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/go/r/team_project_access.html.markdown b/website/docs/cdktf/go/r/team_project_access.html.markdown index c64cfb21c..dfbcaaa6b 100644 --- a/website/docs/cdktf/go/r/team_project_access.html.markdown +++ b/website/docs/cdktf/go/r/team_project_access.html.markdown @@ -69,6 +69,7 @@ The following permissions apply to the project itself. |---------------------|---------------------------------------------| | `Settings` | The permission to grant for the project's settings. Default: `Read`. Valid strings: `Read`, `Update`, or `Delete` | | `Teams` | The permission to grant for the project's teams. Default: `None`, Valid strings: `None`, `Read`, or `Manage` | +| `VariableSets` | The permission to grant for the project's variable sets. Default: `None`, Valid strings: `None`, `Read`, or `Write` | @@ -120,6 +121,7 @@ func newMyConvertedCode(scope construct, name *string) *myConvertedCode { &teamProjectAccessProjectAccess{ settings: jsii.String("read"), teams: jsii.String("none"), + variableSets: jsii.String("write"), }, }, projectId: cdktf.Token_AsString(tfeProjectTest.id), @@ -155,4 +157,4 @@ example: terraform import tfe_team_project_access.admin tprj-2pmtXpZa4YzVMTPi ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/go/r/workspace.html.markdown b/website/docs/cdktf/go/r/workspace.html.markdown index 6d40d4467..5e7a734e3 100644 --- a/website/docs/cdktf/go/r/workspace.html.markdown +++ b/website/docs/cdktf/go/r/workspace.html.markdown @@ -17,75 +17,44 @@ Provides a workspace resource. Basic usage: -```go -import constructs "github.com/aws/constructs-go/constructs" -import "github.com/hashicorp/terraform-cdk-go/cdktf" -/*Provider bindings are generated by running cdktf get. -See https://cdk.tf/provider-generation for more details.*/ -import "github.com/aws-samples/dummy/gen/providers/tfe/organization" -import "github.com/aws-samples/dummy/gen/providers/tfe/workspace" -type myConvertedCode struct { - terraformStack +```hcl +resource "tfe_organization" "test-organization" { + name = "my-org-name" + email = "admin@company.com" } -func newMyConvertedCode(scope construct, name *string) *myConvertedCode { - this := &myConvertedCode{} - cdktf.NewTerraformStack_Override(this, scope, name) - tfeOrganizationTestOrganization := organization.NewOrganization(this, jsii.String("test-organization"), &organizationConfig{ - email: jsii.String("admin@company.com"), - name: jsii.String("my-org-name"), - }) - workspace.NewWorkspace(this, jsii.String("test"), &workspaceConfig{ - name: jsii.String("my-workspace-name"), - organization: cdktf.Token_AsString(tfeOrganizationTestOrganization.name), - tagNames: []*string{ - jsii.String("test"), - jsii.String("app"), - }, - }) - return this +resource "tfe_workspace" "test" { + name = "my-workspace-name" + organization = tfe_organization.test-organization.name + tag_names = ["test", "app"] } ``` Usage with vcs_repo: -```go -import constructs "github.com/aws/constructs-go/constructs" -import "github.com/hashicorp/terraform-cdk-go/cdktf" -/*Provider bindings are generated by running cdktf get. -See https://cdk.tf/provider-generation for more details.*/ -import "github.com/aws-samples/dummy/gen/providers/tfe/organization" -import "github.com/aws-samples/dummy/gen/providers/tfe/oauthClient" -import "github.com/aws-samples/dummy/gen/providers/tfe/workspace" -type myConvertedCode struct { - terraformStack +```hcl +resource "tfe_organization" "test-organization" { + name = "my-org-name" + email = "admin@company.com" } -func newMyConvertedCode(scope construct, name *string) *myConvertedCode { - this := &myConvertedCode{} - cdktf.NewTerraformStack_Override(this, scope, name) - tfeOrganizationTestOrganization := organization.NewOrganization(this, jsii.String("test-organization"), &organizationConfig{ - email: jsii.String("admin@company.com"), - name: jsii.String("my-org-name"), - }) - tfeOauthClientTest := oauthClient.NewOauthClient(this, jsii.String("test"), &oauthClientConfig{ - apiUrl: jsii.String("https://api.github.com"), - httpUrl: jsii.String("https://github.com"), - oauthToken: jsii.String("oauth_token_id"), - organization: tfeOrganizationTestOrganization, - serviceProvider: jsii.String("github"), - }) - workspace.NewWorkspace(this, jsii.String("parent"), &workspaceConfig{ - name: jsii.String("parent-ws"), - organization: tfeOrganizationTestOrganization, - queueAllRuns: jsii.Boolean(false), - vcsRepo: &workspaceVcsRepo{ - branch: jsii.String("main"), - identifier: jsii.String("my-org-name/vcs-repository"), - oauthTokenId: cdktf.Token_AsString(tfeOauthClientTest.oauthTokenId), - }, - }) - return this +resource "tfe_oauth_client" "test" { + organization = tfe_organization.test-organization + api_url = "https://api.github.com" + http_url = "https://github.com" + oauth_token = "oauth_token_id" + service_provider = "github" +} + +resource "tfe_workspace" "parent" { + name = "parent-ws" + organization = tfe_organization.test-organization + queue_all_runs = false + vcs_repo { + branch = "main" + identifier = "my-org-name/vcs-repository" + oauth_token_id = tfe_oauth_client.test.oauth_token_id + } } ``` @@ -189,6 +158,7 @@ In addition to all arguments above, the following attributes are exported: * `Id` - The workspace ID. * `ResourceCount` - The number of resources managed by the workspace. * `HtmlUrl` - The URL to the browsable HTML overview of the workspace. +* `InheritsProjectAutoDestroy` - Indicates whether this workspace inherits project auto destroy settings. ## Import @@ -203,4 +173,4 @@ terraform import tfe_workspace.test ws-CH5in3chf8RJjrVd terraform import tfe_workspace.test my-org-name/my-wkspace-name ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/java/d/projects.html.markdown b/website/docs/cdktf/java/d/projects.html.markdown index a7f0e3879..580e6ce89 100644 --- a/website/docs/cdktf/java/d/projects.html.markdown +++ b/website/docs/cdktf/java/d/projects.html.markdown @@ -22,9 +22,9 @@ import gen.providers.tfe.dataTfeProjects.*; public class MyConvertedCode extends TerraformStack { public MyConvertedCode(Construct scope, String name) { super(scope, name); - DataTfeProjects.Builder.create(this, "all") + new DataTfeProjects(this, "all", new DataTfeProjectsConfig() .organization("my-org-name") - .build(); + ); } } ``` @@ -42,6 +42,6 @@ The following arguments are supported: * `name` - Name of the project. * `description` - Description of the organization. * `organization` - Name of the organization. + * `autoDestroyActivityDuration` - A duration string for all workspaces in the project, representing time after each workspace's activity when an auto-destroy run will be triggered. - - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/java/d/workspace.html.markdown b/website/docs/cdktf/java/d/workspace.html.markdown index e2722a3f2..fa826a94b 100644 --- a/website/docs/cdktf/java/d/workspace.html.markdown +++ b/website/docs/cdktf/java/d/workspace.html.markdown @@ -52,6 +52,7 @@ In addition to all arguments above, the following attributes are exported: * `assessmentsEnabled` - (Available only in HCP Terraform) Indicates whether health assessments such as drift detection are enabled for the workspace. * `fileTriggersEnabled` - Indicates whether runs are triggered based on the changed files in a VCS push (if `true`) or always triggered on every push (if `false`). * `globalRemoteState` - (Optional) Whether the workspace should allow all workspaces in the organization to access its state data during runs. If false, then only specifically approved workspaces can access its state (determined by the `remoteStateConsumerIds` argument). +* `inheritsProjectAutoDestroy` - Indicates whether this workspace inherits project auto destroy settings. * `remoteStateConsumerIds` - (Optional) A set of workspace IDs that will be set as the remote state consumers for the given workspace. Cannot be used if `globalRemoteState` is set to `true`. * `operations` - Indicates whether the workspace is using remote execution mode. Set to `false` to switch execution mode to local. `true` by default. * `policyCheckFailures` - The number of policy check failures from the latest run. @@ -89,4 +90,4 @@ The `vcsRepo` block contains: * `oauthTokenId` - OAuth token ID of the configured VCS connection. * `tagsRegex` - A regular expression used to trigger a Workspace run for matching Git tags. - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/java/index.html.markdown b/website/docs/cdktf/java/index.html.markdown index f84ccad2c..511d1d4b4 100644 --- a/website/docs/cdktf/java/index.html.markdown +++ b/website/docs/cdktf/java/index.html.markdown @@ -77,7 +77,7 @@ automatically installed by `terraform init` in the future: terraform { required_providers { tfe = { - version = "~> 0.63.0" + version = "~> 0.64.0" } } } @@ -90,7 +90,7 @@ The above snippet using `requiredProviders` is for Terraform 0.13+; if you are u ```hcl provider "tfe" { - version = "~> 0.63.0" + version = "~> 0.64.0" ... } ``` @@ -103,7 +103,7 @@ For more information on provider installation and constraining provider versions provider "tfe" { hostname = var.hostname # Optional, defaults to HCP Terraform `appTerraformIo` token = var.token - version = "~> 0.63.0" + version = "~> 0.64.0" } # Create an organization @@ -129,4 +129,4 @@ The following arguments are supported: arguments. Ensure that the organization already exists prior to using this argument. This can also be specified using the `tfeOrganization` environment variable. - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/java/r/project.html.markdown b/website/docs/cdktf/java/r/project.html.markdown index d667c86a4..ba86a7b04 100644 --- a/website/docs/cdktf/java/r/project.html.markdown +++ b/website/docs/cdktf/java/r/project.html.markdown @@ -46,6 +46,7 @@ The following arguments are supported: * TFE versions v202405-1 and later support between 3-40 characters * `organization` - (Optional) Name of the organization. If omitted, organization must be defined in the provider config. * `description` - (Optional) A description for the project. +* `autoDestroyActivityDuration` - A duration string for all workspaces in the project, representing time after each workspace's activity when an auto-destroy run will be triggered. ## Attributes Reference @@ -61,4 +62,4 @@ Projects can be imported; use `` as the import ID. For example: terraform import tfe_project.test prj-niVoeESBXT8ZREhr ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/java/r/team_project_access.html.markdown b/website/docs/cdktf/java/r/team_project_access.html.markdown index c776470a9..4fb6e7522 100644 --- a/website/docs/cdktf/java/r/team_project_access.html.markdown +++ b/website/docs/cdktf/java/r/team_project_access.html.markdown @@ -65,6 +65,7 @@ The following permissions apply to the project itself. |---------------------|---------------------------------------------| | `settings` | The permission to grant for the project's settings. Default: `read`. Valid strings: `read`, `update`, or `delete` | | `teams` | The permission to grant for the project's teams. Default: `none`, Valid strings: `none`, `read`, or `manage` | +| `variableSets` | The permission to grant for the project's variable sets. Default: `none`, Valid strings: `none`, `read`, or `write` | @@ -111,6 +112,7 @@ public class MyConvertedCode extends TerraformStack { .projectAccess(List.of(new TeamProjectAccessProjectAccess() .settings("read") .teams("none") + .variableSets("write") )) .projectId(Token.asString(tfeProjectTest.getId())) .teamId(Token.asString(tfeTeamDev.getId())) @@ -143,4 +145,4 @@ example: terraform import tfe_team_project_access.admin tprj-2pmtXpZa4YzVMTPi ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/java/r/workspace.html.markdown b/website/docs/cdktf/java/r/workspace.html.markdown index f52f3ce82..bc0b5b94b 100644 --- a/website/docs/cdktf/java/r/workspace.html.markdown +++ b/website/docs/cdktf/java/r/workspace.html.markdown @@ -178,6 +178,7 @@ In addition to all arguments above, the following attributes are exported: * `id` - The workspace ID. * `resourceCount` - The number of resources managed by the workspace. * `htmlUrl` - The URL to the browsable HTML overview of the workspace. +* `inheritsProjectAutoDestroy` - Indicates whether this workspace inherits project auto destroy settings. ## Import @@ -192,4 +193,4 @@ terraform import tfe_workspace.test ws-CH5in3chf8RJjrVd terraform import tfe_workspace.test my-org-name/my-wkspace-name ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/python/d/projects.html.markdown b/website/docs/cdktf/python/d/projects.html.markdown index d690f8bba..d490266fb 100644 --- a/website/docs/cdktf/python/d/projects.html.markdown +++ b/website/docs/cdktf/python/d/projects.html.markdown @@ -40,6 +40,6 @@ The following arguments are supported: * `name` - Name of the project. * `description` - Description of the organization. * `organization` - Name of the organization. + * `auto_destroy_activity_duration` - A duration string for all workspaces in the project, representing time after each workspace's activity when an auto-destroy run will be triggered. - - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/python/d/workspace.html.markdown b/website/docs/cdktf/python/d/workspace.html.markdown index 2f64c25e0..00f587065 100644 --- a/website/docs/cdktf/python/d/workspace.html.markdown +++ b/website/docs/cdktf/python/d/workspace.html.markdown @@ -50,6 +50,7 @@ In addition to all arguments above, the following attributes are exported: * `assessments_enabled` - (Available only in HCP Terraform) Indicates whether health assessments such as drift detection are enabled for the workspace. * `file_triggers_enabled` - Indicates whether runs are triggered based on the changed files in a VCS push (if `true`) or always triggered on every push (if `false`). * `global_remote_state` - (Optional) Whether the workspace should allow all workspaces in the organization to access its state data during runs. If false, then only specifically approved workspaces can access its state (determined by the `remote_state_consumer_ids` argument). +* `inherits_project_auto_destroy` - Indicates whether this workspace inherits project auto destroy settings. * `remote_state_consumer_ids` - (Optional) A set of workspace IDs that will be set as the remote state consumers for the given workspace. Cannot be used if `global_remote_state` is set to `true`. * `operations` - Indicates whether the workspace is using remote execution mode. Set to `false` to switch execution mode to local. `true` by default. * `policy_check_failures` - The number of policy check failures from the latest run. @@ -87,4 +88,4 @@ The `vcs_repo` block contains: * `oauth_token_id` - OAuth token ID of the configured VCS connection. * `tags_regex` - A regular expression used to trigger a Workspace run for matching Git tags. - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/python/index.html.markdown b/website/docs/cdktf/python/index.html.markdown index abdfec7ed..b4776bae3 100644 --- a/website/docs/cdktf/python/index.html.markdown +++ b/website/docs/cdktf/python/index.html.markdown @@ -77,7 +77,7 @@ automatically installed by `terraform init` in the future: terraform { required_providers { tfe = { - version = "~> 0.63.0" + version = "~> 0.64.0" } } } @@ -90,7 +90,7 @@ The above snippet using `required_providers` is for Terraform 0.13+; if you are ```hcl provider "tfe" { - version = "~> 0.63.0" + version = "~> 0.64.0" ... } ``` @@ -103,7 +103,7 @@ For more information on provider installation and constraining provider versions provider "tfe" { hostname = var.hostname # Optional, defaults to HCP Terraform `app.terraform.io` token = var.token - version = "~> 0.63.0" + version = "~> 0.64.0" } # Create an organization @@ -129,4 +129,4 @@ The following arguments are supported: arguments. Ensure that the organization already exists prior to using this argument. This can also be specified using the `TFE_ORGANIZATION` environment variable. - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/python/r/project.html.markdown b/website/docs/cdktf/python/r/project.html.markdown index 4516f3c69..1438bcab7 100644 --- a/website/docs/cdktf/python/r/project.html.markdown +++ b/website/docs/cdktf/python/r/project.html.markdown @@ -43,6 +43,7 @@ The following arguments are supported: * TFE versions v202405-1 and later support between 3-40 characters * `organization` - (Optional) Name of the organization. If omitted, organization must be defined in the provider config. * `description` - (Optional) A description for the project. +* `auto_destroy_activity_duration` - A duration string for all workspaces in the project, representing time after each workspace's activity when an auto-destroy run will be triggered. ## Attributes Reference @@ -58,4 +59,4 @@ Projects can be imported; use `` as the import ID. For example: terraform import tfe_project.test prj-niVoeESBXT8ZREhr ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/python/r/team_project_access.html.markdown b/website/docs/cdktf/python/r/team_project_access.html.markdown index 826b49805..64ef7d0db 100644 --- a/website/docs/cdktf/python/r/team_project_access.html.markdown +++ b/website/docs/cdktf/python/r/team_project_access.html.markdown @@ -61,6 +61,7 @@ The following permissions apply to the project itself. |---------------------|---------------------------------------------| | `settings` | The permission to grant for the project's settings. Default: `read`. Valid strings: `read`, `update`, or `delete` | | `teams` | The permission to grant for the project's teams. Default: `none`, Valid strings: `none`, `read`, or `manage` | +| `variable_sets` | The permission to grant for the project's variable sets. Default: `none`, Valid strings: `none`, `read`, or `write` | @@ -104,7 +105,8 @@ class MyConvertedCode(cdktf.TerraformStack): access="custom", project_access=[TeamProjectAccessProjectAccess( settings="read", - teams="none" + teams="none", + variable_sets="write" ) ], project_id=cdktf.Token.as_string(tfe_project_test.id), @@ -137,4 +139,4 @@ example: terraform import tfe_team_project_access.admin tprj-2pmtXpZa4YzVMTPi ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/python/r/workspace.html.markdown b/website/docs/cdktf/python/r/workspace.html.markdown index db45e9189..d8e18c911 100644 --- a/website/docs/cdktf/python/r/workspace.html.markdown +++ b/website/docs/cdktf/python/r/workspace.html.markdown @@ -17,24 +17,17 @@ Provides a workspace resource. Basic usage: -```python -import constructs as constructs -import cdktf as cdktf -# Provider bindings are generated by running cdktf get. -# See https://cdk.tf/provider-generation for more details. -import ...gen.providers.tfe as tfe -class MyConvertedCode(cdktf.TerraformStack): - def __init__(self, scope, name): - super().__init__(scope, name) - tfe_organization_test_organization = tfe.organization.Organization(self, "test-organization", - email="admin@company.com", - name="my-org-name" - ) - tfe.workspace.Workspace(self, "test", - name="my-workspace-name", - organization=cdktf.Token.as_string(tfe_organization_test_organization.name), - tag_names=["test", "app"] - ) +```hcl +resource "tfe_organization" "test-organization" { + name = "my-org-name" + email = "admin@company.com" +} + +resource "tfe_workspace" "test" { + name = "my-workspace-name" + organization = tfe_organization.test-organization.name + tag_names = ["test", "app"] +} ``` Usage with vcs_repo: @@ -171,6 +164,7 @@ In addition to all arguments above, the following attributes are exported: * `id` - The workspace ID. * `resource_count` - The number of resources managed by the workspace. * `html_url` - The URL to the browsable HTML overview of the workspace. +* `inherits_project_auto_destroy` - Indicates whether this workspace inherits project auto destroy settings. ## Import @@ -185,4 +179,4 @@ terraform import tfe_workspace.test ws-CH5in3chf8RJjrVd terraform import tfe_workspace.test my-org-name/my-wkspace-name ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/typescript/d/projects.html.markdown b/website/docs/cdktf/typescript/d/projects.html.markdown index 14241bc46..a9ba27429 100644 --- a/website/docs/cdktf/typescript/d/projects.html.markdown +++ b/website/docs/cdktf/typescript/d/projects.html.markdown @@ -43,6 +43,6 @@ The following arguments are supported: * `name` - Name of the project. * `description` - Description of the organization. * `organization` - Name of the organization. + * `autoDestroyActivityDuration` - A duration string for all workspaces in the project, representing time after each workspace's activity when an auto-destroy run will be triggered. - - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/typescript/d/workspace.html.markdown b/website/docs/cdktf/typescript/d/workspace.html.markdown index 02d8a3f85..f982d192b 100644 --- a/website/docs/cdktf/typescript/d/workspace.html.markdown +++ b/website/docs/cdktf/typescript/d/workspace.html.markdown @@ -53,6 +53,7 @@ In addition to all arguments above, the following attributes are exported: * `assessmentsEnabled` - (Available only in HCP Terraform) Indicates whether health assessments such as drift detection are enabled for the workspace. * `fileTriggersEnabled` - Indicates whether runs are triggered based on the changed files in a VCS push (if `true`) or always triggered on every push (if `false`). * `globalRemoteState` - (Optional) Whether the workspace should allow all workspaces in the organization to access its state data during runs. If false, then only specifically approved workspaces can access its state (determined by the `remoteStateConsumerIds` argument). +* `inheritsProjectAutoDestroy` - Indicates whether this workspace inherits project auto destroy settings. * `remoteStateConsumerIds` - (Optional) A set of workspace IDs that will be set as the remote state consumers for the given workspace. Cannot be used if `globalRemoteState` is set to `true`. * `operations` - Indicates whether the workspace is using remote execution mode. Set to `false` to switch execution mode to local. `true` by default. * `policyCheckFailures` - The number of policy check failures from the latest run. @@ -90,4 +91,4 @@ The `vcsRepo` block contains: * `oauthTokenId` - OAuth token ID of the configured VCS connection. * `tagsRegex` - A regular expression used to trigger a Workspace run for matching Git tags. - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/typescript/index.html.markdown b/website/docs/cdktf/typescript/index.html.markdown index f84ccad2c..511d1d4b4 100644 --- a/website/docs/cdktf/typescript/index.html.markdown +++ b/website/docs/cdktf/typescript/index.html.markdown @@ -77,7 +77,7 @@ automatically installed by `terraform init` in the future: terraform { required_providers { tfe = { - version = "~> 0.63.0" + version = "~> 0.64.0" } } } @@ -90,7 +90,7 @@ The above snippet using `requiredProviders` is for Terraform 0.13+; if you are u ```hcl provider "tfe" { - version = "~> 0.63.0" + version = "~> 0.64.0" ... } ``` @@ -103,7 +103,7 @@ For more information on provider installation and constraining provider versions provider "tfe" { hostname = var.hostname # Optional, defaults to HCP Terraform `appTerraformIo` token = var.token - version = "~> 0.63.0" + version = "~> 0.64.0" } # Create an organization @@ -129,4 +129,4 @@ The following arguments are supported: arguments. Ensure that the organization already exists prior to using this argument. This can also be specified using the `tfeOrganization` environment variable. - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/typescript/r/project.html.markdown b/website/docs/cdktf/typescript/r/project.html.markdown index fb6f71b7d..6597456c0 100644 --- a/website/docs/cdktf/typescript/r/project.html.markdown +++ b/website/docs/cdktf/typescript/r/project.html.markdown @@ -50,6 +50,7 @@ The following arguments are supported: * TFE versions v202405-1 and later support between 3-40 characters * `organization` - (Optional) Name of the organization. If omitted, organization must be defined in the provider config. * `description` - (Optional) A description for the project. +* `autoDestroyActivityDuration` - A duration string for all workspaces in the project, representing time after each workspace's activity when an auto-destroy run will be triggered. ## Attributes Reference @@ -65,4 +66,4 @@ Projects can be imported; use `` as the import ID. For example: terraform import tfe_project.test prj-niVoeESBXT8ZREhr ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/typescript/r/team_project_access.html.markdown b/website/docs/cdktf/typescript/r/team_project_access.html.markdown index 10eccae74..937458ae8 100644 --- a/website/docs/cdktf/typescript/r/team_project_access.html.markdown +++ b/website/docs/cdktf/typescript/r/team_project_access.html.markdown @@ -64,6 +64,7 @@ The following permissions apply to the project itself. |---------------------|---------------------------------------------| | `settings` | The permission to grant for the project's settings. Default: `read`. Valid strings: `read`, `update`, or `delete` | | `teams` | The permission to grant for the project's teams. Default: `none`, Valid strings: `none`, `read`, or `manage` | +| `variableSets` | The permission to grant for the project's variable sets. Default: `none`, Valid strings: `none`, `read`, or `write` | @@ -109,6 +110,7 @@ class MyConvertedCode extends cdktf.TerraformStack { { settings: "read", teams: "none", + variableSets: "write", }, ], projectId: cdktf.Token.asString(tfeProjectTest.id), @@ -145,4 +147,4 @@ example: terraform import tfe_team_project_access.admin tprj-2pmtXpZa4YzVMTPi ``` - \ No newline at end of file + \ No newline at end of file diff --git a/website/docs/cdktf/typescript/r/workspace.html.markdown b/website/docs/cdktf/typescript/r/workspace.html.markdown index afd4fbd18..369f8ca55 100644 --- a/website/docs/cdktf/typescript/r/workspace.html.markdown +++ b/website/docs/cdktf/typescript/r/workspace.html.markdown @@ -17,31 +17,17 @@ Provides a workspace resource. Basic usage: -```typescript -import * as constructs from "constructs"; -import * as cdktf from "cdktf"; -/*Provider bindings are generated by running cdktf get. -See https://cdk.tf/provider-generation for more details.*/ -import * as tfe from "./.gen/providers/tfe"; -class MyConvertedCode extends cdktf.TerraformStack { - constructor(scope: constructs.Construct, name: string) { - super(scope, name); - const tfeOrganizationTestOrganization = new tfe.organization.Organization( - this, - "test-organization", - { - email: "admin@company.com", - name: "my-org-name", - } - ); - new tfe.workspace.Workspace(this, "test", { - name: "my-workspace-name", - organization: cdktf.Token.asString(tfeOrganizationTestOrganization.name), - tagNames: ["test", "app"], - }); - } +```hcl +resource "tfe_organization" "test-organization" { + name = "my-org-name" + email = "admin@company.com" } +resource "tfe_workspace" "test" { + name = "my-workspace-name" + organization = tfe_organization.test-organization.name + tag_names = ["test", "app"] +} ``` Usage with vcs_repo: @@ -185,6 +171,7 @@ In addition to all arguments above, the following attributes are exported: * `id` - The workspace ID. * `resourceCount` - The number of resources managed by the workspace. * `htmlUrl` - The URL to the browsable HTML overview of the workspace. +* `inheritsProjectAutoDestroy` - Indicates whether this workspace inherits project auto destroy settings. ## Import @@ -199,4 +186,4 @@ terraform import tfe_workspace.test ws-CH5in3chf8RJjrVd terraform import tfe_workspace.test my-org-name/my-wkspace-name ``` - \ No newline at end of file + \ No newline at end of file From 5f32102e1a0061bab65d1089f332f4df2a226197 Mon Sep 17 00:00:00 2001 From: UKEME BASSEY Date: Wed, 12 Feb 2025 17:05:27 -0500 Subject: [PATCH 2/2] Trigger using Empty commit