@pulumi/snowflake 0.2.1-alpha.1632763694

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.
Files changed (255) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +83 -0
  3. package/accountGrant.d.ts +97 -0
  4. package/accountGrant.js +80 -0
  5. package/accountGrant.js.map +1 -0
  6. package/apiIntegration.d.ts +181 -0
  7. package/apiIntegration.js +102 -0
  8. package/apiIntegration.js.map +1 -0
  9. package/config/index.d.ts +1 -0
  10. package/config/index.js +17 -0
  11. package/config/index.js.map +1 -0
  12. package/config/vars.d.ts +19 -0
  13. package/config/vars.js +97 -0
  14. package/config/vars.js.map +1 -0
  15. package/database.d.ts +97 -0
  16. package/database.js +81 -0
  17. package/database.js.map +1 -0
  18. package/databaseGrant.d.ts +126 -0
  19. package/databaseGrant.js +92 -0
  20. package/databaseGrant.js.map +1 -0
  21. package/externalFunction.d.ts +260 -0
  22. package/externalFunction.js +134 -0
  23. package/externalFunction.js.map +1 -0
  24. package/externalTable.d.ts +233 -0
  25. package/externalTable.js +124 -0
  26. package/externalTable.js.map +1 -0
  27. package/externalTableGrant.d.ts +165 -0
  28. package/externalTableGrant.js +104 -0
  29. package/externalTableGrant.js.map +1 -0
  30. package/fileFormat.d.ts +490 -0
  31. package/fileFormat.js +152 -0
  32. package/fileFormat.js.map +1 -0
  33. package/fileFormatGrant.d.ts +149 -0
  34. package/fileFormatGrant.js +98 -0
  35. package/fileFormatGrant.js.map +1 -0
  36. package/function.d.ts +157 -0
  37. package/function.js +81 -0
  38. package/function.js.map +1 -0
  39. package/functionGrant.d.ts +201 -0
  40. package/functionGrant.js +119 -0
  41. package/functionGrant.js.map +1 -0
  42. package/getCurrentAccount.d.ts +38 -0
  43. package/getCurrentAccount.js +33 -0
  44. package/getCurrentAccount.js.map +1 -0
  45. package/getExternalFunctions.d.ts +50 -0
  46. package/getExternalFunctions.js +34 -0
  47. package/getExternalFunctions.js.map +1 -0
  48. package/getExternalTables.d.ts +50 -0
  49. package/getExternalTables.js +34 -0
  50. package/getExternalTables.js.map +1 -0
  51. package/getFileFormats.d.ts +50 -0
  52. package/getFileFormats.js +34 -0
  53. package/getFileFormats.js.map +1 -0
  54. package/getFunctions.d.ts +50 -0
  55. package/getFunctions.js +34 -0
  56. package/getFunctions.js.map +1 -0
  57. package/getMaskingPolicies.d.ts +50 -0
  58. package/getMaskingPolicies.js +34 -0
  59. package/getMaskingPolicies.js.map +1 -0
  60. package/getMaterializedViews.d.ts +50 -0
  61. package/getMaterializedViews.js +34 -0
  62. package/getMaterializedViews.js.map +1 -0
  63. package/getPipes.d.ts +50 -0
  64. package/getPipes.js +34 -0
  65. package/getPipes.js.map +1 -0
  66. package/getProcedures.d.ts +50 -0
  67. package/getProcedures.js +34 -0
  68. package/getProcedures.js.map +1 -0
  69. package/getResourceMonitors.d.ts +26 -0
  70. package/getResourceMonitors.js +28 -0
  71. package/getResourceMonitors.js.map +1 -0
  72. package/getRowAccessPolicies.d.ts +50 -0
  73. package/getRowAccessPolicies.js +34 -0
  74. package/getRowAccessPolicies.js.map +1 -0
  75. package/getSchemas.d.ts +41 -0
  76. package/getSchemas.js +32 -0
  77. package/getSchemas.js.map +1 -0
  78. package/getSequences.d.ts +50 -0
  79. package/getSequences.js +34 -0
  80. package/getSequences.js.map +1 -0
  81. package/getStages.d.ts +50 -0
  82. package/getStages.js +34 -0
  83. package/getStages.js.map +1 -0
  84. package/getStorageIntegrations.d.ts +26 -0
  85. package/getStorageIntegrations.js +28 -0
  86. package/getStorageIntegrations.js.map +1 -0
  87. package/getStreams.d.ts +50 -0
  88. package/getStreams.js +34 -0
  89. package/getStreams.js.map +1 -0
  90. package/getSystemGenerateScimAccessToken.d.ts +40 -0
  91. package/getSystemGenerateScimAccessToken.js +32 -0
  92. package/getSystemGenerateScimAccessToken.js.map +1 -0
  93. package/getSystemGetAwsSnsIamPolicy.d.ts +28 -0
  94. package/getSystemGetAwsSnsIamPolicy.js +20 -0
  95. package/getSystemGetAwsSnsIamPolicy.js.map +1 -0
  96. package/getSystemGetPrivateLinkConfig.d.ts +31 -0
  97. package/getSystemGetPrivateLinkConfig.js +18 -0
  98. package/getSystemGetPrivateLinkConfig.js.map +1 -0
  99. package/getSystemGetSnowflakePlatformInfo.d.ts +19 -0
  100. package/getSystemGetSnowflakePlatformInfo.js +18 -0
  101. package/getSystemGetSnowflakePlatformInfo.js.map +1 -0
  102. package/getTables.d.ts +50 -0
  103. package/getTables.js +34 -0
  104. package/getTables.js.map +1 -0
  105. package/getTasks.d.ts +50 -0
  106. package/getTasks.js +34 -0
  107. package/getTasks.js.map +1 -0
  108. package/getViews.d.ts +50 -0
  109. package/getViews.js +34 -0
  110. package/getViews.js.map +1 -0
  111. package/getWarehouses.d.ts +26 -0
  112. package/getWarehouses.js +28 -0
  113. package/getWarehouses.js.map +1 -0
  114. package/index.d.ts +79 -0
  115. package/index.js +324 -0
  116. package/index.js.map +1 -0
  117. package/integrationGrant.d.ts +110 -0
  118. package/integrationGrant.js +86 -0
  119. package/integrationGrant.js.map +1 -0
  120. package/managedAccount.d.ts +160 -0
  121. package/managedAccount.js +99 -0
  122. package/managedAccount.js.map +1 -0
  123. package/maskingPolicy.d.ts +144 -0
  124. package/maskingPolicy.js +102 -0
  125. package/maskingPolicy.js.map +1 -0
  126. package/maskingPolicyGrant.d.ts +108 -0
  127. package/maskingPolicyGrant.js +70 -0
  128. package/maskingPolicyGrant.js.map +1 -0
  129. package/materializedView.d.ts +158 -0
  130. package/materializedView.js +103 -0
  131. package/materializedView.js.map +1 -0
  132. package/materializedViewGrant.d.ts +165 -0
  133. package/materializedViewGrant.js +101 -0
  134. package/materializedViewGrant.js.map +1 -0
  135. package/networkPolicy.d.ts +104 -0
  136. package/networkPolicy.js +80 -0
  137. package/networkPolicy.js.map +1 -0
  138. package/networkPolicyAttachment.d.ts +110 -0
  139. package/networkPolicyAttachment.js +81 -0
  140. package/networkPolicyAttachment.js.map +1 -0
  141. package/notificationIntegration.d.ts +191 -0
  142. package/notificationIntegration.js +103 -0
  143. package/notificationIntegration.js.map +1 -0
  144. package/package.json +27 -0
  145. package/package.json.bak +26 -0
  146. package/package.json.dev +26 -0
  147. package/pipe.d.ts +187 -0
  148. package/pipe.js +107 -0
  149. package/pipe.js.map +1 -0
  150. package/pipeGrant.d.ts +149 -0
  151. package/pipeGrant.js +98 -0
  152. package/pipeGrant.js.map +1 -0
  153. package/procedure.d.ts +201 -0
  154. package/procedure.js +125 -0
  155. package/procedure.js.map +1 -0
  156. package/procedureGrant.d.ts +201 -0
  157. package/procedureGrant.js +119 -0
  158. package/procedureGrant.js.map +1 -0
  159. package/provider.d.ts +64 -0
  160. package/provider.js +70 -0
  161. package/provider.js.map +1 -0
  162. package/resourceMonitor.d.ts +156 -0
  163. package/resourceMonitor.js +89 -0
  164. package/resourceMonitor.js.map +1 -0
  165. package/resourceMonitorGrant.d.ts +105 -0
  166. package/resourceMonitorGrant.js +81 -0
  167. package/resourceMonitorGrant.js.map +1 -0
  168. package/role.d.ts +60 -0
  169. package/role.js +71 -0
  170. package/role.js.map +1 -0
  171. package/roleGrants.d.ts +105 -0
  172. package/roleGrants.js +91 -0
  173. package/roleGrants.js.map +1 -0
  174. package/rowAccessPolicy.d.ts +140 -0
  175. package/rowAccessPolicy.js +99 -0
  176. package/rowAccessPolicy.js.map +1 -0
  177. package/rowAccessPolicyGrant.d.ts +136 -0
  178. package/rowAccessPolicyGrant.js +98 -0
  179. package/rowAccessPolicyGrant.js.map +1 -0
  180. package/schema.d.ts +132 -0
  181. package/schema.js +88 -0
  182. package/schema.js.map +1 -0
  183. package/schemaGrant.d.ts +155 -0
  184. package/schemaGrant.js +98 -0
  185. package/schemaGrant.js.map +1 -0
  186. package/scimIntegration.d.ts +112 -0
  187. package/scimIntegration.js +85 -0
  188. package/scimIntegration.js.map +1 -0
  189. package/scripts/install-pulumi-plugin.js +21 -0
  190. package/sequence.d.ts +127 -0
  191. package/sequence.js +84 -0
  192. package/sequence.js.map +1 -0
  193. package/sequenceGrant.d.ts +149 -0
  194. package/sequenceGrant.js +98 -0
  195. package/sequenceGrant.js.map +1 -0
  196. package/share.d.ts +90 -0
  197. package/share.js +73 -0
  198. package/share.js.map +1 -0
  199. package/stage.d.ts +192 -0
  200. package/stage.js +109 -0
  201. package/stage.js.map +1 -0
  202. package/stageGrant.d.ts +165 -0
  203. package/stageGrant.js +104 -0
  204. package/stageGrant.js.map +1 -0
  205. package/storageIntegration.d.ts +153 -0
  206. package/storageIntegration.js +109 -0
  207. package/storageIntegration.js.map +1 -0
  208. package/stream.d.ts +166 -0
  209. package/stream.js +99 -0
  210. package/stream.js.map +1 -0
  211. package/streamGrant.d.ts +149 -0
  212. package/streamGrant.js +98 -0
  213. package/streamGrant.js.map +1 -0
  214. package/table.d.ts +214 -0
  215. package/table.js +139 -0
  216. package/table.js.map +1 -0
  217. package/tableGrant.d.ts +159 -0
  218. package/tableGrant.js +95 -0
  219. package/tableGrant.js.map +1 -0
  220. package/task.d.ts +218 -0
  221. package/task.js +117 -0
  222. package/task.js.map +1 -0
  223. package/taskGrant.d.ts +149 -0
  224. package/taskGrant.js +98 -0
  225. package/taskGrant.js.map +1 -0
  226. package/types/index.d.ts +3 -0
  227. package/types/index.js +11 -0
  228. package/types/index.js.map +1 -0
  229. package/types/input.d.ts +113 -0
  230. package/types/input.js +5 -0
  231. package/types/input.js.map +1 -0
  232. package/types/output.d.ts +331 -0
  233. package/types/output.js +5 -0
  234. package/types/output.js.map +1 -0
  235. package/user.d.ts +236 -0
  236. package/user.js +111 -0
  237. package/user.js.map +1 -0
  238. package/userPublicKeys.d.ts +72 -0
  239. package/userPublicKeys.js +55 -0
  240. package/userPublicKeys.js.map +1 -0
  241. package/utilities.d.ts +4 -0
  242. package/utilities.js +52 -0
  243. package/utilities.js.map +1 -0
  244. package/view.d.ts +145 -0
  245. package/view.js +97 -0
  246. package/view.js.map +1 -0
  247. package/viewGrant.d.ts +165 -0
  248. package/viewGrant.js +101 -0
  249. package/viewGrant.js.map +1 -0
  250. package/warehouse.d.ts +214 -0
  251. package/warehouse.js +96 -0
  252. package/warehouse.js.map +1 -0
  253. package/warehouseGrant.d.ts +107 -0
  254. package/warehouseGrant.js +83 -0
  255. package/warehouseGrant.js.map +1 -0
package/viewGrant.js ADDED
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.ViewGrant = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as snowflake from "@pulumi/snowflake";
14
+ *
15
+ * const grant = new snowflake.ViewGrant("grant", {
16
+ * databaseName: "db",
17
+ * onFuture: false,
18
+ * privilege: "select",
19
+ * roles: [
20
+ * "role1",
21
+ * "role2",
22
+ * ],
23
+ * schemaName: "schema",
24
+ * shares: [
25
+ * "share1",
26
+ * "share2",
27
+ * ],
28
+ * viewName: "view",
29
+ * withGrantOption: false,
30
+ * });
31
+ * ```
32
+ *
33
+ * ## Import
34
+ *
35
+ * # format is database name | schema name | view name | privilege | true/false for with_grant_option
36
+ *
37
+ * ```sh
38
+ * $ pulumi import snowflake:index/viewGrant:ViewGrant example 'dbName|schemaName|viewName|USAGE|false'
39
+ * ```
40
+ */
41
+ class ViewGrant extends pulumi.CustomResource {
42
+ constructor(name, argsOrState, opts) {
43
+ let inputs = {};
44
+ opts = opts || {};
45
+ if (opts.id) {
46
+ const state = argsOrState;
47
+ inputs["databaseName"] = state ? state.databaseName : undefined;
48
+ inputs["onFuture"] = state ? state.onFuture : undefined;
49
+ inputs["privilege"] = state ? state.privilege : undefined;
50
+ inputs["roles"] = state ? state.roles : undefined;
51
+ inputs["schemaName"] = state ? state.schemaName : undefined;
52
+ inputs["shares"] = state ? state.shares : undefined;
53
+ inputs["viewName"] = state ? state.viewName : undefined;
54
+ inputs["withGrantOption"] = state ? state.withGrantOption : undefined;
55
+ }
56
+ else {
57
+ const args = argsOrState;
58
+ if ((!args || args.databaseName === undefined) && !opts.urn) {
59
+ throw new Error("Missing required property 'databaseName'");
60
+ }
61
+ inputs["databaseName"] = args ? args.databaseName : undefined;
62
+ inputs["onFuture"] = args ? args.onFuture : undefined;
63
+ inputs["privilege"] = args ? args.privilege : undefined;
64
+ inputs["roles"] = args ? args.roles : undefined;
65
+ inputs["schemaName"] = args ? args.schemaName : undefined;
66
+ inputs["shares"] = args ? args.shares : undefined;
67
+ inputs["viewName"] = args ? args.viewName : undefined;
68
+ inputs["withGrantOption"] = args ? args.withGrantOption : undefined;
69
+ }
70
+ if (!opts.version) {
71
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
72
+ }
73
+ super(ViewGrant.__pulumiType, name, inputs, opts);
74
+ }
75
+ /**
76
+ * Get an existing ViewGrant resource's state with the given name, ID, and optional extra
77
+ * properties used to qualify the lookup.
78
+ *
79
+ * @param name The _unique_ name of the resulting resource.
80
+ * @param id The _unique_ provider ID of the resource to lookup.
81
+ * @param state Any extra arguments used during the lookup.
82
+ * @param opts Optional settings to control the behavior of the CustomResource.
83
+ */
84
+ static get(name, id, state, opts) {
85
+ return new ViewGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
86
+ }
87
+ /**
88
+ * Returns true if the given object is an instance of ViewGrant. This is designed to work even
89
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
90
+ */
91
+ static isInstance(obj) {
92
+ if (obj === undefined || obj === null) {
93
+ return false;
94
+ }
95
+ return obj['__pulumiType'] === ViewGrant.__pulumiType;
96
+ }
97
+ }
98
+ exports.ViewGrant = ViewGrant;
99
+ /** @internal */
100
+ ViewGrant.__pulumiType = 'snowflake:index/viewGrant:ViewGrant';
101
+ //# sourceMappingURL=viewGrant.js.map
@@ -0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AM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAnGD;;;;;;;;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;;AA1BL,8BAqGC;AAvFG,gBAAgB;AACO,sBAAY,GAAG,qCAAqC,CAAC"}
package/warehouse.d.ts ADDED
@@ -0,0 +1,214 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as snowflake from "@pulumi/snowflake";
8
+ *
9
+ * const warehouse = new snowflake.Warehouse("w", {
10
+ * comment: "foo",
11
+ * warehouseSize: "small",
12
+ * });
13
+ * ```
14
+ *
15
+ * ## Import
16
+ *
17
+ * ```sh
18
+ * $ pulumi import snowflake:index/warehouse:Warehouse example warehouseName
19
+ * ```
20
+ */
21
+ export declare class Warehouse extends pulumi.CustomResource {
22
+ /**
23
+ * Get an existing Warehouse resource's state with the given name, ID, and optional extra
24
+ * properties used to qualify the lookup.
25
+ *
26
+ * @param name The _unique_ name of the resulting resource.
27
+ * @param id The _unique_ provider ID of the resource to lookup.
28
+ * @param state Any extra arguments used during the lookup.
29
+ * @param opts Optional settings to control the behavior of the CustomResource.
30
+ */
31
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WarehouseState, opts?: pulumi.CustomResourceOptions): Warehouse;
32
+ /**
33
+ * Returns true if the given object is an instance of Warehouse. This is designed to work even
34
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
35
+ */
36
+ static isInstance(obj: any): obj is Warehouse;
37
+ /**
38
+ * Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
39
+ */
40
+ readonly autoResume: pulumi.Output<boolean>;
41
+ /**
42
+ * Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
43
+ */
44
+ readonly autoSuspend: pulumi.Output<number>;
45
+ readonly comment: pulumi.Output<string | undefined>;
46
+ /**
47
+ * Specifies whether the warehouse is created initially in the ‘Suspended’ state.
48
+ */
49
+ readonly initiallySuspended: pulumi.Output<boolean | undefined>;
50
+ /**
51
+ * Specifies the maximum number of server clusters for the warehouse.
52
+ */
53
+ readonly maxClusterCount: pulumi.Output<number>;
54
+ /**
55
+ * Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
56
+ */
57
+ readonly maxConcurrencyLevel: pulumi.Output<number | undefined>;
58
+ /**
59
+ * Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
60
+ */
61
+ readonly minClusterCount: pulumi.Output<number>;
62
+ /**
63
+ * Identifier for the virtual warehouse; must be unique for your account.
64
+ */
65
+ readonly name: pulumi.Output<string>;
66
+ /**
67
+ * Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
68
+ */
69
+ readonly resourceMonitor: pulumi.Output<string>;
70
+ /**
71
+ * Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
72
+ */
73
+ readonly scalingPolicy: pulumi.Output<string>;
74
+ /**
75
+ * Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
76
+ */
77
+ readonly statementQueuedTimeoutInSeconds: pulumi.Output<number | undefined>;
78
+ /**
79
+ * Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
80
+ */
81
+ readonly statementTimeoutInSeconds: pulumi.Output<number | undefined>;
82
+ /**
83
+ * Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
84
+ */
85
+ readonly waitForProvisioning: pulumi.Output<boolean | undefined>;
86
+ /**
87
+ * Specifies the size of the virtual warehouse. Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).
88
+ */
89
+ readonly warehouseSize: pulumi.Output<string>;
90
+ /**
91
+ * Create a Warehouse resource with the given unique name, arguments, and options.
92
+ *
93
+ * @param name The _unique_ name of the resource.
94
+ * @param args The arguments to use to populate this resource's properties.
95
+ * @param opts A bag of options that control this resource's behavior.
96
+ */
97
+ constructor(name: string, args?: WarehouseArgs, opts?: pulumi.CustomResourceOptions);
98
+ }
99
+ /**
100
+ * Input properties used for looking up and filtering Warehouse resources.
101
+ */
102
+ export interface WarehouseState {
103
+ /**
104
+ * Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
105
+ */
106
+ autoResume?: pulumi.Input<boolean>;
107
+ /**
108
+ * Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
109
+ */
110
+ autoSuspend?: pulumi.Input<number>;
111
+ comment?: pulumi.Input<string>;
112
+ /**
113
+ * Specifies whether the warehouse is created initially in the ‘Suspended’ state.
114
+ */
115
+ initiallySuspended?: pulumi.Input<boolean>;
116
+ /**
117
+ * Specifies the maximum number of server clusters for the warehouse.
118
+ */
119
+ maxClusterCount?: pulumi.Input<number>;
120
+ /**
121
+ * Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
122
+ */
123
+ maxConcurrencyLevel?: pulumi.Input<number>;
124
+ /**
125
+ * Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
126
+ */
127
+ minClusterCount?: pulumi.Input<number>;
128
+ /**
129
+ * Identifier for the virtual warehouse; must be unique for your account.
130
+ */
131
+ name?: pulumi.Input<string>;
132
+ /**
133
+ * Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
134
+ */
135
+ resourceMonitor?: pulumi.Input<string>;
136
+ /**
137
+ * Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
138
+ */
139
+ scalingPolicy?: pulumi.Input<string>;
140
+ /**
141
+ * Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
142
+ */
143
+ statementQueuedTimeoutInSeconds?: pulumi.Input<number>;
144
+ /**
145
+ * Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
146
+ */
147
+ statementTimeoutInSeconds?: pulumi.Input<number>;
148
+ /**
149
+ * Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
150
+ */
151
+ waitForProvisioning?: pulumi.Input<boolean>;
152
+ /**
153
+ * Specifies the size of the virtual warehouse. Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).
154
+ */
155
+ warehouseSize?: pulumi.Input<string>;
156
+ }
157
+ /**
158
+ * The set of arguments for constructing a Warehouse resource.
159
+ */
160
+ export interface WarehouseArgs {
161
+ /**
162
+ * Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
163
+ */
164
+ autoResume?: pulumi.Input<boolean>;
165
+ /**
166
+ * Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
167
+ */
168
+ autoSuspend?: pulumi.Input<number>;
169
+ comment?: pulumi.Input<string>;
170
+ /**
171
+ * Specifies whether the warehouse is created initially in the ‘Suspended’ state.
172
+ */
173
+ initiallySuspended?: pulumi.Input<boolean>;
174
+ /**
175
+ * Specifies the maximum number of server clusters for the warehouse.
176
+ */
177
+ maxClusterCount?: pulumi.Input<number>;
178
+ /**
179
+ * Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
180
+ */
181
+ maxConcurrencyLevel?: pulumi.Input<number>;
182
+ /**
183
+ * Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
184
+ */
185
+ minClusterCount?: pulumi.Input<number>;
186
+ /**
187
+ * Identifier for the virtual warehouse; must be unique for your account.
188
+ */
189
+ name?: pulumi.Input<string>;
190
+ /**
191
+ * Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
192
+ */
193
+ resourceMonitor?: pulumi.Input<string>;
194
+ /**
195
+ * Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
196
+ */
197
+ scalingPolicy?: pulumi.Input<string>;
198
+ /**
199
+ * Object parameter that specifies the time, in seconds, a SQL statement (query, DDL, DML, etc.) can be queued on a warehouse before it is canceled by the system.
200
+ */
201
+ statementQueuedTimeoutInSeconds?: pulumi.Input<number>;
202
+ /**
203
+ * Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
204
+ */
205
+ statementTimeoutInSeconds?: pulumi.Input<number>;
206
+ /**
207
+ * Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
208
+ */
209
+ waitForProvisioning?: pulumi.Input<boolean>;
210
+ /**
211
+ * Specifies the size of the virtual warehouse. Larger warehouse sizes 5X-Large and 6X-Large are currently in preview and only available on Amazon Web Services (AWS).
212
+ */
213
+ warehouseSize?: pulumi.Input<string>;
214
+ }
package/warehouse.js ADDED
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Warehouse = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as snowflake from "@pulumi/snowflake";
14
+ *
15
+ * const warehouse = new snowflake.Warehouse("w", {
16
+ * comment: "foo",
17
+ * warehouseSize: "small",
18
+ * });
19
+ * ```
20
+ *
21
+ * ## Import
22
+ *
23
+ * ```sh
24
+ * $ pulumi import snowflake:index/warehouse:Warehouse example warehouseName
25
+ * ```
26
+ */
27
+ class Warehouse extends pulumi.CustomResource {
28
+ constructor(name, argsOrState, opts) {
29
+ let inputs = {};
30
+ opts = opts || {};
31
+ if (opts.id) {
32
+ const state = argsOrState;
33
+ inputs["autoResume"] = state ? state.autoResume : undefined;
34
+ inputs["autoSuspend"] = state ? state.autoSuspend : undefined;
35
+ inputs["comment"] = state ? state.comment : undefined;
36
+ inputs["initiallySuspended"] = state ? state.initiallySuspended : undefined;
37
+ inputs["maxClusterCount"] = state ? state.maxClusterCount : undefined;
38
+ inputs["maxConcurrencyLevel"] = state ? state.maxConcurrencyLevel : undefined;
39
+ inputs["minClusterCount"] = state ? state.minClusterCount : undefined;
40
+ inputs["name"] = state ? state.name : undefined;
41
+ inputs["resourceMonitor"] = state ? state.resourceMonitor : undefined;
42
+ inputs["scalingPolicy"] = state ? state.scalingPolicy : undefined;
43
+ inputs["statementQueuedTimeoutInSeconds"] = state ? state.statementQueuedTimeoutInSeconds : undefined;
44
+ inputs["statementTimeoutInSeconds"] = state ? state.statementTimeoutInSeconds : undefined;
45
+ inputs["waitForProvisioning"] = state ? state.waitForProvisioning : undefined;
46
+ inputs["warehouseSize"] = state ? state.warehouseSize : undefined;
47
+ }
48
+ else {
49
+ const args = argsOrState;
50
+ inputs["autoResume"] = args ? args.autoResume : undefined;
51
+ inputs["autoSuspend"] = args ? args.autoSuspend : undefined;
52
+ inputs["comment"] = args ? args.comment : undefined;
53
+ inputs["initiallySuspended"] = args ? args.initiallySuspended : undefined;
54
+ inputs["maxClusterCount"] = args ? args.maxClusterCount : undefined;
55
+ inputs["maxConcurrencyLevel"] = args ? args.maxConcurrencyLevel : undefined;
56
+ inputs["minClusterCount"] = args ? args.minClusterCount : undefined;
57
+ inputs["name"] = args ? args.name : undefined;
58
+ inputs["resourceMonitor"] = args ? args.resourceMonitor : undefined;
59
+ inputs["scalingPolicy"] = args ? args.scalingPolicy : undefined;
60
+ inputs["statementQueuedTimeoutInSeconds"] = args ? args.statementQueuedTimeoutInSeconds : undefined;
61
+ inputs["statementTimeoutInSeconds"] = args ? args.statementTimeoutInSeconds : undefined;
62
+ inputs["waitForProvisioning"] = args ? args.waitForProvisioning : undefined;
63
+ inputs["warehouseSize"] = args ? args.warehouseSize : undefined;
64
+ }
65
+ if (!opts.version) {
66
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
67
+ }
68
+ super(Warehouse.__pulumiType, name, inputs, opts);
69
+ }
70
+ /**
71
+ * Get an existing Warehouse resource's state with the given name, ID, and optional extra
72
+ * properties used to qualify the lookup.
73
+ *
74
+ * @param name The _unique_ name of the resulting resource.
75
+ * @param id The _unique_ provider ID of the resource to lookup.
76
+ * @param state Any extra arguments used during the lookup.
77
+ * @param opts Optional settings to control the behavior of the CustomResource.
78
+ */
79
+ static get(name, id, state, opts) {
80
+ return new Warehouse(name, state, Object.assign(Object.assign({}, opts), { id: id }));
81
+ }
82
+ /**
83
+ * Returns true if the given object is an instance of Warehouse. This is designed to work even
84
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
85
+ */
86
+ static isInstance(obj) {
87
+ if (obj === undefined || obj === null) {
88
+ return false;
89
+ }
90
+ return obj['__pulumiType'] === Warehouse.__pulumiType;
91
+ }
92
+ }
93
+ exports.Warehouse = Warehouse;
94
+ /** @internal */
95
+ Warehouse.__pulumiType = 'snowflake:index/warehouse:Warehouse';
96
+ //# sourceMappingURL=warehouse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warehouse.js","sourceRoot":"","sources":["../warehouse.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACz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tD,CAAC;IAjID;;;;;;;;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;;AA1BL,8BAmIC;AArHG,gBAAgB;AACO,sBAAY,GAAG,qCAAqC,CAAC"}
@@ -0,0 +1,107 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as snowflake from "@pulumi/snowflake";
8
+ *
9
+ * const grant = new snowflake.WarehouseGrant("grant", {
10
+ * privilege: "MODIFY",
11
+ * roles: ["role1"],
12
+ * warehouseName: "wh",
13
+ * withGrantOption: false,
14
+ * });
15
+ * ```
16
+ *
17
+ * ## Import
18
+ *
19
+ * # format is warehouse name | | | privilege | true/false for with_grant_option
20
+ *
21
+ * ```sh
22
+ * $ pulumi import snowflake:index/warehouseGrant:WarehouseGrant example 'warehouseName|||MODIFY|true'
23
+ * ```
24
+ */
25
+ export declare class WarehouseGrant extends pulumi.CustomResource {
26
+ /**
27
+ * Get an existing WarehouseGrant resource's state with the given name, ID, and optional extra
28
+ * properties used to qualify the lookup.
29
+ *
30
+ * @param name The _unique_ name of the resulting resource.
31
+ * @param id The _unique_ provider ID of the resource to lookup.
32
+ * @param state Any extra arguments used during the lookup.
33
+ * @param opts Optional settings to control the behavior of the CustomResource.
34
+ */
35
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WarehouseGrantState, opts?: pulumi.CustomResourceOptions): WarehouseGrant;
36
+ /**
37
+ * Returns true if the given object is an instance of WarehouseGrant. This is designed to work even
38
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
39
+ */
40
+ static isInstance(obj: any): obj is WarehouseGrant;
41
+ /**
42
+ * The privilege to grant on the warehouse.
43
+ */
44
+ readonly privilege: pulumi.Output<string | undefined>;
45
+ /**
46
+ * Grants privilege to these roles.
47
+ */
48
+ readonly roles: pulumi.Output<string[] | undefined>;
49
+ /**
50
+ * The name of the warehouse on which to grant privileges.
51
+ */
52
+ readonly warehouseName: pulumi.Output<string>;
53
+ /**
54
+ * When this is set to true, allows the recipient role to grant the privileges to other roles.
55
+ */
56
+ readonly withGrantOption: pulumi.Output<boolean | undefined>;
57
+ /**
58
+ * Create a WarehouseGrant resource with the given unique name, arguments, and options.
59
+ *
60
+ * @param name The _unique_ name of the resource.
61
+ * @param args The arguments to use to populate this resource's properties.
62
+ * @param opts A bag of options that control this resource's behavior.
63
+ */
64
+ constructor(name: string, args: WarehouseGrantArgs, opts?: pulumi.CustomResourceOptions);
65
+ }
66
+ /**
67
+ * Input properties used for looking up and filtering WarehouseGrant resources.
68
+ */
69
+ export interface WarehouseGrantState {
70
+ /**
71
+ * The privilege to grant on the warehouse.
72
+ */
73
+ privilege?: pulumi.Input<string>;
74
+ /**
75
+ * Grants privilege to these roles.
76
+ */
77
+ roles?: pulumi.Input<pulumi.Input<string>[]>;
78
+ /**
79
+ * The name of the warehouse on which to grant privileges.
80
+ */
81
+ warehouseName?: pulumi.Input<string>;
82
+ /**
83
+ * When this is set to true, allows the recipient role to grant the privileges to other roles.
84
+ */
85
+ withGrantOption?: pulumi.Input<boolean>;
86
+ }
87
+ /**
88
+ * The set of arguments for constructing a WarehouseGrant resource.
89
+ */
90
+ export interface WarehouseGrantArgs {
91
+ /**
92
+ * The privilege to grant on the warehouse.
93
+ */
94
+ privilege?: pulumi.Input<string>;
95
+ /**
96
+ * Grants privilege to these roles.
97
+ */
98
+ roles?: pulumi.Input<pulumi.Input<string>[]>;
99
+ /**
100
+ * The name of the warehouse on which to grant privileges.
101
+ */
102
+ warehouseName: pulumi.Input<string>;
103
+ /**
104
+ * When this is set to true, allows the recipient role to grant the privileges to other roles.
105
+ */
106
+ withGrantOption?: pulumi.Input<boolean>;
107
+ }
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.WarehouseGrant = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as snowflake from "@pulumi/snowflake";
14
+ *
15
+ * const grant = new snowflake.WarehouseGrant("grant", {
16
+ * privilege: "MODIFY",
17
+ * roles: ["role1"],
18
+ * warehouseName: "wh",
19
+ * withGrantOption: false,
20
+ * });
21
+ * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * # format is warehouse name | | | privilege | true/false for with_grant_option
26
+ *
27
+ * ```sh
28
+ * $ pulumi import snowflake:index/warehouseGrant:WarehouseGrant example 'warehouseName|||MODIFY|true'
29
+ * ```
30
+ */
31
+ class WarehouseGrant extends pulumi.CustomResource {
32
+ constructor(name, argsOrState, opts) {
33
+ let inputs = {};
34
+ opts = opts || {};
35
+ if (opts.id) {
36
+ const state = argsOrState;
37
+ inputs["privilege"] = state ? state.privilege : undefined;
38
+ inputs["roles"] = state ? state.roles : undefined;
39
+ inputs["warehouseName"] = state ? state.warehouseName : undefined;
40
+ inputs["withGrantOption"] = state ? state.withGrantOption : undefined;
41
+ }
42
+ else {
43
+ const args = argsOrState;
44
+ if ((!args || args.warehouseName === undefined) && !opts.urn) {
45
+ throw new Error("Missing required property 'warehouseName'");
46
+ }
47
+ inputs["privilege"] = args ? args.privilege : undefined;
48
+ inputs["roles"] = args ? args.roles : undefined;
49
+ inputs["warehouseName"] = args ? args.warehouseName : undefined;
50
+ inputs["withGrantOption"] = args ? args.withGrantOption : undefined;
51
+ }
52
+ if (!opts.version) {
53
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
54
+ }
55
+ super(WarehouseGrant.__pulumiType, name, inputs, opts);
56
+ }
57
+ /**
58
+ * Get an existing WarehouseGrant resource's state with the given name, ID, and optional extra
59
+ * properties used to qualify the lookup.
60
+ *
61
+ * @param name The _unique_ name of the resulting resource.
62
+ * @param id The _unique_ provider ID of the resource to lookup.
63
+ * @param state Any extra arguments used during the lookup.
64
+ * @param opts Optional settings to control the behavior of the CustomResource.
65
+ */
66
+ static get(name, id, state, opts) {
67
+ return new WarehouseGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
68
+ }
69
+ /**
70
+ * Returns true if the given object is an instance of WarehouseGrant. This is designed to work even
71
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
72
+ */
73
+ static isInstance(obj) {
74
+ if (obj === undefined || obj === null) {
75
+ return false;
76
+ }
77
+ return obj['__pulumiType'] === WarehouseGrant.__pulumiType;
78
+ }
79
+ }
80
+ exports.WarehouseGrant = WarehouseGrant;
81
+ /** @internal */
82
+ WarehouseGrant.__pulumiType = 'snowflake:index/warehouseGrant:WarehouseGrant';
83
+ //# sourceMappingURL=warehouseGrant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warehouseGrant.js","sourceRoot":"","sources":["../warehouseGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAqDrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC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