pulumi-snowflake 2.7.0a1759215867__py3-none-any.whl → 2.11.0a1766126285__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/__init__.py +21 -0
- pulumi_snowflake/_inputs.py +2556 -296
- pulumi_snowflake/authentication_policy.py +181 -31
- pulumi_snowflake/compute_pool.py +7 -7
- pulumi_snowflake/config/__init__.pyi +64 -1
- pulumi_snowflake/config/vars.py +88 -1
- pulumi_snowflake/get_authentication_policies.py +214 -0
- pulumi_snowflake/get_compute_pools.py +0 -4
- pulumi_snowflake/get_git_repositories.py +0 -4
- pulumi_snowflake/get_image_repositories.py +0 -4
- pulumi_snowflake/get_notebooks.py +174 -0
- pulumi_snowflake/get_semantic_views.py +178 -0
- pulumi_snowflake/get_services.py +0 -4
- pulumi_snowflake/get_user_programmatic_access_tokens.py +0 -4
- pulumi_snowflake/get_warehouses.py +4 -0
- pulumi_snowflake/notebook.py +623 -0
- pulumi_snowflake/outputs.py +2463 -150
- pulumi_snowflake/provider.py +315 -6
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/semantic_view.py +535 -0
- pulumi_snowflake/storage_integration.py +98 -38
- pulumi_snowflake/task.py +7 -7
- {pulumi_snowflake-2.7.0a1759215867.dist-info → pulumi_snowflake-2.11.0a1766126285.dist-info}/METADATA +1 -1
- {pulumi_snowflake-2.7.0a1759215867.dist-info → pulumi_snowflake-2.11.0a1766126285.dist-info}/RECORD +26 -21
- {pulumi_snowflake-2.7.0a1759215867.dist-info → pulumi_snowflake-2.11.0a1766126285.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-2.7.0a1759215867.dist-info → pulumi_snowflake-2.11.0a1766126285.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,623 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['NotebookArgs', 'Notebook']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class NotebookArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
database: pulumi.Input[_builtins.str],
|
|
25
|
+
schema: pulumi.Input[_builtins.str],
|
|
26
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
27
|
+
froms: Optional[pulumi.Input[Sequence[pulumi.Input['NotebookFromArgs']]]] = None,
|
|
28
|
+
idle_auto_shutdown_time_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
29
|
+
main_file: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
31
|
+
query_warehouse: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
warehouse: Optional[pulumi.Input[_builtins.str]] = None):
|
|
33
|
+
"""
|
|
34
|
+
The set of arguments for constructing a Notebook resource.
|
|
35
|
+
:param pulumi.Input[_builtins.str] database: The database in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
36
|
+
:param pulumi.Input[_builtins.str] schema: The schema in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
37
|
+
:param pulumi.Input[_builtins.str] comment: Specifies a comment for the notebook.
|
|
38
|
+
:param pulumi.Input[Sequence[pulumi.Input['NotebookFromArgs']]] froms: Specifies the location in a stage of an .ipynb file from which the notebook should be created. MAIN_FILE parameter a user-specified identifier for the notebook file name must also be set alongside it.
|
|
39
|
+
:param pulumi.Input[_builtins.int] idle_auto_shutdown_time_seconds: Specifies the number of seconds of idle time before the notebook is shut down automatically.
|
|
40
|
+
:param pulumi.Input[_builtins.str] main_file: Specifies a user-specified identifier for the notebook file name.
|
|
41
|
+
:param pulumi.Input[_builtins.str] name: Specifies the identifier for the notebook; must be unique for the schema in which the notebook is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
42
|
+
:param pulumi.Input[_builtins.str] query_warehouse: Specifies the warehouse where SQL queries in the notebook are run.
|
|
43
|
+
:param pulumi.Input[_builtins.str] warehouse: Specifies the warehouse that runs the notebook kernel and python code.
|
|
44
|
+
"""
|
|
45
|
+
pulumi.set(__self__, "database", database)
|
|
46
|
+
pulumi.set(__self__, "schema", schema)
|
|
47
|
+
if comment is not None:
|
|
48
|
+
pulumi.set(__self__, "comment", comment)
|
|
49
|
+
if froms is not None:
|
|
50
|
+
pulumi.set(__self__, "froms", froms)
|
|
51
|
+
if idle_auto_shutdown_time_seconds is not None:
|
|
52
|
+
pulumi.set(__self__, "idle_auto_shutdown_time_seconds", idle_auto_shutdown_time_seconds)
|
|
53
|
+
if main_file is not None:
|
|
54
|
+
pulumi.set(__self__, "main_file", main_file)
|
|
55
|
+
if name is not None:
|
|
56
|
+
pulumi.set(__self__, "name", name)
|
|
57
|
+
if query_warehouse is not None:
|
|
58
|
+
pulumi.set(__self__, "query_warehouse", query_warehouse)
|
|
59
|
+
if warehouse is not None:
|
|
60
|
+
pulumi.set(__self__, "warehouse", warehouse)
|
|
61
|
+
|
|
62
|
+
@_builtins.property
|
|
63
|
+
@pulumi.getter
|
|
64
|
+
def database(self) -> pulumi.Input[_builtins.str]:
|
|
65
|
+
"""
|
|
66
|
+
The database in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "database")
|
|
69
|
+
|
|
70
|
+
@database.setter
|
|
71
|
+
def database(self, value: pulumi.Input[_builtins.str]):
|
|
72
|
+
pulumi.set(self, "database", value)
|
|
73
|
+
|
|
74
|
+
@_builtins.property
|
|
75
|
+
@pulumi.getter
|
|
76
|
+
def schema(self) -> pulumi.Input[_builtins.str]:
|
|
77
|
+
"""
|
|
78
|
+
The schema in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
79
|
+
"""
|
|
80
|
+
return pulumi.get(self, "schema")
|
|
81
|
+
|
|
82
|
+
@schema.setter
|
|
83
|
+
def schema(self, value: pulumi.Input[_builtins.str]):
|
|
84
|
+
pulumi.set(self, "schema", value)
|
|
85
|
+
|
|
86
|
+
@_builtins.property
|
|
87
|
+
@pulumi.getter
|
|
88
|
+
def comment(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
89
|
+
"""
|
|
90
|
+
Specifies a comment for the notebook.
|
|
91
|
+
"""
|
|
92
|
+
return pulumi.get(self, "comment")
|
|
93
|
+
|
|
94
|
+
@comment.setter
|
|
95
|
+
def comment(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
96
|
+
pulumi.set(self, "comment", value)
|
|
97
|
+
|
|
98
|
+
@_builtins.property
|
|
99
|
+
@pulumi.getter
|
|
100
|
+
def froms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotebookFromArgs']]]]:
|
|
101
|
+
"""
|
|
102
|
+
Specifies the location in a stage of an .ipynb file from which the notebook should be created. MAIN_FILE parameter a user-specified identifier for the notebook file name must also be set alongside it.
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "froms")
|
|
105
|
+
|
|
106
|
+
@froms.setter
|
|
107
|
+
def froms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotebookFromArgs']]]]):
|
|
108
|
+
pulumi.set(self, "froms", value)
|
|
109
|
+
|
|
110
|
+
@_builtins.property
|
|
111
|
+
@pulumi.getter(name="idleAutoShutdownTimeSeconds")
|
|
112
|
+
def idle_auto_shutdown_time_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
113
|
+
"""
|
|
114
|
+
Specifies the number of seconds of idle time before the notebook is shut down automatically.
|
|
115
|
+
"""
|
|
116
|
+
return pulumi.get(self, "idle_auto_shutdown_time_seconds")
|
|
117
|
+
|
|
118
|
+
@idle_auto_shutdown_time_seconds.setter
|
|
119
|
+
def idle_auto_shutdown_time_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
120
|
+
pulumi.set(self, "idle_auto_shutdown_time_seconds", value)
|
|
121
|
+
|
|
122
|
+
@_builtins.property
|
|
123
|
+
@pulumi.getter(name="mainFile")
|
|
124
|
+
def main_file(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
125
|
+
"""
|
|
126
|
+
Specifies a user-specified identifier for the notebook file name.
|
|
127
|
+
"""
|
|
128
|
+
return pulumi.get(self, "main_file")
|
|
129
|
+
|
|
130
|
+
@main_file.setter
|
|
131
|
+
def main_file(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
132
|
+
pulumi.set(self, "main_file", value)
|
|
133
|
+
|
|
134
|
+
@_builtins.property
|
|
135
|
+
@pulumi.getter
|
|
136
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
137
|
+
"""
|
|
138
|
+
Specifies the identifier for the notebook; must be unique for the schema in which the notebook is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
139
|
+
"""
|
|
140
|
+
return pulumi.get(self, "name")
|
|
141
|
+
|
|
142
|
+
@name.setter
|
|
143
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
144
|
+
pulumi.set(self, "name", value)
|
|
145
|
+
|
|
146
|
+
@_builtins.property
|
|
147
|
+
@pulumi.getter(name="queryWarehouse")
|
|
148
|
+
def query_warehouse(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
149
|
+
"""
|
|
150
|
+
Specifies the warehouse where SQL queries in the notebook are run.
|
|
151
|
+
"""
|
|
152
|
+
return pulumi.get(self, "query_warehouse")
|
|
153
|
+
|
|
154
|
+
@query_warehouse.setter
|
|
155
|
+
def query_warehouse(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
156
|
+
pulumi.set(self, "query_warehouse", value)
|
|
157
|
+
|
|
158
|
+
@_builtins.property
|
|
159
|
+
@pulumi.getter
|
|
160
|
+
def warehouse(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
161
|
+
"""
|
|
162
|
+
Specifies the warehouse that runs the notebook kernel and python code.
|
|
163
|
+
"""
|
|
164
|
+
return pulumi.get(self, "warehouse")
|
|
165
|
+
|
|
166
|
+
@warehouse.setter
|
|
167
|
+
def warehouse(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
168
|
+
pulumi.set(self, "warehouse", value)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
@pulumi.input_type
|
|
172
|
+
class _NotebookState:
|
|
173
|
+
def __init__(__self__, *,
|
|
174
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
175
|
+
database: Optional[pulumi.Input[_builtins.str]] = None,
|
|
176
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['NotebookDescribeOutputArgs']]]] = None,
|
|
177
|
+
froms: Optional[pulumi.Input[Sequence[pulumi.Input['NotebookFromArgs']]]] = None,
|
|
178
|
+
fully_qualified_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
179
|
+
idle_auto_shutdown_time_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
180
|
+
main_file: Optional[pulumi.Input[_builtins.str]] = None,
|
|
181
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
182
|
+
query_warehouse: Optional[pulumi.Input[_builtins.str]] = None,
|
|
183
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
184
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['NotebookShowOutputArgs']]]] = None,
|
|
185
|
+
warehouse: Optional[pulumi.Input[_builtins.str]] = None):
|
|
186
|
+
"""
|
|
187
|
+
Input properties used for looking up and filtering Notebook resources.
|
|
188
|
+
:param pulumi.Input[_builtins.str] comment: Specifies a comment for the notebook.
|
|
189
|
+
:param pulumi.Input[_builtins.str] database: The database in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
190
|
+
:param pulumi.Input[Sequence[pulumi.Input['NotebookDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE NOTEBOOK` for the given notebook.
|
|
191
|
+
:param pulumi.Input[Sequence[pulumi.Input['NotebookFromArgs']]] froms: Specifies the location in a stage of an .ipynb file from which the notebook should be created. MAIN_FILE parameter a user-specified identifier for the notebook file name must also be set alongside it.
|
|
192
|
+
:param pulumi.Input[_builtins.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).
|
|
193
|
+
:param pulumi.Input[_builtins.int] idle_auto_shutdown_time_seconds: Specifies the number of seconds of idle time before the notebook is shut down automatically.
|
|
194
|
+
:param pulumi.Input[_builtins.str] main_file: Specifies a user-specified identifier for the notebook file name.
|
|
195
|
+
:param pulumi.Input[_builtins.str] name: Specifies the identifier for the notebook; must be unique for the schema in which the notebook is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
196
|
+
:param pulumi.Input[_builtins.str] query_warehouse: Specifies the warehouse where SQL queries in the notebook are run.
|
|
197
|
+
:param pulumi.Input[_builtins.str] schema: The schema in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
198
|
+
:param pulumi.Input[Sequence[pulumi.Input['NotebookShowOutputArgs']]] show_outputs: Outputs the result of `SHOW NOTEBOOKS` for the given notebook
|
|
199
|
+
:param pulumi.Input[_builtins.str] warehouse: Specifies the warehouse that runs the notebook kernel and python code.
|
|
200
|
+
"""
|
|
201
|
+
if comment is not None:
|
|
202
|
+
pulumi.set(__self__, "comment", comment)
|
|
203
|
+
if database is not None:
|
|
204
|
+
pulumi.set(__self__, "database", database)
|
|
205
|
+
if describe_outputs is not None:
|
|
206
|
+
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
207
|
+
if froms is not None:
|
|
208
|
+
pulumi.set(__self__, "froms", froms)
|
|
209
|
+
if fully_qualified_name is not None:
|
|
210
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
211
|
+
if idle_auto_shutdown_time_seconds is not None:
|
|
212
|
+
pulumi.set(__self__, "idle_auto_shutdown_time_seconds", idle_auto_shutdown_time_seconds)
|
|
213
|
+
if main_file is not None:
|
|
214
|
+
pulumi.set(__self__, "main_file", main_file)
|
|
215
|
+
if name is not None:
|
|
216
|
+
pulumi.set(__self__, "name", name)
|
|
217
|
+
if query_warehouse is not None:
|
|
218
|
+
pulumi.set(__self__, "query_warehouse", query_warehouse)
|
|
219
|
+
if schema is not None:
|
|
220
|
+
pulumi.set(__self__, "schema", schema)
|
|
221
|
+
if show_outputs is not None:
|
|
222
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
223
|
+
if warehouse is not None:
|
|
224
|
+
pulumi.set(__self__, "warehouse", warehouse)
|
|
225
|
+
|
|
226
|
+
@_builtins.property
|
|
227
|
+
@pulumi.getter
|
|
228
|
+
def comment(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
229
|
+
"""
|
|
230
|
+
Specifies a comment for the notebook.
|
|
231
|
+
"""
|
|
232
|
+
return pulumi.get(self, "comment")
|
|
233
|
+
|
|
234
|
+
@comment.setter
|
|
235
|
+
def comment(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
236
|
+
pulumi.set(self, "comment", value)
|
|
237
|
+
|
|
238
|
+
@_builtins.property
|
|
239
|
+
@pulumi.getter
|
|
240
|
+
def database(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
241
|
+
"""
|
|
242
|
+
The database in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
243
|
+
"""
|
|
244
|
+
return pulumi.get(self, "database")
|
|
245
|
+
|
|
246
|
+
@database.setter
|
|
247
|
+
def database(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
248
|
+
pulumi.set(self, "database", value)
|
|
249
|
+
|
|
250
|
+
@_builtins.property
|
|
251
|
+
@pulumi.getter(name="describeOutputs")
|
|
252
|
+
def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotebookDescribeOutputArgs']]]]:
|
|
253
|
+
"""
|
|
254
|
+
Outputs the result of `DESCRIBE NOTEBOOK` for the given notebook.
|
|
255
|
+
"""
|
|
256
|
+
return pulumi.get(self, "describe_outputs")
|
|
257
|
+
|
|
258
|
+
@describe_outputs.setter
|
|
259
|
+
def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotebookDescribeOutputArgs']]]]):
|
|
260
|
+
pulumi.set(self, "describe_outputs", value)
|
|
261
|
+
|
|
262
|
+
@_builtins.property
|
|
263
|
+
@pulumi.getter
|
|
264
|
+
def froms(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotebookFromArgs']]]]:
|
|
265
|
+
"""
|
|
266
|
+
Specifies the location in a stage of an .ipynb file from which the notebook should be created. MAIN_FILE parameter a user-specified identifier for the notebook file name must also be set alongside it.
|
|
267
|
+
"""
|
|
268
|
+
return pulumi.get(self, "froms")
|
|
269
|
+
|
|
270
|
+
@froms.setter
|
|
271
|
+
def froms(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotebookFromArgs']]]]):
|
|
272
|
+
pulumi.set(self, "froms", value)
|
|
273
|
+
|
|
274
|
+
@_builtins.property
|
|
275
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
276
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
277
|
+
"""
|
|
278
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
279
|
+
"""
|
|
280
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
281
|
+
|
|
282
|
+
@fully_qualified_name.setter
|
|
283
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
284
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
285
|
+
|
|
286
|
+
@_builtins.property
|
|
287
|
+
@pulumi.getter(name="idleAutoShutdownTimeSeconds")
|
|
288
|
+
def idle_auto_shutdown_time_seconds(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
289
|
+
"""
|
|
290
|
+
Specifies the number of seconds of idle time before the notebook is shut down automatically.
|
|
291
|
+
"""
|
|
292
|
+
return pulumi.get(self, "idle_auto_shutdown_time_seconds")
|
|
293
|
+
|
|
294
|
+
@idle_auto_shutdown_time_seconds.setter
|
|
295
|
+
def idle_auto_shutdown_time_seconds(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
296
|
+
pulumi.set(self, "idle_auto_shutdown_time_seconds", value)
|
|
297
|
+
|
|
298
|
+
@_builtins.property
|
|
299
|
+
@pulumi.getter(name="mainFile")
|
|
300
|
+
def main_file(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
301
|
+
"""
|
|
302
|
+
Specifies a user-specified identifier for the notebook file name.
|
|
303
|
+
"""
|
|
304
|
+
return pulumi.get(self, "main_file")
|
|
305
|
+
|
|
306
|
+
@main_file.setter
|
|
307
|
+
def main_file(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
308
|
+
pulumi.set(self, "main_file", value)
|
|
309
|
+
|
|
310
|
+
@_builtins.property
|
|
311
|
+
@pulumi.getter
|
|
312
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
313
|
+
"""
|
|
314
|
+
Specifies the identifier for the notebook; must be unique for the schema in which the notebook is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
315
|
+
"""
|
|
316
|
+
return pulumi.get(self, "name")
|
|
317
|
+
|
|
318
|
+
@name.setter
|
|
319
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
320
|
+
pulumi.set(self, "name", value)
|
|
321
|
+
|
|
322
|
+
@_builtins.property
|
|
323
|
+
@pulumi.getter(name="queryWarehouse")
|
|
324
|
+
def query_warehouse(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
325
|
+
"""
|
|
326
|
+
Specifies the warehouse where SQL queries in the notebook are run.
|
|
327
|
+
"""
|
|
328
|
+
return pulumi.get(self, "query_warehouse")
|
|
329
|
+
|
|
330
|
+
@query_warehouse.setter
|
|
331
|
+
def query_warehouse(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
332
|
+
pulumi.set(self, "query_warehouse", value)
|
|
333
|
+
|
|
334
|
+
@_builtins.property
|
|
335
|
+
@pulumi.getter
|
|
336
|
+
def schema(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
337
|
+
"""
|
|
338
|
+
The schema in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
339
|
+
"""
|
|
340
|
+
return pulumi.get(self, "schema")
|
|
341
|
+
|
|
342
|
+
@schema.setter
|
|
343
|
+
def schema(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
344
|
+
pulumi.set(self, "schema", value)
|
|
345
|
+
|
|
346
|
+
@_builtins.property
|
|
347
|
+
@pulumi.getter(name="showOutputs")
|
|
348
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NotebookShowOutputArgs']]]]:
|
|
349
|
+
"""
|
|
350
|
+
Outputs the result of `SHOW NOTEBOOKS` for the given notebook
|
|
351
|
+
"""
|
|
352
|
+
return pulumi.get(self, "show_outputs")
|
|
353
|
+
|
|
354
|
+
@show_outputs.setter
|
|
355
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NotebookShowOutputArgs']]]]):
|
|
356
|
+
pulumi.set(self, "show_outputs", value)
|
|
357
|
+
|
|
358
|
+
@_builtins.property
|
|
359
|
+
@pulumi.getter
|
|
360
|
+
def warehouse(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
361
|
+
"""
|
|
362
|
+
Specifies the warehouse that runs the notebook kernel and python code.
|
|
363
|
+
"""
|
|
364
|
+
return pulumi.get(self, "warehouse")
|
|
365
|
+
|
|
366
|
+
@warehouse.setter
|
|
367
|
+
def warehouse(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
368
|
+
pulumi.set(self, "warehouse", value)
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
@pulumi.type_token("snowflake:index/notebook:Notebook")
|
|
372
|
+
class Notebook(pulumi.CustomResource):
|
|
373
|
+
@overload
|
|
374
|
+
def __init__(__self__,
|
|
375
|
+
resource_name: str,
|
|
376
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
377
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
378
|
+
database: Optional[pulumi.Input[_builtins.str]] = None,
|
|
379
|
+
froms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotebookFromArgs', 'NotebookFromArgsDict']]]]] = None,
|
|
380
|
+
idle_auto_shutdown_time_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
381
|
+
main_file: Optional[pulumi.Input[_builtins.str]] = None,
|
|
382
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
383
|
+
query_warehouse: Optional[pulumi.Input[_builtins.str]] = None,
|
|
384
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
385
|
+
warehouse: Optional[pulumi.Input[_builtins.str]] = None,
|
|
386
|
+
__props__=None):
|
|
387
|
+
"""
|
|
388
|
+
## Import
|
|
389
|
+
|
|
390
|
+
```sh
|
|
391
|
+
$ pulumi import snowflake:index/notebook:Notebook example '"<db_name>"."<schema_name>"."<notebook_name>"'
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
:param str resource_name: The name of the resource.
|
|
395
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
396
|
+
:param pulumi.Input[_builtins.str] comment: Specifies a comment for the notebook.
|
|
397
|
+
:param pulumi.Input[_builtins.str] database: The database in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
398
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NotebookFromArgs', 'NotebookFromArgsDict']]]] froms: Specifies the location in a stage of an .ipynb file from which the notebook should be created. MAIN_FILE parameter a user-specified identifier for the notebook file name must also be set alongside it.
|
|
399
|
+
:param pulumi.Input[_builtins.int] idle_auto_shutdown_time_seconds: Specifies the number of seconds of idle time before the notebook is shut down automatically.
|
|
400
|
+
:param pulumi.Input[_builtins.str] main_file: Specifies a user-specified identifier for the notebook file name.
|
|
401
|
+
:param pulumi.Input[_builtins.str] name: Specifies the identifier for the notebook; must be unique for the schema in which the notebook is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
402
|
+
:param pulumi.Input[_builtins.str] query_warehouse: Specifies the warehouse where SQL queries in the notebook are run.
|
|
403
|
+
:param pulumi.Input[_builtins.str] schema: The schema in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
404
|
+
:param pulumi.Input[_builtins.str] warehouse: Specifies the warehouse that runs the notebook kernel and python code.
|
|
405
|
+
"""
|
|
406
|
+
...
|
|
407
|
+
@overload
|
|
408
|
+
def __init__(__self__,
|
|
409
|
+
resource_name: str,
|
|
410
|
+
args: NotebookArgs,
|
|
411
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
412
|
+
"""
|
|
413
|
+
## Import
|
|
414
|
+
|
|
415
|
+
```sh
|
|
416
|
+
$ pulumi import snowflake:index/notebook:Notebook example '"<db_name>"."<schema_name>"."<notebook_name>"'
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
:param str resource_name: The name of the resource.
|
|
420
|
+
:param NotebookArgs args: The arguments to use to populate this resource's properties.
|
|
421
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
422
|
+
"""
|
|
423
|
+
...
|
|
424
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
425
|
+
resource_args, opts = _utilities.get_resource_args_opts(NotebookArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
426
|
+
if resource_args is not None:
|
|
427
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
428
|
+
else:
|
|
429
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
430
|
+
|
|
431
|
+
def _internal_init(__self__,
|
|
432
|
+
resource_name: str,
|
|
433
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
434
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
435
|
+
database: Optional[pulumi.Input[_builtins.str]] = None,
|
|
436
|
+
froms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotebookFromArgs', 'NotebookFromArgsDict']]]]] = None,
|
|
437
|
+
idle_auto_shutdown_time_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
438
|
+
main_file: Optional[pulumi.Input[_builtins.str]] = None,
|
|
439
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
440
|
+
query_warehouse: Optional[pulumi.Input[_builtins.str]] = None,
|
|
441
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
442
|
+
warehouse: Optional[pulumi.Input[_builtins.str]] = None,
|
|
443
|
+
__props__=None):
|
|
444
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
445
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
446
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
447
|
+
if opts.id is None:
|
|
448
|
+
if __props__ is not None:
|
|
449
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
450
|
+
__props__ = NotebookArgs.__new__(NotebookArgs)
|
|
451
|
+
|
|
452
|
+
__props__.__dict__["comment"] = comment
|
|
453
|
+
if database is None and not opts.urn:
|
|
454
|
+
raise TypeError("Missing required property 'database'")
|
|
455
|
+
__props__.__dict__["database"] = database
|
|
456
|
+
__props__.__dict__["froms"] = froms
|
|
457
|
+
__props__.__dict__["idle_auto_shutdown_time_seconds"] = idle_auto_shutdown_time_seconds
|
|
458
|
+
__props__.__dict__["main_file"] = main_file
|
|
459
|
+
__props__.__dict__["name"] = name
|
|
460
|
+
__props__.__dict__["query_warehouse"] = query_warehouse
|
|
461
|
+
if schema is None and not opts.urn:
|
|
462
|
+
raise TypeError("Missing required property 'schema'")
|
|
463
|
+
__props__.__dict__["schema"] = schema
|
|
464
|
+
__props__.__dict__["warehouse"] = warehouse
|
|
465
|
+
__props__.__dict__["describe_outputs"] = None
|
|
466
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
467
|
+
__props__.__dict__["show_outputs"] = None
|
|
468
|
+
super(Notebook, __self__).__init__(
|
|
469
|
+
'snowflake:index/notebook:Notebook',
|
|
470
|
+
resource_name,
|
|
471
|
+
__props__,
|
|
472
|
+
opts)
|
|
473
|
+
|
|
474
|
+
@staticmethod
|
|
475
|
+
def get(resource_name: str,
|
|
476
|
+
id: pulumi.Input[str],
|
|
477
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
478
|
+
comment: Optional[pulumi.Input[_builtins.str]] = None,
|
|
479
|
+
database: Optional[pulumi.Input[_builtins.str]] = None,
|
|
480
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotebookDescribeOutputArgs', 'NotebookDescribeOutputArgsDict']]]]] = None,
|
|
481
|
+
froms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotebookFromArgs', 'NotebookFromArgsDict']]]]] = None,
|
|
482
|
+
fully_qualified_name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
483
|
+
idle_auto_shutdown_time_seconds: Optional[pulumi.Input[_builtins.int]] = None,
|
|
484
|
+
main_file: Optional[pulumi.Input[_builtins.str]] = None,
|
|
485
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
486
|
+
query_warehouse: Optional[pulumi.Input[_builtins.str]] = None,
|
|
487
|
+
schema: Optional[pulumi.Input[_builtins.str]] = None,
|
|
488
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotebookShowOutputArgs', 'NotebookShowOutputArgsDict']]]]] = None,
|
|
489
|
+
warehouse: Optional[pulumi.Input[_builtins.str]] = None) -> 'Notebook':
|
|
490
|
+
"""
|
|
491
|
+
Get an existing Notebook resource's state with the given name, id, and optional extra
|
|
492
|
+
properties used to qualify the lookup.
|
|
493
|
+
|
|
494
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
495
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
496
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
497
|
+
:param pulumi.Input[_builtins.str] comment: Specifies a comment for the notebook.
|
|
498
|
+
:param pulumi.Input[_builtins.str] database: The database in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
499
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NotebookDescribeOutputArgs', 'NotebookDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE NOTEBOOK` for the given notebook.
|
|
500
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NotebookFromArgs', 'NotebookFromArgsDict']]]] froms: Specifies the location in a stage of an .ipynb file from which the notebook should be created. MAIN_FILE parameter a user-specified identifier for the notebook file name must also be set alongside it.
|
|
501
|
+
:param pulumi.Input[_builtins.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).
|
|
502
|
+
:param pulumi.Input[_builtins.int] idle_auto_shutdown_time_seconds: Specifies the number of seconds of idle time before the notebook is shut down automatically.
|
|
503
|
+
:param pulumi.Input[_builtins.str] main_file: Specifies a user-specified identifier for the notebook file name.
|
|
504
|
+
:param pulumi.Input[_builtins.str] name: Specifies the identifier for the notebook; must be unique for the schema in which the notebook is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
505
|
+
:param pulumi.Input[_builtins.str] query_warehouse: Specifies the warehouse where SQL queries in the notebook are run.
|
|
506
|
+
:param pulumi.Input[_builtins.str] schema: The schema in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
507
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['NotebookShowOutputArgs', 'NotebookShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW NOTEBOOKS` for the given notebook
|
|
508
|
+
:param pulumi.Input[_builtins.str] warehouse: Specifies the warehouse that runs the notebook kernel and python code.
|
|
509
|
+
"""
|
|
510
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
511
|
+
|
|
512
|
+
__props__ = _NotebookState.__new__(_NotebookState)
|
|
513
|
+
|
|
514
|
+
__props__.__dict__["comment"] = comment
|
|
515
|
+
__props__.__dict__["database"] = database
|
|
516
|
+
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
517
|
+
__props__.__dict__["froms"] = froms
|
|
518
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
519
|
+
__props__.__dict__["idle_auto_shutdown_time_seconds"] = idle_auto_shutdown_time_seconds
|
|
520
|
+
__props__.__dict__["main_file"] = main_file
|
|
521
|
+
__props__.__dict__["name"] = name
|
|
522
|
+
__props__.__dict__["query_warehouse"] = query_warehouse
|
|
523
|
+
__props__.__dict__["schema"] = schema
|
|
524
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
525
|
+
__props__.__dict__["warehouse"] = warehouse
|
|
526
|
+
return Notebook(resource_name, opts=opts, __props__=__props__)
|
|
527
|
+
|
|
528
|
+
@_builtins.property
|
|
529
|
+
@pulumi.getter
|
|
530
|
+
def comment(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
531
|
+
"""
|
|
532
|
+
Specifies a comment for the notebook.
|
|
533
|
+
"""
|
|
534
|
+
return pulumi.get(self, "comment")
|
|
535
|
+
|
|
536
|
+
@_builtins.property
|
|
537
|
+
@pulumi.getter
|
|
538
|
+
def database(self) -> pulumi.Output[_builtins.str]:
|
|
539
|
+
"""
|
|
540
|
+
The database in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
541
|
+
"""
|
|
542
|
+
return pulumi.get(self, "database")
|
|
543
|
+
|
|
544
|
+
@_builtins.property
|
|
545
|
+
@pulumi.getter(name="describeOutputs")
|
|
546
|
+
def describe_outputs(self) -> pulumi.Output[Sequence['outputs.NotebookDescribeOutput']]:
|
|
547
|
+
"""
|
|
548
|
+
Outputs the result of `DESCRIBE NOTEBOOK` for the given notebook.
|
|
549
|
+
"""
|
|
550
|
+
return pulumi.get(self, "describe_outputs")
|
|
551
|
+
|
|
552
|
+
@_builtins.property
|
|
553
|
+
@pulumi.getter
|
|
554
|
+
def froms(self) -> pulumi.Output[Optional[Sequence['outputs.NotebookFrom']]]:
|
|
555
|
+
"""
|
|
556
|
+
Specifies the location in a stage of an .ipynb file from which the notebook should be created. MAIN_FILE parameter a user-specified identifier for the notebook file name must also be set alongside it.
|
|
557
|
+
"""
|
|
558
|
+
return pulumi.get(self, "froms")
|
|
559
|
+
|
|
560
|
+
@_builtins.property
|
|
561
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
562
|
+
def fully_qualified_name(self) -> pulumi.Output[_builtins.str]:
|
|
563
|
+
"""
|
|
564
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
565
|
+
"""
|
|
566
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
567
|
+
|
|
568
|
+
@_builtins.property
|
|
569
|
+
@pulumi.getter(name="idleAutoShutdownTimeSeconds")
|
|
570
|
+
def idle_auto_shutdown_time_seconds(self) -> pulumi.Output[Optional[_builtins.int]]:
|
|
571
|
+
"""
|
|
572
|
+
Specifies the number of seconds of idle time before the notebook is shut down automatically.
|
|
573
|
+
"""
|
|
574
|
+
return pulumi.get(self, "idle_auto_shutdown_time_seconds")
|
|
575
|
+
|
|
576
|
+
@_builtins.property
|
|
577
|
+
@pulumi.getter(name="mainFile")
|
|
578
|
+
def main_file(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
579
|
+
"""
|
|
580
|
+
Specifies a user-specified identifier for the notebook file name.
|
|
581
|
+
"""
|
|
582
|
+
return pulumi.get(self, "main_file")
|
|
583
|
+
|
|
584
|
+
@_builtins.property
|
|
585
|
+
@pulumi.getter
|
|
586
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
587
|
+
"""
|
|
588
|
+
Specifies the identifier for the notebook; must be unique for the schema in which the notebook is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
589
|
+
"""
|
|
590
|
+
return pulumi.get(self, "name")
|
|
591
|
+
|
|
592
|
+
@_builtins.property
|
|
593
|
+
@pulumi.getter(name="queryWarehouse")
|
|
594
|
+
def query_warehouse(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
595
|
+
"""
|
|
596
|
+
Specifies the warehouse where SQL queries in the notebook are run.
|
|
597
|
+
"""
|
|
598
|
+
return pulumi.get(self, "query_warehouse")
|
|
599
|
+
|
|
600
|
+
@_builtins.property
|
|
601
|
+
@pulumi.getter
|
|
602
|
+
def schema(self) -> pulumi.Output[_builtins.str]:
|
|
603
|
+
"""
|
|
604
|
+
The schema in which to create the notebook. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
605
|
+
"""
|
|
606
|
+
return pulumi.get(self, "schema")
|
|
607
|
+
|
|
608
|
+
@_builtins.property
|
|
609
|
+
@pulumi.getter(name="showOutputs")
|
|
610
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.NotebookShowOutput']]:
|
|
611
|
+
"""
|
|
612
|
+
Outputs the result of `SHOW NOTEBOOKS` for the given notebook
|
|
613
|
+
"""
|
|
614
|
+
return pulumi.get(self, "show_outputs")
|
|
615
|
+
|
|
616
|
+
@_builtins.property
|
|
617
|
+
@pulumi.getter
|
|
618
|
+
def warehouse(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
619
|
+
"""
|
|
620
|
+
Specifies the warehouse that runs the notebook kernel and python code.
|
|
621
|
+
"""
|
|
622
|
+
return pulumi.get(self, "warehouse")
|
|
623
|
+
|