@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
@@ -0,0 +1,201 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import { input as inputs, output as outputs } from "./types";
3
+ /**
4
+ * ## Example Usage
5
+ *
6
+ * ```typescript
7
+ * import * as pulumi from "@pulumi/pulumi";
8
+ * import * as snowflake from "@pulumi/snowflake";
9
+ *
10
+ * const grant = new snowflake.ProcedureGrant("grant", {
11
+ * databaseName: "db",
12
+ * schemaName: "schema",
13
+ * procedureName: "procedure",
14
+ * arguments: [
15
+ * {
16
+ * name: "a",
17
+ * type: "array",
18
+ * },
19
+ * {
20
+ * name: "b",
21
+ * type: "string",
22
+ * },
23
+ * ],
24
+ * returnType: "string",
25
+ * privilege: "select",
26
+ * roles: [
27
+ * "role1",
28
+ * "role2",
29
+ * ],
30
+ * shares: [
31
+ * "share1",
32
+ * "share2",
33
+ * ],
34
+ * onFuture: false,
35
+ * withGrantOption: false,
36
+ * });
37
+ * ```
38
+ *
39
+ * ## Import
40
+ *
41
+ * # format is database name | schema name | procedure signature | privilege | true/false for with_grant_option
42
+ *
43
+ * ```sh
44
+ * $ pulumi import snowflake:index/procedureGrant:ProcedureGrant example 'dbName|schemaName|procedureName(ARG1 ARG1TYPE, ARG2 ARG2TYPE):RETURNTYPE|USAGE|false'
45
+ * ```
46
+ */
47
+ export declare class ProcedureGrant extends pulumi.CustomResource {
48
+ /**
49
+ * Get an existing ProcedureGrant resource's state with the given name, ID, and optional extra
50
+ * properties used to qualify the lookup.
51
+ *
52
+ * @param name The _unique_ name of the resulting resource.
53
+ * @param id The _unique_ provider ID of the resource to lookup.
54
+ * @param state Any extra arguments used during the lookup.
55
+ * @param opts Optional settings to control the behavior of the CustomResource.
56
+ */
57
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProcedureGrantState, opts?: pulumi.CustomResourceOptions): ProcedureGrant;
58
+ /**
59
+ * Returns true if the given object is an instance of ProcedureGrant. This is designed to work even
60
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
61
+ */
62
+ static isInstance(obj: any): obj is ProcedureGrant;
63
+ /**
64
+ * List of the arguments for the procedure (must be present if procedure has arguments and procedureName is present)
65
+ */
66
+ readonly arguments: pulumi.Output<outputs.ProcedureGrantArgument[] | undefined>;
67
+ /**
68
+ * The name of the database containing the current or future procedures on which to grant privileges.
69
+ */
70
+ readonly databaseName: pulumi.Output<string>;
71
+ /**
72
+ * When this is set to true and a schema*name is provided, apply this grant on all future procedures in the given schema. When this is true and no schema*name is provided apply this grant on all future procedures in the given database. The procedure*name and shares fields must be unset in order to use on*future.
73
+ */
74
+ readonly onFuture: pulumi.Output<boolean | undefined>;
75
+ /**
76
+ * The privilege to grant on the current or future procedure.
77
+ */
78
+ readonly privilege: pulumi.Output<string | undefined>;
79
+ /**
80
+ * The name of the procedure on which to grant privileges immediately (only valid if onFuture is false).
81
+ */
82
+ readonly procedureName: pulumi.Output<string | undefined>;
83
+ /**
84
+ * The return type of the procedure (must be present if procedureName is present)
85
+ */
86
+ readonly returnType: pulumi.Output<string | undefined>;
87
+ /**
88
+ * Grants privilege to these roles.
89
+ */
90
+ readonly roles: pulumi.Output<string[] | undefined>;
91
+ /**
92
+ * The name of the schema containing the current or future procedures on which to grant privileges.
93
+ */
94
+ readonly schemaName: pulumi.Output<string>;
95
+ /**
96
+ * Grants privilege to these shares (only valid if onFuture is false).
97
+ */
98
+ readonly shares: pulumi.Output<string[] | undefined>;
99
+ /**
100
+ * When this is set to true, allows the recipient role to grant the privileges to other roles.
101
+ */
102
+ readonly withGrantOption: pulumi.Output<boolean | undefined>;
103
+ /**
104
+ * Create a ProcedureGrant resource with the given unique name, arguments, and options.
105
+ *
106
+ * @param name The _unique_ name of the resource.
107
+ * @param args The arguments to use to populate this resource's properties.
108
+ * @param opts A bag of options that control this resource's behavior.
109
+ */
110
+ constructor(name: string, args: ProcedureGrantArgs, opts?: pulumi.CustomResourceOptions);
111
+ }
112
+ /**
113
+ * Input properties used for looking up and filtering ProcedureGrant resources.
114
+ */
115
+ export interface ProcedureGrantState {
116
+ /**
117
+ * List of the arguments for the procedure (must be present if procedure has arguments and procedureName is present)
118
+ */
119
+ arguments?: pulumi.Input<pulumi.Input<inputs.ProcedureGrantArgument>[]>;
120
+ /**
121
+ * The name of the database containing the current or future procedures on which to grant privileges.
122
+ */
123
+ databaseName?: pulumi.Input<string>;
124
+ /**
125
+ * When this is set to true and a schema*name is provided, apply this grant on all future procedures in the given schema. When this is true and no schema*name is provided apply this grant on all future procedures in the given database. The procedure*name and shares fields must be unset in order to use on*future.
126
+ */
127
+ onFuture?: pulumi.Input<boolean>;
128
+ /**
129
+ * The privilege to grant on the current or future procedure.
130
+ */
131
+ privilege?: pulumi.Input<string>;
132
+ /**
133
+ * The name of the procedure on which to grant privileges immediately (only valid if onFuture is false).
134
+ */
135
+ procedureName?: pulumi.Input<string>;
136
+ /**
137
+ * The return type of the procedure (must be present if procedureName is present)
138
+ */
139
+ returnType?: pulumi.Input<string>;
140
+ /**
141
+ * Grants privilege to these roles.
142
+ */
143
+ roles?: pulumi.Input<pulumi.Input<string>[]>;
144
+ /**
145
+ * The name of the schema containing the current or future procedures on which to grant privileges.
146
+ */
147
+ schemaName?: pulumi.Input<string>;
148
+ /**
149
+ * Grants privilege to these shares (only valid if onFuture is false).
150
+ */
151
+ shares?: pulumi.Input<pulumi.Input<string>[]>;
152
+ /**
153
+ * When this is set to true, allows the recipient role to grant the privileges to other roles.
154
+ */
155
+ withGrantOption?: pulumi.Input<boolean>;
156
+ }
157
+ /**
158
+ * The set of arguments for constructing a ProcedureGrant resource.
159
+ */
160
+ export interface ProcedureGrantArgs {
161
+ /**
162
+ * List of the arguments for the procedure (must be present if procedure has arguments and procedureName is present)
163
+ */
164
+ arguments?: pulumi.Input<pulumi.Input<inputs.ProcedureGrantArgument>[]>;
165
+ /**
166
+ * The name of the database containing the current or future procedures on which to grant privileges.
167
+ */
168
+ databaseName: pulumi.Input<string>;
169
+ /**
170
+ * When this is set to true and a schema*name is provided, apply this grant on all future procedures in the given schema. When this is true and no schema*name is provided apply this grant on all future procedures in the given database. The procedure*name and shares fields must be unset in order to use on*future.
171
+ */
172
+ onFuture?: pulumi.Input<boolean>;
173
+ /**
174
+ * The privilege to grant on the current or future procedure.
175
+ */
176
+ privilege?: pulumi.Input<string>;
177
+ /**
178
+ * The name of the procedure on which to grant privileges immediately (only valid if onFuture is false).
179
+ */
180
+ procedureName?: pulumi.Input<string>;
181
+ /**
182
+ * The return type of the procedure (must be present if procedureName is present)
183
+ */
184
+ returnType?: pulumi.Input<string>;
185
+ /**
186
+ * Grants privilege to these roles.
187
+ */
188
+ roles?: pulumi.Input<pulumi.Input<string>[]>;
189
+ /**
190
+ * The name of the schema containing the current or future procedures on which to grant privileges.
191
+ */
192
+ schemaName: pulumi.Input<string>;
193
+ /**
194
+ * Grants privilege to these shares (only valid if onFuture is false).
195
+ */
196
+ shares?: pulumi.Input<pulumi.Input<string>[]>;
197
+ /**
198
+ * When this is set to true, allows the recipient role to grant the privileges to other roles.
199
+ */
200
+ withGrantOption?: pulumi.Input<boolean>;
201
+ }
@@ -0,0 +1,119 @@
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.ProcedureGrant = 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.ProcedureGrant("grant", {
16
+ * databaseName: "db",
17
+ * schemaName: "schema",
18
+ * procedureName: "procedure",
19
+ * arguments: [
20
+ * {
21
+ * name: "a",
22
+ * type: "array",
23
+ * },
24
+ * {
25
+ * name: "b",
26
+ * type: "string",
27
+ * },
28
+ * ],
29
+ * returnType: "string",
30
+ * privilege: "select",
31
+ * roles: [
32
+ * "role1",
33
+ * "role2",
34
+ * ],
35
+ * shares: [
36
+ * "share1",
37
+ * "share2",
38
+ * ],
39
+ * onFuture: false,
40
+ * withGrantOption: false,
41
+ * });
42
+ * ```
43
+ *
44
+ * ## Import
45
+ *
46
+ * # format is database name | schema name | procedure signature | privilege | true/false for with_grant_option
47
+ *
48
+ * ```sh
49
+ * $ pulumi import snowflake:index/procedureGrant:ProcedureGrant example 'dbName|schemaName|procedureName(ARG1 ARG1TYPE, ARG2 ARG2TYPE):RETURNTYPE|USAGE|false'
50
+ * ```
51
+ */
52
+ class ProcedureGrant extends pulumi.CustomResource {
53
+ constructor(name, argsOrState, opts) {
54
+ let inputs = {};
55
+ opts = opts || {};
56
+ if (opts.id) {
57
+ const state = argsOrState;
58
+ inputs["arguments"] = state ? state.arguments : undefined;
59
+ inputs["databaseName"] = state ? state.databaseName : undefined;
60
+ inputs["onFuture"] = state ? state.onFuture : undefined;
61
+ inputs["privilege"] = state ? state.privilege : undefined;
62
+ inputs["procedureName"] = state ? state.procedureName : undefined;
63
+ inputs["returnType"] = state ? state.returnType : undefined;
64
+ inputs["roles"] = state ? state.roles : undefined;
65
+ inputs["schemaName"] = state ? state.schemaName : undefined;
66
+ inputs["shares"] = state ? state.shares : undefined;
67
+ inputs["withGrantOption"] = state ? state.withGrantOption : undefined;
68
+ }
69
+ else {
70
+ const args = argsOrState;
71
+ if ((!args || args.databaseName === undefined) && !opts.urn) {
72
+ throw new Error("Missing required property 'databaseName'");
73
+ }
74
+ if ((!args || args.schemaName === undefined) && !opts.urn) {
75
+ throw new Error("Missing required property 'schemaName'");
76
+ }
77
+ inputs["arguments"] = args ? args.arguments : undefined;
78
+ inputs["databaseName"] = args ? args.databaseName : undefined;
79
+ inputs["onFuture"] = args ? args.onFuture : undefined;
80
+ inputs["privilege"] = args ? args.privilege : undefined;
81
+ inputs["procedureName"] = args ? args.procedureName : undefined;
82
+ inputs["returnType"] = args ? args.returnType : undefined;
83
+ inputs["roles"] = args ? args.roles : undefined;
84
+ inputs["schemaName"] = args ? args.schemaName : undefined;
85
+ inputs["shares"] = args ? args.shares : undefined;
86
+ inputs["withGrantOption"] = args ? args.withGrantOption : undefined;
87
+ }
88
+ if (!opts.version) {
89
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
90
+ }
91
+ super(ProcedureGrant.__pulumiType, name, inputs, opts);
92
+ }
93
+ /**
94
+ * Get an existing ProcedureGrant resource's state with the given name, ID, and optional extra
95
+ * properties used to qualify the lookup.
96
+ *
97
+ * @param name The _unique_ name of the resulting resource.
98
+ * @param id The _unique_ provider ID of the resource to lookup.
99
+ * @param state Any extra arguments used during the lookup.
100
+ * @param opts Optional settings to control the behavior of the CustomResource.
101
+ */
102
+ static get(name, id, state, opts) {
103
+ return new ProcedureGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
104
+ }
105
+ /**
106
+ * Returns true if the given object is an instance of ProcedureGrant. This is designed to work even
107
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
108
+ */
109
+ static isInstance(obj) {
110
+ if (obj === undefined || obj === null) {
111
+ return false;
112
+ }
113
+ return obj['__pulumiType'] === ProcedureGrant.__pulumiType;
114
+ }
115
+ }
116
+ exports.ProcedureGrant = ProcedureGrant;
117
+ /** @internal */
118
+ ProcedureGrant.__pulumiType = 'snowflake:index/procedureGrant:ProcedureGrant';
119
+ //# sourceMappingURL=procedureGrant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"procedureGrant.js","sourceRoot":"","sources":["../procedureGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAChD,MAAM,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,MAAM,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;QACD,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IAlHD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCAoHC;AAtGG,gBAAgB;AACO,2BAAY,GAAG,+CAA+C,CAAC"}
package/provider.d.ts ADDED
@@ -0,0 +1,64 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * The provider type for the snowflake package. By default, resources use package-wide configuration
4
+ * settings, however an explicit `Provider` instance may be created and passed during resource
5
+ * construction to achieve fine-grained programmatic control over provider settings. See the
6
+ * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
7
+ */
8
+ export declare class Provider extends pulumi.ProviderResource {
9
+ /**
10
+ * Returns true if the given object is an instance of Provider. This is designed to work even
11
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
+ */
13
+ static isInstance(obj: any): obj is Provider;
14
+ readonly account: pulumi.Output<string>;
15
+ readonly oauthAccessToken: pulumi.Output<string | undefined>;
16
+ readonly oauthClientId: pulumi.Output<string | undefined>;
17
+ readonly oauthClientSecret: pulumi.Output<string | undefined>;
18
+ readonly oauthEndpoint: pulumi.Output<string | undefined>;
19
+ readonly oauthRedirectUrl: pulumi.Output<string | undefined>;
20
+ readonly oauthRefreshToken: pulumi.Output<string | undefined>;
21
+ readonly password: pulumi.Output<string | undefined>;
22
+ readonly privateKey: pulumi.Output<string | undefined>;
23
+ /**
24
+ * Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
25
+ * des-ede3-cbc
26
+ */
27
+ readonly privateKeyPassphrase: pulumi.Output<string | undefined>;
28
+ readonly privateKeyPath: pulumi.Output<string | undefined>;
29
+ readonly region: pulumi.Output<string>;
30
+ readonly role: pulumi.Output<string | undefined>;
31
+ readonly username: pulumi.Output<string>;
32
+ /**
33
+ * Create a Provider resource with the given unique name, arguments, and options.
34
+ *
35
+ * @param name The _unique_ name of the resource.
36
+ * @param args The arguments to use to populate this resource's properties.
37
+ * @param opts A bag of options that control this resource's behavior.
38
+ */
39
+ constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
40
+ }
41
+ /**
42
+ * The set of arguments for constructing a Provider resource.
43
+ */
44
+ export interface ProviderArgs {
45
+ account: pulumi.Input<string>;
46
+ browserAuth?: pulumi.Input<boolean>;
47
+ oauthAccessToken?: pulumi.Input<string>;
48
+ oauthClientId?: pulumi.Input<string>;
49
+ oauthClientSecret?: pulumi.Input<string>;
50
+ oauthEndpoint?: pulumi.Input<string>;
51
+ oauthRedirectUrl?: pulumi.Input<string>;
52
+ oauthRefreshToken?: pulumi.Input<string>;
53
+ password?: pulumi.Input<string>;
54
+ privateKey?: pulumi.Input<string>;
55
+ /**
56
+ * Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
57
+ * des-ede3-cbc
58
+ */
59
+ privateKeyPassphrase?: pulumi.Input<string>;
60
+ privateKeyPath?: pulumi.Input<string>;
61
+ region: pulumi.Input<string>;
62
+ role?: pulumi.Input<string>;
63
+ username: pulumi.Input<string>;
64
+ }
package/provider.js ADDED
@@ -0,0 +1,70 @@
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.Provider = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * The provider type for the snowflake package. By default, resources use package-wide configuration
10
+ * settings, however an explicit `Provider` instance may be created and passed during resource
11
+ * construction to achieve fine-grained programmatic control over provider settings. See the
12
+ * [documentation](https://www.pulumi.com/docs/reference/programming-model/#providers) for more information.
13
+ */
14
+ class Provider extends pulumi.ProviderResource {
15
+ /**
16
+ * Create a Provider resource with the given unique name, arguments, and options.
17
+ *
18
+ * @param name The _unique_ name of the resource.
19
+ * @param args The arguments to use to populate this resource's properties.
20
+ * @param opts A bag of options that control this resource's behavior.
21
+ */
22
+ constructor(name, args, opts) {
23
+ let inputs = {};
24
+ opts = opts || {};
25
+ {
26
+ if ((!args || args.account === undefined) && !opts.urn) {
27
+ throw new Error("Missing required property 'account'");
28
+ }
29
+ if ((!args || args.region === undefined) && !opts.urn) {
30
+ throw new Error("Missing required property 'region'");
31
+ }
32
+ if ((!args || args.username === undefined) && !opts.urn) {
33
+ throw new Error("Missing required property 'username'");
34
+ }
35
+ inputs["account"] = args ? args.account : undefined;
36
+ inputs["browserAuth"] = pulumi.output(args ? args.browserAuth : undefined).apply(JSON.stringify);
37
+ inputs["oauthAccessToken"] = args ? args.oauthAccessToken : undefined;
38
+ inputs["oauthClientId"] = args ? args.oauthClientId : undefined;
39
+ inputs["oauthClientSecret"] = args ? args.oauthClientSecret : undefined;
40
+ inputs["oauthEndpoint"] = args ? args.oauthEndpoint : undefined;
41
+ inputs["oauthRedirectUrl"] = args ? args.oauthRedirectUrl : undefined;
42
+ inputs["oauthRefreshToken"] = args ? args.oauthRefreshToken : undefined;
43
+ inputs["password"] = args ? args.password : undefined;
44
+ inputs["privateKey"] = args ? args.privateKey : undefined;
45
+ inputs["privateKeyPassphrase"] = args ? args.privateKeyPassphrase : undefined;
46
+ inputs["privateKeyPath"] = args ? args.privateKeyPath : undefined;
47
+ inputs["region"] = args ? args.region : undefined;
48
+ inputs["role"] = args ? args.role : undefined;
49
+ inputs["username"] = args ? args.username : undefined;
50
+ }
51
+ if (!opts.version) {
52
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
53
+ }
54
+ super(Provider.__pulumiType, name, inputs, opts);
55
+ }
56
+ /**
57
+ * Returns true if the given object is an instance of Provider. This is designed to work even
58
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
+ */
60
+ static isInstance(obj) {
61
+ if (obj === undefined || obj === null) {
62
+ return false;
63
+ }
64
+ return obj['__pulumiType'] === Provider.__pulumiType;
65
+ }
66
+ }
67
+ exports.Provider = Provider;
68
+ /** @internal */
69
+ Provider.__pulumiType = 'snowflake';
70
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;G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AO,EAAE;YACf,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,UAAU,EAAE,EAAC,CAAC,CAAC;SACxE;QACD,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAtED;;;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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BA2EC;AA1EG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
@@ -0,0 +1,156 @@
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 monitor = new snowflake.ResourceMonitor("monitor", {
10
+ * creditQuota: 100,
11
+ * endTimestamp: "2021-12-07 00:00",
12
+ * frequency: "DAILY",
13
+ * notifyTriggers: [40],
14
+ * startTimestamp: "2020-12-07 00:00",
15
+ * suspendImmediateTriggers: [90],
16
+ * suspendTriggers: [50],
17
+ * });
18
+ * ```
19
+ *
20
+ * ## Import
21
+ *
22
+ * ```sh
23
+ * $ pulumi import snowflake:index/resourceMonitor:ResourceMonitor example
24
+ * ```
25
+ */
26
+ export declare class ResourceMonitor extends pulumi.CustomResource {
27
+ /**
28
+ * Get an existing ResourceMonitor resource's state with the given name, ID, and optional extra
29
+ * properties used to qualify the lookup.
30
+ *
31
+ * @param name The _unique_ name of the resulting resource.
32
+ * @param id The _unique_ provider ID of the resource to lookup.
33
+ * @param state Any extra arguments used during the lookup.
34
+ * @param opts Optional settings to control the behavior of the CustomResource.
35
+ */
36
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ResourceMonitorState, opts?: pulumi.CustomResourceOptions): ResourceMonitor;
37
+ /**
38
+ * Returns true if the given object is an instance of ResourceMonitor. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj: any): obj is ResourceMonitor;
42
+ /**
43
+ * The number of credits allocated monthly to the resource monitor.
44
+ */
45
+ readonly creditQuota: pulumi.Output<number>;
46
+ /**
47
+ * The date and time when the resource monitor suspends the assigned warehouses.
48
+ */
49
+ readonly endTimestamp: pulumi.Output<string | undefined>;
50
+ /**
51
+ * The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
52
+ */
53
+ readonly frequency: pulumi.Output<string>;
54
+ /**
55
+ * Identifier for the resource monitor; must be unique for your account.
56
+ */
57
+ readonly name: pulumi.Output<string>;
58
+ /**
59
+ * A list of percentage thresholds at which to send an alert to subscribed users.
60
+ */
61
+ readonly notifyTriggers: pulumi.Output<number[] | undefined>;
62
+ /**
63
+ * The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
64
+ */
65
+ readonly startTimestamp: pulumi.Output<string>;
66
+ /**
67
+ * A list of percentage thresholds at which to immediately suspend all warehouses.
68
+ */
69
+ readonly suspendImmediateTriggers: pulumi.Output<number[] | undefined>;
70
+ /**
71
+ * A list of percentage thresholds at which to suspend all warehouses.
72
+ */
73
+ readonly suspendTriggers: pulumi.Output<number[] | undefined>;
74
+ /**
75
+ * Create a ResourceMonitor resource with the given unique name, arguments, and options.
76
+ *
77
+ * @param name The _unique_ name of the resource.
78
+ * @param args The arguments to use to populate this resource's properties.
79
+ * @param opts A bag of options that control this resource's behavior.
80
+ */
81
+ constructor(name: string, args?: ResourceMonitorArgs, opts?: pulumi.CustomResourceOptions);
82
+ }
83
+ /**
84
+ * Input properties used for looking up and filtering ResourceMonitor resources.
85
+ */
86
+ export interface ResourceMonitorState {
87
+ /**
88
+ * The number of credits allocated monthly to the resource monitor.
89
+ */
90
+ creditQuota?: pulumi.Input<number>;
91
+ /**
92
+ * The date and time when the resource monitor suspends the assigned warehouses.
93
+ */
94
+ endTimestamp?: pulumi.Input<string>;
95
+ /**
96
+ * The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
97
+ */
98
+ frequency?: pulumi.Input<string>;
99
+ /**
100
+ * Identifier for the resource monitor; must be unique for your account.
101
+ */
102
+ name?: pulumi.Input<string>;
103
+ /**
104
+ * A list of percentage thresholds at which to send an alert to subscribed users.
105
+ */
106
+ notifyTriggers?: pulumi.Input<pulumi.Input<number>[]>;
107
+ /**
108
+ * The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
109
+ */
110
+ startTimestamp?: pulumi.Input<string>;
111
+ /**
112
+ * A list of percentage thresholds at which to immediately suspend all warehouses.
113
+ */
114
+ suspendImmediateTriggers?: pulumi.Input<pulumi.Input<number>[]>;
115
+ /**
116
+ * A list of percentage thresholds at which to suspend all warehouses.
117
+ */
118
+ suspendTriggers?: pulumi.Input<pulumi.Input<number>[]>;
119
+ }
120
+ /**
121
+ * The set of arguments for constructing a ResourceMonitor resource.
122
+ */
123
+ export interface ResourceMonitorArgs {
124
+ /**
125
+ * The number of credits allocated monthly to the resource monitor.
126
+ */
127
+ creditQuota?: pulumi.Input<number>;
128
+ /**
129
+ * The date and time when the resource monitor suspends the assigned warehouses.
130
+ */
131
+ endTimestamp?: pulumi.Input<string>;
132
+ /**
133
+ * The frequency interval at which the credit usage resets to 0. If you set a frequency for a resource monitor, you must also set START_TIMESTAMP.
134
+ */
135
+ frequency?: pulumi.Input<string>;
136
+ /**
137
+ * Identifier for the resource monitor; must be unique for your account.
138
+ */
139
+ name?: pulumi.Input<string>;
140
+ /**
141
+ * A list of percentage thresholds at which to send an alert to subscribed users.
142
+ */
143
+ notifyTriggers?: pulumi.Input<pulumi.Input<number>[]>;
144
+ /**
145
+ * The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses.
146
+ */
147
+ startTimestamp?: pulumi.Input<string>;
148
+ /**
149
+ * A list of percentage thresholds at which to immediately suspend all warehouses.
150
+ */
151
+ suspendImmediateTriggers?: pulumi.Input<pulumi.Input<number>[]>;
152
+ /**
153
+ * A list of percentage thresholds at which to suspend all warehouses.
154
+ */
155
+ suspendTriggers?: pulumi.Input<pulumi.Input<number>[]>;
156
+ }