@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
@@ -0,0 +1,289 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * !> **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.
4
+ *
5
+ * > **Note** The snowflake.SecondaryDatabase resource doesn't refresh itself, as the best practice is to use tasks scheduled for a certain interval. Check out the examples to see how to set up the refresh task. For SQL-based replication guide, see the [official documentation](https://docs.snowflake.com/en/user-guide/db-replication-config#replicating-a-database-to-another-account).
6
+ *
7
+ * A secondary database creates a replica of an existing primary database (i.e. a secondary database). For more information about database replication, see [Introduction to database replication across multiple accounts](https://docs.snowflake.com/en/user-guide/db-replication-intro).
8
+ *
9
+ * ## Import
10
+ *
11
+ * ```sh
12
+ * $ pulumi import snowflake:index/secondaryDatabase:SecondaryDatabase example 'secondary_database_name'
13
+ * ```
14
+ */
15
+ export declare class SecondaryDatabase extends pulumi.CustomResource {
16
+ /**
17
+ * Get an existing SecondaryDatabase resource's state with the given name, ID, and optional extra
18
+ * properties used to qualify the lookup.
19
+ *
20
+ * @param name The _unique_ name of the resulting resource.
21
+ * @param id The _unique_ provider ID of the resource to lookup.
22
+ * @param state Any extra arguments used during the lookup.
23
+ * @param opts Optional settings to control the behavior of the CustomResource.
24
+ */
25
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SecondaryDatabaseState, opts?: pulumi.CustomResourceOptions): SecondaryDatabase;
26
+ /**
27
+ * Returns true if the given object is an instance of SecondaryDatabase. This is designed to work even
28
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
29
+ */
30
+ static isInstance(obj: any): obj is SecondaryDatabase;
31
+ /**
32
+ * A fully qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<database_name>"`.
33
+ */
34
+ readonly asReplicaOf: pulumi.Output<string>;
35
+ /**
36
+ * The database parameter that specifies the default catalog to use for Iceberg tables.
37
+ */
38
+ readonly catalog: pulumi.Output<string>;
39
+ /**
40
+ * Specifies a comment for the database.
41
+ */
42
+ readonly comment: pulumi.Output<string | undefined>;
43
+ /**
44
+ * Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. For more details, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
45
+ */
46
+ readonly dataRetentionTimeInDays: pulumi.Output<number>;
47
+ /**
48
+ * Specifies a default collation specification for all schemas and tables added to the database. It can be overridden on schema or table level. For more information, see [collation specification](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
49
+ */
50
+ readonly defaultDdlCollation: pulumi.Output<string>;
51
+ /**
52
+ * If true, enables stdout/stderr fast path logging for anonymous stored procedures.
53
+ */
54
+ readonly enableConsoleOutput: pulumi.Output<boolean>;
55
+ /**
56
+ * The database parameter that specifies the default external volume to use for Iceberg tables.
57
+ */
58
+ readonly externalVolume: pulumi.Output<string>;
59
+ /**
60
+ * Specifies the database as transient. Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
61
+ */
62
+ readonly isTransient: pulumi.Output<boolean | undefined>;
63
+ /**
64
+ * Specifies the severity level of messages that should be ingested and made available in the active event table. Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see [LOG_LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
65
+ */
66
+ readonly logLevel: pulumi.Output<string>;
67
+ /**
68
+ * Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. For a detailed description of this parameter, see [MAX*DATA*EXTENSION*TIME*IN_DAYS](https://docs.snowflake.com/en/sql-reference/parameters.html#label-max-data-extension-time-in-days).
69
+ */
70
+ readonly maxDataExtensionTimeInDays: pulumi.Output<number>;
71
+ /**
72
+ * Specifies the identifier for the database; must be unique for your account. As a best practice for [Database Replication and Failover](https://docs.snowflake.com/en/user-guide/db-replication-intro), it is recommended to give each secondary database the same name as its primary database. This practice supports referencing fully-qualified objects (i.e. '\n\n.\n\n.\n\n') by other objects in the same database, such as querying a fully-qualified table name in a view. If a secondary database has a different name from the primary database, then these object references would break in the secondary database.
73
+ */
74
+ readonly name: pulumi.Output<string>;
75
+ /**
76
+ * If true, the case of quoted identifiers is ignored.
77
+ */
78
+ readonly quotedIdentifiersIgnoreCase: pulumi.Output<boolean>;
79
+ /**
80
+ * Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. You can only set this parameter for tables that use an external Iceberg catalog.
81
+ */
82
+ readonly replaceInvalidCharacters: pulumi.Output<boolean>;
83
+ /**
84
+ * The storage serialization policy for Iceberg tables that use Snowflake as the catalog. Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake.
85
+ */
86
+ readonly storageSerializationPolicy: pulumi.Output<string>;
87
+ /**
88
+ * How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending.
89
+ */
90
+ readonly suspendTaskAfterNumFailures: pulumi.Output<number>;
91
+ /**
92
+ * Maximum automatic retries allowed for a user task.
93
+ */
94
+ readonly taskAutoRetryAttempts: pulumi.Output<number>;
95
+ /**
96
+ * Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
97
+ */
98
+ readonly traceLevel: pulumi.Output<string>;
99
+ /**
100
+ * The initial size of warehouse to use for managed warehouses in the absence of history.
101
+ */
102
+ readonly userTaskManagedInitialWarehouseSize: pulumi.Output<string>;
103
+ /**
104
+ * Minimum amount of time between Triggered Task executions in seconds.
105
+ */
106
+ readonly userTaskMinimumTriggerIntervalInSeconds: pulumi.Output<number>;
107
+ /**
108
+ * User task execution timeout in milliseconds.
109
+ */
110
+ readonly userTaskTimeoutMs: pulumi.Output<number>;
111
+ /**
112
+ * Create a SecondaryDatabase resource with the given unique name, arguments, and options.
113
+ *
114
+ * @param name The _unique_ name of the resource.
115
+ * @param args The arguments to use to populate this resource's properties.
116
+ * @param opts A bag of options that control this resource's behavior.
117
+ */
118
+ constructor(name: string, args: SecondaryDatabaseArgs, opts?: pulumi.CustomResourceOptions);
119
+ }
120
+ /**
121
+ * Input properties used for looking up and filtering SecondaryDatabase resources.
122
+ */
123
+ export interface SecondaryDatabaseState {
124
+ /**
125
+ * A fully qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<database_name>"`.
126
+ */
127
+ asReplicaOf?: pulumi.Input<string>;
128
+ /**
129
+ * The database parameter that specifies the default catalog to use for Iceberg tables.
130
+ */
131
+ catalog?: pulumi.Input<string>;
132
+ /**
133
+ * Specifies a comment for the database.
134
+ */
135
+ comment?: pulumi.Input<string>;
136
+ /**
137
+ * Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. For more details, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
138
+ */
139
+ dataRetentionTimeInDays?: pulumi.Input<number>;
140
+ /**
141
+ * Specifies a default collation specification for all schemas and tables added to the database. It can be overridden on schema or table level. For more information, see [collation specification](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
142
+ */
143
+ defaultDdlCollation?: pulumi.Input<string>;
144
+ /**
145
+ * If true, enables stdout/stderr fast path logging for anonymous stored procedures.
146
+ */
147
+ enableConsoleOutput?: pulumi.Input<boolean>;
148
+ /**
149
+ * The database parameter that specifies the default external volume to use for Iceberg tables.
150
+ */
151
+ externalVolume?: pulumi.Input<string>;
152
+ /**
153
+ * Specifies the database as transient. Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
154
+ */
155
+ isTransient?: pulumi.Input<boolean>;
156
+ /**
157
+ * Specifies the severity level of messages that should be ingested and made available in the active event table. Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see [LOG_LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
158
+ */
159
+ logLevel?: pulumi.Input<string>;
160
+ /**
161
+ * Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. For a detailed description of this parameter, see [MAX*DATA*EXTENSION*TIME*IN_DAYS](https://docs.snowflake.com/en/sql-reference/parameters.html#label-max-data-extension-time-in-days).
162
+ */
163
+ maxDataExtensionTimeInDays?: pulumi.Input<number>;
164
+ /**
165
+ * Specifies the identifier for the database; must be unique for your account. As a best practice for [Database Replication and Failover](https://docs.snowflake.com/en/user-guide/db-replication-intro), it is recommended to give each secondary database the same name as its primary database. This practice supports referencing fully-qualified objects (i.e. '\n\n.\n\n.\n\n') by other objects in the same database, such as querying a fully-qualified table name in a view. If a secondary database has a different name from the primary database, then these object references would break in the secondary database.
166
+ */
167
+ name?: pulumi.Input<string>;
168
+ /**
169
+ * If true, the case of quoted identifiers is ignored.
170
+ */
171
+ quotedIdentifiersIgnoreCase?: pulumi.Input<boolean>;
172
+ /**
173
+ * Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. You can only set this parameter for tables that use an external Iceberg catalog.
174
+ */
175
+ replaceInvalidCharacters?: pulumi.Input<boolean>;
176
+ /**
177
+ * The storage serialization policy for Iceberg tables that use Snowflake as the catalog. Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake.
178
+ */
179
+ storageSerializationPolicy?: pulumi.Input<string>;
180
+ /**
181
+ * How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending.
182
+ */
183
+ suspendTaskAfterNumFailures?: pulumi.Input<number>;
184
+ /**
185
+ * Maximum automatic retries allowed for a user task.
186
+ */
187
+ taskAutoRetryAttempts?: pulumi.Input<number>;
188
+ /**
189
+ * Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
190
+ */
191
+ traceLevel?: pulumi.Input<string>;
192
+ /**
193
+ * The initial size of warehouse to use for managed warehouses in the absence of history.
194
+ */
195
+ userTaskManagedInitialWarehouseSize?: pulumi.Input<string>;
196
+ /**
197
+ * Minimum amount of time between Triggered Task executions in seconds.
198
+ */
199
+ userTaskMinimumTriggerIntervalInSeconds?: pulumi.Input<number>;
200
+ /**
201
+ * User task execution timeout in milliseconds.
202
+ */
203
+ userTaskTimeoutMs?: pulumi.Input<number>;
204
+ }
205
+ /**
206
+ * The set of arguments for constructing a SecondaryDatabase resource.
207
+ */
208
+ export interface SecondaryDatabaseArgs {
209
+ /**
210
+ * A fully qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<database_name>"`.
211
+ */
212
+ asReplicaOf: pulumi.Input<string>;
213
+ /**
214
+ * The database parameter that specifies the default catalog to use for Iceberg tables.
215
+ */
216
+ catalog?: pulumi.Input<string>;
217
+ /**
218
+ * Specifies a comment for the database.
219
+ */
220
+ comment?: pulumi.Input<string>;
221
+ /**
222
+ * Specifies the number of days for which Time Travel actions (CLONE and UNDROP) can be performed on the database, as well as specifying the default Time Travel retention time for all schemas created in the database. For more details, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
223
+ */
224
+ dataRetentionTimeInDays?: pulumi.Input<number>;
225
+ /**
226
+ * Specifies a default collation specification for all schemas and tables added to the database. It can be overridden on schema or table level. For more information, see [collation specification](https://docs.snowflake.com/en/sql-reference/collation#label-collation-specification).
227
+ */
228
+ defaultDdlCollation?: pulumi.Input<string>;
229
+ /**
230
+ * If true, enables stdout/stderr fast path logging for anonymous stored procedures.
231
+ */
232
+ enableConsoleOutput?: pulumi.Input<boolean>;
233
+ /**
234
+ * The database parameter that specifies the default external volume to use for Iceberg tables.
235
+ */
236
+ externalVolume?: pulumi.Input<string>;
237
+ /**
238
+ * Specifies the database as transient. Transient databases do not have a Fail-safe period so they do not incur additional storage costs once they leave Time Travel; however, this means they are also not protected by Fail-safe in the event of a data loss.
239
+ */
240
+ isTransient?: pulumi.Input<boolean>;
241
+ /**
242
+ * Specifies the severity level of messages that should be ingested and made available in the active event table. Valid options are: [TRACE DEBUG INFO WARN ERROR FATAL OFF]. Messages at the specified level (and at more severe levels) are ingested. For more information, see [LOG_LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-log-level).
243
+ */
244
+ logLevel?: pulumi.Input<string>;
245
+ /**
246
+ * Object parameter that specifies the maximum number of days for which Snowflake can extend the data retention period for tables in the database to prevent streams on the tables from becoming stale. For a detailed description of this parameter, see [MAX*DATA*EXTENSION*TIME*IN_DAYS](https://docs.snowflake.com/en/sql-reference/parameters.html#label-max-data-extension-time-in-days).
247
+ */
248
+ maxDataExtensionTimeInDays?: pulumi.Input<number>;
249
+ /**
250
+ * Specifies the identifier for the database; must be unique for your account. As a best practice for [Database Replication and Failover](https://docs.snowflake.com/en/user-guide/db-replication-intro), it is recommended to give each secondary database the same name as its primary database. This practice supports referencing fully-qualified objects (i.e. '\n\n.\n\n.\n\n') by other objects in the same database, such as querying a fully-qualified table name in a view. If a secondary database has a different name from the primary database, then these object references would break in the secondary database.
251
+ */
252
+ name?: pulumi.Input<string>;
253
+ /**
254
+ * If true, the case of quoted identifiers is ignored.
255
+ */
256
+ quotedIdentifiersIgnoreCase?: pulumi.Input<boolean>;
257
+ /**
258
+ * Specifies whether to replace invalid UTF-8 characters with the Unicode replacement character (�) in query results for an Iceberg table. You can only set this parameter for tables that use an external Iceberg catalog.
259
+ */
260
+ replaceInvalidCharacters?: pulumi.Input<boolean>;
261
+ /**
262
+ * The storage serialization policy for Iceberg tables that use Snowflake as the catalog. Valid options are: [COMPATIBLE OPTIMIZED]. COMPATIBLE: Snowflake performs encoding and compression of data files that ensures interoperability with third-party compute engines. OPTIMIZED: Snowflake performs encoding and compression of data files that ensures the best table performance within Snowflake.
263
+ */
264
+ storageSerializationPolicy?: pulumi.Input<string>;
265
+ /**
266
+ * How many times a task must fail in a row before it is automatically suspended. 0 disables auto-suspending.
267
+ */
268
+ suspendTaskAfterNumFailures?: pulumi.Input<number>;
269
+ /**
270
+ * Maximum automatic retries allowed for a user task.
271
+ */
272
+ taskAutoRetryAttempts?: pulumi.Input<number>;
273
+ /**
274
+ * Controls how trace events are ingested into the event table. Valid options are: [ALWAYS ON*EVENT OFF]. For information about levels, see [TRACE*LEVEL](https://docs.snowflake.com/en/sql-reference/parameters.html#label-trace-level).
275
+ */
276
+ traceLevel?: pulumi.Input<string>;
277
+ /**
278
+ * The initial size of warehouse to use for managed warehouses in the absence of history.
279
+ */
280
+ userTaskManagedInitialWarehouseSize?: pulumi.Input<string>;
281
+ /**
282
+ * Minimum amount of time between Triggered Task executions in seconds.
283
+ */
284
+ userTaskMinimumTriggerIntervalInSeconds?: pulumi.Input<number>;
285
+ /**
286
+ * User task execution timeout in milliseconds.
287
+ */
288
+ userTaskTimeoutMs?: pulumi.Input<number>;
289
+ }
@@ -0,0 +1,103 @@
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.SecondaryDatabase = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
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
+ * > **Note** The snowflake.SecondaryDatabase resource doesn't refresh itself, as the best practice is to use tasks scheduled for a certain interval. Check out the examples to see how to set up the refresh task. For SQL-based replication guide, see the [official documentation](https://docs.snowflake.com/en/user-guide/db-replication-config#replicating-a-database-to-another-account).
12
+ *
13
+ * A secondary database creates a replica of an existing primary database (i.e. a secondary database). For more information about database replication, see [Introduction to database replication across multiple accounts](https://docs.snowflake.com/en/user-guide/db-replication-intro).
14
+ *
15
+ * ## Import
16
+ *
17
+ * ```sh
18
+ * $ pulumi import snowflake:index/secondaryDatabase:SecondaryDatabase example 'secondary_database_name'
19
+ * ```
20
+ */
21
+ class SecondaryDatabase extends pulumi.CustomResource {
22
+ /**
23
+ * Get an existing SecondaryDatabase resource's state with the given name, ID, and optional extra
24
+ * properties used to qualify the lookup.
25
+ *
26
+ * @param name The _unique_ name of the resulting resource.
27
+ * @param id The _unique_ provider ID of the resource to lookup.
28
+ * @param state Any extra arguments used during the lookup.
29
+ * @param opts Optional settings to control the behavior of the CustomResource.
30
+ */
31
+ static get(name, id, state, opts) {
32
+ return new SecondaryDatabase(name, state, Object.assign(Object.assign({}, opts), { id: id }));
33
+ }
34
+ /**
35
+ * Returns true if the given object is an instance of SecondaryDatabase. This is designed to work even
36
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
37
+ */
38
+ static isInstance(obj) {
39
+ if (obj === undefined || obj === null) {
40
+ return false;
41
+ }
42
+ return obj['__pulumiType'] === SecondaryDatabase.__pulumiType;
43
+ }
44
+ constructor(name, argsOrState, opts) {
45
+ let resourceInputs = {};
46
+ opts = opts || {};
47
+ if (opts.id) {
48
+ const state = argsOrState;
49
+ resourceInputs["asReplicaOf"] = state ? state.asReplicaOf : undefined;
50
+ resourceInputs["catalog"] = state ? state.catalog : undefined;
51
+ resourceInputs["comment"] = state ? state.comment : undefined;
52
+ resourceInputs["dataRetentionTimeInDays"] = state ? state.dataRetentionTimeInDays : undefined;
53
+ resourceInputs["defaultDdlCollation"] = state ? state.defaultDdlCollation : undefined;
54
+ resourceInputs["enableConsoleOutput"] = state ? state.enableConsoleOutput : undefined;
55
+ resourceInputs["externalVolume"] = state ? state.externalVolume : undefined;
56
+ resourceInputs["isTransient"] = state ? state.isTransient : undefined;
57
+ resourceInputs["logLevel"] = state ? state.logLevel : undefined;
58
+ resourceInputs["maxDataExtensionTimeInDays"] = state ? state.maxDataExtensionTimeInDays : undefined;
59
+ resourceInputs["name"] = state ? state.name : undefined;
60
+ resourceInputs["quotedIdentifiersIgnoreCase"] = state ? state.quotedIdentifiersIgnoreCase : undefined;
61
+ resourceInputs["replaceInvalidCharacters"] = state ? state.replaceInvalidCharacters : undefined;
62
+ resourceInputs["storageSerializationPolicy"] = state ? state.storageSerializationPolicy : undefined;
63
+ resourceInputs["suspendTaskAfterNumFailures"] = state ? state.suspendTaskAfterNumFailures : undefined;
64
+ resourceInputs["taskAutoRetryAttempts"] = state ? state.taskAutoRetryAttempts : undefined;
65
+ resourceInputs["traceLevel"] = state ? state.traceLevel : undefined;
66
+ resourceInputs["userTaskManagedInitialWarehouseSize"] = state ? state.userTaskManagedInitialWarehouseSize : undefined;
67
+ resourceInputs["userTaskMinimumTriggerIntervalInSeconds"] = state ? state.userTaskMinimumTriggerIntervalInSeconds : undefined;
68
+ resourceInputs["userTaskTimeoutMs"] = state ? state.userTaskTimeoutMs : undefined;
69
+ }
70
+ else {
71
+ const args = argsOrState;
72
+ if ((!args || args.asReplicaOf === undefined) && !opts.urn) {
73
+ throw new Error("Missing required property 'asReplicaOf'");
74
+ }
75
+ resourceInputs["asReplicaOf"] = args ? args.asReplicaOf : undefined;
76
+ resourceInputs["catalog"] = args ? args.catalog : undefined;
77
+ resourceInputs["comment"] = args ? args.comment : undefined;
78
+ resourceInputs["dataRetentionTimeInDays"] = args ? args.dataRetentionTimeInDays : undefined;
79
+ resourceInputs["defaultDdlCollation"] = args ? args.defaultDdlCollation : undefined;
80
+ resourceInputs["enableConsoleOutput"] = args ? args.enableConsoleOutput : undefined;
81
+ resourceInputs["externalVolume"] = args ? args.externalVolume : undefined;
82
+ resourceInputs["isTransient"] = args ? args.isTransient : undefined;
83
+ resourceInputs["logLevel"] = args ? args.logLevel : undefined;
84
+ resourceInputs["maxDataExtensionTimeInDays"] = args ? args.maxDataExtensionTimeInDays : undefined;
85
+ resourceInputs["name"] = args ? args.name : undefined;
86
+ resourceInputs["quotedIdentifiersIgnoreCase"] = args ? args.quotedIdentifiersIgnoreCase : undefined;
87
+ resourceInputs["replaceInvalidCharacters"] = args ? args.replaceInvalidCharacters : undefined;
88
+ resourceInputs["storageSerializationPolicy"] = args ? args.storageSerializationPolicy : undefined;
89
+ resourceInputs["suspendTaskAfterNumFailures"] = args ? args.suspendTaskAfterNumFailures : undefined;
90
+ resourceInputs["taskAutoRetryAttempts"] = args ? args.taskAutoRetryAttempts : undefined;
91
+ resourceInputs["traceLevel"] = args ? args.traceLevel : undefined;
92
+ resourceInputs["userTaskManagedInitialWarehouseSize"] = args ? args.userTaskManagedInitialWarehouseSize : undefined;
93
+ resourceInputs["userTaskMinimumTriggerIntervalInSeconds"] = args ? args.userTaskMinimumTriggerIntervalInSeconds : undefined;
94
+ resourceInputs["userTaskTimeoutMs"] = args ? args.userTaskTimeoutMs : undefined;
95
+ }
96
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
97
+ super(SecondaryDatabase.__pulumiType, name, resourceInputs, opts);
98
+ }
99
+ }
100
+ exports.SecondaryDatabase = SecondaryDatabase;
101
+ /** @internal */
102
+ SecondaryDatabase.__pulumiType = 'snowflake:index/secondaryDatabase:SecondaryDatabase';
103
+ //# sourceMappingURL=secondaryDatabase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secondaryDatabase.js","sourceRoot":"","sources":["../secondaryDatabase.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,CAA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;SACnF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AA1KL,8CA2KC;AA7JG,gBAAgB;AACO,8BAAY,GAAG,qDAAqD,CAAC"}
package/sequence.d.ts CHANGED
@@ -6,13 +6,13 @@ import * as pulumi from "@pulumi/pulumi";
6
6
  * import * as pulumi from "@pulumi/pulumi";
7
7
  * import * as snowflake from "@pulumi/snowflake";
8
8
  *
9
- * const database = new snowflake.Database("database", {name: "things"});
9
+ * const test = new snowflake.Database("test", {name: "things"});
10
10
  * const testSchema = new snowflake.Schema("test_schema", {
11
11
  * name: "things",
12
- * database: testDatabase.name,
12
+ * database: test.name,
13
13
  * });
14
14
  * const testSequence = new snowflake.Sequence("test_sequence", {
15
- * database: testDatabase.name,
15
+ * database: test.name,
16
16
  * schema: testSchema.name,
17
17
  * name: "thing_counter",
18
18
  * });
package/sequence.js CHANGED
@@ -12,13 +12,13 @@ const utilities = require("./utilities");
12
12
  * import * as pulumi from "@pulumi/pulumi";
13
13
  * import * as snowflake from "@pulumi/snowflake";
14
14
  *
15
- * const database = new snowflake.Database("database", {name: "things"});
15
+ * const test = new snowflake.Database("test", {name: "things"});
16
16
  * const testSchema = new snowflake.Schema("test_schema", {
17
17
  * name: "things",
18
- * database: testDatabase.name,
18
+ * database: test.name,
19
19
  * });
20
20
  * const testSequence = new snowflake.Sequence("test_sequence", {
21
- * database: testDatabase.name,
21
+ * database: test.name,
22
22
  * schema: testSchema.name,
23
23
  * name: "thing_counter",
24
24
  * });