From 230d5786fbb4620295761a5f76d81a32a53c8fc8 Mon Sep 17 00:00:00 2001 From: github-team-tf-cdk Date: Tue, 17 Oct 2023 12:30:17 +0000 Subject: [PATCH 1/2] feat!: update CDKTF version to --- .../workflows/auto-close-community-issues.yml | 2 + .../workflows/auto-close-community-prs.yml | 2 + .projen/deps.json | 6 +- .projenrc.js | 2 +- docs/dataNullDataSource.csharp.md | 45 ++++++ docs/dataNullDataSource.go.md | 55 ++++++- docs/dataNullDataSource.java.md | 45 ++++++ docs/dataNullDataSource.python.md | 50 +++++++ docs/dataNullDataSource.typescript.md | 45 ++++++ docs/provider.csharp.md | 45 ++++++ docs/provider.go.md | 55 ++++++- docs/provider.java.md | 45 ++++++ docs/provider.python.md | 50 +++++++ docs/provider.typescript.md | 45 ++++++ docs/resource.csharp.md | 106 ++++++++++++++ docs/resource.go.md | 116 ++++++++++++++- docs/resource.java.md | 108 ++++++++++++++ docs/resource.python.md | 119 +++++++++++++++ docs/resource.typescript.md | 106 ++++++++++++++ package.json | 8 +- src/data-null-data-source/index.ts | 19 ++- src/index.ts | 5 - src/lazy-index.ts | 5 - src/provider/index.ts | 19 ++- src/resource/index.ts | 19 ++- yarn.lock | 138 +++++++++--------- 26 files changed, 1143 insertions(+), 117 deletions(-) diff --git a/.github/workflows/auto-close-community-issues.yml b/.github/workflows/auto-close-community-issues.yml index 6f45871a..cc8af9ee 100644 --- a/.github/workflows/auto-close-community-issues.yml +++ b/.github/workflows/auto-close-community-issues.yml @@ -12,6 +12,8 @@ jobs: issues: write if: github.event.issue.author_association != 'OWNER' && github.event.issue.author_association != 'MEMBER' && github.event.issue.author_association != 'COLLABORATOR' steps: + - name: Checkout + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - name: Auto-close issues by non-collaborators env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/auto-close-community-prs.yml b/.github/workflows/auto-close-community-prs.yml index 04023ee8..ce595e63 100644 --- a/.github/workflows/auto-close-community-prs.yml +++ b/.github/workflows/auto-close-community-prs.yml @@ -12,6 +12,8 @@ jobs: pull-requests: write if: github.event.pull_request.author_association != 'OWNER' && github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'COLLABORATOR' steps: + - name: Checkout + uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab - name: Auto-close PRs by non-collaborators env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.projen/deps.json b/.projen/deps.json index 6a14ea2c..0080949a 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -17,12 +17,12 @@ }, { "name": "cdktf-cli", - "version": "^0.18.0", + "version": "^0.19.0", "type": "build" }, { "name": "cdktf", - "version": "^0.18.0", + "version": "^0.19.0", "type": "build" }, { @@ -88,7 +88,7 @@ }, { "name": "cdktf", - "version": "^0.18.0", + "version": "^0.19.0", "type": "peer" }, { diff --git a/.projenrc.js b/.projenrc.js index adf89d5e..1f505987 100644 --- a/.projenrc.js +++ b/.projenrc.js @@ -7,7 +7,7 @@ const { CdktfProviderProject } = require("@cdktf/provider-project"); const project = new CdktfProviderProject({ useCustomGithubRunner: false, terraformProvider: "null@~> 3.0", - cdktfVersion: "^0.18.0", + cdktfVersion: "^0.19.0", constructsVersion: "^10.0.0", minNodeVersion: "18.12.0", jsiiVersion: "^5.0.1", diff --git a/docs/dataNullDataSource.csharp.md b/docs/dataNullDataSource.csharp.md index bece0e07..af34af26 100644 --- a/docs/dataNullDataSource.csharp.md +++ b/docs/dataNullDataSource.csharp.md @@ -278,6 +278,7 @@ private void ResetInputs() | IsConstruct | Checks if `x` is a construct. | | IsTerraformElement | *No description.* | | IsTerraformDataSource | *No description.* | +| GenerateConfigForImport | Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan ". | --- @@ -341,6 +342,50 @@ DataNullDataSource.IsTerraformDataSource(object X); --- +##### `GenerateConfigForImport` + +```csharp +using HashiCorp.Cdktf.Providers.Null; + +DataNullDataSource.GenerateConfigForImport(Construct Scope, string ImportToId, string ImportFromId, TerraformProvider Provider = null); +``` + +Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan ". + +###### `Scope`Required + +- *Type:* Constructs.Construct + +The scope in which to define this construct. + +--- + +###### `ImportToId`Required + +- *Type:* string + +The construct id used in the generated config for the DataNullDataSource to import. + +--- + +###### `ImportFromId`Required + +- *Type:* string + +The id of the existing DataNullDataSource that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/data-sources/data_source#import import section} in the documentation of this resource for the id to use + +--- + +###### `Provider`Optional + +- *Type:* HashiCorp.Cdktf.TerraformProvider + +? Optional instance of the provider where the DataNullDataSource to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/dataNullDataSource.go.md b/docs/dataNullDataSource.go.md index c784a018..2e577ee4 100644 --- a/docs/dataNullDataSource.go.md +++ b/docs/dataNullDataSource.go.md @@ -13,7 +13,7 @@ Represents a {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1 #### Initializers ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" datanulldatasource.NewDataNullDataSource(scope Construct, id *string, config DataNullDataSourceConfig) DataNullDataSource ``` @@ -278,13 +278,14 @@ func ResetInputs() | IsConstruct | Checks if `x` is a construct. | | IsTerraformElement | *No description.* | | IsTerraformDataSource | *No description.* | +| GenerateConfigForImport | Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan ". | --- ##### `IsConstruct` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" datanulldatasource.DataNullDataSource_IsConstruct(x interface{}) *bool ``` @@ -316,7 +317,7 @@ Any object. ##### `IsTerraformElement` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" datanulldatasource.DataNullDataSource_IsTerraformElement(x interface{}) *bool ``` @@ -330,7 +331,7 @@ datanulldatasource.DataNullDataSource_IsTerraformElement(x interface{}) *bool ##### `IsTerraformDataSource` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" datanulldatasource.DataNullDataSource_IsTerraformDataSource(x interface{}) *bool ``` @@ -341,6 +342,50 @@ datanulldatasource.DataNullDataSource_IsTerraformDataSource(x interface{}) *bool --- +##### `GenerateConfigForImport` + +```go +import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" + +datanulldatasource.DataNullDataSource_GenerateConfigForImport(scope Construct, importToId *string, importFromId *string, provider TerraformProvider) ImportableResource +``` + +Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* github.com/aws/constructs-go/constructs/v10.Construct + +The scope in which to define this construct. + +--- + +###### `importToId`Required + +- *Type:* *string + +The construct id used in the generated config for the DataNullDataSource to import. + +--- + +###### `importFromId`Required + +- *Type:* *string + +The id of the existing DataNullDataSource that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/data-sources/data_source#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider + +? Optional instance of the provider where the DataNullDataSource to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | @@ -584,7 +629,7 @@ func TfResourceType() *string #### Initializer ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" &datanulldatasource.DataNullDataSourceConfig { Connection: interface{}, diff --git a/docs/dataNullDataSource.java.md b/docs/dataNullDataSource.java.md index 40dfcc98..ec69c89a 100644 --- a/docs/dataNullDataSource.java.md +++ b/docs/dataNullDataSource.java.md @@ -358,6 +358,7 @@ public void resetInputs() | isConstruct | Checks if `x` is a construct. | | isTerraformElement | *No description.* | | isTerraformDataSource | *No description.* | +| generateConfigForImport | Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan ". | --- @@ -421,6 +422,50 @@ DataNullDataSource.isTerraformDataSource(java.lang.Object x) --- +##### `generateConfigForImport` + +```java +import com.hashicorp.cdktf.providers.null_provider.data_null_data_source.DataNullDataSource; + +DataNullDataSource.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId),DataNullDataSource.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId, TerraformProvider provider) +``` + +Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* software.constructs.Construct + +The scope in which to define this construct. + +--- + +###### `importToId`Required + +- *Type:* java.lang.String + +The construct id used in the generated config for the DataNullDataSource to import. + +--- + +###### `importFromId`Required + +- *Type:* java.lang.String + +The id of the existing DataNullDataSource that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/data-sources/data_source#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* com.hashicorp.cdktf.TerraformProvider + +? Optional instance of the provider where the DataNullDataSource to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/dataNullDataSource.python.md b/docs/dataNullDataSource.python.md index 94944d5c..a581bb6a 100644 --- a/docs/dataNullDataSource.python.md +++ b/docs/dataNullDataSource.python.md @@ -381,6 +381,7 @@ def reset_inputs() -> None | is_construct | Checks if `x` is a construct. | | is_terraform_element | *No description.* | | is_terraform_data_source | *No description.* | +| generate_config_for_import | Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan ". | --- @@ -450,6 +451,55 @@ dataNullDataSource.DataNullDataSource.is_terraform_data_source( --- +##### `generate_config_for_import` + +```python +from cdktf_cdktf_provider_null import data_null_data_source + +dataNullDataSource.DataNullDataSource.generate_config_for_import( + scope: Construct, + import_to_id: str, + import_from_id: str, + provider: TerraformProvider = None +) +``` + +Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* constructs.Construct + +The scope in which to define this construct. + +--- + +###### `import_to_id`Required + +- *Type:* str + +The construct id used in the generated config for the DataNullDataSource to import. + +--- + +###### `import_from_id`Required + +- *Type:* str + +The id of the existing DataNullDataSource that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/data-sources/data_source#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* cdktf.TerraformProvider + +? Optional instance of the provider where the DataNullDataSource to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/dataNullDataSource.typescript.md b/docs/dataNullDataSource.typescript.md index a17b8d2b..97332941 100644 --- a/docs/dataNullDataSource.typescript.md +++ b/docs/dataNullDataSource.typescript.md @@ -278,6 +278,7 @@ public resetInputs(): void | isConstruct | Checks if `x` is a construct. | | isTerraformElement | *No description.* | | isTerraformDataSource | *No description.* | +| generateConfigForImport | Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan ". | --- @@ -341,6 +342,50 @@ dataNullDataSource.DataNullDataSource.isTerraformDataSource(x: any) --- +##### `generateConfigForImport` + +```typescript +import { dataNullDataSource } from '@cdktf/provider-null' + +dataNullDataSource.DataNullDataSource.generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: TerraformProvider) +``` + +Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* constructs.Construct + +The scope in which to define this construct. + +--- + +###### `importToId`Required + +- *Type:* string + +The construct id used in the generated config for the DataNullDataSource to import. + +--- + +###### `importFromId`Required + +- *Type:* string + +The id of the existing DataNullDataSource that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/data-sources/data_source#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* cdktf.TerraformProvider + +? Optional instance of the provider where the DataNullDataSource to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/provider.csharp.md b/docs/provider.csharp.md index 9da38326..ed8cd4fb 100644 --- a/docs/provider.csharp.md +++ b/docs/provider.csharp.md @@ -141,6 +141,7 @@ private void ResetAlias() | IsConstruct | Checks if `x` is a construct. | | IsTerraformElement | *No description.* | | IsTerraformProvider | *No description.* | +| GenerateConfigForImport | Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan ". | --- @@ -204,6 +205,50 @@ NullProvider.IsTerraformProvider(object X); --- +##### `GenerateConfigForImport` + +```csharp +using HashiCorp.Cdktf.Providers.Null; + +NullProvider.GenerateConfigForImport(Construct Scope, string ImportToId, string ImportFromId, TerraformProvider Provider = null); +``` + +Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan ". + +###### `Scope`Required + +- *Type:* Constructs.Construct + +The scope in which to define this construct. + +--- + +###### `ImportToId`Required + +- *Type:* string + +The construct id used in the generated config for the NullProvider to import. + +--- + +###### `ImportFromId`Required + +- *Type:* string + +The id of the existing NullProvider that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs#import import section} in the documentation of this resource for the id to use + +--- + +###### `Provider`Optional + +- *Type:* HashiCorp.Cdktf.TerraformProvider + +? Optional instance of the provider where the NullProvider to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/provider.go.md b/docs/provider.go.md index 0270b0d8..a2fd9825 100644 --- a/docs/provider.go.md +++ b/docs/provider.go.md @@ -13,7 +13,7 @@ Represents a {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1 #### Initializers ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/provider" provider.NewNullProvider(scope Construct, id *string, config NullProviderConfig) NullProvider ``` @@ -141,13 +141,14 @@ func ResetAlias() | IsConstruct | Checks if `x` is a construct. | | IsTerraformElement | *No description.* | | IsTerraformProvider | *No description.* | +| GenerateConfigForImport | Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan ". | --- ##### `IsConstruct` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/provider" provider.NullProvider_IsConstruct(x interface{}) *bool ``` @@ -179,7 +180,7 @@ Any object. ##### `IsTerraformElement` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/provider" provider.NullProvider_IsTerraformElement(x interface{}) *bool ``` @@ -193,7 +194,7 @@ provider.NullProvider_IsTerraformElement(x interface{}) *bool ##### `IsTerraformProvider` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/provider" provider.NullProvider_IsTerraformProvider(x interface{}) *bool ``` @@ -204,6 +205,50 @@ provider.NullProvider_IsTerraformProvider(x interface{}) *bool --- +##### `GenerateConfigForImport` + +```go +import "github.com/cdktf/cdktf-provider-null-go/null/provider" + +provider.NullProvider_GenerateConfigForImport(scope Construct, importToId *string, importFromId *string, provider TerraformProvider) ImportableResource +``` + +Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* github.com/aws/constructs-go/constructs/v10.Construct + +The scope in which to define this construct. + +--- + +###### `importToId`Required + +- *Type:* *string + +The construct id used in the generated config for the NullProvider to import. + +--- + +###### `importFromId`Required + +- *Type:* *string + +The id of the existing NullProvider that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider + +? Optional instance of the provider where the NullProvider to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | @@ -348,7 +393,7 @@ func TfResourceType() *string #### Initializer ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/provider" &provider.NullProviderConfig { Alias: *string, diff --git a/docs/provider.java.md b/docs/provider.java.md index bf317019..1735e5e5 100644 --- a/docs/provider.java.md +++ b/docs/provider.java.md @@ -147,6 +147,7 @@ public void resetAlias() | isConstruct | Checks if `x` is a construct. | | isTerraformElement | *No description.* | | isTerraformProvider | *No description.* | +| generateConfigForImport | Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan ". | --- @@ -210,6 +211,50 @@ NullProvider.isTerraformProvider(java.lang.Object x) --- +##### `generateConfigForImport` + +```java +import com.hashicorp.cdktf.providers.null_provider.provider.NullProvider; + +NullProvider.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId),NullProvider.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId, TerraformProvider provider) +``` + +Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* software.constructs.Construct + +The scope in which to define this construct. + +--- + +###### `importToId`Required + +- *Type:* java.lang.String + +The construct id used in the generated config for the NullProvider to import. + +--- + +###### `importFromId`Required + +- *Type:* java.lang.String + +The id of the existing NullProvider that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* com.hashicorp.cdktf.TerraformProvider + +? Optional instance of the provider where the NullProvider to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/provider.python.md b/docs/provider.python.md index d587638a..19262ada 100644 --- a/docs/provider.python.md +++ b/docs/provider.python.md @@ -154,6 +154,7 @@ def reset_alias() -> None | is_construct | Checks if `x` is a construct. | | is_terraform_element | *No description.* | | is_terraform_provider | *No description.* | +| generate_config_for_import | Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan ". | --- @@ -223,6 +224,55 @@ provider.NullProvider.is_terraform_provider( --- +##### `generate_config_for_import` + +```python +from cdktf_cdktf_provider_null import provider + +provider.NullProvider.generate_config_for_import( + scope: Construct, + import_to_id: str, + import_from_id: str, + provider: TerraformProvider = None +) +``` + +Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* constructs.Construct + +The scope in which to define this construct. + +--- + +###### `import_to_id`Required + +- *Type:* str + +The construct id used in the generated config for the NullProvider to import. + +--- + +###### `import_from_id`Required + +- *Type:* str + +The id of the existing NullProvider that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* cdktf.TerraformProvider + +? Optional instance of the provider where the NullProvider to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/provider.typescript.md b/docs/provider.typescript.md index e789248b..e94ac701 100644 --- a/docs/provider.typescript.md +++ b/docs/provider.typescript.md @@ -141,6 +141,7 @@ public resetAlias(): void | isConstruct | Checks if `x` is a construct. | | isTerraformElement | *No description.* | | isTerraformProvider | *No description.* | +| generateConfigForImport | Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan ". | --- @@ -204,6 +205,50 @@ provider.NullProvider.isTerraformProvider(x: any) --- +##### `generateConfigForImport` + +```typescript +import { provider } from '@cdktf/provider-null' + +provider.NullProvider.generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: TerraformProvider) +``` + +Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* constructs.Construct + +The scope in which to define this construct. + +--- + +###### `importToId`Required + +- *Type:* string + +The construct id used in the generated config for the NullProvider to import. + +--- + +###### `importFromId`Required + +- *Type:* string + +The id of the existing NullProvider that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* cdktf.TerraformProvider + +? Optional instance of the provider where the NullProvider to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/resource.csharp.md b/docs/resource.csharp.md index c724f34b..704c7a48 100644 --- a/docs/resource.csharp.md +++ b/docs/resource.csharp.md @@ -60,6 +60,7 @@ Must be unique amongst siblings in the same scope | ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. | | ToMetadata | *No description.* | | ToTerraform | Adds this resource to the terraform JSON output. | +| AddMoveTarget | Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. | | GetAnyMapAttribute | *No description.* | | GetBooleanAttribute | *No description.* | | GetBooleanMapAttribute | *No description.* | @@ -69,7 +70,9 @@ Must be unique amongst siblings in the same scope | GetNumberMapAttribute | *No description.* | | GetStringAttribute | *No description.* | | GetStringMapAttribute | *No description.* | +| ImportFrom | *No description.* | | InterpolationForAttribute | *No description.* | +| MoveTo | Moves this resource to the target resource given by moveTarget. | | ResetTriggers | *No description.* | --- @@ -138,6 +141,22 @@ private object ToTerraform() Adds this resource to the terraform JSON output. +##### `AddMoveTarget` + +```csharp +private void AddMoveTarget(string MoveTarget) +``` + +Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. + +###### `MoveTarget`Required + +- *Type:* string + +The string move target that will correspond to this resource. + +--- + ##### `GetAnyMapAttribute` ```csharp @@ -246,6 +265,24 @@ private System.Collections.Generic.IDictionary GetStringMapAttri --- +##### `ImportFrom` + +```csharp +private void ImportFrom(string Id, TerraformProvider Provider = null) +``` + +###### `Id`Required + +- *Type:* string + +--- + +###### `Provider`Optional + +- *Type:* HashiCorp.Cdktf.TerraformProvider + +--- + ##### `InterpolationForAttribute` ```csharp @@ -258,6 +295,30 @@ private IResolvable InterpolationForAttribute(string TerraformAttribute) --- +##### `MoveTo` + +```csharp +private void MoveTo(string MoveTarget, object Index = null) +``` + +Moves this resource to the target resource given by moveTarget. + +###### `MoveTarget`Required + +- *Type:* string + +The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to. + +--- + +###### `Index`Optional + +- *Type:* object + +Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to. + +--- + ##### `ResetTriggers` ```csharp @@ -271,6 +332,7 @@ private void ResetTriggers() | IsConstruct | Checks if `x` is a construct. | | IsTerraformElement | *No description.* | | IsTerraformResource | *No description.* | +| GenerateConfigForImport | Generates CDKTF code for importing a Resource resource upon running "cdktf plan ". | --- @@ -334,6 +396,50 @@ Resource.IsTerraformResource(object X); --- +##### `GenerateConfigForImport` + +```csharp +using HashiCorp.Cdktf.Providers.Null; + +Resource.GenerateConfigForImport(Construct Scope, string ImportToId, string ImportFromId, TerraformProvider Provider = null); +``` + +Generates CDKTF code for importing a Resource resource upon running "cdktf plan ". + +###### `Scope`Required + +- *Type:* Constructs.Construct + +The scope in which to define this construct. + +--- + +###### `ImportToId`Required + +- *Type:* string + +The construct id used in the generated config for the Resource to import. + +--- + +###### `ImportFromId`Required + +- *Type:* string + +The id of the existing Resource that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/resources/resource#import import section} in the documentation of this resource for the id to use + +--- + +###### `Provider`Optional + +- *Type:* HashiCorp.Cdktf.TerraformProvider + +? Optional instance of the provider where the Resource to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/resource.go.md b/docs/resource.go.md index 09247fcf..6cdad57e 100644 --- a/docs/resource.go.md +++ b/docs/resource.go.md @@ -13,7 +13,7 @@ Represents a {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1 #### Initializers ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/resource" resource.NewResource(scope Construct, id *string, config ResourceConfig) Resource ``` @@ -60,6 +60,7 @@ Must be unique amongst siblings in the same scope | ResetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. | | ToMetadata | *No description.* | | ToTerraform | Adds this resource to the terraform JSON output. | +| AddMoveTarget | Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. | | GetAnyMapAttribute | *No description.* | | GetBooleanAttribute | *No description.* | | GetBooleanMapAttribute | *No description.* | @@ -69,7 +70,9 @@ Must be unique amongst siblings in the same scope | GetNumberMapAttribute | *No description.* | | GetStringAttribute | *No description.* | | GetStringMapAttribute | *No description.* | +| ImportFrom | *No description.* | | InterpolationForAttribute | *No description.* | +| MoveTo | Moves this resource to the target resource given by moveTarget. | | ResetTriggers | *No description.* | --- @@ -138,6 +141,22 @@ func ToTerraform() interface{} Adds this resource to the terraform JSON output. +##### `AddMoveTarget` + +```go +func AddMoveTarget(moveTarget *string) +``` + +Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. + +###### `moveTarget`Required + +- *Type:* *string + +The string move target that will correspond to this resource. + +--- + ##### `GetAnyMapAttribute` ```go @@ -246,6 +265,24 @@ func GetStringMapAttribute(terraformAttribute *string) *map[string]*string --- +##### `ImportFrom` + +```go +func ImportFrom(id *string, provider TerraformProvider) +``` + +###### `id`Required + +- *Type:* *string + +--- + +###### `provider`Optional + +- *Type:* github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider + +--- + ##### `InterpolationForAttribute` ```go @@ -258,6 +295,30 @@ func InterpolationForAttribute(terraformAttribute *string) IResolvable --- +##### `MoveTo` + +```go +func MoveTo(moveTarget *string, index interface{}) +``` + +Moves this resource to the target resource given by moveTarget. + +###### `moveTarget`Required + +- *Type:* *string + +The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to. + +--- + +###### `index`Optional + +- *Type:* interface{} + +Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to. + +--- + ##### `ResetTriggers` ```go @@ -271,13 +332,14 @@ func ResetTriggers() | IsConstruct | Checks if `x` is a construct. | | IsTerraformElement | *No description.* | | IsTerraformResource | *No description.* | +| GenerateConfigForImport | Generates CDKTF code for importing a Resource resource upon running "cdktf plan ". | --- ##### `IsConstruct` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/resource" resource.Resource_IsConstruct(x interface{}) *bool ``` @@ -309,7 +371,7 @@ Any object. ##### `IsTerraformElement` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/resource" resource.Resource_IsTerraformElement(x interface{}) *bool ``` @@ -323,7 +385,7 @@ resource.Resource_IsTerraformElement(x interface{}) *bool ##### `IsTerraformResource` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/resource" resource.Resource_IsTerraformResource(x interface{}) *bool ``` @@ -334,6 +396,50 @@ resource.Resource_IsTerraformResource(x interface{}) *bool --- +##### `GenerateConfigForImport` + +```go +import "github.com/cdktf/cdktf-provider-null-go/null/resource" + +resource.Resource_GenerateConfigForImport(scope Construct, importToId *string, importFromId *string, provider TerraformProvider) ImportableResource +``` + +Generates CDKTF code for importing a Resource resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* github.com/aws/constructs-go/constructs/v10.Construct + +The scope in which to define this construct. + +--- + +###### `importToId`Required + +- *Type:* *string + +The construct id used in the generated config for the Resource to import. + +--- + +###### `importFromId`Required + +- *Type:* *string + +The id of the existing Resource that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/resources/resource#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* github.com/hashicorp/terraform-cdk-go/cdktf.TerraformProvider + +? Optional instance of the provider where the Resource to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | @@ -555,7 +661,7 @@ func TfResourceType() *string #### Initializer ```go -import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/resource" &resource.ResourceConfig { Connection: interface{}, diff --git a/docs/resource.java.md b/docs/resource.java.md index a0b2ba50..7a6f7576 100644 --- a/docs/resource.java.md +++ b/docs/resource.java.md @@ -126,6 +126,7 @@ Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashi | resetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. | | toMetadata | *No description.* | | toTerraform | Adds this resource to the terraform JSON output. | +| addMoveTarget | Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. | | getAnyMapAttribute | *No description.* | | getBooleanAttribute | *No description.* | | getBooleanMapAttribute | *No description.* | @@ -135,7 +136,9 @@ Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashi | getNumberMapAttribute | *No description.* | | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | +| importFrom | *No description.* | | interpolationForAttribute | *No description.* | +| moveTo | Moves this resource to the target resource given by moveTarget. | | resetTriggers | *No description.* | --- @@ -204,6 +207,22 @@ public java.lang.Object toTerraform() Adds this resource to the terraform JSON output. +##### `addMoveTarget` + +```java +public void addMoveTarget(java.lang.String moveTarget) +``` + +Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. + +###### `moveTarget`Required + +- *Type:* java.lang.String + +The string move target that will correspond to this resource. + +--- + ##### `getAnyMapAttribute` ```java @@ -312,6 +331,25 @@ public java.util.Map getStringMapAttribute(j --- +##### `importFrom` + +```java +public void importFrom(java.lang.String id) +public void importFrom(java.lang.String id, TerraformProvider provider) +``` + +###### `id`Required + +- *Type:* java.lang.String + +--- + +###### `provider`Optional + +- *Type:* com.hashicorp.cdktf.TerraformProvider + +--- + ##### `interpolationForAttribute` ```java @@ -324,6 +362,31 @@ public IResolvable interpolationForAttribute(java.lang.String terraformAttribute --- +##### `moveTo` + +```java +public void moveTo(java.lang.String moveTarget) +public void moveTo(java.lang.String moveTarget, java.lang.String OR java.lang.Number index) +``` + +Moves this resource to the target resource given by moveTarget. + +###### `moveTarget`Required + +- *Type:* java.lang.String + +The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to. + +--- + +###### `index`Optional + +- *Type:* java.lang.String OR java.lang.Number + +Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to. + +--- + ##### `resetTriggers` ```java @@ -337,6 +400,7 @@ public void resetTriggers() | isConstruct | Checks if `x` is a construct. | | isTerraformElement | *No description.* | | isTerraformResource | *No description.* | +| generateConfigForImport | Generates CDKTF code for importing a Resource resource upon running "cdktf plan ". | --- @@ -400,6 +464,50 @@ Resource.isTerraformResource(java.lang.Object x) --- +##### `generateConfigForImport` + +```java +import com.hashicorp.cdktf.providers.null_provider.resource.Resource; + +Resource.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId),Resource.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId, TerraformProvider provider) +``` + +Generates CDKTF code for importing a Resource resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* software.constructs.Construct + +The scope in which to define this construct. + +--- + +###### `importToId`Required + +- *Type:* java.lang.String + +The construct id used in the generated config for the Resource to import. + +--- + +###### `importFromId`Required + +- *Type:* java.lang.String + +The id of the existing Resource that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/resources/resource#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* com.hashicorp.cdktf.TerraformProvider + +? Optional instance of the provider where the Resource to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/resource.python.md b/docs/resource.python.md index 247957c5..c95b6404 100644 --- a/docs/resource.python.md +++ b/docs/resource.python.md @@ -124,6 +124,7 @@ Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashi | reset_override_logical_id | Resets a previously passed logical Id to use the auto-generated logical id again. | | to_metadata | *No description.* | | to_terraform | Adds this resource to the terraform JSON output. | +| add_move_target | Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. | | get_any_map_attribute | *No description.* | | get_boolean_attribute | *No description.* | | get_boolean_map_attribute | *No description.* | @@ -133,7 +134,9 @@ Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashi | get_number_map_attribute | *No description.* | | get_string_attribute | *No description.* | | get_string_map_attribute | *No description.* | +| import_from | *No description.* | | interpolation_for_attribute | *No description.* | +| move_to | Moves this resource to the target resource given by moveTarget. | | reset_triggers | *No description.* | --- @@ -207,6 +210,24 @@ def to_terraform() -> typing.Any Adds this resource to the terraform JSON output. +##### `add_move_target` + +```python +def add_move_target( + move_target: str +) -> None +``` + +Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. + +###### `move_target`Required + +- *Type:* str + +The string move target that will correspond to this resource. + +--- + ##### `get_any_map_attribute` ```python @@ -333,6 +354,27 @@ def get_string_map_attribute( --- +##### `import_from` + +```python +def import_from( + id: str, + provider: TerraformProvider = None +) -> None +``` + +###### `id`Required + +- *Type:* str + +--- + +###### `provider`Optional + +- *Type:* cdktf.TerraformProvider + +--- + ##### `interpolation_for_attribute` ```python @@ -347,6 +389,33 @@ def interpolation_for_attribute( --- +##### `move_to` + +```python +def move_to( + move_target: str, + index: typing.Union[str, typing.Union[int, float]] = None +) -> None +``` + +Moves this resource to the target resource given by moveTarget. + +###### `move_target`Required + +- *Type:* str + +The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to. + +--- + +###### `index`Optional + +- *Type:* typing.Union[str, typing.Union[int, float]] + +Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to. + +--- + ##### `reset_triggers` ```python @@ -360,6 +429,7 @@ def reset_triggers() -> None | is_construct | Checks if `x` is a construct. | | is_terraform_element | *No description.* | | is_terraform_resource | *No description.* | +| generate_config_for_import | Generates CDKTF code for importing a Resource resource upon running "cdktf plan ". | --- @@ -429,6 +499,55 @@ resource.Resource.is_terraform_resource( --- +##### `generate_config_for_import` + +```python +from cdktf_cdktf_provider_null import resource + +resource.Resource.generate_config_for_import( + scope: Construct, + import_to_id: str, + import_from_id: str, + provider: TerraformProvider = None +) +``` + +Generates CDKTF code for importing a Resource resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* constructs.Construct + +The scope in which to define this construct. + +--- + +###### `import_to_id`Required + +- *Type:* str + +The construct id used in the generated config for the Resource to import. + +--- + +###### `import_from_id`Required + +- *Type:* str + +The id of the existing Resource that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/resources/resource#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* cdktf.TerraformProvider + +? Optional instance of the provider where the Resource to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/docs/resource.typescript.md b/docs/resource.typescript.md index 0d1994c7..6722b798 100644 --- a/docs/resource.typescript.md +++ b/docs/resource.typescript.md @@ -60,6 +60,7 @@ Must be unique amongst siblings in the same scope | resetOverrideLogicalId | Resets a previously passed logical Id to use the auto-generated logical id again. | | toMetadata | *No description.* | | toTerraform | Adds this resource to the terraform JSON output. | +| addMoveTarget | Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. | | getAnyMapAttribute | *No description.* | | getBooleanAttribute | *No description.* | | getBooleanMapAttribute | *No description.* | @@ -69,7 +70,9 @@ Must be unique amongst siblings in the same scope | getNumberMapAttribute | *No description.* | | getStringAttribute | *No description.* | | getStringMapAttribute | *No description.* | +| importFrom | *No description.* | | interpolationForAttribute | *No description.* | +| moveTo | Moves this resource to the target resource given by moveTarget. | | resetTriggers | *No description.* | --- @@ -138,6 +141,22 @@ public toTerraform(): any Adds this resource to the terraform JSON output. +##### `addMoveTarget` + +```typescript +public addMoveTarget(moveTarget: string): void +``` + +Adds a user defined moveTarget string to this resource to be later used in .moveTo(moveTarget) to resolve the location of the move. + +###### `moveTarget`Required + +- *Type:* string + +The string move target that will correspond to this resource. + +--- + ##### `getAnyMapAttribute` ```typescript @@ -246,6 +265,24 @@ public getStringMapAttribute(terraformAttribute: string): {[ key: string ]: stri --- +##### `importFrom` + +```typescript +public importFrom(id: string, provider?: TerraformProvider): void +``` + +###### `id`Required + +- *Type:* string + +--- + +###### `provider`Optional + +- *Type:* cdktf.TerraformProvider + +--- + ##### `interpolationForAttribute` ```typescript @@ -258,6 +295,30 @@ public interpolationForAttribute(terraformAttribute: string): IResolvable --- +##### `moveTo` + +```typescript +public moveTo(moveTarget: string, index?: string | number): void +``` + +Moves this resource to the target resource given by moveTarget. + +###### `moveTarget`Required + +- *Type:* string + +The previously set user defined string set by .addMoveTarget() corresponding to the resource to move to. + +--- + +###### `index`Optional + +- *Type:* string | number + +Optional The index corresponding to the key the resource is to appear in the foreach of a resource to move to. + +--- + ##### `resetTriggers` ```typescript @@ -271,6 +332,7 @@ public resetTriggers(): void | isConstruct | Checks if `x` is a construct. | | isTerraformElement | *No description.* | | isTerraformResource | *No description.* | +| generateConfigForImport | Generates CDKTF code for importing a Resource resource upon running "cdktf plan ". | --- @@ -334,6 +396,50 @@ resource.Resource.isTerraformResource(x: any) --- +##### `generateConfigForImport` + +```typescript +import { resource } from '@cdktf/provider-null' + +resource.Resource.generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: TerraformProvider) +``` + +Generates CDKTF code for importing a Resource resource upon running "cdktf plan ". + +###### `scope`Required + +- *Type:* constructs.Construct + +The scope in which to define this construct. + +--- + +###### `importToId`Required + +- *Type:* string + +The construct id used in the generated config for the Resource to import. + +--- + +###### `importFromId`Required + +- *Type:* string + +The id of the existing Resource that should be imported. + +Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/resources/resource#import import section} in the documentation of this resource for the id to use + +--- + +###### `provider`Optional + +- *Type:* cdktf.TerraformProvider + +? Optional instance of the provider where the Resource to import is found. + +--- + #### Properties | **Name** | **Type** | **Description** | diff --git a/package.json b/package.json index 0955e148..554be538 100644 --- a/package.json +++ b/package.json @@ -47,8 +47,8 @@ "@actions/core": "^1.1.0", "@cdktf/provider-project": "^0.2.95", "@types/node": "^18", - "cdktf": "^0.18.0", - "cdktf-cli": "^0.18.0", + "cdktf": "^0.19.0", + "cdktf-cli": "^0.19.0", "constructs": "^10.0.0", "dot-prop": "^5.2.0", "jsii": "^5.0.1", @@ -58,12 +58,12 @@ "jsii-rosetta": "~5.1.2", "node-fetch": "cjs", "npm-check-updates": "^16", - "projen": "^0.74.18", + "projen": "^0.75.0", "standard-version": "^9", "typescript": "^3.9.10" }, "peerDependencies": { - "cdktf": "^0.18.0", + "cdktf": "^0.19.0", "constructs": "^10.0.0" }, "resolutions": { diff --git a/src/data-null-data-source/index.ts b/src/data-null-data-source/index.ts index 98b282ed..e6982710 100644 --- a/src/data-null-data-source/index.ts +++ b/src/data-null-data-source/index.ts @@ -1,8 +1,3 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - // https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/data-sources/data_source // generated from terraform resource schema @@ -36,6 +31,20 @@ export class DataNullDataSource extends cdktf.TerraformDataSource { // ================= public static readonly tfResourceType = "null_data_source"; + // ============== + // STATIC Methods + // ============== + /** + * Generates CDKTF code for importing a DataNullDataSource resource upon running "cdktf plan " + * @param scope The scope in which to define this construct + * @param importToId The construct id used in the generated config for the DataNullDataSource to import + * @param importFromId The id of the existing DataNullDataSource that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/data-sources/data_source#import import section} in the documentation of this resource for the id to use + * @param provider? Optional instance of the provider where the DataNullDataSource to import is found + */ + public static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider) { + return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "null_data_source", importId: importFromId, provider }); + } + // =========== // INITIALIZER // =========== diff --git a/src/index.ts b/src/index.ts index ad3e2b9e..f9809e5c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,3 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - // generated by cdktf get export * as resource from './resource'; export * as dataNullDataSource from './data-null-data-source'; diff --git a/src/lazy-index.ts b/src/lazy-index.ts index 7cd7ac2b..103245c0 100644 --- a/src/lazy-index.ts +++ b/src/lazy-index.ts @@ -1,8 +1,3 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - // generated by cdktf get Object.defineProperty(exports, 'resource', { get: function () { return require('./resource'); } }); Object.defineProperty(exports, 'dataNullDataSource', { get: function () { return require('./data-null-data-source'); } }); diff --git a/src/provider/index.ts b/src/provider/index.ts index ae71c170..28581322 100644 --- a/src/provider/index.ts +++ b/src/provider/index.ts @@ -1,8 +1,3 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - // https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs // generated from terraform resource schema @@ -30,6 +25,20 @@ export class NullProvider extends cdktf.TerraformProvider { // ================= public static readonly tfResourceType = "null"; + // ============== + // STATIC Methods + // ============== + /** + * Generates CDKTF code for importing a NullProvider resource upon running "cdktf plan " + * @param scope The scope in which to define this construct + * @param importToId The construct id used in the generated config for the NullProvider to import + * @param importFromId The id of the existing NullProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs#import import section} in the documentation of this resource for the id to use + * @param provider? Optional instance of the provider where the NullProvider to import is found + */ + public static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider) { + return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "null", importId: importFromId, provider }); + } + // =========== // INITIALIZER // =========== diff --git a/src/resource/index.ts b/src/resource/index.ts index 40ccfac7..e970ff2b 100644 --- a/src/resource/index.ts +++ b/src/resource/index.ts @@ -1,8 +1,3 @@ -/** - * Copyright (c) HashiCorp, Inc. - * SPDX-License-Identifier: MPL-2.0 - */ - // https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/resources/resource // generated from terraform resource schema @@ -30,6 +25,20 @@ export class Resource extends cdktf.TerraformResource { // ================= public static readonly tfResourceType = "null_resource"; + // ============== + // STATIC Methods + // ============== + /** + * Generates CDKTF code for importing a Resource resource upon running "cdktf plan " + * @param scope The scope in which to define this construct + * @param importToId The construct id used in the generated config for the Resource to import + * @param importFromId The id of the existing Resource that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/resources/resource#import import section} in the documentation of this resource for the id to use + * @param provider? Optional instance of the provider where the Resource to import is found + */ + public static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider) { + return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "null_resource", importId: importFromId, provider }); + } + // =========== // INITIALIZER // =========== diff --git a/yarn.lock b/yarn.lock index f1069621..dad41e52 100644 --- a/yarn.lock +++ b/yarn.lock @@ -78,19 +78,19 @@ "@babel/helper-validator-identifier" "^7.22.20" to-fast-properties "^2.0.0" -"@cdktf/cli-core@0.18.2": - version "0.18.2" - resolved "https://registry.yarnpkg.com/@cdktf/cli-core/-/cli-core-0.18.2.tgz#32ebaca2c79ed3b2341bf46e3bdf4db6991b0f5e" - integrity sha512-deJzuZIJ829tzx0X1t1E1n6jeSCal2SoR1v9r9F6EFTlfAhU3uccj6z6e8RalnLKh4SMJWRtN8PsWzuGaBEN2Q== - dependencies: - "@cdktf/commons" "0.18.2" - "@cdktf/hcl2cdk" "0.18.2" - "@cdktf/hcl2json" "0.18.2" - "@cdktf/node-pty-prebuilt-multiarch" "0.10.1-pre.10" - "@cdktf/provider-schema" "0.18.2" +"@cdktf/cli-core@0.19.0": + version "0.19.0" + resolved "https://registry.yarnpkg.com/@cdktf/cli-core/-/cli-core-0.19.0.tgz#ed2bccb413332f8cfb685662d60bcbb17c4d5fdb" + integrity sha512-iSkhxuSHEPkPCPwvcM81ytniS3v/3YT+zY/MzeKWVkaMj1hZDF3e2C5gnjOdrb0ZCFIH1+znF+aJK9LiqBoV+Q== + dependencies: + "@cdktf/commons" "0.19.0" + "@cdktf/hcl2cdk" "0.19.0" + "@cdktf/hcl2json" "0.19.0" + "@cdktf/node-pty-prebuilt-multiarch" "0.10.1-pre.11" + "@cdktf/provider-schema" "0.19.0" "@sentry/node" "^7.64.0" archiver "^5.3.1" - cdktf "0.18.2" + cdktf "0.19.0" chalk "^4.1.2" chokidar "^3.5.3" cli-spinners "2.7.0" @@ -132,13 +132,13 @@ yoga-layout-prebuilt "^1.10.0" zod "^1.11.17" -"@cdktf/commons@0.18.2": - version "0.18.2" - resolved "https://registry.yarnpkg.com/@cdktf/commons/-/commons-0.18.2.tgz#3c14a69681510e4b3a4a989cc0fd31a523232cd0" - integrity sha512-9jLT7K6bkGWdy8wRbpZfmAnzDPczV9NBpGIS3vsKJCZwoipccmG2LD12DlbM3610IHISksya2AQLlLmJMsTnmA== +"@cdktf/commons@0.19.0": + version "0.19.0" + resolved "https://registry.yarnpkg.com/@cdktf/commons/-/commons-0.19.0.tgz#e0bc7e428b4689550ac9c652e366116114d09875" + integrity sha512-zhqGhx7PWa1lCa1B7RUH1qoln2emrGbGJ3kjRKMOxJxbTKdQBwFUbsaEOiOAVBm0ukTt2DX+VWQc8YPpMgSbgA== dependencies: "@sentry/node" "^7.64.0" - cdktf "0.18.2" + cdktf "0.19.0" ci-info "^3.8.0" codemaker "^1.87.0" constructs "^10.0.25" @@ -149,18 +149,18 @@ log4js "^6.9.1" uuid "^9.0.1" -"@cdktf/hcl2cdk@0.18.2": - version "0.18.2" - resolved "https://registry.yarnpkg.com/@cdktf/hcl2cdk/-/hcl2cdk-0.18.2.tgz#1ec46d43a3e7ef5a17f123aa3cd683df621b956b" - integrity sha512-/AdUWmg1EC++HrS2I/C8H3JV1m/JfK3ONGBY1efNlc3LO7TBKJssKWVBMtYp45IJD86m7rNBOeL1TD0AZ1KjrQ== +"@cdktf/hcl2cdk@0.19.0": + version "0.19.0" + resolved "https://registry.yarnpkg.com/@cdktf/hcl2cdk/-/hcl2cdk-0.19.0.tgz#1077eb093f56424c60315dda350648f1f608fb0d" + integrity sha512-43XWR/ZLZVc8amOC6GmyGFkK9doiP9DKMjEDpYEnXCl1UhdFGHHipcSK6fnc30RCIq3KFF9FTuztvUyruToRyA== dependencies: "@babel/generator" "^7.21.4" "@babel/template" "^7.20.7" "@babel/types" "^7.21.4" - "@cdktf/commons" "0.18.2" - "@cdktf/hcl2json" "0.18.2" - "@cdktf/provider-generator" "0.18.2" - "@cdktf/provider-schema" "0.18.2" + "@cdktf/commons" "0.19.0" + "@cdktf/hcl2json" "0.19.0" + "@cdktf/provider-generator" "0.19.0" + "@cdktf/provider-schema" "0.19.0" camelcase "^6.3.0" deep-equal "^2.2.0" glob "^10.3.3" @@ -171,49 +171,49 @@ reserved-words "^0.1.2" zod "^3.21.4" -"@cdktf/hcl2json@0.18.2": - version "0.18.2" - resolved "https://registry.yarnpkg.com/@cdktf/hcl2json/-/hcl2json-0.18.2.tgz#fd23555d9b2620ed561a9f18843c9d8ee28eb20a" - integrity sha512-TSuIMet9RSuXUWPz40ed/W4WMu92aHVnJ44lB5nap9E1PE8brr7FhnW32dFOy9m2H8WU4GAfSQ0k3GW6JitSig== +"@cdktf/hcl2json@0.19.0": + version "0.19.0" + resolved "https://registry.yarnpkg.com/@cdktf/hcl2json/-/hcl2json-0.19.0.tgz#39fb184421b44b35cb69207dd17c7713ac246563" + integrity sha512-wo68qo74dTxcZWJkwlhTV+YoVopUUUTpRC8W73HWkaL/lw6GDozh4GHwphagIHYJy07Ecxdx/WTp0sGDBaFBuQ== dependencies: fs-extra "^11.1.1" -"@cdktf/node-pty-prebuilt-multiarch@0.10.1-pre.10": - version "0.10.1-pre.10" - resolved "https://registry.yarnpkg.com/@cdktf/node-pty-prebuilt-multiarch/-/node-pty-prebuilt-multiarch-0.10.1-pre.10.tgz#b404351940c595bd96405aaeec7ceffe8b0fc83b" - integrity sha512-5ysQrHJvqYLYg407KvaDNu+xx68ZGaqeF0SohXe5e4yNqJhPFPUQ536rkReQcPc2yZiF5PDmmvf5T9MOacHpSQ== +"@cdktf/node-pty-prebuilt-multiarch@0.10.1-pre.11": + version "0.10.1-pre.11" + resolved "https://registry.yarnpkg.com/@cdktf/node-pty-prebuilt-multiarch/-/node-pty-prebuilt-multiarch-0.10.1-pre.11.tgz#07ab168845047e5879e737ac5ab0919a49ba89a8" + integrity sha512-qvga/nzEtdCJMu/6jJfDqpzbRejvXtNhWFnbubfuYyN5nMNORNXX+POT4j+mQSDQar5bIQ1a812szw/zr47cfw== dependencies: nan "^2.14.2" prebuild-install "^7.1.1" -"@cdktf/provider-generator@0.18.2": - version "0.18.2" - resolved "https://registry.yarnpkg.com/@cdktf/provider-generator/-/provider-generator-0.18.2.tgz#e4210bb8cb2d9e48271a2a2fba4f5ec65d77b3b1" - integrity sha512-Qqfmwlz1t9Ie84CLkefxDR8a2bsacxbaEncO6NqzwYWaCu/K5TDDOqHjLKl1kv3mKjdZtJ0YLMJsMP0C49hKPg== +"@cdktf/provider-generator@0.19.0": + version "0.19.0" + resolved "https://registry.yarnpkg.com/@cdktf/provider-generator/-/provider-generator-0.19.0.tgz#348e8e2744e61a7a40340f634b7bb9e12a7fafc3" + integrity sha512-+1qKfvSA4YH+i6PBbuDwj8xP5NNCsyeF5KR6S/2NqBxz/4w4xptB+h/IehiVGSHtwI2/XmL4bF3gLpNB9Q2dGg== dependencies: - "@cdktf/commons" "0.18.2" - "@cdktf/hcl2json" "0.18.2" - "@cdktf/provider-schema" "0.18.2" - "@types/node" "16.18.23" + "@cdktf/commons" "0.19.0" + "@cdktf/hcl2json" "0.19.0" + "@cdktf/provider-schema" "0.19.0" + "@types/node" "18.11.19" codemaker "^1.87.0" deepmerge "^4.2.2" fs-extra "^8.1.0" jsii-srcmak "^0.1.951" "@cdktf/provider-project@^0.2.95": - version "0.2.131" - resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.131.tgz#713f5895fd00ce11adc394434b0efda914413010" - integrity sha512-jryd50w5YfZWavPtIosvWaVuKPLxiYCXYGc7tRo/buMppwnhHe0ytM/ObRzVCBj5MYU1yIe+aXfLgstSq030BQ== + version "0.2.134" + resolved "https://registry.yarnpkg.com/@cdktf/provider-project/-/provider-project-0.2.134.tgz#1f1d90c19e0e0a121c157f881586a8ec8eadace6" + integrity sha512-bqU1i0iBg8ky1FRwV6qLdP4Au+XxIhHC7tAIu8Jx++SYhQRnz8hh5fKs3o6UCOtnoUZOTgi4DDNZ1ltnBN/dFA== dependencies: change-case "^4.1.2" fs-extra "^10.1.0" -"@cdktf/provider-schema@0.18.2": - version "0.18.2" - resolved "https://registry.yarnpkg.com/@cdktf/provider-schema/-/provider-schema-0.18.2.tgz#b0094e4124d91d75e44701a79262b8d3159ecd91" - integrity sha512-UB3oxmh0GJ/NeubDKjF+gT8bsh7kcT+lCbG0OZwXPlTKBuaDRuS2InkvcUAlvhC7ML1+DqpTl5PsAaowuW46uA== +"@cdktf/provider-schema@0.19.0": + version "0.19.0" + resolved "https://registry.yarnpkg.com/@cdktf/provider-schema/-/provider-schema-0.19.0.tgz#3377e69ae7150056eb59f2b542e5fa5b83493f51" + integrity sha512-tfl6EqzBGL+qRBc+lgtb4qZvj8J4R+htF+N6BmrFnz9NiplRJmy1xzRMZ1fsrboeH0QExlyFYdIaZ97Q3CtD7A== dependencies: - "@cdktf/commons" "0.18.2" + "@cdktf/commons" "0.19.0" fs-extra "^11.1.1" "@colors/colors@1.5.0": @@ -749,10 +749,10 @@ dependencies: undici-types "~5.25.1" -"@types/node@16.18.23": - version "16.18.23" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.23.tgz#b6e934fe427eb7081d0015aad070acb3373c3c90" - integrity sha512-XAMpaw1s1+6zM+jn2tmw8MyaRDIJfXxqmIQIS0HfoGYPuf7dUWeiUKopwq13KFX9lEp1+THGtlaaYx39Nxr58g== +"@types/node@18.11.19": + version "18.11.19" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.19.tgz#35e26df9ec441ab99d73e99e9aca82935eea216d" + integrity sha512-YUgMWAQBWLObABqrvx8qKO1enAvBUdjZOAWQ5grBAkp5LQv45jBvYKZ3oFS9iKRCQyFjqw6iuEa1vmFqtxYLZw== "@types/node@^18": version "18.18.5" @@ -1220,18 +1220,18 @@ case@^1.6.3: resolved "https://registry.yarnpkg.com/case/-/case-1.6.3.tgz#0a4386e3e9825351ca2e6216c60467ff5f1ea1c9" integrity sha512-mzDSXIPaFwVDvZAHqZ9VlbyF4yyXRuX6IvB06WvPYkqJVO24kX1PPhv9bfpKNFZyxYFmmgo03HUiD8iklmJYRQ== -cdktf-cli@^0.18.0: - version "0.18.2" - resolved "https://registry.yarnpkg.com/cdktf-cli/-/cdktf-cli-0.18.2.tgz#c9864fb5b4869cb820cfd55a8682dbdb7d9af7f6" - integrity sha512-Href8hApBsCuvLz1bOiV5t13gkTbl4O457CeiBQmEjfFLg5myluA2nSMBSgCo0JGd/89sCbQXt1MdQU577qM2Q== +cdktf-cli@^0.19.0: + version "0.19.0" + resolved "https://registry.yarnpkg.com/cdktf-cli/-/cdktf-cli-0.19.0.tgz#d0278749beed81a8b450c4b1c41de6046967187e" + integrity sha512-WGLs0IOgig8WDO2E6RYWtG5lCDL+ICX+plFipWT8JhuJpemxBhk8pO8uhDSWvBF85ZpVecQv+szfQVmXq8mdUg== dependencies: - "@cdktf/cli-core" "0.18.2" - "@cdktf/commons" "0.18.2" - "@cdktf/hcl2cdk" "0.18.2" - "@cdktf/hcl2json" "0.18.2" + "@cdktf/cli-core" "0.19.0" + "@cdktf/commons" "0.19.0" + "@cdktf/hcl2cdk" "0.19.0" + "@cdktf/hcl2json" "0.19.0" "@inquirer/prompts" "^2.3.0" "@sentry/node" "^7.64.0" - cdktf "0.18.2" + cdktf "0.19.0" ci-info "^3.8.0" codemaker "^1.87.0" constructs "^10.0.25" @@ -1251,10 +1251,10 @@ cdktf-cli@^0.18.0: yoga-layout-prebuilt "^1.10.0" zod "^1.11.17" -cdktf@0.18.2, cdktf@^0.18.0: - version "0.18.2" - resolved "https://registry.yarnpkg.com/cdktf/-/cdktf-0.18.2.tgz#21b02a4114812b0a696e70d9f7cfc59caa2c0af9" - integrity sha512-ohCsfFwEjXbF4bGbzkx/YB/aq6spceAPtKBXfdF/kNjUx1hVH28lQDS5ykJbnxAAnvrUA8FWz034buun7uPrdQ== +cdktf@0.19.0, cdktf@^0.19.0: + version "0.19.0" + resolved "https://registry.yarnpkg.com/cdktf/-/cdktf-0.19.0.tgz#097a3241b95e77eeab8ae1f7a714bf45dc6ca55b" + integrity sha512-5tcNhvrvsE9WawC5cPwV7B9ATQ5lWNjyCJN7EnMofxTtkBEdnnGx0esC+vpNO4Fs0LhmV37qCUlm+K6anZaPYw== dependencies: archiver "5.3.1" json-stable-stringify "^1.0.2" @@ -4385,10 +4385,10 @@ progress@^2.0.3: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.74.18: - version "0.74.18" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.74.18.tgz#626e8fbd1591fc0fadecd5d56ad5c83146ab44f0" - integrity sha512-VGpz4AIBxYX9sTn0piRa5WFH9/bB1HM452C5+qFvWraT7PPCcoENdH6iegdzSYe5h2RIZXSyHs9beokypzc7zw== +projen@^0.75.0: + version "0.75.0" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.75.0.tgz#f7e317cdfd5a009e7670e3779d60aeef7b9d5f5a" + integrity sha512-Xc3fDcdawK0WoVECl2tzFmf3a4BmM5bPUBzOHyZMSCOc5hmHkgFxbKquE/Er5WMV4+BHMRXA8QeZAIuZZ9ryeQ== dependencies: "@iarna/toml" "^2.2.5" case "^1.6.3" From eec0696e262129a726c3d04ad8ece498bf55a164 Mon Sep 17 00:00:00 2001 From: team-tf-cdk Date: Tue, 17 Oct 2023 12:33:18 +0000 Subject: [PATCH 2/2] chore: self mutation Signed-off-by: team-tf-cdk --- docs/dataNullDataSource.go.md | 12 ++++++------ docs/provider.go.md | 12 ++++++------ docs/resource.go.md | 12 ++++++------ src/data-null-data-source/index.ts | 5 +++++ src/index.ts | 5 +++++ src/lazy-index.ts | 5 +++++ src/provider/index.ts | 5 +++++ src/resource/index.ts | 5 +++++ 8 files changed, 43 insertions(+), 18 deletions(-) diff --git a/docs/dataNullDataSource.go.md b/docs/dataNullDataSource.go.md index 2e577ee4..3d0e8cb3 100644 --- a/docs/dataNullDataSource.go.md +++ b/docs/dataNullDataSource.go.md @@ -13,7 +13,7 @@ Represents a {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1 #### Initializers ```go -import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" datanulldatasource.NewDataNullDataSource(scope Construct, id *string, config DataNullDataSourceConfig) DataNullDataSource ``` @@ -285,7 +285,7 @@ func ResetInputs() ##### `IsConstruct` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" datanulldatasource.DataNullDataSource_IsConstruct(x interface{}) *bool ``` @@ -317,7 +317,7 @@ Any object. ##### `IsTerraformElement` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" datanulldatasource.DataNullDataSource_IsTerraformElement(x interface{}) *bool ``` @@ -331,7 +331,7 @@ datanulldatasource.DataNullDataSource_IsTerraformElement(x interface{}) *bool ##### `IsTerraformDataSource` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" datanulldatasource.DataNullDataSource_IsTerraformDataSource(x interface{}) *bool ``` @@ -345,7 +345,7 @@ datanulldatasource.DataNullDataSource_IsTerraformDataSource(x interface{}) *bool ##### `GenerateConfigForImport` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" datanulldatasource.DataNullDataSource_GenerateConfigForImport(scope Construct, importToId *string, importFromId *string, provider TerraformProvider) ImportableResource ``` @@ -629,7 +629,7 @@ func TfResourceType() *string #### Initializer ```go -import "github.com/cdktf/cdktf-provider-null-go/null/datanulldatasource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/datanulldatasource" &datanulldatasource.DataNullDataSourceConfig { Connection: interface{}, diff --git a/docs/provider.go.md b/docs/provider.go.md index a2fd9825..723e12e9 100644 --- a/docs/provider.go.md +++ b/docs/provider.go.md @@ -13,7 +13,7 @@ Represents a {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1 #### Initializers ```go -import "github.com/cdktf/cdktf-provider-null-go/null/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" provider.NewNullProvider(scope Construct, id *string, config NullProviderConfig) NullProvider ``` @@ -148,7 +148,7 @@ func ResetAlias() ##### `IsConstruct` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" provider.NullProvider_IsConstruct(x interface{}) *bool ``` @@ -180,7 +180,7 @@ Any object. ##### `IsTerraformElement` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" provider.NullProvider_IsTerraformElement(x interface{}) *bool ``` @@ -194,7 +194,7 @@ provider.NullProvider_IsTerraformElement(x interface{}) *bool ##### `IsTerraformProvider` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" provider.NullProvider_IsTerraformProvider(x interface{}) *bool ``` @@ -208,7 +208,7 @@ provider.NullProvider_IsTerraformProvider(x interface{}) *bool ##### `GenerateConfigForImport` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" provider.NullProvider_GenerateConfigForImport(scope Construct, importToId *string, importFromId *string, provider TerraformProvider) ImportableResource ``` @@ -393,7 +393,7 @@ func TfResourceType() *string #### Initializer ```go -import "github.com/cdktf/cdktf-provider-null-go/null/provider" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/provider" &provider.NullProviderConfig { Alias: *string, diff --git a/docs/resource.go.md b/docs/resource.go.md index 6cdad57e..8346d98d 100644 --- a/docs/resource.go.md +++ b/docs/resource.go.md @@ -13,7 +13,7 @@ Represents a {@link https://registry.terraform.io/providers/hashicorp/null/3.2.1 #### Initializers ```go -import "github.com/cdktf/cdktf-provider-null-go/null/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" resource.NewResource(scope Construct, id *string, config ResourceConfig) Resource ``` @@ -339,7 +339,7 @@ func ResetTriggers() ##### `IsConstruct` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" resource.Resource_IsConstruct(x interface{}) *bool ``` @@ -371,7 +371,7 @@ Any object. ##### `IsTerraformElement` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" resource.Resource_IsTerraformElement(x interface{}) *bool ``` @@ -385,7 +385,7 @@ resource.Resource_IsTerraformElement(x interface{}) *bool ##### `IsTerraformResource` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" resource.Resource_IsTerraformResource(x interface{}) *bool ``` @@ -399,7 +399,7 @@ resource.Resource_IsTerraformResource(x interface{}) *bool ##### `GenerateConfigForImport` ```go -import "github.com/cdktf/cdktf-provider-null-go/null/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" resource.Resource_GenerateConfigForImport(scope Construct, importToId *string, importFromId *string, provider TerraformProvider) ImportableResource ``` @@ -661,7 +661,7 @@ func TfResourceType() *string #### Initializer ```go -import "github.com/cdktf/cdktf-provider-null-go/null/resource" +import "github.com/cdktf/cdktf-provider-null-go/null/v9/resource" &resource.ResourceConfig { Connection: interface{}, diff --git a/src/data-null-data-source/index.ts b/src/data-null-data-source/index.ts index e6982710..e564e5cd 100644 --- a/src/data-null-data-source/index.ts +++ b/src/data-null-data-source/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/data-sources/data_source // generated from terraform resource schema diff --git a/src/index.ts b/src/index.ts index f9809e5c..ad3e2b9e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // generated by cdktf get export * as resource from './resource'; export * as dataNullDataSource from './data-null-data-source'; diff --git a/src/lazy-index.ts b/src/lazy-index.ts index 103245c0..7cd7ac2b 100644 --- a/src/lazy-index.ts +++ b/src/lazy-index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // generated by cdktf get Object.defineProperty(exports, 'resource', { get: function () { return require('./resource'); } }); Object.defineProperty(exports, 'dataNullDataSource', { get: function () { return require('./data-null-data-source'); } }); diff --git a/src/provider/index.ts b/src/provider/index.ts index 28581322..95ca527e 100644 --- a/src/provider/index.ts +++ b/src/provider/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs // generated from terraform resource schema diff --git a/src/resource/index.ts b/src/resource/index.ts index e970ff2b..a172119f 100644 --- a/src/resource/index.ts +++ b/src/resource/index.ts @@ -1,3 +1,8 @@ +/** + * Copyright (c) HashiCorp, Inc. + * SPDX-License-Identifier: MPL-2.0 + */ + // https://registry.terraform.io/providers/hashicorp/null/3.2.1/docs/resources/resource // generated from terraform resource schema