@pulumi/snowflake 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/getSystemGetPrivateLinkConfig.d.ts +16 -0
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/procedure.d.ts +51 -3
- package/procedure.js +8 -0
- package/procedure.js.map +1 -1
- package/resourceMonitor.d.ts +51 -10
- package/resourceMonitor.js +13 -4
- package/resourceMonitor.js.map +1 -1
|
@@ -24,8 +24,24 @@ export interface GetSystemGetPrivateLinkConfigResult {
|
|
|
24
24
|
* The provider-assigned unique ID for this managed resource.
|
|
25
25
|
*/
|
|
26
26
|
readonly id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The endpoint to connect to your Snowflake internal stage using AWS PrivateLink or Azure Private Link.
|
|
29
|
+
*/
|
|
30
|
+
readonly internalStage: string;
|
|
27
31
|
/**
|
|
28
32
|
* The OCSP URL corresponding to your Snowflake account that uses AWS PrivateLink or Azure Private Link.
|
|
29
33
|
*/
|
|
30
34
|
readonly ocspUrl: string;
|
|
35
|
+
/**
|
|
36
|
+
* The regionless URL to connect to your Snowflake account using AWS PrivateLink, Azure Private Link, or Google Cloud Private Service Connect.
|
|
37
|
+
*/
|
|
38
|
+
readonly regionlessAccountUrl: string;
|
|
39
|
+
/**
|
|
40
|
+
* The URL for your organization to access Snowsight using Private Connectivity to the Snowflake Service.
|
|
41
|
+
*/
|
|
42
|
+
readonly regionlessSnowsightUrl: string;
|
|
43
|
+
/**
|
|
44
|
+
* The URL containing the cloud region to access Snowsight and the Snowflake Marketplace using Private Connectivity to the Snowflake Service.
|
|
45
|
+
*/
|
|
46
|
+
readonly snowsightUrl: string;
|
|
31
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/snowflake",
|
|
3
|
-
"version": "v0.
|
|
3
|
+
"version": "v0.20.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing snowflake cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource snowflake v0.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource snowflake v0.20.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/package.json.dev
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/snowflake",
|
|
3
|
-
"version": "v0.
|
|
3
|
+
"version": "v0.20.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing snowflake cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "tsc",
|
|
14
|
-
"install": "node scripts/install-pulumi-plugin.js resource snowflake v0.
|
|
14
|
+
"install": "node scripts/install-pulumi-plugin.js resource snowflake v0.20.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@pulumi/pulumi": "^3.0.0"
|
package/procedure.d.ts
CHANGED
|
@@ -42,6 +42,14 @@ export declare class Procedure extends pulumi.CustomResource {
|
|
|
42
42
|
* Sets execute context - see caller's rights and owner's rights
|
|
43
43
|
*/
|
|
44
44
|
readonly executeAs: pulumi.Output<string | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* The handler method for Java / Python procedures.
|
|
47
|
+
*/
|
|
48
|
+
readonly handler: pulumi.Output<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* Imports for Java / Python procedures. For Java this a list of jar files, for Python this is a list of Python files.
|
|
51
|
+
*/
|
|
52
|
+
readonly imports: pulumi.Output<string[] | undefined>;
|
|
45
53
|
/**
|
|
46
54
|
* Specifies the language of the stored procedure code.
|
|
47
55
|
*/
|
|
@@ -54,6 +62,10 @@ export declare class Procedure extends pulumi.CustomResource {
|
|
|
54
62
|
* Specifies the behavior of the procedure when called with null inputs.
|
|
55
63
|
*/
|
|
56
64
|
readonly nullInputBehavior: pulumi.Output<string | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* List of package imports to use for Java / Python procedures. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
|
|
67
|
+
*/
|
|
68
|
+
readonly packages: pulumi.Output<string[] | undefined>;
|
|
57
69
|
/**
|
|
58
70
|
* Specifies the behavior of the function when returning results
|
|
59
71
|
*/
|
|
@@ -62,12 +74,16 @@ export declare class Procedure extends pulumi.CustomResource {
|
|
|
62
74
|
* The return type of the procedure
|
|
63
75
|
*/
|
|
64
76
|
readonly returnType: pulumi.Output<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Required for Python procedures. Specifies Python runtime version.
|
|
79
|
+
*/
|
|
80
|
+
readonly runtimeVersion: pulumi.Output<string | undefined>;
|
|
65
81
|
/**
|
|
66
82
|
* The schema in which to create the procedure. Don't use the | character.
|
|
67
83
|
*/
|
|
68
84
|
readonly schema: pulumi.Output<string>;
|
|
69
85
|
/**
|
|
70
|
-
* Specifies the
|
|
86
|
+
* Specifies the code used to create the procedure.
|
|
71
87
|
*/
|
|
72
88
|
readonly statement: pulumi.Output<string>;
|
|
73
89
|
/**
|
|
@@ -99,6 +115,14 @@ export interface ProcedureState {
|
|
|
99
115
|
* Sets execute context - see caller's rights and owner's rights
|
|
100
116
|
*/
|
|
101
117
|
executeAs?: pulumi.Input<string>;
|
|
118
|
+
/**
|
|
119
|
+
* The handler method for Java / Python procedures.
|
|
120
|
+
*/
|
|
121
|
+
handler?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* Imports for Java / Python procedures. For Java this a list of jar files, for Python this is a list of Python files.
|
|
124
|
+
*/
|
|
125
|
+
imports?: pulumi.Input<pulumi.Input<string>[]>;
|
|
102
126
|
/**
|
|
103
127
|
* Specifies the language of the stored procedure code.
|
|
104
128
|
*/
|
|
@@ -111,6 +135,10 @@ export interface ProcedureState {
|
|
|
111
135
|
* Specifies the behavior of the procedure when called with null inputs.
|
|
112
136
|
*/
|
|
113
137
|
nullInputBehavior?: pulumi.Input<string>;
|
|
138
|
+
/**
|
|
139
|
+
* List of package imports to use for Java / Python procedures. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
|
|
140
|
+
*/
|
|
141
|
+
packages?: pulumi.Input<pulumi.Input<string>[]>;
|
|
114
142
|
/**
|
|
115
143
|
* Specifies the behavior of the function when returning results
|
|
116
144
|
*/
|
|
@@ -119,12 +147,16 @@ export interface ProcedureState {
|
|
|
119
147
|
* The return type of the procedure
|
|
120
148
|
*/
|
|
121
149
|
returnType?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Required for Python procedures. Specifies Python runtime version.
|
|
152
|
+
*/
|
|
153
|
+
runtimeVersion?: pulumi.Input<string>;
|
|
122
154
|
/**
|
|
123
155
|
* The schema in which to create the procedure. Don't use the | character.
|
|
124
156
|
*/
|
|
125
157
|
schema?: pulumi.Input<string>;
|
|
126
158
|
/**
|
|
127
|
-
* Specifies the
|
|
159
|
+
* Specifies the code used to create the procedure.
|
|
128
160
|
*/
|
|
129
161
|
statement?: pulumi.Input<string>;
|
|
130
162
|
}
|
|
@@ -148,6 +180,14 @@ export interface ProcedureArgs {
|
|
|
148
180
|
* Sets execute context - see caller's rights and owner's rights
|
|
149
181
|
*/
|
|
150
182
|
executeAs?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* The handler method for Java / Python procedures.
|
|
185
|
+
*/
|
|
186
|
+
handler?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* Imports for Java / Python procedures. For Java this a list of jar files, for Python this is a list of Python files.
|
|
189
|
+
*/
|
|
190
|
+
imports?: pulumi.Input<pulumi.Input<string>[]>;
|
|
151
191
|
/**
|
|
152
192
|
* Specifies the language of the stored procedure code.
|
|
153
193
|
*/
|
|
@@ -160,6 +200,10 @@ export interface ProcedureArgs {
|
|
|
160
200
|
* Specifies the behavior of the procedure when called with null inputs.
|
|
161
201
|
*/
|
|
162
202
|
nullInputBehavior?: pulumi.Input<string>;
|
|
203
|
+
/**
|
|
204
|
+
* List of package imports to use for Java / Python procedures. For Java, package imports should be of the form: package*name:version*number, where package*name is snowflake*domain:package. For Python use it should be: ('numpy','pandas','xgboost==1.5.0').
|
|
205
|
+
*/
|
|
206
|
+
packages?: pulumi.Input<pulumi.Input<string>[]>;
|
|
163
207
|
/**
|
|
164
208
|
* Specifies the behavior of the function when returning results
|
|
165
209
|
*/
|
|
@@ -168,12 +212,16 @@ export interface ProcedureArgs {
|
|
|
168
212
|
* The return type of the procedure
|
|
169
213
|
*/
|
|
170
214
|
returnType: pulumi.Input<string>;
|
|
215
|
+
/**
|
|
216
|
+
* Required for Python procedures. Specifies Python runtime version.
|
|
217
|
+
*/
|
|
218
|
+
runtimeVersion?: pulumi.Input<string>;
|
|
171
219
|
/**
|
|
172
220
|
* The schema in which to create the procedure. Don't use the | character.
|
|
173
221
|
*/
|
|
174
222
|
schema: pulumi.Input<string>;
|
|
175
223
|
/**
|
|
176
|
-
* Specifies the
|
|
224
|
+
* Specifies the code used to create the procedure.
|
|
177
225
|
*/
|
|
178
226
|
statement: pulumi.Input<string>;
|
|
179
227
|
}
|
package/procedure.js
CHANGED
|
@@ -46,11 +46,15 @@ class Procedure extends pulumi.CustomResource {
|
|
|
46
46
|
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
47
47
|
resourceInputs["database"] = state ? state.database : undefined;
|
|
48
48
|
resourceInputs["executeAs"] = state ? state.executeAs : undefined;
|
|
49
|
+
resourceInputs["handler"] = state ? state.handler : undefined;
|
|
50
|
+
resourceInputs["imports"] = state ? state.imports : undefined;
|
|
49
51
|
resourceInputs["language"] = state ? state.language : undefined;
|
|
50
52
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
51
53
|
resourceInputs["nullInputBehavior"] = state ? state.nullInputBehavior : undefined;
|
|
54
|
+
resourceInputs["packages"] = state ? state.packages : undefined;
|
|
52
55
|
resourceInputs["returnBehavior"] = state ? state.returnBehavior : undefined;
|
|
53
56
|
resourceInputs["returnType"] = state ? state.returnType : undefined;
|
|
57
|
+
resourceInputs["runtimeVersion"] = state ? state.runtimeVersion : undefined;
|
|
54
58
|
resourceInputs["schema"] = state ? state.schema : undefined;
|
|
55
59
|
resourceInputs["statement"] = state ? state.statement : undefined;
|
|
56
60
|
}
|
|
@@ -72,11 +76,15 @@ class Procedure extends pulumi.CustomResource {
|
|
|
72
76
|
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
73
77
|
resourceInputs["database"] = args ? args.database : undefined;
|
|
74
78
|
resourceInputs["executeAs"] = args ? args.executeAs : undefined;
|
|
79
|
+
resourceInputs["handler"] = args ? args.handler : undefined;
|
|
80
|
+
resourceInputs["imports"] = args ? args.imports : undefined;
|
|
75
81
|
resourceInputs["language"] = args ? args.language : undefined;
|
|
76
82
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
77
83
|
resourceInputs["nullInputBehavior"] = args ? args.nullInputBehavior : undefined;
|
|
84
|
+
resourceInputs["packages"] = args ? args.packages : undefined;
|
|
78
85
|
resourceInputs["returnBehavior"] = args ? args.returnBehavior : undefined;
|
|
79
86
|
resourceInputs["returnType"] = args ? args.returnType : undefined;
|
|
87
|
+
resourceInputs["runtimeVersion"] = args ? args.runtimeVersion : undefined;
|
|
80
88
|
resourceInputs["schema"] = args ? args.schema : undefined;
|
|
81
89
|
resourceInputs["statement"] = args ? args.statement : undefined;
|
|
82
90
|
}
|
package/procedure.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"procedure.js","sourceRoot":"","sources":["../procedure.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;
|
|
1
|
+
{"version":3,"file":"procedure.js","sourceRoot":"","sources":["../procedure.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,SAAU,SAAQ,MAAM,CAAC,cAAc;IAChD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsB,EAAE,IAAmC;QACpH,OAAO,IAAI,SAAS,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAChE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC,YAAY,CAAC;IAC1D,CAAC;IAuED,YAAY,IAA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AC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC9D,CAAC;;AArJL,8BAsJC;AAxIG,gBAAgB;AACO,sBAAY,GAAG,qCAAqC,CAAC"}
|
package/resourceMonitor.d.ts
CHANGED
|
@@ -10,21 +10,26 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
10
|
* creditQuota: 100,
|
|
11
11
|
* endTimestamp: "2021-12-07 00:00",
|
|
12
12
|
* frequency: "DAILY",
|
|
13
|
-
* notifyTriggers: [
|
|
13
|
+
* notifyTriggers: [
|
|
14
|
+
* 40,
|
|
15
|
+
* 50,
|
|
16
|
+
* ],
|
|
14
17
|
* notifyUsers: [
|
|
15
18
|
* "USERONE",
|
|
16
19
|
* "USERTWO",
|
|
17
20
|
* ],
|
|
18
21
|
* startTimestamp: "2020-12-07 00:00",
|
|
19
|
-
* suspendImmediateTriggers:
|
|
20
|
-
* suspendTriggers:
|
|
22
|
+
* suspendImmediateTriggers: 90,
|
|
23
|
+
* suspendTriggers: 50,
|
|
21
24
|
* });
|
|
22
25
|
* ```
|
|
23
26
|
*
|
|
24
27
|
* ## Import
|
|
25
28
|
*
|
|
29
|
+
* format is the resource monitor name
|
|
30
|
+
*
|
|
26
31
|
* ```sh
|
|
27
|
-
* $ pulumi import snowflake:index/resourceMonitor:ResourceMonitor example
|
|
32
|
+
* $ pulumi import snowflake:index/resourceMonitor:ResourceMonitor example 'resourceMonitorName'
|
|
28
33
|
* ```
|
|
29
34
|
*/
|
|
30
35
|
export declare class ResourceMonitor extends pulumi.CustomResource {
|
|
@@ -68,7 +73,7 @@ export declare class ResourceMonitor extends pulumi.CustomResource {
|
|
|
68
73
|
*/
|
|
69
74
|
readonly notifyUsers: pulumi.Output<string[] | undefined>;
|
|
70
75
|
/**
|
|
71
|
-
* Specifies whether the resource monitor should be applied globally to your Snowflake account.
|
|
76
|
+
* Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
|
|
72
77
|
*/
|
|
73
78
|
readonly setForAccount: pulumi.Output<boolean | undefined>;
|
|
74
79
|
/**
|
|
@@ -76,11 +81,23 @@ export declare class ResourceMonitor extends pulumi.CustomResource {
|
|
|
76
81
|
*/
|
|
77
82
|
readonly startTimestamp: pulumi.Output<string>;
|
|
78
83
|
/**
|
|
79
|
-
*
|
|
84
|
+
* The number that represents the percentage threshold at which to immediately suspend all warehouses.
|
|
85
|
+
*/
|
|
86
|
+
readonly suspendImmediateTrigger: pulumi.Output<number | undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* A list of percentage thresholds at which to suspend all warehouses.
|
|
89
|
+
*
|
|
90
|
+
* @deprecated Use suspend_immediate_trigger instead
|
|
80
91
|
*/
|
|
81
92
|
readonly suspendImmediateTriggers: pulumi.Output<number[] | undefined>;
|
|
93
|
+
/**
|
|
94
|
+
* The number that represents the percentage threshold at which to suspend all warehouses.
|
|
95
|
+
*/
|
|
96
|
+
readonly suspendTrigger: pulumi.Output<number | undefined>;
|
|
82
97
|
/**
|
|
83
98
|
* A list of percentage thresholds at which to suspend all warehouses.
|
|
99
|
+
*
|
|
100
|
+
* @deprecated Use suspend_trigger instead
|
|
84
101
|
*/
|
|
85
102
|
readonly suspendTriggers: pulumi.Output<number[] | undefined>;
|
|
86
103
|
/**
|
|
@@ -125,7 +142,7 @@ export interface ResourceMonitorState {
|
|
|
125
142
|
*/
|
|
126
143
|
notifyUsers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
127
144
|
/**
|
|
128
|
-
* Specifies whether the resource monitor should be applied globally to your Snowflake account.
|
|
145
|
+
* Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
|
|
129
146
|
*/
|
|
130
147
|
setForAccount?: pulumi.Input<boolean>;
|
|
131
148
|
/**
|
|
@@ -133,11 +150,23 @@ export interface ResourceMonitorState {
|
|
|
133
150
|
*/
|
|
134
151
|
startTimestamp?: pulumi.Input<string>;
|
|
135
152
|
/**
|
|
136
|
-
*
|
|
153
|
+
* The number that represents the percentage threshold at which to immediately suspend all warehouses.
|
|
154
|
+
*/
|
|
155
|
+
suspendImmediateTrigger?: pulumi.Input<number>;
|
|
156
|
+
/**
|
|
157
|
+
* A list of percentage thresholds at which to suspend all warehouses.
|
|
158
|
+
*
|
|
159
|
+
* @deprecated Use suspend_immediate_trigger instead
|
|
137
160
|
*/
|
|
138
161
|
suspendImmediateTriggers?: pulumi.Input<pulumi.Input<number>[]>;
|
|
162
|
+
/**
|
|
163
|
+
* The number that represents the percentage threshold at which to suspend all warehouses.
|
|
164
|
+
*/
|
|
165
|
+
suspendTrigger?: pulumi.Input<number>;
|
|
139
166
|
/**
|
|
140
167
|
* A list of percentage thresholds at which to suspend all warehouses.
|
|
168
|
+
*
|
|
169
|
+
* @deprecated Use suspend_trigger instead
|
|
141
170
|
*/
|
|
142
171
|
suspendTriggers?: pulumi.Input<pulumi.Input<number>[]>;
|
|
143
172
|
/**
|
|
@@ -174,7 +203,7 @@ export interface ResourceMonitorArgs {
|
|
|
174
203
|
*/
|
|
175
204
|
notifyUsers?: pulumi.Input<pulumi.Input<string>[]>;
|
|
176
205
|
/**
|
|
177
|
-
* Specifies whether the resource monitor should be applied globally to your Snowflake account.
|
|
206
|
+
* Specifies whether the resource monitor should be applied globally to your Snowflake account (defaults to false).
|
|
178
207
|
*/
|
|
179
208
|
setForAccount?: pulumi.Input<boolean>;
|
|
180
209
|
/**
|
|
@@ -182,11 +211,23 @@ export interface ResourceMonitorArgs {
|
|
|
182
211
|
*/
|
|
183
212
|
startTimestamp?: pulumi.Input<string>;
|
|
184
213
|
/**
|
|
185
|
-
*
|
|
214
|
+
* The number that represents the percentage threshold at which to immediately suspend all warehouses.
|
|
215
|
+
*/
|
|
216
|
+
suspendImmediateTrigger?: pulumi.Input<number>;
|
|
217
|
+
/**
|
|
218
|
+
* A list of percentage thresholds at which to suspend all warehouses.
|
|
219
|
+
*
|
|
220
|
+
* @deprecated Use suspend_immediate_trigger instead
|
|
186
221
|
*/
|
|
187
222
|
suspendImmediateTriggers?: pulumi.Input<pulumi.Input<number>[]>;
|
|
223
|
+
/**
|
|
224
|
+
* The number that represents the percentage threshold at which to suspend all warehouses.
|
|
225
|
+
*/
|
|
226
|
+
suspendTrigger?: pulumi.Input<number>;
|
|
188
227
|
/**
|
|
189
228
|
* A list of percentage thresholds at which to suspend all warehouses.
|
|
229
|
+
*
|
|
230
|
+
* @deprecated Use suspend_trigger instead
|
|
190
231
|
*/
|
|
191
232
|
suspendTriggers?: pulumi.Input<pulumi.Input<number>[]>;
|
|
192
233
|
/**
|
package/resourceMonitor.js
CHANGED
|
@@ -16,21 +16,26 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* creditQuota: 100,
|
|
17
17
|
* endTimestamp: "2021-12-07 00:00",
|
|
18
18
|
* frequency: "DAILY",
|
|
19
|
-
* notifyTriggers: [
|
|
19
|
+
* notifyTriggers: [
|
|
20
|
+
* 40,
|
|
21
|
+
* 50,
|
|
22
|
+
* ],
|
|
20
23
|
* notifyUsers: [
|
|
21
24
|
* "USERONE",
|
|
22
25
|
* "USERTWO",
|
|
23
26
|
* ],
|
|
24
27
|
* startTimestamp: "2020-12-07 00:00",
|
|
25
|
-
* suspendImmediateTriggers:
|
|
26
|
-
* suspendTriggers:
|
|
28
|
+
* suspendImmediateTriggers: 90,
|
|
29
|
+
* suspendTriggers: 50,
|
|
27
30
|
* });
|
|
28
31
|
* ```
|
|
29
32
|
*
|
|
30
33
|
* ## Import
|
|
31
34
|
*
|
|
35
|
+
* format is the resource monitor name
|
|
36
|
+
*
|
|
32
37
|
* ```sh
|
|
33
|
-
* $ pulumi import snowflake:index/resourceMonitor:ResourceMonitor example
|
|
38
|
+
* $ pulumi import snowflake:index/resourceMonitor:ResourceMonitor example 'resourceMonitorName'
|
|
34
39
|
* ```
|
|
35
40
|
*/
|
|
36
41
|
class ResourceMonitor extends pulumi.CustomResource {
|
|
@@ -69,7 +74,9 @@ class ResourceMonitor extends pulumi.CustomResource {
|
|
|
69
74
|
resourceInputs["notifyUsers"] = state ? state.notifyUsers : undefined;
|
|
70
75
|
resourceInputs["setForAccount"] = state ? state.setForAccount : undefined;
|
|
71
76
|
resourceInputs["startTimestamp"] = state ? state.startTimestamp : undefined;
|
|
77
|
+
resourceInputs["suspendImmediateTrigger"] = state ? state.suspendImmediateTrigger : undefined;
|
|
72
78
|
resourceInputs["suspendImmediateTriggers"] = state ? state.suspendImmediateTriggers : undefined;
|
|
79
|
+
resourceInputs["suspendTrigger"] = state ? state.suspendTrigger : undefined;
|
|
73
80
|
resourceInputs["suspendTriggers"] = state ? state.suspendTriggers : undefined;
|
|
74
81
|
resourceInputs["warehouses"] = state ? state.warehouses : undefined;
|
|
75
82
|
}
|
|
@@ -83,7 +90,9 @@ class ResourceMonitor extends pulumi.CustomResource {
|
|
|
83
90
|
resourceInputs["notifyUsers"] = args ? args.notifyUsers : undefined;
|
|
84
91
|
resourceInputs["setForAccount"] = args ? args.setForAccount : undefined;
|
|
85
92
|
resourceInputs["startTimestamp"] = args ? args.startTimestamp : undefined;
|
|
93
|
+
resourceInputs["suspendImmediateTrigger"] = args ? args.suspendImmediateTrigger : undefined;
|
|
86
94
|
resourceInputs["suspendImmediateTriggers"] = args ? args.suspendImmediateTriggers : undefined;
|
|
95
|
+
resourceInputs["suspendTrigger"] = args ? args.suspendTrigger : undefined;
|
|
87
96
|
resourceInputs["suspendTriggers"] = args ? args.suspendTriggers : undefined;
|
|
88
97
|
resourceInputs["warehouses"] = args ? args.warehouses : undefined;
|
|
89
98
|
}
|
package/resourceMonitor.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceMonitor.js","sourceRoot":"","sources":["../resourceMonitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"resourceMonitor.js","sourceRoot":"","sources":["../resourceMonitor.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAmED,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,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