From f4bb99df64dffed59a04cb081a056f30e518961f Mon Sep 17 00:00:00 2001 From: joshcazalas Date: Fri, 1 Dec 2023 12:31:24 +0000 Subject: [PATCH] Update Triggered by GitHub Actions Workflow for New Release v0.77.0 --- dist/snowflake_resources/index.d.ts | 1 + dist/snowflake_resources/index.js | 1 + .../snowflake_resources/snowflake_provider.js | 2 +- dist/snowflake_resources/unsafe_execute.d.ts | 25 ++++++ dist/snowflake_resources/unsafe_execute.js | 61 ++++++++++++++ src/snowflake_resources/index.ts | 1 + src/snowflake_resources/snowflake_provider.ts | 2 +- src/snowflake_resources/unsafe_execute.ts | 81 +++++++++++++++++++ terraform-provider-snowflake | 2 +- tools/snowflake_resources.json | 20 +++++ 10 files changed, 193 insertions(+), 3 deletions(-) create mode 100644 dist/snowflake_resources/unsafe_execute.d.ts create mode 100644 dist/snowflake_resources/unsafe_execute.js create mode 100644 src/snowflake_resources/unsafe_execute.ts diff --git a/dist/snowflake_resources/index.d.ts b/dist/snowflake_resources/index.d.ts index 142201e..ed40cb3 100644 --- a/dist/snowflake_resources/index.d.ts +++ b/dist/snowflake_resources/index.d.ts @@ -66,6 +66,7 @@ export * from "./tag_grant"; export * from "./tag_masking_policy_association"; export * from "./task"; export * from "./task_grant"; +export * from "./unsafe_execute"; export * from "./user"; export * from "./user_grant"; export * from "./user_ownership_grant"; diff --git a/dist/snowflake_resources/index.js b/dist/snowflake_resources/index.js index 8f11383..4d695b7 100644 --- a/dist/snowflake_resources/index.js +++ b/dist/snowflake_resources/index.js @@ -85,6 +85,7 @@ __exportStar(require("./tag_grant"), exports); __exportStar(require("./tag_masking_policy_association"), exports); __exportStar(require("./task"), exports); __exportStar(require("./task_grant"), exports); +__exportStar(require("./unsafe_execute"), exports); __exportStar(require("./user"), exports); __exportStar(require("./user_grant"), exports); __exportStar(require("./user_ownership_grant"), exports); diff --git a/dist/snowflake_resources/snowflake_provider.js b/dist/snowflake_resources/snowflake_provider.js index bacfed6..6dfa20f 100644 --- a/dist/snowflake_resources/snowflake_provider.js +++ b/dist/snowflake_resources/snowflake_provider.js @@ -20,7 +20,7 @@ class SnowflakeProvider extends cdktf_1.TerraformProvider { terraformResourceType: "snowflake", terraformGeneratorMetadata: { providerName: "snowflake", - providerVersionConstraint: "0.76.0" + providerVersionConstraint: "0.77.0" }, terraformProviderSource: "terraform-cdk-provider-snowflake" }); diff --git a/dist/snowflake_resources/unsafe_execute.d.ts b/dist/snowflake_resources/unsafe_execute.d.ts new file mode 100644 index 0000000..7b65934 --- /dev/null +++ b/dist/snowflake_resources/unsafe_execute.d.ts @@ -0,0 +1,25 @@ +import { TerraformMetaArguments, TerraformResource } from "cdktf"; +import { Construct } from "constructs"; +export interface Unsafe_ExecuteConfig extends TerraformMetaArguments { + execute: string; + revert: string; + query?: string; +} +export declare class Unsafe_Execute extends TerraformResource { + _execute: string; + _revert: string; + _query?: string; + readonly _id: string; + constructor(scope: Construct, id: string, config: Unsafe_ExecuteConfig); + getAttributes(): { + [name: string]: any; + }; + get id(): string; + ref(attribute: string): string; + get execute(): string; + set execute(value: string); + get revert(): string; + set revert(value: string); + get query(): string | undefined; + set query(value: string | undefined); +} diff --git a/dist/snowflake_resources/unsafe_execute.js b/dist/snowflake_resources/unsafe_execute.js new file mode 100644 index 0000000..c3f3d10 --- /dev/null +++ b/dist/snowflake_resources/unsafe_execute.js @@ -0,0 +1,61 @@ +"use strict"; +/* +DO NOT EDIT - Generated by main.js. Refer to the README for more info. +*/ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Unsafe_Execute = void 0; +const cdktf_1 = require("cdktf"); +class Unsafe_Execute extends cdktf_1.TerraformResource { + _execute; + _revert; + _query; + _id; + constructor(scope, id, config) { + super(scope, id, { + terraformResourceType: "snowflake_unsafe_execute", + terraformGeneratorMetadata: { + providerName: "snowflake" + }, + provider: config.provider, + dependsOn: config.dependsOn, + count: config.count, + lifecycle: config.lifecycle + }); + this._id = id; + this._execute = config.execute; + this._revert = config.revert; + this._query = config.query; + } + getAttributes() { + return { + execute: this._execute, + revert: this._revert, + query: this._query, + }; + } + get id() { + return this._id; + } + ref(attribute) { + return `\${snowflake_unsafe_execute.${this.friendlyUniqueId}.${attribute}}`; + } + get execute() { + return this._execute; + } + set execute(value) { + this._execute = value; + } + get revert() { + return this._revert; + } + set revert(value) { + this._revert = value; + } + get query() { + return this._query; + } + set query(value) { + this._query = value; + } +} +exports.Unsafe_Execute = Unsafe_Execute; diff --git a/src/snowflake_resources/index.ts b/src/snowflake_resources/index.ts index c140965..37b4139 100644 --- a/src/snowflake_resources/index.ts +++ b/src/snowflake_resources/index.ts @@ -70,6 +70,7 @@ export * from "./tag_grant"; export * from "./tag_masking_policy_association"; export * from "./task"; export * from "./task_grant"; +export * from "./unsafe_execute"; export * from "./user"; export * from "./user_grant"; export * from "./user_ownership_grant"; diff --git a/src/snowflake_resources/snowflake_provider.ts b/src/snowflake_resources/snowflake_provider.ts index 51e1978..f057ab1 100644 --- a/src/snowflake_resources/snowflake_provider.ts +++ b/src/snowflake_resources/snowflake_provider.ts @@ -33,7 +33,7 @@ export class SnowflakeProvider extends TerraformProvider { terraformResourceType: "snowflake", terraformGeneratorMetadata: { providerName: "snowflake", - providerVersionConstraint: "0.76.0" + providerVersionConstraint: "0.77.0" }, terraformProviderSource: "terraform-cdk-provider-snowflake" }) diff --git a/src/snowflake_resources/unsafe_execute.ts b/src/snowflake_resources/unsafe_execute.ts new file mode 100644 index 0000000..e71b70f --- /dev/null +++ b/src/snowflake_resources/unsafe_execute.ts @@ -0,0 +1,81 @@ +/* +DO NOT EDIT - Generated by main.js. Refer to the README for more info. +*/ + +import { TerraformMetaArguments, TerraformResource } from "cdktf"; +import { Construct } from "constructs"; + + +export interface Unsafe_ExecuteConfig extends TerraformMetaArguments { + execute: string; + revert: string; + query?: string; +} + +export class Unsafe_Execute extends TerraformResource { + _execute: string; + _revert: string; + _query?: string; + readonly _id: string; + + public constructor(scope: Construct, id: string, config: Unsafe_ExecuteConfig) { + super(scope, id, { + terraformResourceType: "snowflake_unsafe_execute", + terraformGeneratorMetadata: { + providerName: "snowflake" + }, + provider: config.provider, + dependsOn: config.dependsOn, + count: config.count, + lifecycle: config.lifecycle + }); + this._id = id; + + this._execute = config.execute; + + this._revert = config.revert; + + this._query = config.query; + } + public getAttributes(): { [name: string]: any } { + return { + execute: this._execute, + revert: this._revert, + query: this._query, + } + } + + public get id(): string { + return this._id; + } + + public ref(attribute: string): string { + return `\${snowflake_unsafe_execute.${this.friendlyUniqueId}.${attribute}}`; + } + + public get execute(): string { + return this._execute + } + + public set execute(value: string) { + this._execute = value; + } + + public get revert(): string { + return this._revert + } + + public set revert(value: string) { + this._revert = value; + } + + public get query(): string | undefined { + return this._query + } + + public set query(value: string | undefined) { + this._query = value; + } + +} + diff --git a/terraform-provider-snowflake b/terraform-provider-snowflake index a1cb41c..1fcd393 160000 --- a/terraform-provider-snowflake +++ b/terraform-provider-snowflake @@ -1 +1 @@ -Subproject commit a1cb41cc9d0a4c7b2ac009cbd02ee89ae579a36f +Subproject commit 1fcd3935f3cd3357ffb4cc3052b85f886c53cc95 diff --git a/tools/snowflake_resources.json b/tools/snowflake_resources.json index ede1e20..630f72b 100644 --- a/tools/snowflake_resources.json +++ b/tools/snowflake_resources.json @@ -3655,6 +3655,26 @@ } ] }, + { + "name": "Unsafe_Execute", + "properties": [ + { + "name": "execute", + "type": "string", + "required": true + }, + { + "name": "revert", + "type": "string", + "required": true + }, + { + "name": "query", + "type": "string", + "required": false + } + ] + }, { "name": "User", "properties": [