Skip to content

Commit

Permalink
Merge pull request #20 from hashicorp/upgrade-provider-project-96
Browse files Browse the repository at this point in the history
  • Loading branch information
team-tf-cdk authored May 24, 2022
2 parents f6bb26a + 00e3f14 commit 2f478e5
Show file tree
Hide file tree
Showing 34 changed files with 159,218 additions and 17,169 deletions.
6 changes: 3 additions & 3 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { CdktfProviderProject } = require('@cdktf/provider-project');
const { CdktfProviderProject } = require("@cdktf/provider-project");
const project = new CdktfProviderProject({
terraformProvider: "spotinst/spotinst@~> 1.0",
cdktfVersion: '^0.10.3',
cdktfVersion: "^0.11.0",
constructsVersion: "^10.0.0",
minNodeVersion: "14.17.0",
jsiiVersion: "^1.53.0",
Expand Down
140,649 changes: 127,067 additions & 13,582 deletions API.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions src/data-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import * as cdktf from 'cdktf';
// Configuration

export interface DataIntegrationConfig extends cdktf.TerraformMetaArguments {
/**
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/spotinst/r/data_integration#id DataIntegration#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/spotinst/r/data_integration#name DataIntegration#name}
*/
Expand Down Expand Up @@ -146,6 +153,7 @@ export class DataIntegration extends cdktf.TerraformResource {
count: config.count,
lifecycle: config.lifecycle
});
this._id = config.id;
this._name = config.name;
this._status = config.status;
this._s3.internalValue = config.s3;
Expand All @@ -156,9 +164,20 @@ export class DataIntegration extends cdktf.TerraformResource {
// ==========

// 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;
}

// name - computed: false, optional: false, required: true
private _name?: string;
Expand Down Expand Up @@ -211,6 +230,7 @@ export class DataIntegration extends cdktf.TerraformResource {

protected synthesizeAttributes(): { [name: string]: any } {
return {
id: cdktf.stringToTerraform(this._id),
name: cdktf.stringToTerraform(this._name),
status: cdktf.stringToTerraform(this._status),
s3: dataIntegrationS3ToTerraform(this._s3.internalValue),
Expand Down
Loading

0 comments on commit 2f478e5

Please sign in to comment.