diff --git a/dist/snowflake_resources/snowflake_provider.js b/dist/snowflake_resources/snowflake_provider.js index df168b5..bacfed6 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.75.0" + providerVersionConstraint: "0.76.0" }, terraformProviderSource: "terraform-cdk-provider-snowflake" }); diff --git a/dist/snowflake_resources/task.d.ts b/dist/snowflake_resources/task.d.ts index e9ab2c3..5ab189b 100644 --- a/dist/snowflake_resources/task.d.ts +++ b/dist/snowflake_resources/task.d.ts @@ -12,6 +12,7 @@ export interface TaskConfig extends TerraformMetaArguments { error_integration?: string; schedule?: string; session_parameters?: Record; + suspend_task_after_num_failures?: number; user_task_managed_initial_warehouse_size?: string; user_task_timeout_ms?: number; warehouse?: string; @@ -29,6 +30,7 @@ export declare class Task extends TerraformResource { _error_integration?: string; _schedule?: string; _session_parameters?: Record; + _suspend_task_after_num_failures?: number; _user_task_managed_initial_warehouse_size?: string; _user_task_timeout_ms?: number; _warehouse?: string; @@ -62,6 +64,8 @@ export declare class Task extends TerraformResource { set schedule(value: string | undefined); get session_parameters(): Record | undefined; set session_parameters(value: Record | undefined); + get suspend_task_after_num_failures(): number | undefined; + set suspend_task_after_num_failures(value: number | undefined); get user_task_managed_initial_warehouse_size(): string | undefined; set user_task_managed_initial_warehouse_size(value: string | undefined); get user_task_timeout_ms(): number | undefined; diff --git a/dist/snowflake_resources/task.js b/dist/snowflake_resources/task.js index 5723f73..99d8771 100644 --- a/dist/snowflake_resources/task.js +++ b/dist/snowflake_resources/task.js @@ -17,6 +17,7 @@ class Task extends cdktf_1.TerraformResource { _error_integration; _schedule; _session_parameters; + _suspend_task_after_num_failures; _user_task_managed_initial_warehouse_size; _user_task_timeout_ms; _warehouse; @@ -45,6 +46,7 @@ class Task extends cdktf_1.TerraformResource { this._error_integration = config.error_integration; this._schedule = config.schedule; this._session_parameters = config.session_parameters; + this._suspend_task_after_num_failures = config.suspend_task_after_num_failures; this._user_task_managed_initial_warehouse_size = config.user_task_managed_initial_warehouse_size; this._user_task_timeout_ms = config.user_task_timeout_ms; this._warehouse = config.warehouse; @@ -63,6 +65,7 @@ class Task extends cdktf_1.TerraformResource { error_integration: this._error_integration, schedule: this._schedule, session_parameters: this._session_parameters, + suspend_task_after_num_failures: this._suspend_task_after_num_failures, user_task_managed_initial_warehouse_size: this._user_task_managed_initial_warehouse_size, user_task_timeout_ms: this._user_task_timeout_ms, warehouse: this._warehouse, @@ -141,6 +144,12 @@ class Task extends cdktf_1.TerraformResource { set session_parameters(value) { this._session_parameters = value; } + get suspend_task_after_num_failures() { + return this._suspend_task_after_num_failures; + } + set suspend_task_after_num_failures(value) { + this._suspend_task_after_num_failures = value; + } get user_task_managed_initial_warehouse_size() { return this._user_task_managed_initial_warehouse_size; } diff --git a/src/snowflake_resources/snowflake_provider.ts b/src/snowflake_resources/snowflake_provider.ts index 8e7db20..51e1978 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.75.0" + providerVersionConstraint: "0.76.0" }, terraformProviderSource: "terraform-cdk-provider-snowflake" }) diff --git a/src/snowflake_resources/task.ts b/src/snowflake_resources/task.ts index a4ed7e2..1a9d517 100644 --- a/src/snowflake_resources/task.ts +++ b/src/snowflake_resources/task.ts @@ -18,6 +18,7 @@ export interface TaskConfig extends TerraformMetaArguments { error_integration?: string; schedule?: string; session_parameters?: Record; + suspend_task_after_num_failures?: number; user_task_managed_initial_warehouse_size?: string; user_task_timeout_ms?: number; warehouse?: string; @@ -36,6 +37,7 @@ export class Task extends TerraformResource { _error_integration?: string; _schedule?: string; _session_parameters?: Record; + _suspend_task_after_num_failures?: number; _user_task_managed_initial_warehouse_size?: string; _user_task_timeout_ms?: number; _warehouse?: string; @@ -77,6 +79,8 @@ export class Task extends TerraformResource { this._session_parameters = config.session_parameters; + this._suspend_task_after_num_failures = config.suspend_task_after_num_failures; + this._user_task_managed_initial_warehouse_size = config.user_task_managed_initial_warehouse_size; this._user_task_timeout_ms = config.user_task_timeout_ms; @@ -98,6 +102,7 @@ export class Task extends TerraformResource { error_integration: this._error_integration, schedule: this._schedule, session_parameters: this._session_parameters, + suspend_task_after_num_failures: this._suspend_task_after_num_failures, user_task_managed_initial_warehouse_size: this._user_task_managed_initial_warehouse_size, user_task_timeout_ms: this._user_task_timeout_ms, warehouse: this._warehouse, @@ -201,6 +206,14 @@ export class Task extends TerraformResource { this._session_parameters = value; } + public get suspend_task_after_num_failures(): number | undefined { + return this._suspend_task_after_num_failures + } + + public set suspend_task_after_num_failures(value: number | undefined) { + this._suspend_task_after_num_failures = value; + } + public get user_task_managed_initial_warehouse_size(): string | undefined { return this._user_task_managed_initial_warehouse_size } diff --git a/terraform-provider-snowflake b/terraform-provider-snowflake index d33a41c..a1cb41c 160000 --- a/terraform-provider-snowflake +++ b/terraform-provider-snowflake @@ -1 +1 @@ -Subproject commit d33a41cd0f477e8375113a546117ccd6e5dbb0eb +Subproject commit a1cb41cc9d0a4c7b2ac009cbd02ee89ae579a36f diff --git a/tools/snowflake_resources.json b/tools/snowflake_resources.json index 99d7b8f..ede1e20 100644 --- a/tools/snowflake_resources.json +++ b/tools/snowflake_resources.json @@ -3573,6 +3573,11 @@ "type": "Record", "required": false }, + { + "name": "suspend_task_after_num_failures", + "type": "number", + "required": false + }, { "name": "user_task_managed_initial_warehouse_size", "type": "string",