From 2d79c27be711b483ca748f0e7648e75a112a42ad Mon Sep 17 00:00:00 2001 From: github-team-tf-cdk Date: Mon, 6 Feb 2023 11:29:38 +0000 Subject: [PATCH] chore(deps): Updated --- .gitattributes | 1 + .github/CODEOWNERS | 5 + .github/workflows/build.yml | 2 + .gitignore | 1 + .projen/files.json | 1 + package.json | 4 +- src/admin-organization-settings/index.ts | 13 +- src/agent-pool/index.ts | 9 +- src/agent-token/index.ts | 2 +- src/data-tfe-agent-pool/index.ts | 9 +- src/data-tfe-ip-ranges/index.ts | 2 +- src/data-tfe-oauth-client/index.ts | 2 +- src/data-tfe-organization-members/index.ts | 13 +- src/data-tfe-organization-membership/index.ts | 13 +- src/data-tfe-organization-run-task/index.ts | 9 +- src/data-tfe-organization/index.ts | 2 +- src/data-tfe-organizations/index.ts | 2 +- src/data-tfe-outputs/index.ts | 9 +- src/data-tfe-policy-set/index.ts | 9 +- src/data-tfe-slug/index.ts | 2 +- src/data-tfe-ssh-key/index.ts | 9 +- src/data-tfe-team-access/index.ts | 2 +- src/data-tfe-team-project-access/README.md | 3 + src/data-tfe-team-project-access/index.ts | 131 ++++++++++++++++ src/data-tfe-team/index.ts | 9 +- src/data-tfe-variable-set/index.ts | 9 +- src/data-tfe-variables/index.ts | 2 +- src/data-tfe-workspace-ids/index.ts | 13 +- src/data-tfe-workspace-run-task/index.ts | 2 +- src/data-tfe-workspace/index.ts | 14 +- src/index.ts | 2 + src/notification-configuration/index.ts | 2 +- src/oauth-client/index.ts | 9 +- src/organization-membership/index.ts | 9 +- src/organization-module-sharing/index.ts | 9 +- src/organization-run-task/index.ts | 9 +- src/organization-token/index.ts | 13 +- src/organization/index.ts | 2 +- src/policy-set-parameter/index.ts | 2 +- src/policy-set/index.ts | 9 +- src/policy/index.ts | 9 +- src/project/index.ts | 9 +- src/provider/index.ts | 27 +++- src/registry-module/index.ts | 2 +- src/run-trigger/index.ts | 2 +- src/sentinel-policy/index.ts | 9 +- src/ssh-key/index.ts | 9 +- src/team-access/index.ts | 2 +- src/team-member/index.ts | 2 +- src/team-members/index.ts | 2 +- src/team-organization-member/index.ts | 2 +- src/team-organization-members/index.ts | 2 +- src/team-project-access/README.md | 3 + src/team-project-access/index.ts | 145 ++++++++++++++++++ src/team-token/index.ts | 2 +- src/team/index.ts | 36 ++++- src/terraform-version/index.ts | 2 +- src/variable-set/index.ts | 9 +- src/variable/index.ts | 2 +- src/version.json | 2 +- src/workspace-policy-set/index.ts | 2 +- src/workspace-run-task/index.ts | 2 +- src/workspace-variable-set/index.ts | 2 +- src/workspace/index.ts | 9 +- tsconfig.dev.json | 4 +- yarn.lock | 14 +- 66 files changed, 555 insertions(+), 126 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 src/data-tfe-team-project-access/README.md create mode 100644 src/data-tfe-team-project-access/index.ts create mode 100644 src/team-project-access/README.md create mode 100644 src/team-project-access/index.ts diff --git a/.gitattributes b/.gitattributes index c25d6e126..7f717558a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,7 @@ # ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". /.gitattributes linguist-generated +/.github/CODEOWNERS linguist-generated /.github/ISSUE_TEMPLATE/config.yml linguist-generated /.github/pull_request_template.md linguist-generated /.github/workflows/alert-open-prs.yml linguist-generated diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 000000000..c25ac19bc --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,5 @@ +# These owners will be the default owners for everything in +# the repo. Unless a later match takes precedence, +# they will be requested for review when someone opens a +# pull request. +* @cdktf/tf-cdk-team \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e18645979..421970d74 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,6 +25,8 @@ jobs: node-version: 14.17.0 - name: Install dependencies run: yarn install --check-files + - name: Set git config safe.directory + run: git config --global --add safe.directory $(pwd) - name: build run: npx projen build - name: Find mutations diff --git a/.gitignore b/.gitignore index 35b7cb8bc..71187d244 100644 --- a/.gitignore +++ b/.gitignore @@ -59,4 +59,5 @@ package-lock.json !/.github/workflows/lock.yml !/.github/workflows/next-cdktf-version-pr.yml !/.github/workflows/alert-open-prs.yml +!/.github/CODEOWNERS !/scripts/should-release.js diff --git a/.projen/files.json b/.projen/files.json index b5aee7c4d..5b617f383 100644 --- a/.projen/files.json +++ b/.projen/files.json @@ -1,6 +1,7 @@ { "files": [ ".gitattributes", + ".github/CODEOWNERS", ".github/ISSUE_TEMPLATE/config.yml", ".github/pull_request_template.md", ".github/workflows/alert-open-prs.yml", diff --git a/package.json b/package.json index 9ce002ed3..8c415c44e 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "jsii-pacmak": "^1.74.0", "node-fetch": "cjs", "npm-check-updates": "^16", - "projen": "^0.67.29", + "projen": "^0.67.36", "standard-version": "^9", "typescript": "^4.9.5" }, @@ -149,7 +149,7 @@ "cdktf": { "provider": { "name": "registry.terraform.io/hashicorp/tfe", - "version": "0.41.0" + "version": "0.42.0" } }, "resolutions": { diff --git a/src/admin-organization-settings/index.ts b/src/admin-organization-settings/index.ts index 20ac93f8c..47bb97155 100644 --- a/src/admin-organization-settings/index.ts +++ b/src/admin-organization-settings/index.ts @@ -29,7 +29,7 @@ export interface AdminOrganizationSettingsConfig extends cdktf.TerraformMetaArgu /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/admin_organization_settings#organization AdminOrganizationSettings#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/admin_organization_settings#workspace_limit AdminOrganizationSettings#workspace_limit} */ @@ -55,14 +55,14 @@ export class AdminOrganizationSettings extends cdktf.TerraformResource { * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options AdminOrganizationSettingsConfig + * @param options AdminOrganizationSettingsConfig = {} */ - public constructor(scope: Construct, id: string, config: AdminOrganizationSettingsConfig) { + public constructor(scope: Construct, id: string, config: AdminOrganizationSettingsConfig = {}) { super(scope, id, { terraformResourceType: 'tfe_admin_organization_settings', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -149,7 +149,7 @@ export class AdminOrganizationSettings extends cdktf.TerraformResource { return this._moduleSharingConsumerOrganizations; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -157,6 +157,9 @@ export class AdminOrganizationSettings extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/agent-pool/index.ts b/src/agent-pool/index.ts index 09809b53a..fb1154367 100644 --- a/src/agent-pool/index.ts +++ b/src/agent-pool/index.ts @@ -21,7 +21,7 @@ export interface AgentPoolConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/agent_pool#organization AgentPool#organization} */ - readonly organization: string; + readonly organization?: string; } /** @@ -50,7 +50,7 @@ export class AgentPool extends cdktf.TerraformResource { terraformResourceType: 'tfe_agent_pool', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -99,7 +99,7 @@ export class AgentPool extends cdktf.TerraformResource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -107,6 +107,9 @@ export class AgentPool extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/agent-token/index.ts b/src/agent-token/index.ts index a2d0d1207..c291bb1ba 100644 --- a/src/agent-token/index.ts +++ b/src/agent-token/index.ts @@ -50,7 +50,7 @@ export class AgentToken extends cdktf.TerraformResource { terraformResourceType: 'tfe_agent_token', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/data-tfe-agent-pool/index.ts b/src/data-tfe-agent-pool/index.ts index 4aaae21b1..274323b5c 100644 --- a/src/data-tfe-agent-pool/index.ts +++ b/src/data-tfe-agent-pool/index.ts @@ -21,7 +21,7 @@ export interface DataTfeAgentPoolConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/agent_pool#organization DataTfeAgentPool#organization} */ - readonly organization: string; + readonly organization?: string; } /** @@ -50,7 +50,7 @@ export class DataTfeAgentPool extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_agent_pool', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -99,7 +99,7 @@ export class DataTfeAgentPool extends cdktf.TerraformDataSource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -107,6 +107,9 @@ export class DataTfeAgentPool extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/data-tfe-ip-ranges/index.ts b/src/data-tfe-ip-ranges/index.ts index 61057f275..3a287a86a 100644 --- a/src/data-tfe-ip-ranges/index.ts +++ b/src/data-tfe-ip-ranges/index.ts @@ -42,7 +42,7 @@ export class DataTfeIpRanges extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_ip_ranges', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/data-tfe-oauth-client/index.ts b/src/data-tfe-oauth-client/index.ts index 0728e5874..5d29a2816 100644 --- a/src/data-tfe-oauth-client/index.ts +++ b/src/data-tfe-oauth-client/index.ts @@ -58,7 +58,7 @@ export class DataTfeOauthClient extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_oauth_client', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/data-tfe-organization-members/index.ts b/src/data-tfe-organization-members/index.ts index 3df04265b..a77887b50 100644 --- a/src/data-tfe-organization-members/index.ts +++ b/src/data-tfe-organization-members/index.ts @@ -17,7 +17,7 @@ export interface DataTfeOrganizationMembersConfig extends cdktf.TerraformMetaArg /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/organization_members#organization DataTfeOrganizationMembers#organization} */ - readonly organization: string; + readonly organization?: string; } export interface DataTfeOrganizationMembersMembers { } @@ -177,14 +177,14 @@ export class DataTfeOrganizationMembers extends cdktf.TerraformDataSource { * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options DataTfeOrganizationMembersConfig + * @param options DataTfeOrganizationMembersConfig = {} */ - public constructor(scope: Construct, id: string, config: DataTfeOrganizationMembersConfig) { + public constructor(scope: Construct, id: string, config: DataTfeOrganizationMembersConfig = {}) { super(scope, id, { terraformResourceType: 'tfe_organization_members', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -231,7 +231,7 @@ export class DataTfeOrganizationMembers extends cdktf.TerraformDataSource { return this._membersWaiting; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -239,6 +239,9 @@ export class DataTfeOrganizationMembers extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/data-tfe-organization-membership/index.ts b/src/data-tfe-organization-membership/index.ts index 3fdd14630..025092b31 100644 --- a/src/data-tfe-organization-membership/index.ts +++ b/src/data-tfe-organization-membership/index.ts @@ -21,7 +21,7 @@ export interface DataTfeOrganizationMembershipConfig extends cdktf.TerraformMeta /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/organization_membership#organization DataTfeOrganizationMembership#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/organization_membership#username DataTfeOrganizationMembership#username} */ @@ -47,14 +47,14 @@ export class DataTfeOrganizationMembership extends cdktf.TerraformDataSource { * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options DataTfeOrganizationMembershipConfig + * @param options DataTfeOrganizationMembershipConfig = {} */ - public constructor(scope: Construct, id: string, config: DataTfeOrganizationMembershipConfig) { + public constructor(scope: Construct, id: string, config: DataTfeOrganizationMembershipConfig = {}) { super(scope, id, { terraformResourceType: 'tfe_organization_membership', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -107,7 +107,7 @@ export class DataTfeOrganizationMembership extends cdktf.TerraformDataSource { return this._id; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -115,6 +115,9 @@ export class DataTfeOrganizationMembership extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/data-tfe-organization-run-task/index.ts b/src/data-tfe-organization-run-task/index.ts index d465d6bbf..dfe64d068 100644 --- a/src/data-tfe-organization-run-task/index.ts +++ b/src/data-tfe-organization-run-task/index.ts @@ -33,7 +33,7 @@ export interface DataTfeOrganizationRunTaskConfig extends cdktf.TerraformMetaArg /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/organization_run_task#organization DataTfeOrganizationRunTask#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/organization_run_task#url DataTfeOrganizationRunTask#url} */ @@ -66,7 +66,7 @@ export class DataTfeOrganizationRunTask extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_organization_run_task', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -167,7 +167,7 @@ export class DataTfeOrganizationRunTask extends cdktf.TerraformDataSource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -175,6 +175,9 @@ export class DataTfeOrganizationRunTask extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/data-tfe-organization/index.ts b/src/data-tfe-organization/index.ts index d19e006c8..249436c3b 100644 --- a/src/data-tfe-organization/index.ts +++ b/src/data-tfe-organization/index.ts @@ -46,7 +46,7 @@ export class DataTfeOrganization extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_organization', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/data-tfe-organizations/index.ts b/src/data-tfe-organizations/index.ts index b9f36cdd2..9a6a32a0e 100644 --- a/src/data-tfe-organizations/index.ts +++ b/src/data-tfe-organizations/index.ts @@ -46,7 +46,7 @@ export class DataTfeOrganizations extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_organizations', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/data-tfe-outputs/index.ts b/src/data-tfe-outputs/index.ts index 06fbf08d6..0063c67ba 100644 --- a/src/data-tfe-outputs/index.ts +++ b/src/data-tfe-outputs/index.ts @@ -12,7 +12,7 @@ export interface DataTfeOutputsConfig extends cdktf.TerraformMetaArguments { * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/outputs#organization DataTfeOutputs#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/outputs#values DataTfeOutputs#values} */ @@ -51,7 +51,7 @@ export class DataTfeOutputs extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_outputs', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -82,7 +82,7 @@ export class DataTfeOutputs extends cdktf.TerraformDataSource { return this._nonsensitiveValues; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -90,6 +90,9 @@ export class DataTfeOutputs extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/data-tfe-policy-set/index.ts b/src/data-tfe-policy-set/index.ts index 5632710bd..83af03356 100644 --- a/src/data-tfe-policy-set/index.ts +++ b/src/data-tfe-policy-set/index.ts @@ -27,7 +27,7 @@ export interface DataTfePolicySetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/policy_set#organization DataTfePolicySet#organization} */ - readonly organization: string; + readonly organization?: string; /** * Whether users can override this policy when it fails during a run. Only valid for OPA policies * @@ -141,7 +141,7 @@ export class DataTfePolicySet extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_policy_set', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -218,7 +218,7 @@ export class DataTfePolicySet extends cdktf.TerraformDataSource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -226,6 +226,9 @@ export class DataTfePolicySet extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/data-tfe-slug/index.ts b/src/data-tfe-slug/index.ts index dee16c91b..7b941a550 100644 --- a/src/data-tfe-slug/index.ts +++ b/src/data-tfe-slug/index.ts @@ -46,7 +46,7 @@ export class DataTfeSlug extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_slug', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/data-tfe-ssh-key/index.ts b/src/data-tfe-ssh-key/index.ts index 54778757b..49f1defe9 100644 --- a/src/data-tfe-ssh-key/index.ts +++ b/src/data-tfe-ssh-key/index.ts @@ -21,7 +21,7 @@ export interface DataTfeSshKeyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/ssh_key#organization DataTfeSshKey#organization} */ - readonly organization: string; + readonly organization?: string; } /** @@ -50,7 +50,7 @@ export class DataTfeSshKey extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_ssh_key', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -99,7 +99,7 @@ export class DataTfeSshKey extends cdktf.TerraformDataSource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -107,6 +107,9 @@ export class DataTfeSshKey extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/data-tfe-team-access/index.ts b/src/data-tfe-team-access/index.ts index 38bd474f2..c596f0632 100644 --- a/src/data-tfe-team-access/index.ts +++ b/src/data-tfe-team-access/index.ts @@ -139,7 +139,7 @@ export class DataTfeTeamAccess extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_team_access', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/data-tfe-team-project-access/README.md b/src/data-tfe-team-project-access/README.md new file mode 100644 index 000000000..967860569 --- /dev/null +++ b/src/data-tfe-team-project-access/README.md @@ -0,0 +1,3 @@ +# `data_tfe_team_project_access` + +Refer to the Terraform Registory for docs: [`data_tfe_team_project_access`](https://www.terraform.io/docs/providers/tfe/d/team_project_access). diff --git a/src/data-tfe-team-project-access/index.ts b/src/data-tfe-team-project-access/index.ts new file mode 100644 index 000000000..75e64aff4 --- /dev/null +++ b/src/data-tfe-team-project-access/index.ts @@ -0,0 +1,131 @@ +// https://www.terraform.io/docs/providers/tfe/d/team_project_access +// generated from terraform resource schema + +import { Construct } from 'constructs'; +import * as cdktf from 'cdktf'; + +// Configuration + +export interface DataTfeTeamProjectAccessConfig extends cdktf.TerraformMetaArguments { + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/team_project_access#id DataTfeTeamProjectAccess#id} + * + * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. + * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. + */ + readonly id?: string; + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/team_project_access#project_id DataTfeTeamProjectAccess#project_id} + */ + readonly projectId: string; + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/team_project_access#team_id DataTfeTeamProjectAccess#team_id} + */ + readonly teamId: string; +} + +/** +* Represents a {@link https://www.terraform.io/docs/providers/tfe/d/team_project_access tfe_team_project_access} +*/ +export class DataTfeTeamProjectAccess extends cdktf.TerraformDataSource { + + // ================= + // STATIC PROPERTIES + // ================= + public static readonly tfResourceType = "tfe_team_project_access"; + + // =========== + // INITIALIZER + // =========== + + /** + * Create a new {@link https://www.terraform.io/docs/providers/tfe/d/team_project_access tfe_team_project_access} Data Source + * + * @param scope The scope in which to define this construct + * @param id The scoped construct ID. Must be unique amongst siblings in the same scope + * @param options DataTfeTeamProjectAccessConfig + */ + public constructor(scope: Construct, id: string, config: DataTfeTeamProjectAccessConfig) { + super(scope, id, { + terraformResourceType: 'tfe_team_project_access', + terraformGeneratorMetadata: { + providerName: 'tfe', + providerVersion: '0.42.0', + providerVersionConstraint: '~> 0.33' + }, + provider: config.provider, + dependsOn: config.dependsOn, + count: config.count, + lifecycle: config.lifecycle, + provisioners: config.provisioners, + connection: config.connection, + forEach: config.forEach + }); + this._id = config.id; + this._projectId = config.projectId; + this._teamId = config.teamId; + } + + // ========== + // ATTRIBUTES + // ========== + + // access - computed: true, optional: false, required: false + public get access() { + return this.getStringAttribute('access'); + } + + // id - computed: true, optional: true, required: false + private _id?: string; + public get id() { + return this.getStringAttribute('id'); + } + public set id(value: string) { + this._id = value; + } + public resetId() { + this._id = undefined; + } + // Temporarily expose input value. Use with caution. + public get idInput() { + return this._id; + } + + // project_id - computed: false, optional: false, required: true + private _projectId?: string; + public get projectId() { + return this.getStringAttribute('project_id'); + } + public set projectId(value: string) { + this._projectId = value; + } + // Temporarily expose input value. Use with caution. + public get projectIdInput() { + return this._projectId; + } + + // team_id - computed: false, optional: false, required: true + private _teamId?: string; + public get teamId() { + return this.getStringAttribute('team_id'); + } + public set teamId(value: string) { + this._teamId = value; + } + // Temporarily expose input value. Use with caution. + public get teamIdInput() { + return this._teamId; + } + + // ========= + // SYNTHESIS + // ========= + + protected synthesizeAttributes(): { [name: string]: any } { + return { + id: cdktf.stringToTerraform(this._id), + project_id: cdktf.stringToTerraform(this._projectId), + team_id: cdktf.stringToTerraform(this._teamId), + }; + } +} diff --git a/src/data-tfe-team/index.ts b/src/data-tfe-team/index.ts index 4e5b19ac6..fc2f69acb 100644 --- a/src/data-tfe-team/index.ts +++ b/src/data-tfe-team/index.ts @@ -21,7 +21,7 @@ export interface DataTfeTeamConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/team#organization DataTfeTeam#organization} */ - readonly organization: string; + readonly organization?: string; } /** @@ -50,7 +50,7 @@ export class DataTfeTeam extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_team', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -99,7 +99,7 @@ export class DataTfeTeam extends cdktf.TerraformDataSource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -107,6 +107,9 @@ export class DataTfeTeam extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/data-tfe-variable-set/index.ts b/src/data-tfe-variable-set/index.ts index 982bfa691..7bc594205 100644 --- a/src/data-tfe-variable-set/index.ts +++ b/src/data-tfe-variable-set/index.ts @@ -21,7 +21,7 @@ export interface DataTfeVariableSetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/variable_set#organization DataTfeVariableSet#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/variable_set#variable_ids DataTfeVariableSet#variable_ids} */ @@ -58,7 +58,7 @@ export class DataTfeVariableSet extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_variable_set', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -119,7 +119,7 @@ export class DataTfeVariableSet extends cdktf.TerraformDataSource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -127,6 +127,9 @@ export class DataTfeVariableSet extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/data-tfe-variables/index.ts b/src/data-tfe-variables/index.ts index b712db29f..0fd6d4b65 100644 --- a/src/data-tfe-variables/index.ts +++ b/src/data-tfe-variables/index.ts @@ -317,7 +317,7 @@ export class DataTfeVariables extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_variables', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/data-tfe-workspace-ids/index.ts b/src/data-tfe-workspace-ids/index.ts index 379e0385c..7ddd0e952 100644 --- a/src/data-tfe-workspace-ids/index.ts +++ b/src/data-tfe-workspace-ids/index.ts @@ -25,7 +25,7 @@ export interface DataTfeWorkspaceIdsConfig extends cdktf.TerraformMetaArguments /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/workspace_ids#organization DataTfeWorkspaceIds#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/workspace_ids#tag_names DataTfeWorkspaceIds#tag_names} */ @@ -51,14 +51,14 @@ export class DataTfeWorkspaceIds extends cdktf.TerraformDataSource { * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options DataTfeWorkspaceIdsConfig + * @param options DataTfeWorkspaceIdsConfig = {} */ - public constructor(scope: Construct, id: string, config: DataTfeWorkspaceIdsConfig) { + public constructor(scope: Construct, id: string, config: DataTfeWorkspaceIdsConfig = {}) { super(scope, id, { terraformResourceType: 'tfe_workspace_ids', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -140,7 +140,7 @@ export class DataTfeWorkspaceIds extends cdktf.TerraformDataSource { return this._names; } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -148,6 +148,9 @@ export class DataTfeWorkspaceIds extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/data-tfe-workspace-run-task/index.ts b/src/data-tfe-workspace-run-task/index.ts index 9fcd7c1ce..4b08e86d9 100644 --- a/src/data-tfe-workspace-run-task/index.ts +++ b/src/data-tfe-workspace-run-task/index.ts @@ -54,7 +54,7 @@ export class DataTfeWorkspaceRunTask extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_workspace_run_task', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/data-tfe-workspace/index.ts b/src/data-tfe-workspace/index.ts index d177f040f..02ba9634f 100644 --- a/src/data-tfe-workspace/index.ts +++ b/src/data-tfe-workspace/index.ts @@ -21,7 +21,7 @@ export interface DataTfeWorkspaceConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/workspace#organization DataTfeWorkspace#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/d/workspace#tag_names DataTfeWorkspace#tag_names} */ @@ -138,7 +138,7 @@ export class DataTfeWorkspace extends cdktf.TerraformDataSource { terraformResourceType: 'tfe_workspace', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -179,6 +179,11 @@ export class DataTfeWorkspace extends cdktf.TerraformDataSource { return this.getStringAttribute('description'); } + // execution_mode - computed: true, optional: false, required: false + public get executionMode() { + return this.getStringAttribute('execution_mode'); + } + // file_triggers_enabled - computed: true, optional: false, required: false public get fileTriggersEnabled() { return this.getBooleanAttribute('file_triggers_enabled'); @@ -223,7 +228,7 @@ export class DataTfeWorkspace extends cdktf.TerraformDataSource { return this.getBooleanAttribute('operations'); } - // organization - computed: false, optional: false, required: true + // organization - computed: false, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -231,6 +236,9 @@ export class DataTfeWorkspace extends cdktf.TerraformDataSource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/index.ts b/src/index.ts index 0d66b8ca3..77ea7838a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,6 +23,7 @@ export * as teamMember from './team-member'; export * as teamMembers from './team-members'; export * as teamOrganizationMember from './team-organization-member'; export * as teamOrganizationMembers from './team-organization-members'; +export * as teamProjectAccess from './team-project-access'; export * as teamToken from './team-token'; export * as terraformVersion from './terraform-version'; export * as variable from './variable'; @@ -45,6 +46,7 @@ export * as dataTfeSlug from './data-tfe-slug'; export * as dataTfeSshKey from './data-tfe-ssh-key'; export * as dataTfeTeam from './data-tfe-team'; export * as dataTfeTeamAccess from './data-tfe-team-access'; +export * as dataTfeTeamProjectAccess from './data-tfe-team-project-access'; export * as dataTfeVariableSet from './data-tfe-variable-set'; export * as dataTfeVariables from './data-tfe-variables'; export * as dataTfeWorkspace from './data-tfe-workspace'; diff --git a/src/notification-configuration/index.ts b/src/notification-configuration/index.ts index 4584ae34f..93893431b 100644 --- a/src/notification-configuration/index.ts +++ b/src/notification-configuration/index.ts @@ -78,7 +78,7 @@ export class NotificationConfiguration extends cdktf.TerraformResource { terraformResourceType: 'tfe_notification_configuration', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/oauth-client/index.ts b/src/oauth-client/index.ts index bce7d579e..5af3b2ec7 100644 --- a/src/oauth-client/index.ts +++ b/src/oauth-client/index.ts @@ -37,7 +37,7 @@ export interface OauthClientConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/oauth_client#organization OauthClient#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/oauth_client#private_key OauthClient#private_key} */ @@ -82,7 +82,7 @@ export class OauthClient extends cdktf.TerraformResource { terraformResourceType: 'tfe_oauth_client', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -205,7 +205,7 @@ export class OauthClient extends cdktf.TerraformResource { return this.getStringAttribute('oauth_token_id'); } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -213,6 +213,9 @@ export class OauthClient extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/organization-membership/index.ts b/src/organization-membership/index.ts index f1bd7de28..7a9196b3c 100644 --- a/src/organization-membership/index.ts +++ b/src/organization-membership/index.ts @@ -21,7 +21,7 @@ export interface OrganizationMembershipConfig extends cdktf.TerraformMetaArgumen /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/organization_membership#organization OrganizationMembership#organization} */ - readonly organization: string; + readonly organization?: string; } /** @@ -50,7 +50,7 @@ export class OrganizationMembership extends cdktf.TerraformResource { terraformResourceType: 'tfe_organization_membership', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -99,7 +99,7 @@ export class OrganizationMembership extends cdktf.TerraformResource { return this._id; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -107,6 +107,9 @@ export class OrganizationMembership extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/organization-module-sharing/index.ts b/src/organization-module-sharing/index.ts index c6e3b9e91..77c4cd60d 100644 --- a/src/organization-module-sharing/index.ts +++ b/src/organization-module-sharing/index.ts @@ -21,7 +21,7 @@ export interface OrganizationModuleSharingConfig extends cdktf.TerraformMetaArgu /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/organization_module_sharing#organization OrganizationModuleSharing#organization} */ - readonly organization: string; + readonly organization?: string; } /** @@ -50,7 +50,7 @@ export class OrganizationModuleSharing extends cdktf.TerraformResource { terraformResourceType: 'tfe_organization_module_sharing', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -99,7 +99,7 @@ export class OrganizationModuleSharing extends cdktf.TerraformResource { return this._moduleConsumers; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -107,6 +107,9 @@ export class OrganizationModuleSharing extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/organization-run-task/index.ts b/src/organization-run-task/index.ts index f7ec66038..7262fe1ee 100644 --- a/src/organization-run-task/index.ts +++ b/src/organization-run-task/index.ts @@ -37,7 +37,7 @@ export interface OrganizationRunTaskConfig extends cdktf.TerraformMetaArguments /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/organization_run_task#organization OrganizationRunTask#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/organization_run_task#url OrganizationRunTask#url} */ @@ -70,7 +70,7 @@ export class OrganizationRunTask extends cdktf.TerraformResource { terraformResourceType: 'tfe_organization_run_task', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -188,7 +188,7 @@ export class OrganizationRunTask extends cdktf.TerraformResource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -196,6 +196,9 @@ export class OrganizationRunTask extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/organization-token/index.ts b/src/organization-token/index.ts index e92ba9995..948344f6f 100644 --- a/src/organization-token/index.ts +++ b/src/organization-token/index.ts @@ -21,7 +21,7 @@ export interface OrganizationTokenConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/organization_token#organization OrganizationToken#organization} */ - readonly organization: string; + readonly organization?: string; } /** @@ -43,14 +43,14 @@ export class OrganizationToken extends cdktf.TerraformResource { * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope - * @param options OrganizationTokenConfig + * @param options OrganizationTokenConfig = {} */ - public constructor(scope: Construct, id: string, config: OrganizationTokenConfig) { + public constructor(scope: Construct, id: string, config: OrganizationTokenConfig = {}) { super(scope, id, { terraformResourceType: 'tfe_organization_token', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -102,7 +102,7 @@ export class OrganizationToken extends cdktf.TerraformResource { return this._id; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -110,6 +110,9 @@ export class OrganizationToken extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/organization/index.ts b/src/organization/index.ts index 6eeb53db4..932ab968e 100644 --- a/src/organization/index.ts +++ b/src/organization/index.ts @@ -82,7 +82,7 @@ export class Organization extends cdktf.TerraformResource { terraformResourceType: 'tfe_organization', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/policy-set-parameter/index.ts b/src/policy-set-parameter/index.ts index 6aa1d8215..5785d1fb4 100644 --- a/src/policy-set-parameter/index.ts +++ b/src/policy-set-parameter/index.ts @@ -58,7 +58,7 @@ export class PolicySetParameter extends cdktf.TerraformResource { terraformResourceType: 'tfe_policy_set_parameter', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/policy-set/index.ts b/src/policy-set/index.ts index dbbd36632..7867f087f 100644 --- a/src/policy-set/index.ts +++ b/src/policy-set/index.ts @@ -33,7 +33,7 @@ export interface PolicySetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/policy_set#organization PolicySet#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/policy_set#overridable PolicySet#overridable} */ @@ -228,7 +228,7 @@ export class PolicySet extends cdktf.TerraformResource { terraformResourceType: 'tfe_policy_set', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -334,7 +334,7 @@ export class PolicySet extends cdktf.TerraformResource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -342,6 +342,9 @@ export class PolicySet extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/policy/index.ts b/src/policy/index.ts index 6c62893cd..8abfaa42e 100644 --- a/src/policy/index.ts +++ b/src/policy/index.ts @@ -43,7 +43,7 @@ export interface PolicyConfig extends cdktf.TerraformMetaArguments { * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/policy#organization Policy#organization} */ - readonly organization: string; + readonly organization?: string; /** * Text of a valid Sentinel or OPA policy * @@ -84,7 +84,7 @@ export class Policy extends cdktf.TerraformResource { terraformResourceType: 'tfe_policy', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -186,7 +186,7 @@ export class Policy extends cdktf.TerraformResource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -194,6 +194,9 @@ export class Policy extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/project/index.ts b/src/project/index.ts index a419e9df6..0ae7d0014 100644 --- a/src/project/index.ts +++ b/src/project/index.ts @@ -21,7 +21,7 @@ export interface ProjectConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/project#organization Project#organization} */ - readonly organization: string; + readonly organization?: string; } /** @@ -50,7 +50,7 @@ export class Project extends cdktf.TerraformResource { terraformResourceType: 'tfe_project', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -99,7 +99,7 @@ export class Project extends cdktf.TerraformResource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -107,6 +107,9 @@ export class Project extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/provider/index.ts b/src/provider/index.ts index 0668b17d9..d7afdc44f 100644 --- a/src/provider/index.ts +++ b/src/provider/index.ts @@ -14,6 +14,13 @@ export interface TfeProviderConfig { */ readonly hostname?: string; /** + * The organization to apply to a resource if one is not defined on +the resource itself + * + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe#organization TfeProvider#organization} + */ + readonly organization?: string; + /** * Whether or not to skip certificate verifications. * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe#ssl_skip_verify TfeProvider#ssl_skip_verify} @@ -60,12 +67,13 @@ export class TfeProvider extends cdktf.TerraformProvider { terraformResourceType: 'tfe', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, terraformProviderSource: 'hashicorp/tfe' }); this._hostname = config.hostname; + this._organization = config.organization; this._sslSkipVerify = config.sslSkipVerify; this._token = config.token; this._alias = config.alias; @@ -91,6 +99,22 @@ export class TfeProvider extends cdktf.TerraformProvider { return this._hostname; } + // organization - computed: false, optional: true, required: false + private _organization?: string; + public get organization() { + return this._organization; + } + public set organization(value: string | undefined) { + this._organization = value; + } + public resetOrganization() { + this._organization = undefined; + } + // Temporarily expose input value. Use with caution. + public get organizationInput() { + return this._organization; + } + // ssl_skip_verify - computed: false, optional: true, required: false private _sslSkipVerify?: boolean | cdktf.IResolvable; public get sslSkipVerify() { @@ -146,6 +170,7 @@ export class TfeProvider extends cdktf.TerraformProvider { protected synthesizeAttributes(): { [name: string]: any } { return { hostname: cdktf.stringToTerraform(this._hostname), + organization: cdktf.stringToTerraform(this._organization), ssl_skip_verify: cdktf.booleanToTerraform(this._sslSkipVerify), token: cdktf.stringToTerraform(this._token), alias: cdktf.stringToTerraform(this._alias), diff --git a/src/registry-module/index.ts b/src/registry-module/index.ts index dbcbb0d5b..1d76933e3 100644 --- a/src/registry-module/index.ts +++ b/src/registry-module/index.ts @@ -182,7 +182,7 @@ export class RegistryModule extends cdktf.TerraformResource { terraformResourceType: 'tfe_registry_module', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/run-trigger/index.ts b/src/run-trigger/index.ts index e95bf51e7..bce0ac7ec 100644 --- a/src/run-trigger/index.ts +++ b/src/run-trigger/index.ts @@ -50,7 +50,7 @@ export class RunTrigger extends cdktf.TerraformResource { terraformResourceType: 'tfe_run_trigger', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/sentinel-policy/index.ts b/src/sentinel-policy/index.ts index ec215d640..f4fec295d 100644 --- a/src/sentinel-policy/index.ts +++ b/src/sentinel-policy/index.ts @@ -29,7 +29,7 @@ export interface SentinelPolicyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/sentinel_policy#organization SentinelPolicy#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/sentinel_policy#policy SentinelPolicy#policy} */ @@ -62,7 +62,7 @@ export class SentinelPolicy extends cdktf.TerraformResource { terraformResourceType: 'tfe_sentinel_policy', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -146,7 +146,7 @@ export class SentinelPolicy extends cdktf.TerraformResource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -154,6 +154,9 @@ export class SentinelPolicy extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/ssh-key/index.ts b/src/ssh-key/index.ts index 13c96a766..e08c2e190 100644 --- a/src/ssh-key/index.ts +++ b/src/ssh-key/index.ts @@ -25,7 +25,7 @@ export interface SshKeyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/ssh_key#organization SshKey#organization} */ - readonly organization: string; + readonly organization?: string; } /** @@ -54,7 +54,7 @@ export class SshKey extends cdktf.TerraformResource { terraformResourceType: 'tfe_ssh_key', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -117,7 +117,7 @@ export class SshKey extends cdktf.TerraformResource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -125,6 +125,9 @@ export class SshKey extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/team-access/index.ts b/src/team-access/index.ts index 1d8492f14..c5147e7f2 100644 --- a/src/team-access/index.ts +++ b/src/team-access/index.ts @@ -274,7 +274,7 @@ export class TeamAccess extends cdktf.TerraformResource { terraformResourceType: 'tfe_team_access', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/team-member/index.ts b/src/team-member/index.ts index c6ab4939c..e8cd5593a 100644 --- a/src/team-member/index.ts +++ b/src/team-member/index.ts @@ -50,7 +50,7 @@ export class TeamMember extends cdktf.TerraformResource { terraformResourceType: 'tfe_team_member', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/team-members/index.ts b/src/team-members/index.ts index eded3ae43..4a5e5a4ce 100644 --- a/src/team-members/index.ts +++ b/src/team-members/index.ts @@ -50,7 +50,7 @@ export class TeamMembers extends cdktf.TerraformResource { terraformResourceType: 'tfe_team_members', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/team-organization-member/index.ts b/src/team-organization-member/index.ts index 8c1e05a8a..ea4d0c59a 100644 --- a/src/team-organization-member/index.ts +++ b/src/team-organization-member/index.ts @@ -50,7 +50,7 @@ export class TeamOrganizationMember extends cdktf.TerraformResource { terraformResourceType: 'tfe_team_organization_member', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/team-organization-members/index.ts b/src/team-organization-members/index.ts index 56fb0600d..e7cfd722a 100644 --- a/src/team-organization-members/index.ts +++ b/src/team-organization-members/index.ts @@ -50,7 +50,7 @@ export class TeamOrganizationMembers extends cdktf.TerraformResource { terraformResourceType: 'tfe_team_organization_members', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/team-project-access/README.md b/src/team-project-access/README.md new file mode 100644 index 000000000..b59d48e78 --- /dev/null +++ b/src/team-project-access/README.md @@ -0,0 +1,3 @@ +# `tfe_team_project_access` + +Refer to the Terraform Registory for docs: [`tfe_team_project_access`](https://www.terraform.io/docs/providers/tfe/r/team_project_access). diff --git a/src/team-project-access/index.ts b/src/team-project-access/index.ts new file mode 100644 index 000000000..38b83c127 --- /dev/null +++ b/src/team-project-access/index.ts @@ -0,0 +1,145 @@ +// https://www.terraform.io/docs/providers/tfe/r/team_project_access +// generated from terraform resource schema + +import { Construct } from 'constructs'; +import * as cdktf from 'cdktf'; + +// Configuration + +export interface TeamProjectAccessConfig extends cdktf.TerraformMetaArguments { + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/team_project_access#access TeamProjectAccess#access} + */ + readonly access: string; + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/team_project_access#id TeamProjectAccess#id} + * + * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. + * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. + */ + readonly id?: string; + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/team_project_access#project_id TeamProjectAccess#project_id} + */ + readonly projectId: string; + /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/team_project_access#team_id TeamProjectAccess#team_id} + */ + readonly teamId: string; +} + +/** +* Represents a {@link https://www.terraform.io/docs/providers/tfe/r/team_project_access tfe_team_project_access} +*/ +export class TeamProjectAccess extends cdktf.TerraformResource { + + // ================= + // STATIC PROPERTIES + // ================= + public static readonly tfResourceType = "tfe_team_project_access"; + + // =========== + // INITIALIZER + // =========== + + /** + * Create a new {@link https://www.terraform.io/docs/providers/tfe/r/team_project_access tfe_team_project_access} Resource + * + * @param scope The scope in which to define this construct + * @param id The scoped construct ID. Must be unique amongst siblings in the same scope + * @param options TeamProjectAccessConfig + */ + public constructor(scope: Construct, id: string, config: TeamProjectAccessConfig) { + super(scope, id, { + terraformResourceType: 'tfe_team_project_access', + terraformGeneratorMetadata: { + providerName: 'tfe', + providerVersion: '0.42.0', + providerVersionConstraint: '~> 0.33' + }, + provider: config.provider, + dependsOn: config.dependsOn, + count: config.count, + lifecycle: config.lifecycle, + provisioners: config.provisioners, + connection: config.connection, + forEach: config.forEach + }); + this._access = config.access; + this._id = config.id; + this._projectId = config.projectId; + this._teamId = config.teamId; + } + + // ========== + // ATTRIBUTES + // ========== + + // access - computed: false, optional: false, required: true + private _access?: string; + public get access() { + return this.getStringAttribute('access'); + } + public set access(value: string) { + this._access = value; + } + // Temporarily expose input value. Use with caution. + public get accessInput() { + return this._access; + } + + // id - computed: true, optional: true, required: false + private _id?: string; + public get id() { + return this.getStringAttribute('id'); + } + public set id(value: string) { + this._id = value; + } + public resetId() { + this._id = undefined; + } + // Temporarily expose input value. Use with caution. + public get idInput() { + return this._id; + } + + // project_id - computed: false, optional: false, required: true + private _projectId?: string; + public get projectId() { + return this.getStringAttribute('project_id'); + } + public set projectId(value: string) { + this._projectId = value; + } + // Temporarily expose input value. Use with caution. + public get projectIdInput() { + return this._projectId; + } + + // team_id - computed: false, optional: false, required: true + private _teamId?: string; + public get teamId() { + return this.getStringAttribute('team_id'); + } + public set teamId(value: string) { + this._teamId = value; + } + // Temporarily expose input value. Use with caution. + public get teamIdInput() { + return this._teamId; + } + + // ========= + // SYNTHESIS + // ========= + + protected synthesizeAttributes(): { [name: string]: any } { + return { + access: cdktf.stringToTerraform(this._access), + id: cdktf.stringToTerraform(this._id), + project_id: cdktf.stringToTerraform(this._projectId), + team_id: cdktf.stringToTerraform(this._teamId), + }; + } +} diff --git a/src/team-token/index.ts b/src/team-token/index.ts index 93cf4eee7..4207b9b52 100644 --- a/src/team-token/index.ts +++ b/src/team-token/index.ts @@ -50,7 +50,7 @@ export class TeamToken extends cdktf.TerraformResource { terraformResourceType: 'tfe_team_token', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/team/index.ts b/src/team/index.ts index 31329cec8..2170ac804 100644 --- a/src/team/index.ts +++ b/src/team/index.ts @@ -21,7 +21,7 @@ export interface TeamConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/team#organization Team#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/team#sso_team_id Team#sso_team_id} */ @@ -51,6 +51,10 @@ export interface TeamOrganizationAccess { */ readonly managePolicyOverrides?: boolean | cdktf.IResolvable; /** + * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/team#manage_projects Team#manage_projects} + */ + readonly manageProjects?: boolean | cdktf.IResolvable; + /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/team#manage_providers Team#manage_providers} */ readonly manageProviders?: boolean | cdktf.IResolvable; @@ -77,6 +81,7 @@ export function teamOrganizationAccessToTerraform(struct?: TeamOrganizationAcces manage_modules: cdktf.booleanToTerraform(struct!.manageModules), manage_policies: cdktf.booleanToTerraform(struct!.managePolicies), manage_policy_overrides: cdktf.booleanToTerraform(struct!.managePolicyOverrides), + manage_projects: cdktf.booleanToTerraform(struct!.manageProjects), manage_providers: cdktf.booleanToTerraform(struct!.manageProviders), manage_run_tasks: cdktf.booleanToTerraform(struct!.manageRunTasks), manage_vcs_settings: cdktf.booleanToTerraform(struct!.manageVcsSettings), @@ -110,6 +115,10 @@ export class TeamOrganizationAccessOutputReference extends cdktf.ComplexObject { hasAnyValues = true; internalValueResult.managePolicyOverrides = this._managePolicyOverrides; } + if (this._manageProjects !== undefined) { + hasAnyValues = true; + internalValueResult.manageProjects = this._manageProjects; + } if (this._manageProviders !== undefined) { hasAnyValues = true; internalValueResult.manageProviders = this._manageProviders; @@ -135,6 +144,7 @@ export class TeamOrganizationAccessOutputReference extends cdktf.ComplexObject { this._manageModules = undefined; this._managePolicies = undefined; this._managePolicyOverrides = undefined; + this._manageProjects = undefined; this._manageProviders = undefined; this._manageRunTasks = undefined; this._manageVcsSettings = undefined; @@ -145,6 +155,7 @@ export class TeamOrganizationAccessOutputReference extends cdktf.ComplexObject { this._manageModules = value.manageModules; this._managePolicies = value.managePolicies; this._managePolicyOverrides = value.managePolicyOverrides; + this._manageProjects = value.manageProjects; this._manageProviders = value.manageProviders; this._manageRunTasks = value.manageRunTasks; this._manageVcsSettings = value.manageVcsSettings; @@ -200,6 +211,22 @@ export class TeamOrganizationAccessOutputReference extends cdktf.ComplexObject { return this._managePolicyOverrides; } + // manage_projects - computed: false, optional: true, required: false + private _manageProjects?: boolean | cdktf.IResolvable; + public get manageProjects() { + return this.getBooleanAttribute('manage_projects'); + } + public set manageProjects(value: boolean | cdktf.IResolvable) { + this._manageProjects = value; + } + public resetManageProjects() { + this._manageProjects = undefined; + } + // Temporarily expose input value. Use with caution. + public get manageProjectsInput() { + return this._manageProjects; + } + // manage_providers - computed: false, optional: true, required: false private _manageProviders?: boolean | cdktf.IResolvable; public get manageProviders() { @@ -291,7 +318,7 @@ export class Team extends cdktf.TerraformResource { terraformResourceType: 'tfe_team', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -343,7 +370,7 @@ export class Team extends cdktf.TerraformResource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -351,6 +378,9 @@ export class Team extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/terraform-version/index.ts b/src/terraform-version/index.ts index 98dd2481b..dde4fb780 100644 --- a/src/terraform-version/index.ts +++ b/src/terraform-version/index.ts @@ -74,7 +74,7 @@ export class TerraformVersion extends cdktf.TerraformResource { terraformResourceType: 'tfe_terraform_version', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/variable-set/index.ts b/src/variable-set/index.ts index d7d7f4cac..090360fc0 100644 --- a/src/variable-set/index.ts +++ b/src/variable-set/index.ts @@ -29,7 +29,7 @@ export interface VariableSetConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/variable_set#organization VariableSet#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/variable_set#workspace_ids VariableSet#workspace_ids} */ @@ -62,7 +62,7 @@ export class VariableSet extends cdktf.TerraformResource { terraformResourceType: 'tfe_variable_set', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -146,7 +146,7 @@ export class VariableSet extends cdktf.TerraformResource { return this._name; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -154,6 +154,9 @@ export class VariableSet extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/src/variable/index.ts b/src/variable/index.ts index fd1381774..20c3f10b5 100644 --- a/src/variable/index.ts +++ b/src/variable/index.ts @@ -74,7 +74,7 @@ export class Variable extends cdktf.TerraformResource { terraformResourceType: 'tfe_variable', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/version.json b/src/version.json index eae2f857a..af5dc1c77 100644 --- a/src/version.json +++ b/src/version.json @@ -1,3 +1,3 @@ { - "registry.terraform.io/hashicorp/tfe": "0.41.0" + "registry.terraform.io/hashicorp/tfe": "0.42.0" } diff --git a/src/workspace-policy-set/index.ts b/src/workspace-policy-set/index.ts index 4bafdabff..f04690901 100644 --- a/src/workspace-policy-set/index.ts +++ b/src/workspace-policy-set/index.ts @@ -50,7 +50,7 @@ export class WorkspacePolicySet extends cdktf.TerraformResource { terraformResourceType: 'tfe_workspace_policy_set', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/workspace-run-task/index.ts b/src/workspace-run-task/index.ts index 70c562774..792d9fd60 100644 --- a/src/workspace-run-task/index.ts +++ b/src/workspace-run-task/index.ts @@ -66,7 +66,7 @@ export class WorkspaceRunTask extends cdktf.TerraformResource { terraformResourceType: 'tfe_workspace_run_task', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/workspace-variable-set/index.ts b/src/workspace-variable-set/index.ts index 2dc44b272..ff443de8c 100644 --- a/src/workspace-variable-set/index.ts +++ b/src/workspace-variable-set/index.ts @@ -50,7 +50,7 @@ export class WorkspaceVariableSet extends cdktf.TerraformResource { terraformResourceType: 'tfe_workspace_variable_set', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, diff --git a/src/workspace/index.ts b/src/workspace/index.ts index a89ba5b59..6cba531f1 100644 --- a/src/workspace/index.ts +++ b/src/workspace/index.ts @@ -61,7 +61,7 @@ export interface WorkspaceConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#organization Workspace#organization} */ - readonly organization: string; + readonly organization?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/tfe/r/workspace#project_id Workspace#project_id} */ @@ -307,7 +307,7 @@ export class Workspace extends cdktf.TerraformResource { terraformResourceType: 'tfe_workspace', terraformGeneratorMetadata: { providerName: 'tfe', - providerVersion: '0.41.0', + providerVersion: '0.42.0', providerVersionConstraint: '~> 0.33' }, provider: config.provider, @@ -538,7 +538,7 @@ export class Workspace extends cdktf.TerraformResource { return this._operations; } - // organization - computed: false, optional: false, required: true + // organization - computed: true, optional: true, required: false private _organization?: string; public get organization() { return this.getStringAttribute('organization'); @@ -546,6 +546,9 @@ export class Workspace extends cdktf.TerraformResource { public set organization(value: string) { this._organization = value; } + public resetOrganization() { + this._organization = undefined; + } // Temporarily expose input value. Use with caution. public get organizationInput() { return this._organization; diff --git a/tsconfig.dev.json b/tsconfig.dev.json index 2e29dbaa7..3bd367166 100644 --- a/tsconfig.dev.json +++ b/tsconfig.dev.json @@ -1,3 +1,4 @@ +// ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen". { "compilerOptions": { "alwaysStrict": true, @@ -31,6 +32,5 @@ ], "exclude": [ "node_modules" - ], - "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"." + ] } diff --git a/yarn.lock b/yarn.lock index 66ef67bb0..5be0551d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -170,9 +170,9 @@ jsii-srcmak "^0.1.790" "@cdktf/provider-project@^0.2.8": - version "0.2.90" - resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.90.tgz#c74231d5892c2cff5a893d6c90e1470a15312b98" - integrity sha512-ck4S1mwahR2qhYa/8yUpQS8yApb/j0ZymWwKn4sIfuQ96MlW/nJtfbewn25fk80ib58/15prZNPx64HHEsoAKQ== + version "0.2.92" + resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.92.tgz#36c92620fb419ce35296c050802dcd288ac593ee" + integrity sha512-JBBl8LMoliGpcCiyiY8XD2utYI9PHBvuYtmLpJYX4dMguWa9FlZB4RzNQ2ihzL56khuldv/kKaAXQ3ZYJj2lKw== dependencies: change-case "^4.1.2" fs-extra "^10.1.0" @@ -3380,10 +3380,10 @@ progress@^2.0.3: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.67.29: - version "0.67.29" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.67.29.tgz#981beec8db2658ab0e027a94c856aff6039cb016" - integrity sha512-6GWMdfkxjEwQPCTB+YgWl2nZMzfbYbmlRkxM9oLdZetpYJwg3T1fokwrnSWxYVOXQXdUoXl0LjkWJJO08+/5HQ== +projen@^0.67.36: + version "0.67.36" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.67.36.tgz#8ff9ef8080bece04898ca9f2c71ce3f5bebe90c6" + integrity sha512-7UB+LH6zfdiLg/h4KtZYII0mwX+8Y+9cktX0c4NiMULTpKrbe9dCeO18D13Gh7MBvd/G0L7cib6/328rolG1mQ== dependencies: "@iarna/toml" "^2.2.5" case "^1.6.3"