pulumi-snowflake 0.58.0__py3-none-any.whl → 0.58.0a1722527984__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.
- pulumi_snowflake/_inputs.py +125 -5857
- pulumi_snowflake/account.py +50 -28
- pulumi_snowflake/account_parameter.py +28 -0
- pulumi_snowflake/account_password_policy_attachment.py +30 -2
- pulumi_snowflake/account_role.py +32 -51
- pulumi_snowflake/alert.py +45 -33
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +19 -39
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +19 -39
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +19 -39
- pulumi_snowflake/api_integration.py +54 -28
- pulumi_snowflake/cortex_search_service.py +0 -28
- pulumi_snowflake/database.py +148 -97
- pulumi_snowflake/database_old.py +77 -5
- pulumi_snowflake/database_role.py +42 -76
- pulumi_snowflake/dynamic_table.py +43 -33
- pulumi_snowflake/email_notification_integration.py +26 -28
- pulumi_snowflake/external_function.py +62 -38
- pulumi_snowflake/external_oauth_integration.py +21 -41
- pulumi_snowflake/external_table.py +58 -38
- pulumi_snowflake/failover_group.py +82 -38
- pulumi_snowflake/file_format.py +26 -28
- pulumi_snowflake/function.py +9 -33
- pulumi_snowflake/get_cortex_search_services.py +16 -16
- pulumi_snowflake/get_database_roles.py +38 -61
- pulumi_snowflake/get_databases.py +6 -6
- pulumi_snowflake/get_dynamic_tables.py +12 -12
- pulumi_snowflake/get_grants.py +138 -138
- pulumi_snowflake/get_network_policies.py +2 -2
- pulumi_snowflake/get_roles.py +2 -2
- pulumi_snowflake/get_schemas.py +8 -12
- pulumi_snowflake/get_security_integrations.py +2 -2
- pulumi_snowflake/get_streamlits.py +10 -10
- pulumi_snowflake/get_users.py +33 -96
- pulumi_snowflake/get_views.py +53 -92
- pulumi_snowflake/get_warehouses.py +2 -2
- pulumi_snowflake/grant_account_role.py +4 -0
- pulumi_snowflake/grant_application_role.py +4 -0
- pulumi_snowflake/grant_database_role.py +4 -0
- pulumi_snowflake/grant_ownership.py +5 -5
- pulumi_snowflake/grant_privileges_to_account_role.py +15 -15
- pulumi_snowflake/grant_privileges_to_database_role.py +12 -16
- pulumi_snowflake/grant_privileges_to_share.py +0 -47
- pulumi_snowflake/managed_account.py +4 -28
- pulumi_snowflake/masking_policy.py +89 -33
- pulumi_snowflake/materialized_view.py +39 -33
- pulumi_snowflake/network_policy.py +49 -47
- pulumi_snowflake/network_policy_attachment.py +30 -0
- pulumi_snowflake/network_rule.py +66 -28
- pulumi_snowflake/notification_integration.py +34 -28
- pulumi_snowflake/oauth_integration.py +34 -0
- pulumi_snowflake/oauth_integration_for_custom_clients.py +105 -39
- pulumi_snowflake/oauth_integration_for_partner_applications.py +19 -39
- pulumi_snowflake/object_parameter.py +103 -5
- pulumi_snowflake/outputs.py +4207 -12013
- pulumi_snowflake/password_policy.py +28 -28
- pulumi_snowflake/pipe.py +4 -28
- pulumi_snowflake/procedure.py +9 -33
- pulumi_snowflake/provider.py +16 -16
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +48 -28
- pulumi_snowflake/role.py +32 -51
- pulumi_snowflake/row_access_policy.py +34 -28
- pulumi_snowflake/saml2_integration.py +19 -39
- pulumi_snowflake/saml_integration.py +34 -0
- pulumi_snowflake/schema.py +28 -52
- pulumi_snowflake/scim_integration.py +19 -39
- pulumi_snowflake/secondary_database.py +19 -35
- pulumi_snowflake/sequence.py +36 -4
- pulumi_snowflake/session_parameter.py +32 -0
- pulumi_snowflake/share.py +28 -28
- pulumi_snowflake/shared_database.py +15 -35
- pulumi_snowflake/stage.py +33 -33
- pulumi_snowflake/storage_integration.py +4 -28
- pulumi_snowflake/stream.py +4 -28
- pulumi_snowflake/streamlit.py +19 -39
- pulumi_snowflake/table.py +47 -43
- pulumi_snowflake/table_column_masking_policy_application.py +14 -2
- pulumi_snowflake/table_constraint.py +157 -5
- pulumi_snowflake/tag.py +40 -28
- pulumi_snowflake/tag_association.py +125 -5
- pulumi_snowflake/tag_masking_policy_association.py +4 -0
- pulumi_snowflake/task.py +92 -28
- pulumi_snowflake/unsafe_execute.py +20 -2
- pulumi_snowflake/user.py +373 -3346
- pulumi_snowflake/user_password_policy_attachment.py +36 -0
- pulumi_snowflake/view.py +185 -465
- pulumi_snowflake/warehouse.py +43 -39
- {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/METADATA +1 -1
- pulumi_snowflake-0.58.0a1722527984.dist-info/RECORD +129 -0
- {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/WHEEL +1 -1
- pulumi_snowflake-0.58.0.dist-info/RECORD +0 -129
- {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/top_level.txt +0 -0
|
@@ -8,8 +8,6 @@ import pulumi
|
|
|
8
8
|
import pulumi.runtime
|
|
9
9
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
10
|
from . import _utilities
|
|
11
|
-
from . import outputs
|
|
12
|
-
from ._inputs import *
|
|
13
11
|
|
|
14
12
|
__all__ = ['DatabaseRoleArgs', 'DatabaseRole']
|
|
15
13
|
|
|
@@ -21,9 +19,9 @@ class DatabaseRoleArgs:
|
|
|
21
19
|
name: Optional[pulumi.Input[str]] = None):
|
|
22
20
|
"""
|
|
23
21
|
The set of arguments for constructing a DatabaseRole resource.
|
|
24
|
-
:param pulumi.Input[str] database: The database in which to create the database role.
|
|
22
|
+
:param pulumi.Input[str] database: The database in which to create the database role.
|
|
25
23
|
:param pulumi.Input[str] comment: Specifies a comment for the database role.
|
|
26
|
-
:param pulumi.Input[str] name: Specifies the identifier for the database role.
|
|
24
|
+
:param pulumi.Input[str] name: Specifies the identifier for the database role.
|
|
27
25
|
"""
|
|
28
26
|
pulumi.set(__self__, "database", database)
|
|
29
27
|
if comment is not None:
|
|
@@ -35,7 +33,7 @@ class DatabaseRoleArgs:
|
|
|
35
33
|
@pulumi.getter
|
|
36
34
|
def database(self) -> pulumi.Input[str]:
|
|
37
35
|
"""
|
|
38
|
-
The database in which to create the database role.
|
|
36
|
+
The database in which to create the database role.
|
|
39
37
|
"""
|
|
40
38
|
return pulumi.get(self, "database")
|
|
41
39
|
|
|
@@ -59,7 +57,7 @@ class DatabaseRoleArgs:
|
|
|
59
57
|
@pulumi.getter
|
|
60
58
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
61
59
|
"""
|
|
62
|
-
Specifies the identifier for the database role.
|
|
60
|
+
Specifies the identifier for the database role.
|
|
63
61
|
"""
|
|
64
62
|
return pulumi.get(self, "name")
|
|
65
63
|
|
|
@@ -73,27 +71,19 @@ class _DatabaseRoleState:
|
|
|
73
71
|
def __init__(__self__, *,
|
|
74
72
|
comment: Optional[pulumi.Input[str]] = None,
|
|
75
73
|
database: Optional[pulumi.Input[str]] = None,
|
|
76
|
-
|
|
77
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
78
|
-
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseRoleShowOutputArgs']]]] = None):
|
|
74
|
+
name: Optional[pulumi.Input[str]] = None):
|
|
79
75
|
"""
|
|
80
76
|
Input properties used for looking up and filtering DatabaseRole resources.
|
|
81
77
|
:param pulumi.Input[str] comment: Specifies a comment for the database role.
|
|
82
|
-
:param pulumi.Input[str] database: The database in which to create the database role.
|
|
83
|
-
:param pulumi.Input[str]
|
|
84
|
-
:param pulumi.Input[str] name: Specifies the identifier for the database role. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
85
|
-
:param pulumi.Input[Sequence[pulumi.Input['DatabaseRoleShowOutputArgs']]] show_outputs: Outputs the result of `SHOW DATABASE ROLES` for the given database role. Note that this value will be only recomputed whenever comment field changes.
|
|
78
|
+
:param pulumi.Input[str] database: The database in which to create the database role.
|
|
79
|
+
:param pulumi.Input[str] name: Specifies the identifier for the database role.
|
|
86
80
|
"""
|
|
87
81
|
if comment is not None:
|
|
88
82
|
pulumi.set(__self__, "comment", comment)
|
|
89
83
|
if database is not None:
|
|
90
84
|
pulumi.set(__self__, "database", database)
|
|
91
|
-
if fully_qualified_name is not None:
|
|
92
|
-
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
93
85
|
if name is not None:
|
|
94
86
|
pulumi.set(__self__, "name", name)
|
|
95
|
-
if show_outputs is not None:
|
|
96
|
-
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
97
87
|
|
|
98
88
|
@property
|
|
99
89
|
@pulumi.getter
|
|
@@ -111,7 +101,7 @@ class _DatabaseRoleState:
|
|
|
111
101
|
@pulumi.getter
|
|
112
102
|
def database(self) -> Optional[pulumi.Input[str]]:
|
|
113
103
|
"""
|
|
114
|
-
The database in which to create the database role.
|
|
104
|
+
The database in which to create the database role.
|
|
115
105
|
"""
|
|
116
106
|
return pulumi.get(self, "database")
|
|
117
107
|
|
|
@@ -119,23 +109,11 @@ class _DatabaseRoleState:
|
|
|
119
109
|
def database(self, value: Optional[pulumi.Input[str]]):
|
|
120
110
|
pulumi.set(self, "database", value)
|
|
121
111
|
|
|
122
|
-
@property
|
|
123
|
-
@pulumi.getter(name="fullyQualifiedName")
|
|
124
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
125
|
-
"""
|
|
126
|
-
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
127
|
-
"""
|
|
128
|
-
return pulumi.get(self, "fully_qualified_name")
|
|
129
|
-
|
|
130
|
-
@fully_qualified_name.setter
|
|
131
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
132
|
-
pulumi.set(self, "fully_qualified_name", value)
|
|
133
|
-
|
|
134
112
|
@property
|
|
135
113
|
@pulumi.getter
|
|
136
114
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
137
115
|
"""
|
|
138
|
-
Specifies the identifier for the database role.
|
|
116
|
+
Specifies the identifier for the database role.
|
|
139
117
|
"""
|
|
140
118
|
return pulumi.get(self, "name")
|
|
141
119
|
|
|
@@ -143,18 +121,6 @@ class _DatabaseRoleState:
|
|
|
143
121
|
def name(self, value: Optional[pulumi.Input[str]]):
|
|
144
122
|
pulumi.set(self, "name", value)
|
|
145
123
|
|
|
146
|
-
@property
|
|
147
|
-
@pulumi.getter(name="showOutputs")
|
|
148
|
-
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseRoleShowOutputArgs']]]]:
|
|
149
|
-
"""
|
|
150
|
-
Outputs the result of `SHOW DATABASE ROLES` for the given database role. Note that this value will be only recomputed whenever comment field changes.
|
|
151
|
-
"""
|
|
152
|
-
return pulumi.get(self, "show_outputs")
|
|
153
|
-
|
|
154
|
-
@show_outputs.setter
|
|
155
|
-
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DatabaseRoleShowOutputArgs']]]]):
|
|
156
|
-
pulumi.set(self, "show_outputs", value)
|
|
157
|
-
|
|
158
124
|
|
|
159
125
|
class DatabaseRole(pulumi.CustomResource):
|
|
160
126
|
@overload
|
|
@@ -166,17 +132,29 @@ class DatabaseRole(pulumi.CustomResource):
|
|
|
166
132
|
name: Optional[pulumi.Input[str]] = None,
|
|
167
133
|
__props__=None):
|
|
168
134
|
"""
|
|
135
|
+
## Example Usage
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
import pulumi
|
|
139
|
+
import pulumi_snowflake as snowflake
|
|
140
|
+
|
|
141
|
+
db_role = snowflake.DatabaseRole("db_role",
|
|
142
|
+
database="database",
|
|
143
|
+
name="role_1",
|
|
144
|
+
comment="my db role")
|
|
145
|
+
```
|
|
146
|
+
|
|
169
147
|
## Import
|
|
170
148
|
|
|
171
149
|
```sh
|
|
172
|
-
$ pulumi import snowflake:index/databaseRole:DatabaseRole example '
|
|
150
|
+
$ pulumi import snowflake:index/databaseRole:DatabaseRole example 'dbName|roleName'
|
|
173
151
|
```
|
|
174
152
|
|
|
175
153
|
:param str resource_name: The name of the resource.
|
|
176
154
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
177
155
|
:param pulumi.Input[str] comment: Specifies a comment for the database role.
|
|
178
|
-
:param pulumi.Input[str] database: The database in which to create the database role.
|
|
179
|
-
:param pulumi.Input[str] name: Specifies the identifier for the database role.
|
|
156
|
+
:param pulumi.Input[str] database: The database in which to create the database role.
|
|
157
|
+
:param pulumi.Input[str] name: Specifies the identifier for the database role.
|
|
180
158
|
"""
|
|
181
159
|
...
|
|
182
160
|
@overload
|
|
@@ -185,10 +163,22 @@ class DatabaseRole(pulumi.CustomResource):
|
|
|
185
163
|
args: DatabaseRoleArgs,
|
|
186
164
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
187
165
|
"""
|
|
166
|
+
## Example Usage
|
|
167
|
+
|
|
168
|
+
```python
|
|
169
|
+
import pulumi
|
|
170
|
+
import pulumi_snowflake as snowflake
|
|
171
|
+
|
|
172
|
+
db_role = snowflake.DatabaseRole("db_role",
|
|
173
|
+
database="database",
|
|
174
|
+
name="role_1",
|
|
175
|
+
comment="my db role")
|
|
176
|
+
```
|
|
177
|
+
|
|
188
178
|
## Import
|
|
189
179
|
|
|
190
180
|
```sh
|
|
191
|
-
$ pulumi import snowflake:index/databaseRole:DatabaseRole example '
|
|
181
|
+
$ pulumi import snowflake:index/databaseRole:DatabaseRole example 'dbName|roleName'
|
|
192
182
|
```
|
|
193
183
|
|
|
194
184
|
:param str resource_name: The name of the resource.
|
|
@@ -223,8 +213,6 @@ class DatabaseRole(pulumi.CustomResource):
|
|
|
223
213
|
raise TypeError("Missing required property 'database'")
|
|
224
214
|
__props__.__dict__["database"] = database
|
|
225
215
|
__props__.__dict__["name"] = name
|
|
226
|
-
__props__.__dict__["fully_qualified_name"] = None
|
|
227
|
-
__props__.__dict__["show_outputs"] = None
|
|
228
216
|
super(DatabaseRole, __self__).__init__(
|
|
229
217
|
'snowflake:index/databaseRole:DatabaseRole',
|
|
230
218
|
resource_name,
|
|
@@ -237,9 +225,7 @@ class DatabaseRole(pulumi.CustomResource):
|
|
|
237
225
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
238
226
|
comment: Optional[pulumi.Input[str]] = None,
|
|
239
227
|
database: Optional[pulumi.Input[str]] = None,
|
|
240
|
-
|
|
241
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
242
|
-
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DatabaseRoleShowOutputArgs', 'DatabaseRoleShowOutputArgsDict']]]]] = None) -> 'DatabaseRole':
|
|
228
|
+
name: Optional[pulumi.Input[str]] = None) -> 'DatabaseRole':
|
|
243
229
|
"""
|
|
244
230
|
Get an existing DatabaseRole resource's state with the given name, id, and optional extra
|
|
245
231
|
properties used to qualify the lookup.
|
|
@@ -248,10 +234,8 @@ class DatabaseRole(pulumi.CustomResource):
|
|
|
248
234
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
249
235
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
250
236
|
:param pulumi.Input[str] comment: Specifies a comment for the database role.
|
|
251
|
-
:param pulumi.Input[str] database: The database in which to create the database role.
|
|
252
|
-
:param pulumi.Input[str]
|
|
253
|
-
:param pulumi.Input[str] name: Specifies the identifier for the database role. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
254
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['DatabaseRoleShowOutputArgs', 'DatabaseRoleShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW DATABASE ROLES` for the given database role. Note that this value will be only recomputed whenever comment field changes.
|
|
237
|
+
:param pulumi.Input[str] database: The database in which to create the database role.
|
|
238
|
+
:param pulumi.Input[str] name: Specifies the identifier for the database role.
|
|
255
239
|
"""
|
|
256
240
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
257
241
|
|
|
@@ -259,9 +243,7 @@ class DatabaseRole(pulumi.CustomResource):
|
|
|
259
243
|
|
|
260
244
|
__props__.__dict__["comment"] = comment
|
|
261
245
|
__props__.__dict__["database"] = database
|
|
262
|
-
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
263
246
|
__props__.__dict__["name"] = name
|
|
264
|
-
__props__.__dict__["show_outputs"] = show_outputs
|
|
265
247
|
return DatabaseRole(resource_name, opts=opts, __props__=__props__)
|
|
266
248
|
|
|
267
249
|
@property
|
|
@@ -276,31 +258,15 @@ class DatabaseRole(pulumi.CustomResource):
|
|
|
276
258
|
@pulumi.getter
|
|
277
259
|
def database(self) -> pulumi.Output[str]:
|
|
278
260
|
"""
|
|
279
|
-
The database in which to create the database role.
|
|
261
|
+
The database in which to create the database role.
|
|
280
262
|
"""
|
|
281
263
|
return pulumi.get(self, "database")
|
|
282
264
|
|
|
283
|
-
@property
|
|
284
|
-
@pulumi.getter(name="fullyQualifiedName")
|
|
285
|
-
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
286
|
-
"""
|
|
287
|
-
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
288
|
-
"""
|
|
289
|
-
return pulumi.get(self, "fully_qualified_name")
|
|
290
|
-
|
|
291
265
|
@property
|
|
292
266
|
@pulumi.getter
|
|
293
267
|
def name(self) -> pulumi.Output[str]:
|
|
294
268
|
"""
|
|
295
|
-
Specifies the identifier for the database role.
|
|
269
|
+
Specifies the identifier for the database role.
|
|
296
270
|
"""
|
|
297
271
|
return pulumi.get(self, "name")
|
|
298
272
|
|
|
299
|
-
@property
|
|
300
|
-
@pulumi.getter(name="showOutputs")
|
|
301
|
-
def show_outputs(self) -> pulumi.Output[Sequence['outputs.DatabaseRoleShowOutput']]:
|
|
302
|
-
"""
|
|
303
|
-
Outputs the result of `SHOW DATABASE ROLES` for the given database role. Note that this value will be only recomputed whenever comment field changes.
|
|
304
|
-
"""
|
|
305
|
-
return pulumi.get(self, "show_outputs")
|
|
306
|
-
|
|
@@ -186,7 +186,6 @@ class _DynamicTableState:
|
|
|
186
186
|
created_on: Optional[pulumi.Input[str]] = None,
|
|
187
187
|
data_timestamp: Optional[pulumi.Input[str]] = None,
|
|
188
188
|
database: Optional[pulumi.Input[str]] = None,
|
|
189
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
190
189
|
initialize: Optional[pulumi.Input[str]] = None,
|
|
191
190
|
is_clone: Optional[pulumi.Input[bool]] = None,
|
|
192
191
|
is_replica: Optional[pulumi.Input[bool]] = None,
|
|
@@ -211,7 +210,6 @@ class _DynamicTableState:
|
|
|
211
210
|
:param pulumi.Input[str] created_on: Time when this dynamic table was created.
|
|
212
211
|
:param pulumi.Input[str] data_timestamp: Timestamp of the data in the base object(s) that is included in the dynamic table.
|
|
213
212
|
:param pulumi.Input[str] database: The database in which to create the dynamic table.
|
|
214
|
-
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
215
213
|
:param pulumi.Input[str] initialize: Initialize trigger for the dynamic table. Can only be set on creation. Available options are ON*CREATE and ON*SCHEDULE.
|
|
216
214
|
:param pulumi.Input[bool] is_clone: TRUE if the dynamic table has been cloned, else FALSE.
|
|
217
215
|
:param pulumi.Input[bool] is_replica: TRUE if the dynamic table is a replica. else FALSE.
|
|
@@ -242,8 +240,6 @@ class _DynamicTableState:
|
|
|
242
240
|
pulumi.set(__self__, "data_timestamp", data_timestamp)
|
|
243
241
|
if database is not None:
|
|
244
242
|
pulumi.set(__self__, "database", database)
|
|
245
|
-
if fully_qualified_name is not None:
|
|
246
|
-
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
247
243
|
if initialize is not None:
|
|
248
244
|
pulumi.set(__self__, "initialize", initialize)
|
|
249
245
|
if is_clone is not None:
|
|
@@ -359,18 +355,6 @@ class _DynamicTableState:
|
|
|
359
355
|
def database(self, value: Optional[pulumi.Input[str]]):
|
|
360
356
|
pulumi.set(self, "database", value)
|
|
361
357
|
|
|
362
|
-
@property
|
|
363
|
-
@pulumi.getter(name="fullyQualifiedName")
|
|
364
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
365
|
-
"""
|
|
366
|
-
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
367
|
-
"""
|
|
368
|
-
return pulumi.get(self, "fully_qualified_name")
|
|
369
|
-
|
|
370
|
-
@fully_qualified_name.setter
|
|
371
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
372
|
-
pulumi.set(self, "fully_qualified_name", value)
|
|
373
|
-
|
|
374
358
|
@property
|
|
375
359
|
@pulumi.getter
|
|
376
360
|
def initialize(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -565,10 +549,29 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
565
549
|
query: Optional[pulumi.Input[str]] = None,
|
|
566
550
|
refresh_mode: Optional[pulumi.Input[str]] = None,
|
|
567
551
|
schema: Optional[pulumi.Input[str]] = None,
|
|
568
|
-
target_lag: Optional[pulumi.Input[
|
|
552
|
+
target_lag: Optional[pulumi.Input[pulumi.InputType['DynamicTableTargetLagArgs']]] = None,
|
|
569
553
|
warehouse: Optional[pulumi.Input[str]] = None,
|
|
570
554
|
__props__=None):
|
|
571
555
|
"""
|
|
556
|
+
## Example Usage
|
|
557
|
+
|
|
558
|
+
```python
|
|
559
|
+
import pulumi
|
|
560
|
+
import pulumi_snowflake as snowflake
|
|
561
|
+
|
|
562
|
+
# https://docs.snowflake.com/en/sql-reference/sql/create-dynamic-table#examples
|
|
563
|
+
dt = snowflake.DynamicTable("dt",
|
|
564
|
+
name="product",
|
|
565
|
+
database="mydb",
|
|
566
|
+
schema="myschema",
|
|
567
|
+
target_lag=snowflake.DynamicTableTargetLagArgs(
|
|
568
|
+
maximum_duration="20 minutes",
|
|
569
|
+
),
|
|
570
|
+
warehouse="mywh",
|
|
571
|
+
query="SELECT product_id, product_name FROM \\"mydb\\".\\"myschema\\".\\"staging_table\\"",
|
|
572
|
+
comment="example comment")
|
|
573
|
+
```
|
|
574
|
+
|
|
572
575
|
## Import
|
|
573
576
|
|
|
574
577
|
```sh
|
|
@@ -585,7 +588,7 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
585
588
|
:param pulumi.Input[str] query: Specifies the query to use to populate the dynamic table.
|
|
586
589
|
:param pulumi.Input[str] refresh_mode: INCREMENTAL to use incremental refreshes, FULL to recompute the whole table on every refresh, or AUTO to let Snowflake decide.
|
|
587
590
|
:param pulumi.Input[str] schema: The schema in which to create the dynamic table.
|
|
588
|
-
:param pulumi.Input[
|
|
591
|
+
:param pulumi.Input[pulumi.InputType['DynamicTableTargetLagArgs']] target_lag: Specifies the target lag time for the dynamic table.
|
|
589
592
|
:param pulumi.Input[str] warehouse: The warehouse in which to create the dynamic table.
|
|
590
593
|
"""
|
|
591
594
|
...
|
|
@@ -595,6 +598,25 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
595
598
|
args: DynamicTableArgs,
|
|
596
599
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
597
600
|
"""
|
|
601
|
+
## Example Usage
|
|
602
|
+
|
|
603
|
+
```python
|
|
604
|
+
import pulumi
|
|
605
|
+
import pulumi_snowflake as snowflake
|
|
606
|
+
|
|
607
|
+
# https://docs.snowflake.com/en/sql-reference/sql/create-dynamic-table#examples
|
|
608
|
+
dt = snowflake.DynamicTable("dt",
|
|
609
|
+
name="product",
|
|
610
|
+
database="mydb",
|
|
611
|
+
schema="myschema",
|
|
612
|
+
target_lag=snowflake.DynamicTableTargetLagArgs(
|
|
613
|
+
maximum_duration="20 minutes",
|
|
614
|
+
),
|
|
615
|
+
warehouse="mywh",
|
|
616
|
+
query="SELECT product_id, product_name FROM \\"mydb\\".\\"myschema\\".\\"staging_table\\"",
|
|
617
|
+
comment="example comment")
|
|
618
|
+
```
|
|
619
|
+
|
|
598
620
|
## Import
|
|
599
621
|
|
|
600
622
|
```sh
|
|
@@ -624,7 +646,7 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
624
646
|
query: Optional[pulumi.Input[str]] = None,
|
|
625
647
|
refresh_mode: Optional[pulumi.Input[str]] = None,
|
|
626
648
|
schema: Optional[pulumi.Input[str]] = None,
|
|
627
|
-
target_lag: Optional[pulumi.Input[
|
|
649
|
+
target_lag: Optional[pulumi.Input[pulumi.InputType['DynamicTableTargetLagArgs']]] = None,
|
|
628
650
|
warehouse: Optional[pulumi.Input[str]] = None,
|
|
629
651
|
__props__=None):
|
|
630
652
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -660,7 +682,6 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
660
682
|
__props__.__dict__["cluster_by"] = None
|
|
661
683
|
__props__.__dict__["created_on"] = None
|
|
662
684
|
__props__.__dict__["data_timestamp"] = None
|
|
663
|
-
__props__.__dict__["fully_qualified_name"] = None
|
|
664
685
|
__props__.__dict__["is_clone"] = None
|
|
665
686
|
__props__.__dict__["is_replica"] = None
|
|
666
687
|
__props__.__dict__["last_suspended_on"] = None
|
|
@@ -685,7 +706,6 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
685
706
|
created_on: Optional[pulumi.Input[str]] = None,
|
|
686
707
|
data_timestamp: Optional[pulumi.Input[str]] = None,
|
|
687
708
|
database: Optional[pulumi.Input[str]] = None,
|
|
688
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
689
709
|
initialize: Optional[pulumi.Input[str]] = None,
|
|
690
710
|
is_clone: Optional[pulumi.Input[bool]] = None,
|
|
691
711
|
is_replica: Optional[pulumi.Input[bool]] = None,
|
|
@@ -699,7 +719,7 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
699
719
|
rows: Optional[pulumi.Input[int]] = None,
|
|
700
720
|
scheduling_state: Optional[pulumi.Input[str]] = None,
|
|
701
721
|
schema: Optional[pulumi.Input[str]] = None,
|
|
702
|
-
target_lag: Optional[pulumi.Input[
|
|
722
|
+
target_lag: Optional[pulumi.Input[pulumi.InputType['DynamicTableTargetLagArgs']]] = None,
|
|
703
723
|
warehouse: Optional[pulumi.Input[str]] = None) -> 'DynamicTable':
|
|
704
724
|
"""
|
|
705
725
|
Get an existing DynamicTable resource's state with the given name, id, and optional extra
|
|
@@ -715,7 +735,6 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
715
735
|
:param pulumi.Input[str] created_on: Time when this dynamic table was created.
|
|
716
736
|
:param pulumi.Input[str] data_timestamp: Timestamp of the data in the base object(s) that is included in the dynamic table.
|
|
717
737
|
:param pulumi.Input[str] database: The database in which to create the dynamic table.
|
|
718
|
-
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
719
738
|
:param pulumi.Input[str] initialize: Initialize trigger for the dynamic table. Can only be set on creation. Available options are ON*CREATE and ON*SCHEDULE.
|
|
720
739
|
:param pulumi.Input[bool] is_clone: TRUE if the dynamic table has been cloned, else FALSE.
|
|
721
740
|
:param pulumi.Input[bool] is_replica: TRUE if the dynamic table is a replica. else FALSE.
|
|
@@ -729,7 +748,7 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
729
748
|
:param pulumi.Input[int] rows: Number of rows in the table.
|
|
730
749
|
:param pulumi.Input[str] scheduling_state: Displays ACTIVE for dynamic tables that are actively scheduling refreshes and SUSPENDED for suspended dynamic tables.
|
|
731
750
|
:param pulumi.Input[str] schema: The schema in which to create the dynamic table.
|
|
732
|
-
:param pulumi.Input[
|
|
751
|
+
:param pulumi.Input[pulumi.InputType['DynamicTableTargetLagArgs']] target_lag: Specifies the target lag time for the dynamic table.
|
|
733
752
|
:param pulumi.Input[str] warehouse: The warehouse in which to create the dynamic table.
|
|
734
753
|
"""
|
|
735
754
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -743,7 +762,6 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
743
762
|
__props__.__dict__["created_on"] = created_on
|
|
744
763
|
__props__.__dict__["data_timestamp"] = data_timestamp
|
|
745
764
|
__props__.__dict__["database"] = database
|
|
746
|
-
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
747
765
|
__props__.__dict__["initialize"] = initialize
|
|
748
766
|
__props__.__dict__["is_clone"] = is_clone
|
|
749
767
|
__props__.__dict__["is_replica"] = is_replica
|
|
@@ -817,14 +835,6 @@ class DynamicTable(pulumi.CustomResource):
|
|
|
817
835
|
"""
|
|
818
836
|
return pulumi.get(self, "database")
|
|
819
837
|
|
|
820
|
-
@property
|
|
821
|
-
@pulumi.getter(name="fullyQualifiedName")
|
|
822
|
-
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
823
|
-
"""
|
|
824
|
-
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
825
|
-
"""
|
|
826
|
-
return pulumi.get(self, "fully_qualified_name")
|
|
827
|
-
|
|
828
838
|
@property
|
|
829
839
|
@pulumi.getter
|
|
830
840
|
def initialize(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -80,13 +80,11 @@ class _EmailNotificationIntegrationState:
|
|
|
80
80
|
allowed_recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
81
81
|
comment: Optional[pulumi.Input[str]] = None,
|
|
82
82
|
enabled: Optional[pulumi.Input[bool]] = None,
|
|
83
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
84
83
|
name: Optional[pulumi.Input[str]] = None):
|
|
85
84
|
"""
|
|
86
85
|
Input properties used for looking up and filtering EmailNotificationIntegration resources.
|
|
87
86
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_recipients: List of email addresses that should receive notifications.
|
|
88
87
|
:param pulumi.Input[str] comment: A comment for the email integration.
|
|
89
|
-
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
90
88
|
"""
|
|
91
89
|
if allowed_recipients is not None:
|
|
92
90
|
pulumi.set(__self__, "allowed_recipients", allowed_recipients)
|
|
@@ -94,8 +92,6 @@ class _EmailNotificationIntegrationState:
|
|
|
94
92
|
pulumi.set(__self__, "comment", comment)
|
|
95
93
|
if enabled is not None:
|
|
96
94
|
pulumi.set(__self__, "enabled", enabled)
|
|
97
|
-
if fully_qualified_name is not None:
|
|
98
|
-
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
99
95
|
if name is not None:
|
|
100
96
|
pulumi.set(__self__, "name", name)
|
|
101
97
|
|
|
@@ -132,18 +128,6 @@ class _EmailNotificationIntegrationState:
|
|
|
132
128
|
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
133
129
|
pulumi.set(self, "enabled", value)
|
|
134
130
|
|
|
135
|
-
@property
|
|
136
|
-
@pulumi.getter(name="fullyQualifiedName")
|
|
137
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
138
|
-
"""
|
|
139
|
-
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
140
|
-
"""
|
|
141
|
-
return pulumi.get(self, "fully_qualified_name")
|
|
142
|
-
|
|
143
|
-
@fully_qualified_name.setter
|
|
144
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
145
|
-
pulumi.set(self, "fully_qualified_name", value)
|
|
146
|
-
|
|
147
131
|
@property
|
|
148
132
|
@pulumi.getter
|
|
149
133
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -165,6 +149,19 @@ class EmailNotificationIntegration(pulumi.CustomResource):
|
|
|
165
149
|
name: Optional[pulumi.Input[str]] = None,
|
|
166
150
|
__props__=None):
|
|
167
151
|
"""
|
|
152
|
+
## Example Usage
|
|
153
|
+
|
|
154
|
+
```python
|
|
155
|
+
import pulumi
|
|
156
|
+
import pulumi_snowflake as snowflake
|
|
157
|
+
|
|
158
|
+
email_int = snowflake.EmailNotificationIntegration("email_int",
|
|
159
|
+
name="notification",
|
|
160
|
+
comment="A notification integration.",
|
|
161
|
+
enabled=True,
|
|
162
|
+
allowed_recipients=["john.doe@gmail.com"])
|
|
163
|
+
```
|
|
164
|
+
|
|
168
165
|
## Import
|
|
169
166
|
|
|
170
167
|
```sh
|
|
@@ -183,6 +180,19 @@ class EmailNotificationIntegration(pulumi.CustomResource):
|
|
|
183
180
|
args: EmailNotificationIntegrationArgs,
|
|
184
181
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
185
182
|
"""
|
|
183
|
+
## Example Usage
|
|
184
|
+
|
|
185
|
+
```python
|
|
186
|
+
import pulumi
|
|
187
|
+
import pulumi_snowflake as snowflake
|
|
188
|
+
|
|
189
|
+
email_int = snowflake.EmailNotificationIntegration("email_int",
|
|
190
|
+
name="notification",
|
|
191
|
+
comment="A notification integration.",
|
|
192
|
+
enabled=True,
|
|
193
|
+
allowed_recipients=["john.doe@gmail.com"])
|
|
194
|
+
```
|
|
195
|
+
|
|
186
196
|
## Import
|
|
187
197
|
|
|
188
198
|
```sh
|
|
@@ -223,7 +233,6 @@ class EmailNotificationIntegration(pulumi.CustomResource):
|
|
|
223
233
|
raise TypeError("Missing required property 'enabled'")
|
|
224
234
|
__props__.__dict__["enabled"] = enabled
|
|
225
235
|
__props__.__dict__["name"] = name
|
|
226
|
-
__props__.__dict__["fully_qualified_name"] = None
|
|
227
236
|
super(EmailNotificationIntegration, __self__).__init__(
|
|
228
237
|
'snowflake:index/emailNotificationIntegration:EmailNotificationIntegration',
|
|
229
238
|
resource_name,
|
|
@@ -237,7 +246,6 @@ class EmailNotificationIntegration(pulumi.CustomResource):
|
|
|
237
246
|
allowed_recipients: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
238
247
|
comment: Optional[pulumi.Input[str]] = None,
|
|
239
248
|
enabled: Optional[pulumi.Input[bool]] = None,
|
|
240
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
241
249
|
name: Optional[pulumi.Input[str]] = None) -> 'EmailNotificationIntegration':
|
|
242
250
|
"""
|
|
243
251
|
Get an existing EmailNotificationIntegration resource's state with the given name, id, and optional extra
|
|
@@ -248,7 +256,6 @@ class EmailNotificationIntegration(pulumi.CustomResource):
|
|
|
248
256
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
249
257
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_recipients: List of email addresses that should receive notifications.
|
|
250
258
|
:param pulumi.Input[str] comment: A comment for the email integration.
|
|
251
|
-
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
252
259
|
"""
|
|
253
260
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
254
261
|
|
|
@@ -257,7 +264,6 @@ class EmailNotificationIntegration(pulumi.CustomResource):
|
|
|
257
264
|
__props__.__dict__["allowed_recipients"] = allowed_recipients
|
|
258
265
|
__props__.__dict__["comment"] = comment
|
|
259
266
|
__props__.__dict__["enabled"] = enabled
|
|
260
|
-
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
261
267
|
__props__.__dict__["name"] = name
|
|
262
268
|
return EmailNotificationIntegration(resource_name, opts=opts, __props__=__props__)
|
|
263
269
|
|
|
@@ -282,14 +288,6 @@ class EmailNotificationIntegration(pulumi.CustomResource):
|
|
|
282
288
|
def enabled(self) -> pulumi.Output[bool]:
|
|
283
289
|
return pulumi.get(self, "enabled")
|
|
284
290
|
|
|
285
|
-
@property
|
|
286
|
-
@pulumi.getter(name="fullyQualifiedName")
|
|
287
|
-
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
288
|
-
"""
|
|
289
|
-
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
290
|
-
"""
|
|
291
|
-
return pulumi.get(self, "fully_qualified_name")
|
|
292
|
-
|
|
293
291
|
@property
|
|
294
292
|
@pulumi.getter
|
|
295
293
|
def name(self) -> pulumi.Output[str]:
|