-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from hashicorp/auto/provider-upgrade
- Loading branch information
Showing
8 changed files
with
6,055 additions
and
2,705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
// https://www.terraform.io/docs/providers/snowflake/d/database | ||
// generated from terraform resource schema | ||
|
||
import { Construct } from 'constructs'; | ||
import * as cdktf from 'cdktf'; | ||
|
||
// Configuration | ||
|
||
export interface DataSnowflakeDatabaseConfig extends cdktf.TerraformMetaArguments { | ||
/** | ||
* The database from which to return its metadata. | ||
* | ||
* Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/snowflake/d/database#name DataSnowflakeDatabase#name} | ||
*/ | ||
readonly name: string; | ||
} | ||
|
||
/** | ||
* Represents a {@link https://www.terraform.io/docs/providers/snowflake/d/database snowflake_database} | ||
*/ | ||
export class DataSnowflakeDatabase extends cdktf.TerraformDataSource { | ||
|
||
// ================= | ||
// STATIC PROPERTIES | ||
// ================= | ||
public static readonly tfResourceType: string = "snowflake_database"; | ||
|
||
// =========== | ||
// INITIALIZER | ||
// =========== | ||
|
||
/** | ||
* Create a new {@link https://www.terraform.io/docs/providers/snowflake/d/database snowflake_database} 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 DataSnowflakeDatabaseConfig | ||
*/ | ||
public constructor(scope: Construct, id: string, config: DataSnowflakeDatabaseConfig) { | ||
super(scope, id, { | ||
terraformResourceType: 'snowflake_database', | ||
terraformGeneratorMetadata: { | ||
providerName: 'snowflake' | ||
}, | ||
provider: config.provider, | ||
dependsOn: config.dependsOn, | ||
count: config.count, | ||
lifecycle: config.lifecycle | ||
}); | ||
this._name = config.name; | ||
} | ||
|
||
// ========== | ||
// ATTRIBUTES | ||
// ========== | ||
|
||
// comment - computed: true, optional: false, required: false | ||
public get comment() { | ||
return this.getStringAttribute('comment'); | ||
} | ||
|
||
// created_on - computed: true, optional: false, required: false | ||
public get createdOn() { | ||
return this.getStringAttribute('created_on'); | ||
} | ||
|
||
// id - computed: true, optional: true, required: false | ||
public get id() { | ||
return this.getStringAttribute('id'); | ||
} | ||
|
||
// is_current - computed: true, optional: false, required: false | ||
public get isCurrent() { | ||
return this.getBooleanAttribute('is_current'); | ||
} | ||
|
||
// is_default - computed: true, optional: false, required: false | ||
public get isDefault() { | ||
return this.getBooleanAttribute('is_default'); | ||
} | ||
|
||
// name - computed: false, optional: false, required: true | ||
private _name?: string; | ||
public get name() { | ||
return this.getStringAttribute('name'); | ||
} | ||
public set name(value: string) { | ||
this._name = value; | ||
} | ||
// Temporarily expose input value. Use with caution. | ||
public get nameInput() { | ||
return this._name; | ||
} | ||
|
||
// options - computed: true, optional: false, required: false | ||
public get options() { | ||
return this.getStringAttribute('options'); | ||
} | ||
|
||
// origin - computed: true, optional: false, required: false | ||
public get origin() { | ||
return this.getStringAttribute('origin'); | ||
} | ||
|
||
// owner - computed: true, optional: false, required: false | ||
public get owner() { | ||
return this.getStringAttribute('owner'); | ||
} | ||
|
||
// retention_time - computed: true, optional: false, required: false | ||
public get retentionTime() { | ||
return this.getNumberAttribute('retention_time'); | ||
} | ||
|
||
// ========= | ||
// SYNTHESIS | ||
// ========= | ||
|
||
protected synthesizeAttributes(): { [name: string]: any } { | ||
return { | ||
name: cdktf.stringToTerraform(this._name), | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
// https://www.terraform.io/docs/providers/snowflake/d/databases | ||
// generated from terraform resource schema | ||
|
||
import { Construct } from 'constructs'; | ||
import * as cdktf from 'cdktf'; | ||
|
||
// Configuration | ||
|
||
export interface DataSnowflakeDatabasesConfig extends cdktf.TerraformMetaArguments { | ||
} | ||
export class DataSnowflakeDatabasesDatabases extends cdktf.ComplexComputedList { | ||
|
||
// comment - computed: true, optional: false, required: false | ||
public get comment() { | ||
return this.getStringAttribute('comment'); | ||
} | ||
|
||
// created_on - computed: true, optional: false, required: false | ||
public get createdOn() { | ||
return this.getStringAttribute('created_on'); | ||
} | ||
|
||
// is_current - computed: true, optional: false, required: false | ||
public get isCurrent() { | ||
return this.getBooleanAttribute('is_current'); | ||
} | ||
|
||
// is_default - computed: true, optional: false, required: false | ||
public get isDefault() { | ||
return this.getBooleanAttribute('is_default'); | ||
} | ||
|
||
// name - computed: true, optional: false, required: false | ||
public get name() { | ||
return this.getStringAttribute('name'); | ||
} | ||
|
||
// options - computed: true, optional: false, required: false | ||
public get options() { | ||
return this.getStringAttribute('options'); | ||
} | ||
|
||
// origin - computed: true, optional: false, required: false | ||
public get origin() { | ||
return this.getStringAttribute('origin'); | ||
} | ||
|
||
// owner - computed: true, optional: false, required: false | ||
public get owner() { | ||
return this.getStringAttribute('owner'); | ||
} | ||
|
||
// retention_time - computed: true, optional: false, required: false | ||
public get retentionTime() { | ||
return this.getNumberAttribute('retention_time'); | ||
} | ||
} | ||
|
||
/** | ||
* Represents a {@link https://www.terraform.io/docs/providers/snowflake/d/databases snowflake_databases} | ||
*/ | ||
export class DataSnowflakeDatabases extends cdktf.TerraformDataSource { | ||
|
||
// ================= | ||
// STATIC PROPERTIES | ||
// ================= | ||
public static readonly tfResourceType: string = "snowflake_databases"; | ||
|
||
// =========== | ||
// INITIALIZER | ||
// =========== | ||
|
||
/** | ||
* Create a new {@link https://www.terraform.io/docs/providers/snowflake/d/databases snowflake_databases} 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 DataSnowflakeDatabasesConfig = {} | ||
*/ | ||
public constructor(scope: Construct, id: string, config: DataSnowflakeDatabasesConfig = {}) { | ||
super(scope, id, { | ||
terraformResourceType: 'snowflake_databases', | ||
terraformGeneratorMetadata: { | ||
providerName: 'snowflake' | ||
}, | ||
provider: config.provider, | ||
dependsOn: config.dependsOn, | ||
count: config.count, | ||
lifecycle: config.lifecycle | ||
}); | ||
} | ||
|
||
// ========== | ||
// ATTRIBUTES | ||
// ========== | ||
|
||
// databases - computed: true, optional: false, required: false | ||
public databases(index: string) { | ||
return new DataSnowflakeDatabasesDatabases(this, 'databases', index, false); | ||
} | ||
|
||
// id - computed: true, optional: true, required: false | ||
public get id() { | ||
return this.getStringAttribute('id'); | ||
} | ||
|
||
// ========= | ||
// SYNTHESIS | ||
// ========= | ||
|
||
protected synthesizeAttributes(): { [name: string]: any } { | ||
return { | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.