@pulumi/snowflake 2.18.0-alpha.1783237205 → 2.18.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 (271) hide show
  1. package/accountParameter.d.ts +3 -3
  2. package/accountSessionPolicyAttachment.d.ts +0 -2
  3. package/accountSessionPolicyAttachment.d.ts.map +1 -1
  4. package/accountSessionPolicyAttachment.js +0 -2
  5. package/accountSessionPolicyAttachment.js.map +1 -1
  6. package/apiIntegration.d.ts +2 -0
  7. package/apiIntegration.d.ts.map +1 -1
  8. package/apiIntegration.js +2 -0
  9. package/apiIntegration.js.map +1 -1
  10. package/apiIntegrationAmazonApiGateway.d.ts +202 -0
  11. package/apiIntegrationAmazonApiGateway.d.ts.map +1 -0
  12. package/apiIntegrationAmazonApiGateway.js +149 -0
  13. package/apiIntegrationAmazonApiGateway.js.map +1 -0
  14. package/apiIntegrationAzureApiManagement.d.ts +202 -0
  15. package/apiIntegrationAzureApiManagement.d.ts.map +1 -0
  16. package/apiIntegrationAzureApiManagement.js +149 -0
  17. package/apiIntegrationAzureApiManagement.js.map +1 -0
  18. package/apiIntegrationExternalMcpDynamicClient.d.ts +175 -0
  19. package/apiIntegrationExternalMcpDynamicClient.d.ts.map +1 -0
  20. package/apiIntegrationExternalMcpDynamicClient.js +137 -0
  21. package/apiIntegrationExternalMcpDynamicClient.js.map +1 -0
  22. package/apiIntegrationExternalMcpOauth2.d.ts +243 -0
  23. package/apiIntegrationExternalMcpOauth2.d.ts.map +1 -0
  24. package/apiIntegrationExternalMcpOauth2.js +166 -0
  25. package/apiIntegrationExternalMcpOauth2.js.map +1 -0
  26. package/apiIntegrationGitRepositoryGithubApp.d.ts +161 -0
  27. package/apiIntegrationGitRepositoryGithubApp.d.ts.map +1 -0
  28. package/apiIntegrationGitRepositoryGithubApp.js +130 -0
  29. package/apiIntegrationGitRepositoryGithubApp.js.map +1 -0
  30. package/apiIntegrationGitRepositoryOauth2.d.ts +269 -0
  31. package/apiIntegrationGitRepositoryOauth2.d.ts.map +1 -0
  32. package/apiIntegrationGitRepositoryOauth2.js +172 -0
  33. package/apiIntegrationGitRepositoryOauth2.js.map +1 -0
  34. package/apiIntegrationGitRepositoryPrivateLink.d.ts +234 -0
  35. package/apiIntegrationGitRepositoryPrivateLink.d.ts.map +1 -0
  36. package/apiIntegrationGitRepositoryPrivateLink.js +156 -0
  37. package/apiIntegrationGitRepositoryPrivateLink.js.map +1 -0
  38. package/apiIntegrationGitRepositoryToken.d.ts +206 -0
  39. package/apiIntegrationGitRepositoryToken.d.ts.map +1 -0
  40. package/apiIntegrationGitRepositoryToken.js +145 -0
  41. package/apiIntegrationGitRepositoryToken.js.map +1 -0
  42. package/apiIntegrationGoogleCloudApiGateway.d.ts +175 -0
  43. package/apiIntegrationGoogleCloudApiGateway.d.ts.map +1 -0
  44. package/apiIntegrationGoogleCloudApiGateway.js +137 -0
  45. package/apiIntegrationGoogleCloudApiGateway.js.map +1 -0
  46. package/authenticationPolicy.d.ts +0 -2
  47. package/authenticationPolicy.d.ts.map +1 -1
  48. package/authenticationPolicy.js +0 -2
  49. package/authenticationPolicy.js.map +1 -1
  50. package/catalogIntegrationAwsGlue.d.ts +0 -2
  51. package/catalogIntegrationAwsGlue.d.ts.map +1 -1
  52. package/catalogIntegrationAwsGlue.js +0 -2
  53. package/catalogIntegrationAwsGlue.js.map +1 -1
  54. package/catalogIntegrationIcebergRest.d.ts +0 -2
  55. package/catalogIntegrationIcebergRest.d.ts.map +1 -1
  56. package/catalogIntegrationIcebergRest.js +0 -2
  57. package/catalogIntegrationIcebergRest.js.map +1 -1
  58. package/catalogIntegrationObjectStorage.d.ts +0 -2
  59. package/catalogIntegrationObjectStorage.d.ts.map +1 -1
  60. package/catalogIntegrationObjectStorage.js +0 -2
  61. package/catalogIntegrationObjectStorage.js.map +1 -1
  62. package/catalogIntegrationOpenCatalog.d.ts +0 -2
  63. package/catalogIntegrationOpenCatalog.d.ts.map +1 -1
  64. package/catalogIntegrationOpenCatalog.js +0 -2
  65. package/catalogIntegrationOpenCatalog.js.map +1 -1
  66. package/computePool.d.ts +3 -3
  67. package/config/vars.d.ts +2 -2
  68. package/cortexAgent.d.ts +3 -3
  69. package/currentAccount.d.ts +60 -2
  70. package/currentAccount.d.ts.map +1 -1
  71. package/currentAccount.js +10 -2
  72. package/currentAccount.js.map +1 -1
  73. package/currentOrganizationAccount.d.ts +60 -2
  74. package/currentOrganizationAccount.d.ts.map +1 -1
  75. package/currentOrganizationAccount.js +10 -2
  76. package/currentOrganizationAccount.js.map +1 -1
  77. package/database.d.ts +12 -0
  78. package/database.d.ts.map +1 -1
  79. package/database.js +2 -0
  80. package/database.js.map +1 -1
  81. package/externalVolume.d.ts +0 -2
  82. package/externalVolume.d.ts.map +1 -1
  83. package/externalVolume.js +0 -2
  84. package/externalVolume.js.map +1 -1
  85. package/functionJava.d.ts +12 -0
  86. package/functionJava.d.ts.map +1 -1
  87. package/functionJava.js +2 -0
  88. package/functionJava.js.map +1 -1
  89. package/functionJavascript.d.ts +12 -0
  90. package/functionJavascript.d.ts.map +1 -1
  91. package/functionJavascript.js +2 -0
  92. package/functionJavascript.js.map +1 -1
  93. package/functionPython.d.ts +12 -0
  94. package/functionPython.d.ts.map +1 -1
  95. package/functionPython.js +2 -0
  96. package/functionPython.js.map +1 -1
  97. package/functionScala.d.ts +12 -0
  98. package/functionScala.d.ts.map +1 -1
  99. package/functionScala.js +2 -0
  100. package/functionScala.js.map +1 -1
  101. package/functionSql.d.ts +12 -0
  102. package/functionSql.d.ts.map +1 -1
  103. package/functionSql.js +2 -0
  104. package/functionSql.js.map +1 -1
  105. package/getApiIntegrations.d.ts +118 -0
  106. package/getApiIntegrations.d.ts.map +1 -0
  107. package/getApiIntegrations.js +115 -0
  108. package/getApiIntegrations.js.map +1 -0
  109. package/getAuthenticationPolicies.d.ts +0 -4
  110. package/getAuthenticationPolicies.d.ts.map +1 -1
  111. package/getAuthenticationPolicies.js +0 -4
  112. package/getAuthenticationPolicies.js.map +1 -1
  113. package/getCatalogIntegrations.d.ts +0 -4
  114. package/getCatalogIntegrations.d.ts.map +1 -1
  115. package/getCatalogIntegrations.js +0 -4
  116. package/getCatalogIntegrations.js.map +1 -1
  117. package/getExternalVolumes.d.ts +0 -4
  118. package/getExternalVolumes.d.ts.map +1 -1
  119. package/getExternalVolumes.js +0 -4
  120. package/getExternalVolumes.js.map +1 -1
  121. package/getNotebooks.d.ts +2 -2
  122. package/getNotebooks.js +2 -2
  123. package/getPasswordPolicies.d.ts +0 -4
  124. package/getPasswordPolicies.d.ts.map +1 -1
  125. package/getPasswordPolicies.js +0 -4
  126. package/getPasswordPolicies.js.map +1 -1
  127. package/getSessionPolicies.d.ts +0 -4
  128. package/getSessionPolicies.d.ts.map +1 -1
  129. package/getSessionPolicies.js +0 -4
  130. package/getSessionPolicies.js.map +1 -1
  131. package/getStorageIntegrations.d.ts +0 -4
  132. package/getStorageIntegrations.d.ts.map +1 -1
  133. package/getStorageIntegrations.js +0 -4
  134. package/getStorageIntegrations.js.map +1 -1
  135. package/getStorageLifecyclePolicies.d.ts +75 -0
  136. package/getStorageLifecyclePolicies.d.ts.map +1 -0
  137. package/getStorageLifecyclePolicies.js +61 -0
  138. package/getStorageLifecyclePolicies.js.map +1 -0
  139. package/grantOwnership.d.ts +0 -2
  140. package/grantOwnership.d.ts.map +1 -1
  141. package/grantOwnership.js +0 -2
  142. package/grantOwnership.js.map +1 -1
  143. package/icebergTableFromDeltaFiles.d.ts +222 -0
  144. package/icebergTableFromDeltaFiles.d.ts.map +1 -0
  145. package/icebergTableFromDeltaFiles.js +148 -0
  146. package/icebergTableFromDeltaFiles.js.map +1 -0
  147. package/icebergTableFromFiles.d.ts +212 -0
  148. package/icebergTableFromFiles.d.ts.map +1 -0
  149. package/icebergTableFromFiles.js +148 -0
  150. package/icebergTableFromFiles.js.map +1 -0
  151. package/index.d.ts +48 -0
  152. package/index.d.ts.map +1 -1
  153. package/index.js +82 -5
  154. package/index.js.map +1 -1
  155. package/legacyServiceUser.d.ts +12 -0
  156. package/legacyServiceUser.d.ts.map +1 -1
  157. package/legacyServiceUser.js +2 -0
  158. package/legacyServiceUser.js.map +1 -1
  159. package/listing.d.ts +3 -3
  160. package/notebook.d.ts +1 -1
  161. package/notebook.js +1 -1
  162. package/package.json +2 -2
  163. package/passwordPolicy.d.ts +0 -2
  164. package/passwordPolicy.d.ts.map +1 -1
  165. package/passwordPolicy.js +0 -2
  166. package/passwordPolicy.js.map +1 -1
  167. package/postgresInstance.d.ts +250 -0
  168. package/postgresInstance.d.ts.map +1 -0
  169. package/postgresInstance.js +165 -0
  170. package/postgresInstance.js.map +1 -0
  171. package/procedureJava.d.ts +12 -0
  172. package/procedureJava.d.ts.map +1 -1
  173. package/procedureJava.js +2 -0
  174. package/procedureJava.js.map +1 -1
  175. package/procedureJavascript.d.ts +12 -0
  176. package/procedureJavascript.d.ts.map +1 -1
  177. package/procedureJavascript.js +2 -0
  178. package/procedureJavascript.js.map +1 -1
  179. package/procedurePython.d.ts +12 -0
  180. package/procedurePython.d.ts.map +1 -1
  181. package/procedurePython.js +2 -0
  182. package/procedurePython.js.map +1 -1
  183. package/procedureScala.d.ts +12 -0
  184. package/procedureScala.d.ts.map +1 -1
  185. package/procedureScala.js +2 -0
  186. package/procedureScala.js.map +1 -1
  187. package/procedureSql.d.ts +12 -0
  188. package/procedureSql.d.ts.map +1 -1
  189. package/procedureSql.js +2 -0
  190. package/procedureSql.js.map +1 -1
  191. package/provider.d.ts +2 -2
  192. package/schema.d.ts +12 -0
  193. package/schema.d.ts.map +1 -1
  194. package/schema.js +2 -0
  195. package/schema.js.map +1 -1
  196. package/secondaryDatabase.d.ts +12 -0
  197. package/secondaryDatabase.d.ts.map +1 -1
  198. package/secondaryDatabase.js +2 -0
  199. package/secondaryDatabase.js.map +1 -1
  200. package/serviceUser.d.ts +12 -0
  201. package/serviceUser.d.ts.map +1 -1
  202. package/serviceUser.js +2 -0
  203. package/serviceUser.js.map +1 -1
  204. package/sessionPolicy.d.ts +0 -2
  205. package/sessionPolicy.d.ts.map +1 -1
  206. package/sessionPolicy.js +0 -2
  207. package/sessionPolicy.js.map +1 -1
  208. package/sharedDatabase.d.ts +12 -0
  209. package/sharedDatabase.d.ts.map +1 -1
  210. package/sharedDatabase.js +2 -0
  211. package/sharedDatabase.js.map +1 -1
  212. package/stageExternalAzure.d.ts +0 -2
  213. package/stageExternalAzure.d.ts.map +1 -1
  214. package/stageExternalAzure.js +0 -2
  215. package/stageExternalAzure.js.map +1 -1
  216. package/stageExternalGcs.d.ts +0 -2
  217. package/stageExternalGcs.d.ts.map +1 -1
  218. package/stageExternalGcs.js +0 -2
  219. package/stageExternalGcs.js.map +1 -1
  220. package/stageExternalS3.d.ts +0 -2
  221. package/stageExternalS3.d.ts.map +1 -1
  222. package/stageExternalS3.js +0 -2
  223. package/stageExternalS3.js.map +1 -1
  224. package/stageExternalS3Compatible.d.ts +0 -2
  225. package/stageExternalS3Compatible.d.ts.map +1 -1
  226. package/stageExternalS3Compatible.js +0 -2
  227. package/stageExternalS3Compatible.js.map +1 -1
  228. package/stageInternal.d.ts +0 -2
  229. package/stageInternal.d.ts.map +1 -1
  230. package/stageInternal.js +0 -2
  231. package/stageInternal.js.map +1 -1
  232. package/storageIntegrationAws.d.ts +0 -2
  233. package/storageIntegrationAws.d.ts.map +1 -1
  234. package/storageIntegrationAws.js +0 -2
  235. package/storageIntegrationAws.js.map +1 -1
  236. package/storageIntegrationAzure.d.ts +0 -2
  237. package/storageIntegrationAzure.d.ts.map +1 -1
  238. package/storageIntegrationAzure.js +0 -2
  239. package/storageIntegrationAzure.js.map +1 -1
  240. package/storageIntegrationGcs.d.ts +0 -2
  241. package/storageIntegrationGcs.d.ts.map +1 -1
  242. package/storageIntegrationGcs.js +0 -2
  243. package/storageIntegrationGcs.js.map +1 -1
  244. package/storageLifecyclePolicy.d.ts +214 -0
  245. package/storageLifecyclePolicy.d.ts.map +1 -0
  246. package/storageLifecyclePolicy.js +159 -0
  247. package/storageLifecyclePolicy.js.map +1 -0
  248. package/tableStorageLifecyclePolicyAttachment.d.ts +154 -0
  249. package/tableStorageLifecyclePolicyAttachment.d.ts.map +1 -0
  250. package/tableStorageLifecyclePolicyAttachment.js +159 -0
  251. package/tableStorageLifecyclePolicyAttachment.js.map +1 -0
  252. package/tagAssociation.d.ts +5 -3
  253. package/tagAssociation.d.ts.map +1 -1
  254. package/tagAssociation.js +2 -0
  255. package/tagAssociation.js.map +1 -1
  256. package/task.d.ts +15 -3
  257. package/task.d.ts.map +1 -1
  258. package/task.js +2 -0
  259. package/task.js.map +1 -1
  260. package/types/input.d.ts +546 -6
  261. package/types/input.d.ts.map +1 -1
  262. package/types/output.d.ts +647 -6
  263. package/types/output.d.ts.map +1 -1
  264. package/user.d.ts +12 -0
  265. package/user.d.ts.map +1 -1
  266. package/user.js +2 -0
  267. package/user.js.map +1 -1
  268. package/userSessionPolicyAttachment.d.ts +0 -2
  269. package/userSessionPolicyAttachment.d.ts.map +1 -1
  270. package/userSessionPolicyAttachment.js +0 -2
  271. package/userSessionPolicyAttachment.js.map +1 -1
@@ -2,8 +2,6 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "./types/input";
3
3
  import * as outputs from "./types/output";
4
4
  /**
5
- * > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
6
- *
7
5
  * > **Note** External changes to integration `category`, `type`, or `storageProvider` are not currently supported. They will be handled in the following versions of the provider which may still affect this resource.
8
6
  *
9
7
  * Resource used to manage GCS storage integration objects. For more information, check [storage integration documentation](https://docs.snowflake.com/en/sql-reference/sql/create-storage-integration).
@@ -1 +1 @@
1
- {"version":3,"file":"storageIntegrationGcs.d.ts","sourceRoot":"","sources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IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,+BAA+B,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC/F;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAC3E;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC9E;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACtC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC9D;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAC9E"}
@@ -29,8 +29,6 @@ exports.StorageIntegrationGcs = void 0;
29
29
  const pulumi = __importStar(require("@pulumi/pulumi"));
30
30
  const utilities = __importStar(require("./utilities"));
31
31
  /**
32
- * > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
33
- *
34
32
  * > **Note** External changes to integration `category`, `type`, or `storageProvider` are not currently supported. They will be handled in the following versions of the provider which may still affect this resource.
35
33
  *
36
34
  * Resource used to manage GCS storage integration objects. For more information, check [storage integration documentation](https://docs.snowflake.com/en/sql-reference/sql/create-storage-integration).
@@ -1 +1 @@
1
- {"version":3,"file":"storageIntegrationGcs.js","sourceRoot":"","sources":["../storageIntegrationGcs.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,6DAA6D,CAAC;IAEpG;;;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,qBAAqB,CAAC,YAAY,CAAC;IACtE,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAoE,EAAE,IAAmC;QAC/H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAqD,CAAC;YACpE,cAAc,CAAC,SAAS,CAAC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AAO,CAAC;YACtD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,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,qBAAqB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;;AArGL,sDAsGC"}
@@ -0,0 +1,214 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
6
+ *
7
+ * Resource used to manage storage lifecycle policy objects. For more information, check [storage lifecycle policy documentation](https://docs.snowflake.com/en/sql-reference/sql/create-storage-lifecycle-policy).
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
12
+ * <!-- TODO(SNOW-1634854): include an example showing both methods-->
13
+ *
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as snowflake from "@pulumi/snowflake";
17
+ *
18
+ * //# Minimal
19
+ * const basic = new snowflake.StorageLifecyclePolicy("basic", {
20
+ * database: "database_name",
21
+ * schema: "schema_name",
22
+ * name: "storage_lifecycle_policy_name",
23
+ * arguments: [{
24
+ * name: "VAL",
25
+ * type: "VARCHAR",
26
+ * }],
27
+ * body: "LENGTH(VAL) > 0",
28
+ * });
29
+ * //# Complete
30
+ * const complete = new snowflake.StorageLifecyclePolicy("complete", {
31
+ * database: "database_name",
32
+ * schema: "schema_name",
33
+ * name: "storage_lifecycle_policy_name",
34
+ * arguments: [
35
+ * {
36
+ * name: "VAL",
37
+ * type: "VARCHAR",
38
+ * },
39
+ * {
40
+ * name: "CREATED_AT",
41
+ * type: "TIMESTAMP_NTZ",
42
+ * },
43
+ * ],
44
+ * body: "LENGTH(VAL) > 0",
45
+ * archiveTier: "COLD",
46
+ * archiveForDays: 365,
47
+ * comment: "My storage lifecycle policy",
48
+ * });
49
+ * ```
50
+ *
51
+ * > **Note** If a field has a default value, it is shown next to the type in the schema.
52
+ *
53
+ * ## Import
54
+ *
55
+ * ```sh
56
+ * $ pulumi import snowflake:index/storageLifecyclePolicy:StorageLifecyclePolicy example '"<database_name>"."<schema_name>"."<storage_lifecycle_policy_name>"'
57
+ * ```
58
+ */
59
+ export declare class StorageLifecyclePolicy extends pulumi.CustomResource {
60
+ /**
61
+ * Get an existing StorageLifecyclePolicy resource's state with the given name, ID, and optional extra
62
+ * properties used to qualify the lookup.
63
+ *
64
+ * @param name The _unique_ name of the resulting resource.
65
+ * @param id The _unique_ provider ID of the resource to lookup.
66
+ * @param state Any extra arguments used during the lookup.
67
+ * @param opts Optional settings to control the behavior of the CustomResource.
68
+ */
69
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: StorageLifecyclePolicyState, opts?: pulumi.CustomResourceOptions): StorageLifecyclePolicy;
70
+ /**
71
+ * Returns true if the given object is an instance of StorageLifecyclePolicy. This is designed to work even
72
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
73
+ */
74
+ static isInstance(obj: any): obj is StorageLifecyclePolicy;
75
+ /**
76
+ * Specifies the number of days to keep rows that match the policy expression in archive storage. If set, Snowflake moves the data into archive storage according to the value you select for archive_tier. If unset, Snowflake expires the rows from the table without archiving the data.
77
+ */
78
+ readonly archiveForDays: pulumi.Output<number | undefined>;
79
+ /**
80
+ * Specifies the type of storage tier to use for archiving rows. After you set the ARCHIVE_TIER for a policy, you can’t modify it. If you don’t specify this parameter, the policy is an expiration policy that deletes rows without archiving them. Valid values are (case-insensitive): `COOL` | `COLD`.
81
+ */
82
+ readonly archiveTier: pulumi.Output<string | undefined>;
83
+ /**
84
+ * List of the arguments for the storage lifecycle policy. A signature specifies a set of attributes that must be considered to determine whether the row is ready for expiration.
85
+ */
86
+ readonly arguments: pulumi.Output<outputs.StorageLifecyclePolicyArgument[]>;
87
+ /**
88
+ * Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
89
+ */
90
+ readonly body: pulumi.Output<string>;
91
+ /**
92
+ * Specifies a comment for the storage lifecycle policy.
93
+ */
94
+ readonly comment: pulumi.Output<string | undefined>;
95
+ /**
96
+ * The database in which to create the storage lifecycle policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
97
+ */
98
+ readonly database: pulumi.Output<string>;
99
+ /**
100
+ * Outputs the result of `DESCRIBE STORAGE LIFECYCLE POLICY` for the given storage lifecycle policy.
101
+ */
102
+ readonly describeOutputs: pulumi.Output<outputs.StorageLifecyclePolicyDescribeOutput[]>;
103
+ /**
104
+ * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
105
+ */
106
+ readonly fullyQualifiedName: pulumi.Output<string>;
107
+ /**
108
+ * Specifies the identifier for the storage lifecycle policy; must be unique for the database and schema in which the storage lifecycle policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
109
+ */
110
+ readonly name: pulumi.Output<string>;
111
+ /**
112
+ * The schema in which to create the storage lifecycle policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
113
+ */
114
+ readonly schema: pulumi.Output<string>;
115
+ /**
116
+ * Outputs the result of `SHOW STORAGE LIFECYCLE POLICIES` for the given storage lifecycle policy.
117
+ */
118
+ readonly showOutputs: pulumi.Output<outputs.StorageLifecyclePolicyShowOutput[]>;
119
+ /**
120
+ * Create a StorageLifecyclePolicy resource with the given unique name, arguments, and options.
121
+ *
122
+ * @param name The _unique_ name of the resource.
123
+ * @param args The arguments to use to populate this resource's properties.
124
+ * @param opts A bag of options that control this resource's behavior.
125
+ */
126
+ constructor(name: string, args: StorageLifecyclePolicyArgs, opts?: pulumi.CustomResourceOptions);
127
+ }
128
+ /**
129
+ * Input properties used for looking up and filtering StorageLifecyclePolicy resources.
130
+ */
131
+ export interface StorageLifecyclePolicyState {
132
+ /**
133
+ * Specifies the number of days to keep rows that match the policy expression in archive storage. If set, Snowflake moves the data into archive storage according to the value you select for archive_tier. If unset, Snowflake expires the rows from the table without archiving the data.
134
+ */
135
+ archiveForDays?: pulumi.Input<number | undefined>;
136
+ /**
137
+ * Specifies the type of storage tier to use for archiving rows. After you set the ARCHIVE_TIER for a policy, you can’t modify it. If you don’t specify this parameter, the policy is an expiration policy that deletes rows without archiving them. Valid values are (case-insensitive): `COOL` | `COLD`.
138
+ */
139
+ archiveTier?: pulumi.Input<string | undefined>;
140
+ /**
141
+ * List of the arguments for the storage lifecycle policy. A signature specifies a set of attributes that must be considered to determine whether the row is ready for expiration.
142
+ */
143
+ arguments?: pulumi.Input<pulumi.Input<inputs.StorageLifecyclePolicyArgument>[] | undefined>;
144
+ /**
145
+ * Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
146
+ */
147
+ body?: pulumi.Input<string | undefined>;
148
+ /**
149
+ * Specifies a comment for the storage lifecycle policy.
150
+ */
151
+ comment?: pulumi.Input<string | undefined>;
152
+ /**
153
+ * The database in which to create the storage lifecycle policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
154
+ */
155
+ database?: pulumi.Input<string | undefined>;
156
+ /**
157
+ * Outputs the result of `DESCRIBE STORAGE LIFECYCLE POLICY` for the given storage lifecycle policy.
158
+ */
159
+ describeOutputs?: pulumi.Input<pulumi.Input<inputs.StorageLifecyclePolicyDescribeOutput>[] | undefined>;
160
+ /**
161
+ * Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
162
+ */
163
+ fullyQualifiedName?: pulumi.Input<string | undefined>;
164
+ /**
165
+ * Specifies the identifier for the storage lifecycle policy; must be unique for the database and schema in which the storage lifecycle policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
166
+ */
167
+ name?: pulumi.Input<string | undefined>;
168
+ /**
169
+ * The schema in which to create the storage lifecycle policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
170
+ */
171
+ schema?: pulumi.Input<string | undefined>;
172
+ /**
173
+ * Outputs the result of `SHOW STORAGE LIFECYCLE POLICIES` for the given storage lifecycle policy.
174
+ */
175
+ showOutputs?: pulumi.Input<pulumi.Input<inputs.StorageLifecyclePolicyShowOutput>[] | undefined>;
176
+ }
177
+ /**
178
+ * The set of arguments for constructing a StorageLifecyclePolicy resource.
179
+ */
180
+ export interface StorageLifecyclePolicyArgs {
181
+ /**
182
+ * Specifies the number of days to keep rows that match the policy expression in archive storage. If set, Snowflake moves the data into archive storage according to the value you select for archive_tier. If unset, Snowflake expires the rows from the table without archiving the data.
183
+ */
184
+ archiveForDays?: pulumi.Input<number | undefined>;
185
+ /**
186
+ * Specifies the type of storage tier to use for archiving rows. After you set the ARCHIVE_TIER for a policy, you can’t modify it. If you don’t specify this parameter, the policy is an expiration policy that deletes rows without archiving them. Valid values are (case-insensitive): `COOL` | `COLD`.
187
+ */
188
+ archiveTier?: pulumi.Input<string | undefined>;
189
+ /**
190
+ * List of the arguments for the storage lifecycle policy. A signature specifies a set of attributes that must be considered to determine whether the row is ready for expiration.
191
+ */
192
+ arguments: pulumi.Input<pulumi.Input<inputs.StorageLifecyclePolicyArgument>[]>;
193
+ /**
194
+ * Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
195
+ */
196
+ body: pulumi.Input<string>;
197
+ /**
198
+ * Specifies a comment for the storage lifecycle policy.
199
+ */
200
+ comment?: pulumi.Input<string | undefined>;
201
+ /**
202
+ * The database in which to create the storage lifecycle policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
203
+ */
204
+ database: pulumi.Input<string>;
205
+ /**
206
+ * Specifies the identifier for the storage lifecycle policy; must be unique for the database and schema in which the storage lifecycle policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
207
+ */
208
+ name?: pulumi.Input<string | undefined>;
209
+ /**
210
+ * The schema in which to create the storage lifecycle policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
211
+ */
212
+ schema: pulumi.Input<string>;
213
+ }
214
+ //# sourceMappingURL=storageLifecyclePolicy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageLifecyclePolicy.d.ts","sourceRoot":"","sources":["../storageLifecyclePolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,qBAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,2BAA2B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,sBAAsB;IAO9J;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,sBAAsB;IAOjE;;OAEG;IACH,SAA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,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,8BAA8B,CAAC,EAAE,CAAC,CAAC;IAC/E;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC3C;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC"}
@@ -0,0 +1,159 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.StorageLifecyclePolicy = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
33
+ *
34
+ * Resource used to manage storage lifecycle policy objects. For more information, check [storage lifecycle policy documentation](https://docs.snowflake.com/en/sql-reference/sql/create-storage-lifecycle-policy).
35
+ *
36
+ * ## Example Usage
37
+ *
38
+ * > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
39
+ * <!-- TODO(SNOW-1634854): include an example showing both methods-->
40
+ *
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as snowflake from "@pulumi/snowflake";
44
+ *
45
+ * //# Minimal
46
+ * const basic = new snowflake.StorageLifecyclePolicy("basic", {
47
+ * database: "database_name",
48
+ * schema: "schema_name",
49
+ * name: "storage_lifecycle_policy_name",
50
+ * arguments: [{
51
+ * name: "VAL",
52
+ * type: "VARCHAR",
53
+ * }],
54
+ * body: "LENGTH(VAL) > 0",
55
+ * });
56
+ * //# Complete
57
+ * const complete = new snowflake.StorageLifecyclePolicy("complete", {
58
+ * database: "database_name",
59
+ * schema: "schema_name",
60
+ * name: "storage_lifecycle_policy_name",
61
+ * arguments: [
62
+ * {
63
+ * name: "VAL",
64
+ * type: "VARCHAR",
65
+ * },
66
+ * {
67
+ * name: "CREATED_AT",
68
+ * type: "TIMESTAMP_NTZ",
69
+ * },
70
+ * ],
71
+ * body: "LENGTH(VAL) > 0",
72
+ * archiveTier: "COLD",
73
+ * archiveForDays: 365,
74
+ * comment: "My storage lifecycle policy",
75
+ * });
76
+ * ```
77
+ *
78
+ * > **Note** If a field has a default value, it is shown next to the type in the schema.
79
+ *
80
+ * ## Import
81
+ *
82
+ * ```sh
83
+ * $ pulumi import snowflake:index/storageLifecyclePolicy:StorageLifecyclePolicy example '"<database_name>"."<schema_name>"."<storage_lifecycle_policy_name>"'
84
+ * ```
85
+ */
86
+ class StorageLifecyclePolicy extends pulumi.CustomResource {
87
+ /**
88
+ * Get an existing StorageLifecyclePolicy resource's state with the given name, ID, and optional extra
89
+ * properties used to qualify the lookup.
90
+ *
91
+ * @param name The _unique_ name of the resulting resource.
92
+ * @param id The _unique_ provider ID of the resource to lookup.
93
+ * @param state Any extra arguments used during the lookup.
94
+ * @param opts Optional settings to control the behavior of the CustomResource.
95
+ */
96
+ static get(name, id, state, opts) {
97
+ return new StorageLifecyclePolicy(name, state, { ...opts, id: id });
98
+ }
99
+ /** @internal */
100
+ static __pulumiType = 'snowflake:index/storageLifecyclePolicy:StorageLifecyclePolicy';
101
+ /**
102
+ * Returns true if the given object is an instance of StorageLifecyclePolicy. This is designed to work even
103
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
104
+ */
105
+ static isInstance(obj) {
106
+ if (obj === undefined || obj === null) {
107
+ return false;
108
+ }
109
+ return obj['__pulumiType'] === StorageLifecyclePolicy.__pulumiType;
110
+ }
111
+ constructor(name, argsOrState, opts) {
112
+ let resourceInputs = {};
113
+ opts = opts || {};
114
+ if (opts.id) {
115
+ const state = argsOrState;
116
+ resourceInputs["archiveForDays"] = state?.archiveForDays;
117
+ resourceInputs["archiveTier"] = state?.archiveTier;
118
+ resourceInputs["arguments"] = state?.arguments;
119
+ resourceInputs["body"] = state?.body;
120
+ resourceInputs["comment"] = state?.comment;
121
+ resourceInputs["database"] = state?.database;
122
+ resourceInputs["describeOutputs"] = state?.describeOutputs;
123
+ resourceInputs["fullyQualifiedName"] = state?.fullyQualifiedName;
124
+ resourceInputs["name"] = state?.name;
125
+ resourceInputs["schema"] = state?.schema;
126
+ resourceInputs["showOutputs"] = state?.showOutputs;
127
+ }
128
+ else {
129
+ const args = argsOrState;
130
+ if (args?.arguments === undefined && !opts.urn) {
131
+ throw new Error("Missing required property 'arguments'");
132
+ }
133
+ if (args?.body === undefined && !opts.urn) {
134
+ throw new Error("Missing required property 'body'");
135
+ }
136
+ if (args?.database === undefined && !opts.urn) {
137
+ throw new Error("Missing required property 'database'");
138
+ }
139
+ if (args?.schema === undefined && !opts.urn) {
140
+ throw new Error("Missing required property 'schema'");
141
+ }
142
+ resourceInputs["archiveForDays"] = args?.archiveForDays;
143
+ resourceInputs["archiveTier"] = args?.archiveTier;
144
+ resourceInputs["arguments"] = args?.arguments;
145
+ resourceInputs["body"] = args?.body;
146
+ resourceInputs["comment"] = args?.comment;
147
+ resourceInputs["database"] = args?.database;
148
+ resourceInputs["name"] = args?.name;
149
+ resourceInputs["schema"] = args?.schema;
150
+ resourceInputs["describeOutputs"] = undefined /*out*/;
151
+ resourceInputs["fullyQualifiedName"] = undefined /*out*/;
152
+ resourceInputs["showOutputs"] = undefined /*out*/;
153
+ }
154
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
155
+ super(StorageLifecyclePolicy.__pulumiType, name, resourceInputs, opts);
156
+ }
157
+ }
158
+ exports.StorageLifecyclePolicy = StorageLifecyclePolicy;
159
+ //# sourceMappingURL=storageLifecyclePolicy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storageLifecyclePolicy.js","sourceRoot":"","sources":["../storageLifecyclePolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,MAAa,sBAAuB,SAAQ,MA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AE,MAAM,CAAC;YACxC,cAAc,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACtD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACzD,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,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AA7HL,wDA8HC"}
@@ -0,0 +1,154 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * > **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `previewFeaturesEnabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
4
+ *
5
+ * > **Required warehouse** For this resource, the provider uses [policy references](https://docs.snowflake.com/en/sql-reference/functions/policy_references) to get information about policies attached to tables. This function requires a warehouse in the connection. Please, make sure you have either set a `DEFAULT_WAREHOUSE` for the user, or specified a warehouse in the provider configuration.
6
+ *
7
+ * Specifies the storage lifecycle policy to attach to a table or a dynamic table.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as snowflake from "@pulumi/snowflake";
14
+ *
15
+ * const slp = new snowflake.StorageLifecyclePolicy("slp", {
16
+ * database: "prod",
17
+ * schema: "security",
18
+ * name: "default_storage_lifecycle_policy",
19
+ * arguments: [{
20
+ * name: "VAL",
21
+ * type: "VARCHAR",
22
+ * }],
23
+ * body: "LENGTH(VAL) > 0",
24
+ * });
25
+ * const table = new snowflake.Table("table", {
26
+ * database: "prod",
27
+ * schema: "security",
28
+ * name: "my_table",
29
+ * columns: [{
30
+ * name: "VAL",
31
+ * type: "VARCHAR",
32
+ * }],
33
+ * });
34
+ * const dynamicTable = new snowflake.DynamicTable("dynamic_table", {
35
+ * database: "prod",
36
+ * schema: "security",
37
+ * name: "my_dynamic_table",
38
+ * targetLag: {
39
+ * maximumDuration: "20 minutes",
40
+ * },
41
+ * warehouse: "my_warehouse",
42
+ * query: "SELECT VAL FROM \"prod\".\"security\".\"my_table\"",
43
+ * });
44
+ * // Attaching a storage lifecycle policy to a table
45
+ * const tableAttachment = new snowflake.TableStorageLifecyclePolicyAttachment("table_attachment", {
46
+ * tableName: table.fullyQualifiedName,
47
+ * tableType: "TABLE",
48
+ * storageLifecyclePolicyName: slp.fullyQualifiedName,
49
+ * ons: ["VAL"],
50
+ * });
51
+ * // Attaching a storage lifecycle policy to a dynamic table
52
+ * const dynamicTableAttachment = new snowflake.TableStorageLifecyclePolicyAttachment("dynamic_table_attachment", {
53
+ * tableName: dynamicTable.fullyQualifiedName,
54
+ * tableType: "DYNAMIC_TABLE",
55
+ * storageLifecyclePolicyName: slp.fullyQualifiedName,
56
+ * ons: ["VAL"],
57
+ * });
58
+ * ```
59
+ *
60
+ * > **Note** Instead of using fully_qualified_name, you can reference objects managed outside Terraform by constructing a correct ID, consult identifiers guide.
61
+ * <!-- TODO(SNOW-1634854): include an example showing both methods-->
62
+ *
63
+ * > **Note** If a field has a default value, it is shown next to the type in the schema.
64
+ *
65
+ * ## Import
66
+ *
67
+ * ```sh
68
+ * $ pulumi import snowflake:index/tableStorageLifecyclePolicyAttachment:TableStorageLifecyclePolicyAttachment example '"<database_name>"."<schema_name>"."<table_name>"|"<database_name>"."<schema_name>"."<storage_lifecycle_policy_name>"'
69
+ * ```
70
+ */
71
+ export declare class TableStorageLifecyclePolicyAttachment extends pulumi.CustomResource {
72
+ /**
73
+ * Get an existing TableStorageLifecyclePolicyAttachment resource's state with the given name, ID, and optional extra
74
+ * properties used to qualify the lookup.
75
+ *
76
+ * @param name The _unique_ name of the resulting resource.
77
+ * @param id The _unique_ provider ID of the resource to lookup.
78
+ * @param state Any extra arguments used during the lookup.
79
+ * @param opts Optional settings to control the behavior of the CustomResource.
80
+ */
81
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TableStorageLifecyclePolicyAttachmentState, opts?: pulumi.CustomResourceOptions): TableStorageLifecyclePolicyAttachment;
82
+ /**
83
+ * Returns true if the given object is an instance of TableStorageLifecyclePolicyAttachment. 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: any): obj is TableStorageLifecyclePolicyAttachment;
87
+ /**
88
+ * List of the columns the storage lifecycle policy applies to.
89
+ */
90
+ readonly ons: pulumi.Output<string[]>;
91
+ /**
92
+ * Fully qualified name of the storage lifecycle policy to attach to the table. Due to technical limitations (read more here), avoid using pipes (`|`).
93
+ */
94
+ readonly storageLifecyclePolicyName: pulumi.Output<string>;
95
+ /**
96
+ * Fully qualified name of the table (or dynamic table) the storage lifecycle policy is attached to. Due to technical limitations (read more here), avoid using pipes (`|`).
97
+ */
98
+ readonly tableName: pulumi.Output<string>;
99
+ /**
100
+ * Specifies the type of the table referenced in `tableName`. Valid values are (case-insensitive): `TABLE` | `DYNAMIC_TABLE`.
101
+ */
102
+ readonly tableType: pulumi.Output<string>;
103
+ /**
104
+ * Create a TableStorageLifecyclePolicyAttachment 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: TableStorageLifecyclePolicyAttachmentArgs, opts?: pulumi.CustomResourceOptions);
111
+ }
112
+ /**
113
+ * Input properties used for looking up and filtering TableStorageLifecyclePolicyAttachment resources.
114
+ */
115
+ export interface TableStorageLifecyclePolicyAttachmentState {
116
+ /**
117
+ * List of the columns the storage lifecycle policy applies to.
118
+ */
119
+ ons?: pulumi.Input<pulumi.Input<string>[] | undefined>;
120
+ /**
121
+ * Fully qualified name of the storage lifecycle policy to attach to the table. Due to technical limitations (read more here), avoid using pipes (`|`).
122
+ */
123
+ storageLifecyclePolicyName?: pulumi.Input<string | undefined>;
124
+ /**
125
+ * Fully qualified name of the table (or dynamic table) the storage lifecycle policy is attached to. Due to technical limitations (read more here), avoid using pipes (`|`).
126
+ */
127
+ tableName?: pulumi.Input<string | undefined>;
128
+ /**
129
+ * Specifies the type of the table referenced in `tableName`. Valid values are (case-insensitive): `TABLE` | `DYNAMIC_TABLE`.
130
+ */
131
+ tableType?: pulumi.Input<string | undefined>;
132
+ }
133
+ /**
134
+ * The set of arguments for constructing a TableStorageLifecyclePolicyAttachment resource.
135
+ */
136
+ export interface TableStorageLifecyclePolicyAttachmentArgs {
137
+ /**
138
+ * List of the columns the storage lifecycle policy applies to.
139
+ */
140
+ ons: pulumi.Input<pulumi.Input<string>[]>;
141
+ /**
142
+ * Fully qualified name of the storage lifecycle policy to attach to the table. Due to technical limitations (read more here), avoid using pipes (`|`).
143
+ */
144
+ storageLifecyclePolicyName: pulumi.Input<string>;
145
+ /**
146
+ * Fully qualified name of the table (or dynamic table) the storage lifecycle policy is attached to. Due to technical limitations (read more here), avoid using pipes (`|`).
147
+ */
148
+ tableName: pulumi.Input<string>;
149
+ /**
150
+ * Specifies the type of the table referenced in `tableName`. Valid values are (case-insensitive): `TABLE` | `DYNAMIC_TABLE`.
151
+ */
152
+ tableType: pulumi.Input<string>;
153
+ }
154
+ //# sourceMappingURL=tableStorageLifecyclePolicyAttachment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tableStorageLifecyclePolicyAttachment.d.ts","sourceRoot":"","sources":["../tableStorageLifecyclePolicyAttachment.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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