Skip to content

Commit

Permalink
Merge pull request hashicorp#1608 from hashicorp/create-pull-request/…
Browse files Browse the repository at this point in the history
…patch

release: v0.64.0
  • Loading branch information
Uk1288 authored Feb 12, 2025
2 parents e0e0eb4 + 5f32102 commit 6b6e113
Show file tree
Hide file tree
Showing 30 changed files with 141 additions and 178 deletions.
6 changes: 3 additions & 3 deletions website/docs/cdktf/csharp/d/projects.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});
}
Expand All @@ -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.


<!-- cache-key: cdktf-0.17.0-pre.15 input-98a90539531e97fa5e4034996187e685dd605e9a2a8a2d3a58acca240f7dc197 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-80f7374bb86183375fd75ccdf9e337a9635c8ca4a605c4f1544be31f69bcced8 -->
3 changes: 2 additions & 1 deletion website/docs/cdktf/csharp/d/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.

<!-- cache-key: cdktf-0.17.0-pre.15 input-ae8f9f76e2d23dc67ab5c3690201b7bf88a8d93dc83db02352e0f31425999200 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-d80e2cf72aa52f98270a38620225ac1ef8a4810885e13dedc294ad2c1d21c880 -->
8 changes: 4 additions & 4 deletions website/docs/cdktf/csharp/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ automatically installed by `terraform init` in the future:
terraform {
required_providers {
tfe = {
version = "~> 0.63.0"
version = "~> 0.64.0"
}
}
}
Expand All @@ -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"
...
}
```
Expand All @@ -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
Expand All @@ -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.

<!-- cache-key: cdktf-0.17.0-pre.15 input-2f1a6a27f478b3c7a44771588b04fce2662f17f71da41499c12bfb9d8ecee69c -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-05486c7d4c175286118a02a92524efe52d7b89a7fe28678c16f1950704e3650b -->
3 changes: 2 additions & 1 deletion website/docs/cdktf/csharp/r/project.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -61,4 +62,4 @@ Projects can be imported; use `<PROJECT ID>` as the import ID. For example:
terraform import tfe_project.test prj-niVoeESBXT8ZREhr
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-43a63826c3cef967034969841a29eab7e340b22c271c86f196fdfaa7f4ba39c9 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-befaa18bc6eb885ab6d87f984dacca7d79c9c43738c087905260f265ea57dc5d -->
6 changes: 4 additions & 2 deletions website/docs/cdktf/csharp/r/team_project_access.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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` |

</n>
</n>
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -141,4 +143,4 @@ example:
terraform import tfe_team_project_access.admin tprj-2pmtXpZa4YzVMTPi
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-70d51a3488cdf5b0f4c0f82652aa131c7657aa59a3694f18dcc5814c39bab829 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-9d287e81f7a933c07074422fa33873c0864ee9399463d646b8c6c4a8dda3dfca -->
33 changes: 12 additions & 21 deletions website/docs/cdktf/csharp/r/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]",
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 = "[email protected]"
}
resource "tfe_workspace" "test" {
name = "my-workspace-name"
organization = tfe_organization.test-organization.name
tag_names = ["test", "app"]
}
```

Expand Down Expand Up @@ -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

Expand All @@ -191,4 +182,4 @@ terraform import tfe_workspace.test ws-CH5in3chf8RJjrVd
terraform import tfe_workspace.test my-org-name/my-wkspace-name
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-2359c8613d3559ab7c7a4c6129993314e7d1492991970cbde73305dbd190c688 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-4b1344d6931127aac5b21f2c92904baad7e55cce5d725e27e7c534c19ba0af5f -->
8 changes: 4 additions & 4 deletions website/docs/cdktf/go/d/projects.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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.


<!-- cache-key: cdktf-0.17.0-pre.15 input-98a90539531e97fa5e4034996187e685dd605e9a2a8a2d3a58acca240f7dc197 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-80f7374bb86183375fd75ccdf9e337a9635c8ca4a605c4f1544be31f69bcced8 -->
3 changes: 2 additions & 1 deletion website/docs/cdktf/go/d/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.

<!-- cache-key: cdktf-0.17.0-pre.15 input-ae8f9f76e2d23dc67ab5c3690201b7bf88a8d93dc83db02352e0f31425999200 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-d80e2cf72aa52f98270a38620225ac1ef8a4810885e13dedc294ad2c1d21c880 -->
8 changes: 4 additions & 4 deletions website/docs/cdktf/go/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ automatically installed by `terraform init` in the future:
terraform {
required_providers {
tfe = {
version = "~> 0.63.0"
version = "~> 0.64.0"
}
}
}
Expand All @@ -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"
...
}
```
Expand All @@ -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
Expand All @@ -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.

<!-- cache-key: cdktf-0.17.0-pre.15 input-2f1a6a27f478b3c7a44771588b04fce2662f17f71da41499c12bfb9d8ecee69c -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-05486c7d4c175286118a02a92524efe52d7b89a7fe28678c16f1950704e3650b -->
3 changes: 2 additions & 1 deletion website/docs/cdktf/go/r/project.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -65,4 +66,4 @@ Projects can be imported; use `<PROJECT ID>` as the import ID. For example:
terraform import tfe_project.test prj-niVoeESBXT8ZREhr
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-43a63826c3cef967034969841a29eab7e340b22c271c86f196fdfaa7f4ba39c9 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-befaa18bc6eb885ab6d87f984dacca7d79c9c43738c087905260f265ea57dc5d -->
4 changes: 3 additions & 1 deletion website/docs/cdktf/go/r/team_project_access.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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` |

</n>
</n>
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -155,4 +157,4 @@ example:
terraform import tfe_team_project_access.admin tprj-2pmtXpZa4YzVMTPi
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-70d51a3488cdf5b0f4c0f82652aa131c7657aa59a3694f18dcc5814c39bab829 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-9d287e81f7a933c07074422fa33873c0864ee9399463d646b8c6c4a8dda3dfca -->
92 changes: 31 additions & 61 deletions website/docs/cdktf/go/r/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"
}
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("[email protected]"),
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 = "[email protected]"
}
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("[email protected]"),
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
}
}
```

Expand Down Expand Up @@ -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

Expand All @@ -203,4 +173,4 @@ terraform import tfe_workspace.test ws-CH5in3chf8RJjrVd
terraform import tfe_workspace.test my-org-name/my-wkspace-name
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-2359c8613d3559ab7c7a4c6129993314e7d1492991970cbde73305dbd190c688 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-4b1344d6931127aac5b21f2c92904baad7e55cce5d725e27e7c534c19ba0af5f -->
Loading

0 comments on commit 6b6e113

Please sign in to comment.