pulumi-snowflake 0.56.0a1721327760__py3-none-any.whl → 0.57.0__py3-none-any.whl

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 (74) hide show
  1. pulumi_snowflake/__init__.py +78 -209
  2. pulumi_snowflake/_inputs.py +12188 -1362
  3. pulumi_snowflake/_utilities.py +2 -0
  4. pulumi_snowflake/account_role.py +226 -0
  5. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +692 -0
  6. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +645 -0
  7. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +680 -0
  8. pulumi_snowflake/cortex_search_service.py +563 -0
  9. pulumi_snowflake/database.py +854 -232
  10. pulumi_snowflake/database_old.py +556 -0
  11. pulumi_snowflake/external_oauth_integration.py +562 -534
  12. pulumi_snowflake/failover_group.py +2 -2
  13. pulumi_snowflake/get_cortex_search_services.py +197 -0
  14. pulumi_snowflake/get_databases.py +71 -62
  15. pulumi_snowflake/get_network_policies.py +122 -0
  16. pulumi_snowflake/get_roles.py +37 -31
  17. pulumi_snowflake/get_schemas.py +115 -38
  18. pulumi_snowflake/get_security_integrations.py +122 -0
  19. pulumi_snowflake/get_streamlits.py +159 -0
  20. pulumi_snowflake/get_warehouses.py +66 -18
  21. pulumi_snowflake/grant_privileges_to_database_role.py +0 -4
  22. pulumi_snowflake/managed_account.py +7 -7
  23. pulumi_snowflake/network_policy.py +103 -19
  24. pulumi_snowflake/oauth_integration.py +4 -0
  25. pulumi_snowflake/oauth_integration_for_custom_clients.py +940 -0
  26. pulumi_snowflake/oauth_integration_for_partner_applications.py +584 -0
  27. pulumi_snowflake/outputs.py +16178 -2927
  28. pulumi_snowflake/pulumi-plugin.json +1 -1
  29. pulumi_snowflake/role.py +44 -72
  30. pulumi_snowflake/saml2_integration.py +975 -0
  31. pulumi_snowflake/saml_integration.py +4 -0
  32. pulumi_snowflake/schema.py +905 -151
  33. pulumi_snowflake/scim_integration.py +257 -103
  34. pulumi_snowflake/secondary_database.py +1059 -0
  35. pulumi_snowflake/sequence.py +6 -6
  36. pulumi_snowflake/shared_database.py +914 -0
  37. pulumi_snowflake/streamlit.py +650 -0
  38. pulumi_snowflake/table.py +0 -120
  39. pulumi_snowflake/table_constraint.py +2 -2
  40. pulumi_snowflake/tag_association.py +38 -38
  41. pulumi_snowflake/unsafe_execute.py +8 -8
  42. pulumi_snowflake/user_password_policy_attachment.py +32 -0
  43. pulumi_snowflake/warehouse.py +143 -120
  44. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/METADATA +1 -1
  45. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/RECORD +47 -58
  46. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/WHEEL +1 -1
  47. pulumi_snowflake/account_grant.py +0 -319
  48. pulumi_snowflake/database_grant.py +0 -471
  49. pulumi_snowflake/external_table_grant.py +0 -666
  50. pulumi_snowflake/failover_group_grant.py +0 -368
  51. pulumi_snowflake/file_format_grant.py +0 -611
  52. pulumi_snowflake/function_grant.py +0 -721
  53. pulumi_snowflake/grant_privileges_to_role.py +0 -821
  54. pulumi_snowflake/integration_grant.py +0 -416
  55. pulumi_snowflake/masking_policy_grant.py +0 -518
  56. pulumi_snowflake/materialized_view_grant.py +0 -665
  57. pulumi_snowflake/pipe_grant.py +0 -563
  58. pulumi_snowflake/procedure_grant.py +0 -721
  59. pulumi_snowflake/resource_monitor_grant.py +0 -363
  60. pulumi_snowflake/role_grants.py +0 -340
  61. pulumi_snowflake/role_ownership_grant.py +0 -329
  62. pulumi_snowflake/row_access_policy_grant.py +0 -516
  63. pulumi_snowflake/schema_grant.py +0 -603
  64. pulumi_snowflake/sequence_grant.py +0 -611
  65. pulumi_snowflake/stage_grant.py +0 -611
  66. pulumi_snowflake/stream_grant.py +0 -611
  67. pulumi_snowflake/table_grant.py +0 -653
  68. pulumi_snowflake/tag_grant.py +0 -508
  69. pulumi_snowflake/task_grant.py +0 -611
  70. pulumi_snowflake/user_grant.py +0 -370
  71. pulumi_snowflake/user_ownership_grant.py +0 -275
  72. pulumi_snowflake/view_grant.py +0 -685
  73. pulumi_snowflake/warehouse_grant.py +0 -416
  74. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,556 @@
1
+ # coding=utf-8
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
+
5
+ import copy
6
+ import warnings
7
+ import pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from . import _utilities
11
+ from . import outputs
12
+ from ._inputs import *
13
+
14
+ __all__ = ['DatabaseOldArgs', 'DatabaseOld']
15
+
16
+ @pulumi.input_type
17
+ class DatabaseOldArgs:
18
+ def __init__(__self__, *,
19
+ comment: Optional[pulumi.Input[str]] = None,
20
+ data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
21
+ from_database: Optional[pulumi.Input[str]] = None,
22
+ from_replica: Optional[pulumi.Input[str]] = None,
23
+ from_share: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
24
+ is_transient: Optional[pulumi.Input[bool]] = None,
25
+ name: Optional[pulumi.Input[str]] = None,
26
+ replication_configuration: Optional[pulumi.Input['DatabaseOldReplicationConfigurationArgs']] = None):
27
+ """
28
+ The set of arguments for constructing a DatabaseOld resource.
29
+ :param pulumi.Input[str] comment: Specifies a comment for the database.
30
+ :param pulumi.Input[int] data_retention_time_in_days: Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
31
+ :param pulumi.Input[str] from_database: Specify a database to create a clone from.
32
+ :param pulumi.Input[str] from_replica: Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<db_name>"`. An example would be: `"myorg1"."account1"."db1"`
33
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] from_share: Specify a provider and a share in this map to create a database from a share. As of version 0.87.0, the provider field is the account locator.
34
+ :param pulumi.Input[bool] is_transient: Specifies a 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.
35
+ :param pulumi.Input[str] name: Specifies the identifier for the database; must be unique for your account.
36
+ :param pulumi.Input['DatabaseOldReplicationConfigurationArgs'] replication_configuration: When set, specifies the configurations for database replication.
37
+ """
38
+ if comment is not None:
39
+ pulumi.set(__self__, "comment", comment)
40
+ if data_retention_time_in_days is not None:
41
+ pulumi.set(__self__, "data_retention_time_in_days", data_retention_time_in_days)
42
+ if from_database is not None:
43
+ pulumi.set(__self__, "from_database", from_database)
44
+ if from_replica is not None:
45
+ pulumi.set(__self__, "from_replica", from_replica)
46
+ if from_share is not None:
47
+ pulumi.set(__self__, "from_share", from_share)
48
+ if is_transient is not None:
49
+ pulumi.set(__self__, "is_transient", is_transient)
50
+ if name is not None:
51
+ pulumi.set(__self__, "name", name)
52
+ if replication_configuration is not None:
53
+ pulumi.set(__self__, "replication_configuration", replication_configuration)
54
+
55
+ @property
56
+ @pulumi.getter
57
+ def comment(self) -> Optional[pulumi.Input[str]]:
58
+ """
59
+ Specifies a comment for the database.
60
+ """
61
+ return pulumi.get(self, "comment")
62
+
63
+ @comment.setter
64
+ def comment(self, value: Optional[pulumi.Input[str]]):
65
+ pulumi.set(self, "comment", value)
66
+
67
+ @property
68
+ @pulumi.getter(name="dataRetentionTimeInDays")
69
+ def data_retention_time_in_days(self) -> Optional[pulumi.Input[int]]:
70
+ """
71
+ Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
72
+ """
73
+ return pulumi.get(self, "data_retention_time_in_days")
74
+
75
+ @data_retention_time_in_days.setter
76
+ def data_retention_time_in_days(self, value: Optional[pulumi.Input[int]]):
77
+ pulumi.set(self, "data_retention_time_in_days", value)
78
+
79
+ @property
80
+ @pulumi.getter(name="fromDatabase")
81
+ def from_database(self) -> Optional[pulumi.Input[str]]:
82
+ """
83
+ Specify a database to create a clone from.
84
+ """
85
+ return pulumi.get(self, "from_database")
86
+
87
+ @from_database.setter
88
+ def from_database(self, value: Optional[pulumi.Input[str]]):
89
+ pulumi.set(self, "from_database", value)
90
+
91
+ @property
92
+ @pulumi.getter(name="fromReplica")
93
+ def from_replica(self) -> Optional[pulumi.Input[str]]:
94
+ """
95
+ Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<db_name>"`. An example would be: `"myorg1"."account1"."db1"`
96
+ """
97
+ return pulumi.get(self, "from_replica")
98
+
99
+ @from_replica.setter
100
+ def from_replica(self, value: Optional[pulumi.Input[str]]):
101
+ pulumi.set(self, "from_replica", value)
102
+
103
+ @property
104
+ @pulumi.getter(name="fromShare")
105
+ def from_share(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
106
+ """
107
+ Specify a provider and a share in this map to create a database from a share. As of version 0.87.0, the provider field is the account locator.
108
+ """
109
+ return pulumi.get(self, "from_share")
110
+
111
+ @from_share.setter
112
+ def from_share(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
113
+ pulumi.set(self, "from_share", value)
114
+
115
+ @property
116
+ @pulumi.getter(name="isTransient")
117
+ def is_transient(self) -> Optional[pulumi.Input[bool]]:
118
+ """
119
+ Specifies a 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.
120
+ """
121
+ return pulumi.get(self, "is_transient")
122
+
123
+ @is_transient.setter
124
+ def is_transient(self, value: Optional[pulumi.Input[bool]]):
125
+ pulumi.set(self, "is_transient", value)
126
+
127
+ @property
128
+ @pulumi.getter
129
+ def name(self) -> Optional[pulumi.Input[str]]:
130
+ """
131
+ Specifies the identifier for the database; must be unique for your account.
132
+ """
133
+ return pulumi.get(self, "name")
134
+
135
+ @name.setter
136
+ def name(self, value: Optional[pulumi.Input[str]]):
137
+ pulumi.set(self, "name", value)
138
+
139
+ @property
140
+ @pulumi.getter(name="replicationConfiguration")
141
+ def replication_configuration(self) -> Optional[pulumi.Input['DatabaseOldReplicationConfigurationArgs']]:
142
+ """
143
+ When set, specifies the configurations for database replication.
144
+ """
145
+ return pulumi.get(self, "replication_configuration")
146
+
147
+ @replication_configuration.setter
148
+ def replication_configuration(self, value: Optional[pulumi.Input['DatabaseOldReplicationConfigurationArgs']]):
149
+ pulumi.set(self, "replication_configuration", value)
150
+
151
+
152
+ @pulumi.input_type
153
+ class _DatabaseOldState:
154
+ def __init__(__self__, *,
155
+ comment: Optional[pulumi.Input[str]] = None,
156
+ data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
157
+ from_database: Optional[pulumi.Input[str]] = None,
158
+ from_replica: Optional[pulumi.Input[str]] = None,
159
+ from_share: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
160
+ is_transient: Optional[pulumi.Input[bool]] = None,
161
+ name: Optional[pulumi.Input[str]] = None,
162
+ replication_configuration: Optional[pulumi.Input['DatabaseOldReplicationConfigurationArgs']] = None):
163
+ """
164
+ Input properties used for looking up and filtering DatabaseOld resources.
165
+ :param pulumi.Input[str] comment: Specifies a comment for the database.
166
+ :param pulumi.Input[int] data_retention_time_in_days: Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
167
+ :param pulumi.Input[str] from_database: Specify a database to create a clone from.
168
+ :param pulumi.Input[str] from_replica: Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<db_name>"`. An example would be: `"myorg1"."account1"."db1"`
169
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] from_share: Specify a provider and a share in this map to create a database from a share. As of version 0.87.0, the provider field is the account locator.
170
+ :param pulumi.Input[bool] is_transient: Specifies a 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.
171
+ :param pulumi.Input[str] name: Specifies the identifier for the database; must be unique for your account.
172
+ :param pulumi.Input['DatabaseOldReplicationConfigurationArgs'] replication_configuration: When set, specifies the configurations for database replication.
173
+ """
174
+ if comment is not None:
175
+ pulumi.set(__self__, "comment", comment)
176
+ if data_retention_time_in_days is not None:
177
+ pulumi.set(__self__, "data_retention_time_in_days", data_retention_time_in_days)
178
+ if from_database is not None:
179
+ pulumi.set(__self__, "from_database", from_database)
180
+ if from_replica is not None:
181
+ pulumi.set(__self__, "from_replica", from_replica)
182
+ if from_share is not None:
183
+ pulumi.set(__self__, "from_share", from_share)
184
+ if is_transient is not None:
185
+ pulumi.set(__self__, "is_transient", is_transient)
186
+ if name is not None:
187
+ pulumi.set(__self__, "name", name)
188
+ if replication_configuration is not None:
189
+ pulumi.set(__self__, "replication_configuration", replication_configuration)
190
+
191
+ @property
192
+ @pulumi.getter
193
+ def comment(self) -> Optional[pulumi.Input[str]]:
194
+ """
195
+ Specifies a comment for the database.
196
+ """
197
+ return pulumi.get(self, "comment")
198
+
199
+ @comment.setter
200
+ def comment(self, value: Optional[pulumi.Input[str]]):
201
+ pulumi.set(self, "comment", value)
202
+
203
+ @property
204
+ @pulumi.getter(name="dataRetentionTimeInDays")
205
+ def data_retention_time_in_days(self) -> Optional[pulumi.Input[int]]:
206
+ """
207
+ Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
208
+ """
209
+ return pulumi.get(self, "data_retention_time_in_days")
210
+
211
+ @data_retention_time_in_days.setter
212
+ def data_retention_time_in_days(self, value: Optional[pulumi.Input[int]]):
213
+ pulumi.set(self, "data_retention_time_in_days", value)
214
+
215
+ @property
216
+ @pulumi.getter(name="fromDatabase")
217
+ def from_database(self) -> Optional[pulumi.Input[str]]:
218
+ """
219
+ Specify a database to create a clone from.
220
+ """
221
+ return pulumi.get(self, "from_database")
222
+
223
+ @from_database.setter
224
+ def from_database(self, value: Optional[pulumi.Input[str]]):
225
+ pulumi.set(self, "from_database", value)
226
+
227
+ @property
228
+ @pulumi.getter(name="fromReplica")
229
+ def from_replica(self) -> Optional[pulumi.Input[str]]:
230
+ """
231
+ Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<db_name>"`. An example would be: `"myorg1"."account1"."db1"`
232
+ """
233
+ return pulumi.get(self, "from_replica")
234
+
235
+ @from_replica.setter
236
+ def from_replica(self, value: Optional[pulumi.Input[str]]):
237
+ pulumi.set(self, "from_replica", value)
238
+
239
+ @property
240
+ @pulumi.getter(name="fromShare")
241
+ def from_share(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
242
+ """
243
+ Specify a provider and a share in this map to create a database from a share. As of version 0.87.0, the provider field is the account locator.
244
+ """
245
+ return pulumi.get(self, "from_share")
246
+
247
+ @from_share.setter
248
+ def from_share(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
249
+ pulumi.set(self, "from_share", value)
250
+
251
+ @property
252
+ @pulumi.getter(name="isTransient")
253
+ def is_transient(self) -> Optional[pulumi.Input[bool]]:
254
+ """
255
+ Specifies a 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.
256
+ """
257
+ return pulumi.get(self, "is_transient")
258
+
259
+ @is_transient.setter
260
+ def is_transient(self, value: Optional[pulumi.Input[bool]]):
261
+ pulumi.set(self, "is_transient", value)
262
+
263
+ @property
264
+ @pulumi.getter
265
+ def name(self) -> Optional[pulumi.Input[str]]:
266
+ """
267
+ Specifies the identifier for the database; must be unique for your account.
268
+ """
269
+ return pulumi.get(self, "name")
270
+
271
+ @name.setter
272
+ def name(self, value: Optional[pulumi.Input[str]]):
273
+ pulumi.set(self, "name", value)
274
+
275
+ @property
276
+ @pulumi.getter(name="replicationConfiguration")
277
+ def replication_configuration(self) -> Optional[pulumi.Input['DatabaseOldReplicationConfigurationArgs']]:
278
+ """
279
+ When set, specifies the configurations for database replication.
280
+ """
281
+ return pulumi.get(self, "replication_configuration")
282
+
283
+ @replication_configuration.setter
284
+ def replication_configuration(self, value: Optional[pulumi.Input['DatabaseOldReplicationConfigurationArgs']]):
285
+ pulumi.set(self, "replication_configuration", value)
286
+
287
+
288
+ class DatabaseOld(pulumi.CustomResource):
289
+ @overload
290
+ def __init__(__self__,
291
+ resource_name: str,
292
+ opts: Optional[pulumi.ResourceOptions] = None,
293
+ comment: Optional[pulumi.Input[str]] = None,
294
+ data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
295
+ from_database: Optional[pulumi.Input[str]] = None,
296
+ from_replica: Optional[pulumi.Input[str]] = None,
297
+ from_share: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
298
+ is_transient: Optional[pulumi.Input[bool]] = None,
299
+ name: Optional[pulumi.Input[str]] = None,
300
+ replication_configuration: Optional[pulumi.Input[pulumi.InputType['DatabaseOldReplicationConfigurationArgs']]] = None,
301
+ __props__=None):
302
+ """
303
+ > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use Database or SharedDatabase or SecondaryDatabase instead. <deprecation>
304
+
305
+ ## Example Usage
306
+
307
+ ```python
308
+ import pulumi
309
+ import pulumi_snowflake as snowflake
310
+
311
+ simple = snowflake.DatabaseOld("simple",
312
+ name="testing",
313
+ comment="test comment",
314
+ data_retention_time_in_days=3)
315
+ with_replication = snowflake.DatabaseOld("with_replication",
316
+ name="testing_2",
317
+ comment="test comment 2",
318
+ replication_configuration=snowflake.DatabaseOldReplicationConfigurationArgs(
319
+ accounts=[
320
+ "test_account1",
321
+ "test_account_2",
322
+ ],
323
+ ignore_edition_check=True,
324
+ ))
325
+ from_replica = snowflake.DatabaseOld("from_replica",
326
+ name="testing_3",
327
+ comment="test comment",
328
+ data_retention_time_in_days=3,
329
+ from_replica="\\"org1\\".\\"account1\\".\\"primary_db_name\\"")
330
+ from_share = snowflake.DatabaseOld("from_share",
331
+ name="testing_4",
332
+ comment="test comment",
333
+ from_share={
334
+ "provider": "account1_locator",
335
+ "share": "share1",
336
+ })
337
+ ```
338
+
339
+ ## Import
340
+
341
+ ```sh
342
+ $ pulumi import snowflake:index/databaseOld:DatabaseOld example 'database_name'
343
+ ```
344
+
345
+ :param str resource_name: The name of the resource.
346
+ :param pulumi.ResourceOptions opts: Options for the resource.
347
+ :param pulumi.Input[str] comment: Specifies a comment for the database.
348
+ :param pulumi.Input[int] data_retention_time_in_days: Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
349
+ :param pulumi.Input[str] from_database: Specify a database to create a clone from.
350
+ :param pulumi.Input[str] from_replica: Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<db_name>"`. An example would be: `"myorg1"."account1"."db1"`
351
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] from_share: Specify a provider and a share in this map to create a database from a share. As of version 0.87.0, the provider field is the account locator.
352
+ :param pulumi.Input[bool] is_transient: Specifies a 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.
353
+ :param pulumi.Input[str] name: Specifies the identifier for the database; must be unique for your account.
354
+ :param pulumi.Input[pulumi.InputType['DatabaseOldReplicationConfigurationArgs']] replication_configuration: When set, specifies the configurations for database replication.
355
+ """
356
+ ...
357
+ @overload
358
+ def __init__(__self__,
359
+ resource_name: str,
360
+ args: Optional[DatabaseOldArgs] = None,
361
+ opts: Optional[pulumi.ResourceOptions] = None):
362
+ """
363
+ > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use Database or SharedDatabase or SecondaryDatabase instead. <deprecation>
364
+
365
+ ## Example Usage
366
+
367
+ ```python
368
+ import pulumi
369
+ import pulumi_snowflake as snowflake
370
+
371
+ simple = snowflake.DatabaseOld("simple",
372
+ name="testing",
373
+ comment="test comment",
374
+ data_retention_time_in_days=3)
375
+ with_replication = snowflake.DatabaseOld("with_replication",
376
+ name="testing_2",
377
+ comment="test comment 2",
378
+ replication_configuration=snowflake.DatabaseOldReplicationConfigurationArgs(
379
+ accounts=[
380
+ "test_account1",
381
+ "test_account_2",
382
+ ],
383
+ ignore_edition_check=True,
384
+ ))
385
+ from_replica = snowflake.DatabaseOld("from_replica",
386
+ name="testing_3",
387
+ comment="test comment",
388
+ data_retention_time_in_days=3,
389
+ from_replica="\\"org1\\".\\"account1\\".\\"primary_db_name\\"")
390
+ from_share = snowflake.DatabaseOld("from_share",
391
+ name="testing_4",
392
+ comment="test comment",
393
+ from_share={
394
+ "provider": "account1_locator",
395
+ "share": "share1",
396
+ })
397
+ ```
398
+
399
+ ## Import
400
+
401
+ ```sh
402
+ $ pulumi import snowflake:index/databaseOld:DatabaseOld example 'database_name'
403
+ ```
404
+
405
+ :param str resource_name: The name of the resource.
406
+ :param DatabaseOldArgs args: The arguments to use to populate this resource's properties.
407
+ :param pulumi.ResourceOptions opts: Options for the resource.
408
+ """
409
+ ...
410
+ def __init__(__self__, resource_name: str, *args, **kwargs):
411
+ resource_args, opts = _utilities.get_resource_args_opts(DatabaseOldArgs, pulumi.ResourceOptions, *args, **kwargs)
412
+ if resource_args is not None:
413
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
414
+ else:
415
+ __self__._internal_init(resource_name, *args, **kwargs)
416
+
417
+ def _internal_init(__self__,
418
+ resource_name: str,
419
+ opts: Optional[pulumi.ResourceOptions] = None,
420
+ comment: Optional[pulumi.Input[str]] = None,
421
+ data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
422
+ from_database: Optional[pulumi.Input[str]] = None,
423
+ from_replica: Optional[pulumi.Input[str]] = None,
424
+ from_share: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
425
+ is_transient: Optional[pulumi.Input[bool]] = None,
426
+ name: Optional[pulumi.Input[str]] = None,
427
+ replication_configuration: Optional[pulumi.Input[pulumi.InputType['DatabaseOldReplicationConfigurationArgs']]] = None,
428
+ __props__=None):
429
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
430
+ if not isinstance(opts, pulumi.ResourceOptions):
431
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
432
+ if opts.id is None:
433
+ if __props__ is not None:
434
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
435
+ __props__ = DatabaseOldArgs.__new__(DatabaseOldArgs)
436
+
437
+ __props__.__dict__["comment"] = comment
438
+ __props__.__dict__["data_retention_time_in_days"] = data_retention_time_in_days
439
+ __props__.__dict__["from_database"] = from_database
440
+ __props__.__dict__["from_replica"] = from_replica
441
+ __props__.__dict__["from_share"] = from_share
442
+ __props__.__dict__["is_transient"] = is_transient
443
+ __props__.__dict__["name"] = name
444
+ __props__.__dict__["replication_configuration"] = replication_configuration
445
+ super(DatabaseOld, __self__).__init__(
446
+ 'snowflake:index/databaseOld:DatabaseOld',
447
+ resource_name,
448
+ __props__,
449
+ opts)
450
+
451
+ @staticmethod
452
+ def get(resource_name: str,
453
+ id: pulumi.Input[str],
454
+ opts: Optional[pulumi.ResourceOptions] = None,
455
+ comment: Optional[pulumi.Input[str]] = None,
456
+ data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
457
+ from_database: Optional[pulumi.Input[str]] = None,
458
+ from_replica: Optional[pulumi.Input[str]] = None,
459
+ from_share: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
460
+ is_transient: Optional[pulumi.Input[bool]] = None,
461
+ name: Optional[pulumi.Input[str]] = None,
462
+ replication_configuration: Optional[pulumi.Input[pulumi.InputType['DatabaseOldReplicationConfigurationArgs']]] = None) -> 'DatabaseOld':
463
+ """
464
+ Get an existing DatabaseOld resource's state with the given name, id, and optional extra
465
+ properties used to qualify the lookup.
466
+
467
+ :param str resource_name: The unique name of the resulting resource.
468
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
469
+ :param pulumi.ResourceOptions opts: Options for the resource.
470
+ :param pulumi.Input[str] comment: Specifies a comment for the database.
471
+ :param pulumi.Input[int] data_retention_time_in_days: Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
472
+ :param pulumi.Input[str] from_database: Specify a database to create a clone from.
473
+ :param pulumi.Input[str] from_replica: Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<db_name>"`. An example would be: `"myorg1"."account1"."db1"`
474
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] from_share: Specify a provider and a share in this map to create a database from a share. As of version 0.87.0, the provider field is the account locator.
475
+ :param pulumi.Input[bool] is_transient: Specifies a 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.
476
+ :param pulumi.Input[str] name: Specifies the identifier for the database; must be unique for your account.
477
+ :param pulumi.Input[pulumi.InputType['DatabaseOldReplicationConfigurationArgs']] replication_configuration: When set, specifies the configurations for database replication.
478
+ """
479
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
480
+
481
+ __props__ = _DatabaseOldState.__new__(_DatabaseOldState)
482
+
483
+ __props__.__dict__["comment"] = comment
484
+ __props__.__dict__["data_retention_time_in_days"] = data_retention_time_in_days
485
+ __props__.__dict__["from_database"] = from_database
486
+ __props__.__dict__["from_replica"] = from_replica
487
+ __props__.__dict__["from_share"] = from_share
488
+ __props__.__dict__["is_transient"] = is_transient
489
+ __props__.__dict__["name"] = name
490
+ __props__.__dict__["replication_configuration"] = replication_configuration
491
+ return DatabaseOld(resource_name, opts=opts, __props__=__props__)
492
+
493
+ @property
494
+ @pulumi.getter
495
+ def comment(self) -> pulumi.Output[Optional[str]]:
496
+ """
497
+ Specifies a comment for the database.
498
+ """
499
+ return pulumi.get(self, "comment")
500
+
501
+ @property
502
+ @pulumi.getter(name="dataRetentionTimeInDays")
503
+ def data_retention_time_in_days(self) -> pulumi.Output[Optional[int]]:
504
+ """
505
+ Number of days for which Snowflake retains historical data for performing Time Travel actions (SELECT, CLONE, UNDROP) on the object. A value of 0 effectively disables Time Travel for the specified database. Default value for this field is set to -1, which is a fallback to use Snowflake default. For more information, see [Understanding & Using Time Travel](https://docs.snowflake.com/en/user-guide/data-time-travel).
506
+ """
507
+ return pulumi.get(self, "data_retention_time_in_days")
508
+
509
+ @property
510
+ @pulumi.getter(name="fromDatabase")
511
+ def from_database(self) -> pulumi.Output[Optional[str]]:
512
+ """
513
+ Specify a database to create a clone from.
514
+ """
515
+ return pulumi.get(self, "from_database")
516
+
517
+ @property
518
+ @pulumi.getter(name="fromReplica")
519
+ def from_replica(self) -> pulumi.Output[Optional[str]]:
520
+ """
521
+ Specify a fully-qualified path to a database to create a replica from. A fully qualified path follows the format of `"<organization_name>"."<account_name>"."<db_name>"`. An example would be: `"myorg1"."account1"."db1"`
522
+ """
523
+ return pulumi.get(self, "from_replica")
524
+
525
+ @property
526
+ @pulumi.getter(name="fromShare")
527
+ def from_share(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
528
+ """
529
+ Specify a provider and a share in this map to create a database from a share. As of version 0.87.0, the provider field is the account locator.
530
+ """
531
+ return pulumi.get(self, "from_share")
532
+
533
+ @property
534
+ @pulumi.getter(name="isTransient")
535
+ def is_transient(self) -> pulumi.Output[Optional[bool]]:
536
+ """
537
+ Specifies a 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.
538
+ """
539
+ return pulumi.get(self, "is_transient")
540
+
541
+ @property
542
+ @pulumi.getter
543
+ def name(self) -> pulumi.Output[str]:
544
+ """
545
+ Specifies the identifier for the database; must be unique for your account.
546
+ """
547
+ return pulumi.get(self, "name")
548
+
549
+ @property
550
+ @pulumi.getter(name="replicationConfiguration")
551
+ def replication_configuration(self) -> pulumi.Output[Optional['outputs.DatabaseOldReplicationConfiguration']]:
552
+ """
553
+ When set, specifies the configurations for database replication.
554
+ """
555
+ return pulumi.get(self, "replication_configuration")
556
+