@pulumi/snowflake 0.56.0-alpha.1721327760 → 0.56.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.
Files changed (160) hide show
  1. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.d.ts +195 -0
  2. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js +91 -0
  3. package/apiAuthenticationIntegrationWithAuthorizationCodeGrant.js.map +1 -0
  4. package/apiAuthenticationIntegrationWithClientCredentials.d.ts +183 -0
  5. package/apiAuthenticationIntegrationWithClientCredentials.js +89 -0
  6. package/apiAuthenticationIntegrationWithClientCredentials.js.map +1 -0
  7. package/apiAuthenticationIntegrationWithJwtBearer.d.ts +186 -0
  8. package/apiAuthenticationIntegrationWithJwtBearer.js +94 -0
  9. package/apiAuthenticationIntegrationWithJwtBearer.js.map +1 -0
  10. package/cortexSearchService.d.ts +159 -0
  11. package/cortexSearchService.js +92 -0
  12. package/cortexSearchService.js.map +1 -0
  13. package/database.d.ts +240 -77
  14. package/database.js +94 -45
  15. package/database.js.map +1 -1
  16. package/databaseOld.d.ts +187 -0
  17. package/databaseOld.js +110 -0
  18. package/databaseOld.js.map +1 -0
  19. package/externalOauthIntegration.d.ts +118 -116
  20. package/externalOauthIntegration.js +43 -55
  21. package/externalOauthIntegration.js.map +1 -1
  22. package/failoverGroup.d.ts +1 -1
  23. package/failoverGroup.js +1 -1
  24. package/getCortexSearchServices.d.ts +136 -0
  25. package/getCortexSearchServices.js +83 -0
  26. package/getCortexSearchServices.js.map +1 -0
  27. package/getDatabases.d.ts +41 -38
  28. package/getDatabases.js +8 -17
  29. package/getDatabases.js.map +1 -1
  30. package/getSecurityIntegrations.d.ts +61 -0
  31. package/getSecurityIntegrations.js +31 -0
  32. package/getSecurityIntegrations.js.map +1 -0
  33. package/getWarehouses.d.ts +53 -17
  34. package/getWarehouses.js +13 -18
  35. package/getWarehouses.js.map +1 -1
  36. package/grantPrivilegesToDatabaseRole.d.ts +0 -2
  37. package/grantPrivilegesToDatabaseRole.js +0 -2
  38. package/grantPrivilegesToDatabaseRole.js.map +1 -1
  39. package/index.d.ts +37 -82
  40. package/index.js +60 -139
  41. package/index.js.map +1 -1
  42. package/managedAccount.d.ts +3 -3
  43. package/oauthIntegration.d.ts +2 -0
  44. package/oauthIntegration.js +2 -0
  45. package/oauthIntegration.js.map +1 -1
  46. package/oauthIntegrationForCustomClients.d.ts +274 -0
  47. package/oauthIntegrationForCustomClients.js +148 -0
  48. package/oauthIntegrationForCustomClients.js.map +1 -0
  49. package/oauthIntegrationForPartnerApplications.d.ts +162 -0
  50. package/oauthIntegrationForPartnerApplications.js +84 -0
  51. package/oauthIntegrationForPartnerApplications.js.map +1 -0
  52. package/package.json +2 -2
  53. package/saml2Integration.d.ts +267 -0
  54. package/saml2Integration.js +106 -0
  55. package/saml2Integration.js.map +1 -0
  56. package/samlIntegration.d.ts +2 -0
  57. package/samlIntegration.js +2 -0
  58. package/samlIntegration.js.map +1 -1
  59. package/scimIntegration.d.ts +67 -33
  60. package/scimIntegration.js +19 -20
  61. package/scimIntegration.js.map +1 -1
  62. package/secondaryDatabase.d.ts +289 -0
  63. package/secondaryDatabase.js +103 -0
  64. package/secondaryDatabase.js.map +1 -0
  65. package/sequence.d.ts +3 -3
  66. package/sequence.js +3 -3
  67. package/sharedDatabase.d.ts +251 -0
  68. package/sharedDatabase.js +95 -0
  69. package/sharedDatabase.js.map +1 -0
  70. package/tagAssociation.d.ts +19 -19
  71. package/tagAssociation.js +19 -19
  72. package/types/input.d.ts +1015 -75
  73. package/types/output.d.ts +1835 -280
  74. package/userPasswordPolicyAttachment.d.ts +18 -0
  75. package/userPasswordPolicyAttachment.js +18 -0
  76. package/userPasswordPolicyAttachment.js.map +1 -1
  77. package/warehouse.d.ts +61 -48
  78. package/warehouse.js +8 -2
  79. package/warehouse.js.map +1 -1
  80. package/accountGrant.d.ts +0 -102
  81. package/accountGrant.js +0 -82
  82. package/accountGrant.js.map +0 -1
  83. package/databaseGrant.d.ts +0 -143
  84. package/databaseGrant.js +0 -96
  85. package/databaseGrant.js.map +0 -1
  86. package/externalTableGrant.d.ts +0 -194
  87. package/externalTableGrant.js +0 -110
  88. package/externalTableGrant.js.map +0 -1
  89. package/failoverGroupGrant.d.ts +0 -102
  90. package/failoverGroupGrant.js +0 -65
  91. package/failoverGroupGrant.js.map +0 -1
  92. package/fileFormatGrant.d.ts +0 -178
  93. package/fileFormatGrant.js +0 -104
  94. package/fileFormatGrant.js.map +0 -1
  95. package/functionGrant.d.ts +0 -210
  96. package/functionGrant.js +0 -116
  97. package/functionGrant.js.map +0 -1
  98. package/grantPrivilegesToRole.d.ts +0 -323
  99. package/grantPrivilegesToRole.js +0 -255
  100. package/grantPrivilegesToRole.js.map +0 -1
  101. package/integrationGrant.d.ts +0 -127
  102. package/integrationGrant.js +0 -90
  103. package/integrationGrant.js.map +0 -1
  104. package/maskingPolicyGrant.d.ts +0 -154
  105. package/maskingPolicyGrant.js +0 -103
  106. package/maskingPolicyGrant.js.map +0 -1
  107. package/materializedViewGrant.d.ts +0 -194
  108. package/materializedViewGrant.js +0 -107
  109. package/materializedViewGrant.js.map +0 -1
  110. package/pipeGrant.d.ts +0 -166
  111. package/pipeGrant.js +0 -99
  112. package/pipeGrant.js.map +0 -1
  113. package/procedureGrant.d.ts +0 -210
  114. package/procedureGrant.js +0 -116
  115. package/procedureGrant.js.map +0 -1
  116. package/resourceMonitorGrant.d.ts +0 -112
  117. package/resourceMonitorGrant.js +0 -85
  118. package/resourceMonitorGrant.js.map +0 -1
  119. package/roleGrants.d.ts +0 -115
  120. package/roleGrants.js +0 -98
  121. package/roleGrants.js.map +0 -1
  122. package/roleOwnershipGrant.d.ts +0 -108
  123. package/roleOwnershipGrant.js +0 -94
  124. package/roleOwnershipGrant.js.map +0 -1
  125. package/rowAccessPolicyGrant.d.ts +0 -153
  126. package/rowAccessPolicyGrant.js +0 -102
  127. package/rowAccessPolicyGrant.js.map +0 -1
  128. package/schemaGrant.d.ts +0 -172
  129. package/schemaGrant.js +0 -104
  130. package/schemaGrant.js.map +0 -1
  131. package/sequenceGrant.d.ts +0 -178
  132. package/sequenceGrant.js +0 -104
  133. package/sequenceGrant.js.map +0 -1
  134. package/stageGrant.d.ts +0 -178
  135. package/stageGrant.js +0 -104
  136. package/stageGrant.js.map +0 -1
  137. package/streamGrant.d.ts +0 -178
  138. package/streamGrant.js +0 -104
  139. package/streamGrant.js.map +0 -1
  140. package/tableGrant.d.ts +0 -188
  141. package/tableGrant.js +0 -101
  142. package/tableGrant.js.map +0 -1
  143. package/tagGrant.d.ts +0 -149
  144. package/tagGrant.js +0 -98
  145. package/tagGrant.js.map +0 -1
  146. package/taskGrant.d.ts +0 -178
  147. package/taskGrant.js +0 -104
  148. package/taskGrant.js.map +0 -1
  149. package/userGrant.d.ts +0 -115
  150. package/userGrant.js +0 -91
  151. package/userGrant.js.map +0 -1
  152. package/userOwnershipGrant.d.ts +0 -78
  153. package/userOwnershipGrant.js +0 -64
  154. package/userOwnershipGrant.js.map +0 -1
  155. package/viewGrant.d.ts +0 -205
  156. package/viewGrant.js +0 -118
  157. package/viewGrant.js.map +0 -1
  158. package/warehouseGrant.d.ts +0 -127
  159. package/warehouseGrant.js +0 -90
  160. package/warehouseGrant.js.map +0 -1
@@ -2,6 +2,24 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
3
  * Specifies the password policy to use for a certain user.
4
4
  *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as snowflake from "@pulumi/snowflake";
10
+ *
11
+ * const user = new snowflake.User("user", {name: "USER_NAME"});
12
+ * const pp = new snowflake.PasswordPolicy("pp", {
13
+ * database: "prod",
14
+ * schema: "security",
15
+ * name: "default_policy",
16
+ * });
17
+ * const ppa = new snowflake.UserPasswordPolicyAttachment("ppa", {
18
+ * passwordPolicyName: pulumi.interpolate`"${pp.database}"."${pp.schema}"."${pp.name}"`,
19
+ * userName: user.name,
20
+ * });
21
+ * ```
22
+ *
5
23
  * ## Import
6
24
  *
7
25
  * ```sh
@@ -8,6 +8,24 @@ const utilities = require("./utilities");
8
8
  /**
9
9
  * Specifies the password policy to use for a certain user.
10
10
  *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as snowflake from "@pulumi/snowflake";
16
+ *
17
+ * const user = new snowflake.User("user", {name: "USER_NAME"});
18
+ * const pp = new snowflake.PasswordPolicy("pp", {
19
+ * database: "prod",
20
+ * schema: "security",
21
+ * name: "default_policy",
22
+ * });
23
+ * const ppa = new snowflake.UserPasswordPolicyAttachment("ppa", {
24
+ * passwordPolicyName: pulumi.interpolate`"${pp.database}"."${pp.schema}"."${pp.name}"`,
25
+ * userName: user.name,
26
+ * });
27
+ * ```
28
+ *
11
29
  * ## Import
12
30
  *
13
31
  * ```sh
@@ -1 +1 @@
1
- {"version":3,"file":"userPasswordPolicyAttachment.js","sourceRoot":"","sources":["../userPasswordPolicyAttachment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnF,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,4BAA4B,CAAC,YAAY,CAAC;IAC7E,CAAC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I,IAAI,CAAC,kBAAkB,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC/D,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;aACrE;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AAjEL,oEAkEC;AApDG,gBAAgB;AACO,yCAAY,GAAG,2EAA2E,CAAC"}
package/warehouse.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
5
+ * !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
6
+ *
7
+ * Resource used to manage warehouse objects. For more information, check [warehouse documentation](https://docs.snowflake.com/en/sql-reference/commands-warehouse).
8
+ *
3
9
  * ## Example Usage
4
10
  *
5
11
  * ```typescript
@@ -36,18 +42,21 @@ export declare class Warehouse extends pulumi.CustomResource {
36
42
  */
37
43
  static isInstance(obj: any): obj is Warehouse;
38
44
  /**
39
- * Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
45
+ * Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
40
46
  */
41
- readonly autoResume: pulumi.Output<boolean>;
47
+ readonly autoResume: pulumi.Output<string | undefined>;
42
48
  /**
43
49
  * Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
44
50
  */
45
- readonly autoSuspend: pulumi.Output<number>;
51
+ readonly autoSuspend: pulumi.Output<number | undefined>;
52
+ /**
53
+ * Specifies a comment for the warehouse.
54
+ */
46
55
  readonly comment: pulumi.Output<string | undefined>;
47
56
  /**
48
- * Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.
57
+ * Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
49
58
  */
50
- readonly enableQueryAcceleration: pulumi.Output<boolean | undefined>;
59
+ readonly enableQueryAcceleration: pulumi.Output<string | undefined>;
51
60
  /**
52
61
  * Specifies whether the warehouse is created initially in the ‘Suspended’ state.
53
62
  */
@@ -55,19 +64,23 @@ export declare class Warehouse extends pulumi.CustomResource {
55
64
  /**
56
65
  * Specifies the maximum number of server clusters for the warehouse.
57
66
  */
58
- readonly maxClusterCount: pulumi.Output<number>;
67
+ readonly maxClusterCount: pulumi.Output<number | undefined>;
59
68
  /**
60
69
  * Object parameter that specifies the concurrency level for SQL statements (i.e. queries and DML) executed by a warehouse.
61
70
  */
62
- readonly maxConcurrencyLevel: pulumi.Output<number | undefined>;
71
+ readonly maxConcurrencyLevel: pulumi.Output<number>;
63
72
  /**
64
73
  * Specifies the minimum number of server clusters for the warehouse (only applies to multi-cluster warehouses).
65
74
  */
66
- readonly minClusterCount: pulumi.Output<number>;
75
+ readonly minClusterCount: pulumi.Output<number | undefined>;
67
76
  /**
68
77
  * Identifier for the virtual warehouse; must be unique for your account.
69
78
  */
70
79
  readonly name: pulumi.Output<string>;
80
+ /**
81
+ * Outputs the result of `SHOW PARAMETERS IN WAREHOUSE` for the given warehouse.
82
+ */
83
+ readonly parameters: pulumi.Output<outputs.WarehouseParameter[]>;
71
84
  /**
72
85
  * Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.
73
86
  */
@@ -75,31 +88,29 @@ export declare class Warehouse extends pulumi.CustomResource {
75
88
  /**
76
89
  * Specifies the name of a resource monitor that is explicitly assigned to the warehouse.
77
90
  */
78
- readonly resourceMonitor: pulumi.Output<string>;
91
+ readonly resourceMonitor: pulumi.Output<string | undefined>;
79
92
  /**
80
- * Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
93
+ * Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
81
94
  */
82
- readonly scalingPolicy: pulumi.Output<string>;
95
+ readonly scalingPolicy: pulumi.Output<string | undefined>;
83
96
  /**
84
- * 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.
97
+ * Outputs the result of `SHOW WAREHOUSE` for the given warehouse.
85
98
  */
86
- readonly statementQueuedTimeoutInSeconds: pulumi.Output<number | undefined>;
99
+ readonly showOutputs: pulumi.Output<outputs.WarehouseShowOutput[]>;
87
100
  /**
88
- * Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
101
+ * 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.
89
102
  */
90
- readonly statementTimeoutInSeconds: pulumi.Output<number | undefined>;
103
+ readonly statementQueuedTimeoutInSeconds: pulumi.Output<number>;
91
104
  /**
92
- * Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
93
- *
94
- * @deprecated This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.
105
+ * Specifies the time, in seconds, after which a running SQL statement (query, DDL, DML, etc.) is canceled by the system
95
106
  */
96
- readonly waitForProvisioning: pulumi.Output<boolean | undefined>;
107
+ readonly statementTimeoutInSeconds: pulumi.Output<number>;
97
108
  /**
98
- * 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).
109
+ * Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
99
110
  */
100
- readonly warehouseSize: pulumi.Output<string>;
111
+ readonly warehouseSize: pulumi.Output<string | undefined>;
101
112
  /**
102
- * Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse
113
+ * Specifies warehouse type. Valid values are (case-insensitive): `STANDARD` | `SNOWPARK-OPTIMIZED`. Warehouse needs to be suspended to change its type. Provider will handle automatic suspension and resumption if needed.
103
114
  */
104
115
  readonly warehouseType: pulumi.Output<string | undefined>;
105
116
  /**
@@ -116,18 +127,21 @@ export declare class Warehouse extends pulumi.CustomResource {
116
127
  */
117
128
  export interface WarehouseState {
118
129
  /**
119
- * Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
130
+ * Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
120
131
  */
121
- autoResume?: pulumi.Input<boolean>;
132
+ autoResume?: pulumi.Input<string>;
122
133
  /**
123
134
  * Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
124
135
  */
125
136
  autoSuspend?: pulumi.Input<number>;
137
+ /**
138
+ * Specifies a comment for the warehouse.
139
+ */
126
140
  comment?: pulumi.Input<string>;
127
141
  /**
128
- * Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.
142
+ * Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
129
143
  */
130
- enableQueryAcceleration?: pulumi.Input<boolean>;
144
+ enableQueryAcceleration?: pulumi.Input<string>;
131
145
  /**
132
146
  * Specifies whether the warehouse is created initially in the ‘Suspended’ state.
133
147
  */
@@ -148,6 +162,10 @@ export interface WarehouseState {
148
162
  * Identifier for the virtual warehouse; must be unique for your account.
149
163
  */
150
164
  name?: pulumi.Input<string>;
165
+ /**
166
+ * Outputs the result of `SHOW PARAMETERS IN WAREHOUSE` for the given warehouse.
167
+ */
168
+ parameters?: pulumi.Input<pulumi.Input<inputs.WarehouseParameter>[]>;
151
169
  /**
152
170
  * Specifies the maximum scale factor for leasing compute resources for query acceleration. The scale factor is used as a multiplier based on warehouse size.
153
171
  */
@@ -157,9 +175,13 @@ export interface WarehouseState {
157
175
  */
158
176
  resourceMonitor?: pulumi.Input<string>;
159
177
  /**
160
- * Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
178
+ * Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
161
179
  */
162
180
  scalingPolicy?: pulumi.Input<string>;
181
+ /**
182
+ * Outputs the result of `SHOW WAREHOUSE` for the given warehouse.
183
+ */
184
+ showOutputs?: pulumi.Input<pulumi.Input<inputs.WarehouseShowOutput>[]>;
163
185
  /**
164
186
  * 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.
165
187
  */
@@ -169,17 +191,11 @@ export interface WarehouseState {
169
191
  */
170
192
  statementTimeoutInSeconds?: pulumi.Input<number>;
171
193
  /**
172
- * Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
173
- *
174
- * @deprecated This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.
175
- */
176
- waitForProvisioning?: pulumi.Input<boolean>;
177
- /**
178
- * 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).
194
+ * Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
179
195
  */
180
196
  warehouseSize?: pulumi.Input<string>;
181
197
  /**
182
- * Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse
198
+ * Specifies warehouse type. Valid values are (case-insensitive): `STANDARD` | `SNOWPARK-OPTIMIZED`. Warehouse needs to be suspended to change its type. Provider will handle automatic suspension and resumption if needed.
183
199
  */
184
200
  warehouseType?: pulumi.Input<string>;
185
201
  }
@@ -188,18 +204,21 @@ export interface WarehouseState {
188
204
  */
189
205
  export interface WarehouseArgs {
190
206
  /**
191
- * Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it.
207
+ * Specifies whether to automatically resume a warehouse when a SQL statement (e.g. query) is submitted to it. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
192
208
  */
193
- autoResume?: pulumi.Input<boolean>;
209
+ autoResume?: pulumi.Input<string>;
194
210
  /**
195
211
  * Specifies the number of seconds of inactivity after which a warehouse is automatically suspended.
196
212
  */
197
213
  autoSuspend?: pulumi.Input<number>;
214
+ /**
215
+ * Specifies a comment for the warehouse.
216
+ */
198
217
  comment?: pulumi.Input<string>;
199
218
  /**
200
- * Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources.
219
+ * Specifies whether to enable the query acceleration service for queries that rely on this warehouse for compute resources. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
201
220
  */
202
- enableQueryAcceleration?: pulumi.Input<boolean>;
221
+ enableQueryAcceleration?: pulumi.Input<string>;
203
222
  /**
204
223
  * Specifies whether the warehouse is created initially in the ‘Suspended’ state.
205
224
  */
@@ -229,7 +248,7 @@ export interface WarehouseArgs {
229
248
  */
230
249
  resourceMonitor?: pulumi.Input<string>;
231
250
  /**
232
- * Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode.
251
+ * Specifies the policy for automatically starting and shutting down clusters in a multi-cluster warehouse running in Auto-scale mode. Valid values are (case-insensitive): `STANDARD` | `ECONOMY`.
233
252
  */
234
253
  scalingPolicy?: pulumi.Input<string>;
235
254
  /**
@@ -241,17 +260,11 @@ export interface WarehouseArgs {
241
260
  */
242
261
  statementTimeoutInSeconds?: pulumi.Input<number>;
243
262
  /**
244
- * Specifies whether the warehouse, after being resized, waits for all the servers to provision before executing any queued or new queries.
245
- *
246
- * @deprecated This field is deprecated and will be removed in the next major version of the provider. It doesn't do anything and should be removed from your configuration.
247
- */
248
- waitForProvisioning?: pulumi.Input<boolean>;
249
- /**
250
- * 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).
263
+ * Specifies the size of the virtual warehouse. Valid values are (case-insensitive): `XSMALL` | `X-SMALL` | `SMALL` | `MEDIUM` | `LARGE` | `XLARGE` | `X-LARGE` | `XXLARGE` | `X2LARGE` | `2X-LARGE` | `XXXLARGE` | `X3LARGE` | `3X-LARGE` | `X4LARGE` | `4X-LARGE` | `X5LARGE` | `5X-LARGE` | `X6LARGE` | `6X-LARGE`. Consult [warehouse documentation](https://docs.snowflake.com/en/sql-reference/sql/create-warehouse#optional-properties-objectproperties) for the details. Note: removing the size from config will result in the resource recreation.
251
264
  */
252
265
  warehouseSize?: pulumi.Input<string>;
253
266
  /**
254
- * Specifies a STANDARD or SNOWPARK-OPTIMIZED warehouse
267
+ * Specifies warehouse type. Valid values are (case-insensitive): `STANDARD` | `SNOWPARK-OPTIMIZED`. Warehouse needs to be suspended to change its type. Provider will handle automatic suspension and resumption if needed.
255
268
  */
256
269
  warehouseType?: pulumi.Input<string>;
257
270
  }
package/warehouse.js CHANGED
@@ -6,6 +6,10 @@ exports.Warehouse = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
+ * !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
10
+ *
11
+ * Resource used to manage warehouse objects. For more information, check [warehouse documentation](https://docs.snowflake.com/en/sql-reference/commands-warehouse).
12
+ *
9
13
  * ## Example Usage
10
14
  *
11
15
  * ```typescript
@@ -62,12 +66,13 @@ class Warehouse extends pulumi.CustomResource {
62
66
  resourceInputs["maxConcurrencyLevel"] = state ? state.maxConcurrencyLevel : undefined;
63
67
  resourceInputs["minClusterCount"] = state ? state.minClusterCount : undefined;
64
68
  resourceInputs["name"] = state ? state.name : undefined;
69
+ resourceInputs["parameters"] = state ? state.parameters : undefined;
65
70
  resourceInputs["queryAccelerationMaxScaleFactor"] = state ? state.queryAccelerationMaxScaleFactor : undefined;
66
71
  resourceInputs["resourceMonitor"] = state ? state.resourceMonitor : undefined;
67
72
  resourceInputs["scalingPolicy"] = state ? state.scalingPolicy : undefined;
73
+ resourceInputs["showOutputs"] = state ? state.showOutputs : undefined;
68
74
  resourceInputs["statementQueuedTimeoutInSeconds"] = state ? state.statementQueuedTimeoutInSeconds : undefined;
69
75
  resourceInputs["statementTimeoutInSeconds"] = state ? state.statementTimeoutInSeconds : undefined;
70
- resourceInputs["waitForProvisioning"] = state ? state.waitForProvisioning : undefined;
71
76
  resourceInputs["warehouseSize"] = state ? state.warehouseSize : undefined;
72
77
  resourceInputs["warehouseType"] = state ? state.warehouseType : undefined;
73
78
  }
@@ -87,9 +92,10 @@ class Warehouse extends pulumi.CustomResource {
87
92
  resourceInputs["scalingPolicy"] = args ? args.scalingPolicy : undefined;
88
93
  resourceInputs["statementQueuedTimeoutInSeconds"] = args ? args.statementQueuedTimeoutInSeconds : undefined;
89
94
  resourceInputs["statementTimeoutInSeconds"] = args ? args.statementTimeoutInSeconds : undefined;
90
- resourceInputs["waitForProvisioning"] = args ? args.waitForProvisioning : undefined;
91
95
  resourceInputs["warehouseSize"] = args ? args.warehouseSize : undefined;
92
96
  resourceInputs["warehouseType"] = args ? args.warehouseType : undefined;
97
+ resourceInputs["parameters"] = undefined /*out*/;
98
+ resourceInputs["showOutputs"] = undefined /*out*/;
93
99
  }
94
100
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
95
101
  super(Warehouse.__pulumiType, name, resourceInputs, opts);
package/warehouse.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"warehouse.js","sourceRoot":"","sources":["../warehouse.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;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,IAA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AAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,iCAAiC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5G,cAAc,CAAC,2BAA2B,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChG,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;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;;AA3JL,8BA4JC;AA9IG,gBAAgB;AACO,sBAAY,GAAG,qCAAqC,CAAC"}
package/accountGrant.d.ts DELETED
@@ -1,102 +0,0 @@
1
- import * as pulumi from "@pulumi/pulumi";
2
- /**
3
- * > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use snowflake.GrantPrivilegesToAccountRole instead. <deprecation>
4
- *
5
- * ## Example Usage
6
- *
7
- * ```typescript
8
- * import * as pulumi from "@pulumi/pulumi";
9
- * import * as snowflake from "@pulumi/snowflake";
10
- *
11
- * const grant = new snowflake.AccountGrant("grant", {
12
- * roles: [
13
- * "role1",
14
- * "role2",
15
- * ],
16
- * privilege: "CREATE ROLE",
17
- * withGrantOption: false,
18
- * });
19
- * ```
20
- *
21
- * ## Import
22
- *
23
- * format is privilege|with_grant_option|roles
24
- *
25
- * ```sh
26
- * $ pulumi import snowflake:index/accountGrant:AccountGrant example "privilege|false|role1,role2"
27
- * ```
28
- */
29
- export declare class AccountGrant extends pulumi.CustomResource {
30
- /**
31
- * Get an existing AccountGrant resource's state with the given name, ID, and optional extra
32
- * properties used to qualify the lookup.
33
- *
34
- * @param name The _unique_ name of the resulting resource.
35
- * @param id The _unique_ provider ID of the resource to lookup.
36
- * @param state Any extra arguments used during the lookup.
37
- * @param opts Optional settings to control the behavior of the CustomResource.
38
- */
39
- static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccountGrantState, opts?: pulumi.CustomResourceOptions): AccountGrant;
40
- /**
41
- * Returns true if the given object is an instance of AccountGrant. This is designed to work even
42
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
43
- */
44
- static isInstance(obj: any): obj is AccountGrant;
45
- readonly enableMultipleGrants: pulumi.Output<boolean | undefined>;
46
- /**
47
- * The account privilege to grant. Valid privileges are those in [globalPrivileges](https://docs.snowflake.com/en/sql-reference/sql/grant-privilege.html). To grant all privileges, use the value `ALL PRIVILEGES`.
48
- */
49
- readonly privilege: pulumi.Output<string | undefined>;
50
- /**
51
- * Grants privilege to these roles.
52
- */
53
- readonly roles: pulumi.Output<string[] | undefined>;
54
- /**
55
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
56
- */
57
- readonly withGrantOption: pulumi.Output<boolean | undefined>;
58
- /**
59
- * Create a AccountGrant resource with the given unique name, arguments, and options.
60
- *
61
- * @param name The _unique_ name of the resource.
62
- * @param args The arguments to use to populate this resource's properties.
63
- * @param opts A bag of options that control this resource's behavior.
64
- */
65
- constructor(name: string, args?: AccountGrantArgs, opts?: pulumi.CustomResourceOptions);
66
- }
67
- /**
68
- * Input properties used for looking up and filtering AccountGrant resources.
69
- */
70
- export interface AccountGrantState {
71
- enableMultipleGrants?: pulumi.Input<boolean>;
72
- /**
73
- * The account privilege to grant. Valid privileges are those in [globalPrivileges](https://docs.snowflake.com/en/sql-reference/sql/grant-privilege.html). To grant all privileges, use the value `ALL PRIVILEGES`.
74
- */
75
- privilege?: pulumi.Input<string>;
76
- /**
77
- * Grants privilege to these roles.
78
- */
79
- roles?: pulumi.Input<pulumi.Input<string>[]>;
80
- /**
81
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
82
- */
83
- withGrantOption?: pulumi.Input<boolean>;
84
- }
85
- /**
86
- * The set of arguments for constructing a AccountGrant resource.
87
- */
88
- export interface AccountGrantArgs {
89
- enableMultipleGrants?: pulumi.Input<boolean>;
90
- /**
91
- * The account privilege to grant. Valid privileges are those in [globalPrivileges](https://docs.snowflake.com/en/sql-reference/sql/grant-privilege.html). To grant all privileges, use the value `ALL PRIVILEGES`.
92
- */
93
- privilege?: pulumi.Input<string>;
94
- /**
95
- * Grants privilege to these roles.
96
- */
97
- roles?: pulumi.Input<pulumi.Input<string>[]>;
98
- /**
99
- * When this is set to true, allows the recipient role to grant the privileges to other roles.
100
- */
101
- withGrantOption?: pulumi.Input<boolean>;
102
- }
package/accountGrant.js DELETED
@@ -1,82 +0,0 @@
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.AccountGrant = void 0;
6
- const pulumi = require("@pulumi/pulumi");
7
- const utilities = require("./utilities");
8
- /**
9
- * > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use snowflake.GrantPrivilegesToAccountRole instead. <deprecation>
10
- *
11
- * ## Example Usage
12
- *
13
- * ```typescript
14
- * import * as pulumi from "@pulumi/pulumi";
15
- * import * as snowflake from "@pulumi/snowflake";
16
- *
17
- * const grant = new snowflake.AccountGrant("grant", {
18
- * roles: [
19
- * "role1",
20
- * "role2",
21
- * ],
22
- * privilege: "CREATE ROLE",
23
- * withGrantOption: false,
24
- * });
25
- * ```
26
- *
27
- * ## Import
28
- *
29
- * format is privilege|with_grant_option|roles
30
- *
31
- * ```sh
32
- * $ pulumi import snowflake:index/accountGrant:AccountGrant example "privilege|false|role1,role2"
33
- * ```
34
- */
35
- class AccountGrant extends pulumi.CustomResource {
36
- /**
37
- * Get an existing AccountGrant resource's state with the given name, ID, and optional extra
38
- * properties used to qualify the lookup.
39
- *
40
- * @param name The _unique_ name of the resulting resource.
41
- * @param id The _unique_ provider ID of the resource to lookup.
42
- * @param state Any extra arguments used during the lookup.
43
- * @param opts Optional settings to control the behavior of the CustomResource.
44
- */
45
- static get(name, id, state, opts) {
46
- return new AccountGrant(name, state, Object.assign(Object.assign({}, opts), { id: id }));
47
- }
48
- /**
49
- * Returns true if the given object is an instance of AccountGrant. This is designed to work even
50
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
- */
52
- static isInstance(obj) {
53
- if (obj === undefined || obj === null) {
54
- return false;
55
- }
56
- return obj['__pulumiType'] === AccountGrant.__pulumiType;
57
- }
58
- constructor(name, argsOrState, opts) {
59
- let resourceInputs = {};
60
- opts = opts || {};
61
- if (opts.id) {
62
- const state = argsOrState;
63
- resourceInputs["enableMultipleGrants"] = state ? state.enableMultipleGrants : undefined;
64
- resourceInputs["privilege"] = state ? state.privilege : undefined;
65
- resourceInputs["roles"] = state ? state.roles : undefined;
66
- resourceInputs["withGrantOption"] = state ? state.withGrantOption : undefined;
67
- }
68
- else {
69
- const args = argsOrState;
70
- resourceInputs["enableMultipleGrants"] = args ? args.enableMultipleGrants : undefined;
71
- resourceInputs["privilege"] = args ? args.privilege : undefined;
72
- resourceInputs["roles"] = args ? args.roles : undefined;
73
- resourceInputs["withGrantOption"] = args ? args.withGrantOption : undefined;
74
- }
75
- opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
76
- super(AccountGrant.__pulumiType, name, resourceInputs, opts);
77
- }
78
- }
79
- exports.AccountGrant = AccountGrant;
80
- /** @internal */
81
- AccountGrant.__pulumiType = 'snowflake:index/accountGrant:AccountGrant';
82
- //# sourceMappingURL=accountGrant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountGrant.js","sourceRoot":"","sources":["../accountGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IACnD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyB,EAAE,IAAmC;QACvH,OAAO,IAAI,YAAY,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnE,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,YAAY,CAAC,YAAY,CAAC;IAC7D,CAAC;IAwBD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,C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