pulumi-snowflake 2.1.0a1750230214__py3-none-any.whl → 2.2.0a1751946295__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.

Potentially problematic release.


This version of pulumi-snowflake might be problematic. Click here for more details.

Files changed (40) hide show
  1. pulumi_snowflake/__init__.py +58 -0
  2. pulumi_snowflake/_inputs.py +4790 -958
  3. pulumi_snowflake/account.py +47 -0
  4. pulumi_snowflake/compute_pool.py +625 -0
  5. pulumi_snowflake/config/__init__.pyi +6 -3
  6. pulumi_snowflake/config/vars.py +6 -3
  7. pulumi_snowflake/cortex_search_service.py +77 -0
  8. pulumi_snowflake/current_account.py +5885 -0
  9. pulumi_snowflake/database.py +7 -7
  10. pulumi_snowflake/get_compute_pools.py +175 -0
  11. pulumi_snowflake/get_cortex_search_services.py +3 -3
  12. pulumi_snowflake/get_database_roles.py +3 -3
  13. pulumi_snowflake/get_databases.py +3 -3
  14. pulumi_snowflake/get_git_repositories.py +175 -0
  15. pulumi_snowflake/get_image_repositories.py +135 -0
  16. pulumi_snowflake/get_masking_policies.py +3 -3
  17. pulumi_snowflake/get_row_access_policies.py +3 -3
  18. pulumi_snowflake/get_schemas.py +3 -3
  19. pulumi_snowflake/get_services.py +215 -0
  20. pulumi_snowflake/get_streamlits.py +3 -3
  21. pulumi_snowflake/get_streams.py +3 -3
  22. pulumi_snowflake/get_tables.py +103 -62
  23. pulumi_snowflake/get_tasks.py +3 -3
  24. pulumi_snowflake/get_users.py +3 -3
  25. pulumi_snowflake/get_views.py +3 -3
  26. pulumi_snowflake/git_repository.py +532 -0
  27. pulumi_snowflake/image_repository.py +361 -0
  28. pulumi_snowflake/job_service.py +653 -0
  29. pulumi_snowflake/outputs.py +4220 -136
  30. pulumi_snowflake/provider.py +24 -12
  31. pulumi_snowflake/pulumi-plugin.json +1 -1
  32. pulumi_snowflake/schema.py +7 -7
  33. pulumi_snowflake/secondary_database.py +7 -7
  34. pulumi_snowflake/service.py +888 -0
  35. pulumi_snowflake/shared_database.py +7 -7
  36. pulumi_snowflake/tag_association.py +7 -7
  37. {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/METADATA +1 -1
  38. {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/RECORD +40 -30
  39. {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/WHEEL +0 -0
  40. {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,361 @@
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
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from . import _utilities
17
+ from . import outputs
18
+ from ._inputs import *
19
+
20
+ __all__ = ['ImageRepositoryArgs', 'ImageRepository']
21
+
22
+ @pulumi.input_type
23
+ class ImageRepositoryArgs:
24
+ def __init__(__self__, *,
25
+ database: pulumi.Input[builtins.str],
26
+ schema: pulumi.Input[builtins.str],
27
+ comment: Optional[pulumi.Input[builtins.str]] = None,
28
+ name: Optional[pulumi.Input[builtins.str]] = None):
29
+ """
30
+ The set of arguments for constructing a ImageRepository resource.
31
+ :param pulumi.Input[builtins.str] database: The database in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
32
+ :param pulumi.Input[builtins.str] schema: The schema in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
33
+ :param pulumi.Input[builtins.str] comment: Specifies a comment for the object.
34
+ :param pulumi.Input[builtins.str] name: Specifies the identifier for the image repository; must be unique for the schema in which the image repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
35
+ """
36
+ pulumi.set(__self__, "database", database)
37
+ pulumi.set(__self__, "schema", schema)
38
+ if comment is not None:
39
+ pulumi.set(__self__, "comment", comment)
40
+ if name is not None:
41
+ pulumi.set(__self__, "name", name)
42
+
43
+ @property
44
+ @pulumi.getter
45
+ def database(self) -> pulumi.Input[builtins.str]:
46
+ """
47
+ The database in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
48
+ """
49
+ return pulumi.get(self, "database")
50
+
51
+ @database.setter
52
+ def database(self, value: pulumi.Input[builtins.str]):
53
+ pulumi.set(self, "database", value)
54
+
55
+ @property
56
+ @pulumi.getter
57
+ def schema(self) -> pulumi.Input[builtins.str]:
58
+ """
59
+ The schema in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
60
+ """
61
+ return pulumi.get(self, "schema")
62
+
63
+ @schema.setter
64
+ def schema(self, value: pulumi.Input[builtins.str]):
65
+ pulumi.set(self, "schema", value)
66
+
67
+ @property
68
+ @pulumi.getter
69
+ def comment(self) -> Optional[pulumi.Input[builtins.str]]:
70
+ """
71
+ Specifies a comment for the object.
72
+ """
73
+ return pulumi.get(self, "comment")
74
+
75
+ @comment.setter
76
+ def comment(self, value: Optional[pulumi.Input[builtins.str]]):
77
+ pulumi.set(self, "comment", value)
78
+
79
+ @property
80
+ @pulumi.getter
81
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
82
+ """
83
+ Specifies the identifier for the image repository; must be unique for the schema in which the image repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
84
+ """
85
+ return pulumi.get(self, "name")
86
+
87
+ @name.setter
88
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
89
+ pulumi.set(self, "name", value)
90
+
91
+
92
+ @pulumi.input_type
93
+ class _ImageRepositoryState:
94
+ def __init__(__self__, *,
95
+ comment: Optional[pulumi.Input[builtins.str]] = None,
96
+ database: Optional[pulumi.Input[builtins.str]] = None,
97
+ fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
98
+ name: Optional[pulumi.Input[builtins.str]] = None,
99
+ schema: Optional[pulumi.Input[builtins.str]] = None,
100
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ImageRepositoryShowOutputArgs']]]] = None):
101
+ """
102
+ Input properties used for looking up and filtering ImageRepository resources.
103
+ :param pulumi.Input[builtins.str] comment: Specifies a comment for the object.
104
+ :param pulumi.Input[builtins.str] database: The database in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
105
+ :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).
106
+ :param pulumi.Input[builtins.str] name: Specifies the identifier for the image repository; must be unique for the schema in which the image repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
107
+ :param pulumi.Input[builtins.str] schema: The schema in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
108
+ :param pulumi.Input[Sequence[pulumi.Input['ImageRepositoryShowOutputArgs']]] show_outputs: Outputs the result of `SHOW IMAGE REPOSITORIES` for the given image repository.
109
+ """
110
+ if comment is not None:
111
+ pulumi.set(__self__, "comment", comment)
112
+ if database is not None:
113
+ pulumi.set(__self__, "database", database)
114
+ if fully_qualified_name is not None:
115
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
116
+ if name is not None:
117
+ pulumi.set(__self__, "name", name)
118
+ if schema is not None:
119
+ pulumi.set(__self__, "schema", schema)
120
+ if show_outputs is not None:
121
+ pulumi.set(__self__, "show_outputs", show_outputs)
122
+
123
+ @property
124
+ @pulumi.getter
125
+ def comment(self) -> Optional[pulumi.Input[builtins.str]]:
126
+ """
127
+ Specifies a comment for the object.
128
+ """
129
+ return pulumi.get(self, "comment")
130
+
131
+ @comment.setter
132
+ def comment(self, value: Optional[pulumi.Input[builtins.str]]):
133
+ pulumi.set(self, "comment", value)
134
+
135
+ @property
136
+ @pulumi.getter
137
+ def database(self) -> Optional[pulumi.Input[builtins.str]]:
138
+ """
139
+ The database in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
140
+ """
141
+ return pulumi.get(self, "database")
142
+
143
+ @database.setter
144
+ def database(self, value: Optional[pulumi.Input[builtins.str]]):
145
+ pulumi.set(self, "database", value)
146
+
147
+ @property
148
+ @pulumi.getter(name="fullyQualifiedName")
149
+ def fully_qualified_name(self) -> Optional[pulumi.Input[builtins.str]]:
150
+ """
151
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
152
+ """
153
+ return pulumi.get(self, "fully_qualified_name")
154
+
155
+ @fully_qualified_name.setter
156
+ def fully_qualified_name(self, value: Optional[pulumi.Input[builtins.str]]):
157
+ pulumi.set(self, "fully_qualified_name", value)
158
+
159
+ @property
160
+ @pulumi.getter
161
+ def name(self) -> Optional[pulumi.Input[builtins.str]]:
162
+ """
163
+ Specifies the identifier for the image repository; must be unique for the schema in which the image repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
164
+ """
165
+ return pulumi.get(self, "name")
166
+
167
+ @name.setter
168
+ def name(self, value: Optional[pulumi.Input[builtins.str]]):
169
+ pulumi.set(self, "name", value)
170
+
171
+ @property
172
+ @pulumi.getter
173
+ def schema(self) -> Optional[pulumi.Input[builtins.str]]:
174
+ """
175
+ The schema in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
176
+ """
177
+ return pulumi.get(self, "schema")
178
+
179
+ @schema.setter
180
+ def schema(self, value: Optional[pulumi.Input[builtins.str]]):
181
+ pulumi.set(self, "schema", value)
182
+
183
+ @property
184
+ @pulumi.getter(name="showOutputs")
185
+ def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ImageRepositoryShowOutputArgs']]]]:
186
+ """
187
+ Outputs the result of `SHOW IMAGE REPOSITORIES` for the given image repository.
188
+ """
189
+ return pulumi.get(self, "show_outputs")
190
+
191
+ @show_outputs.setter
192
+ def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ImageRepositoryShowOutputArgs']]]]):
193
+ pulumi.set(self, "show_outputs", value)
194
+
195
+
196
+ @pulumi.type_token("snowflake:index/imageRepository:ImageRepository")
197
+ class ImageRepository(pulumi.CustomResource):
198
+ @overload
199
+ def __init__(__self__,
200
+ resource_name: str,
201
+ opts: Optional[pulumi.ResourceOptions] = None,
202
+ comment: Optional[pulumi.Input[builtins.str]] = None,
203
+ database: Optional[pulumi.Input[builtins.str]] = None,
204
+ name: Optional[pulumi.Input[builtins.str]] = None,
205
+ schema: Optional[pulumi.Input[builtins.str]] = None,
206
+ __props__=None):
207
+ """
208
+ ## Import
209
+
210
+ ```sh
211
+ $ pulumi import snowflake:index/imageRepository:ImageRepository example '"<database_name>"."<schema_name>"."<image_repository_name>"'
212
+ ```
213
+
214
+ :param str resource_name: The name of the resource.
215
+ :param pulumi.ResourceOptions opts: Options for the resource.
216
+ :param pulumi.Input[builtins.str] comment: Specifies a comment for the object.
217
+ :param pulumi.Input[builtins.str] database: The database in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
218
+ :param pulumi.Input[builtins.str] name: Specifies the identifier for the image repository; must be unique for the schema in which the image repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
219
+ :param pulumi.Input[builtins.str] schema: The schema in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
220
+ """
221
+ ...
222
+ @overload
223
+ def __init__(__self__,
224
+ resource_name: str,
225
+ args: ImageRepositoryArgs,
226
+ opts: Optional[pulumi.ResourceOptions] = None):
227
+ """
228
+ ## Import
229
+
230
+ ```sh
231
+ $ pulumi import snowflake:index/imageRepository:ImageRepository example '"<database_name>"."<schema_name>"."<image_repository_name>"'
232
+ ```
233
+
234
+ :param str resource_name: The name of the resource.
235
+ :param ImageRepositoryArgs args: The arguments to use to populate this resource's properties.
236
+ :param pulumi.ResourceOptions opts: Options for the resource.
237
+ """
238
+ ...
239
+ def __init__(__self__, resource_name: str, *args, **kwargs):
240
+ resource_args, opts = _utilities.get_resource_args_opts(ImageRepositoryArgs, pulumi.ResourceOptions, *args, **kwargs)
241
+ if resource_args is not None:
242
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
243
+ else:
244
+ __self__._internal_init(resource_name, *args, **kwargs)
245
+
246
+ def _internal_init(__self__,
247
+ resource_name: str,
248
+ opts: Optional[pulumi.ResourceOptions] = None,
249
+ comment: Optional[pulumi.Input[builtins.str]] = None,
250
+ database: Optional[pulumi.Input[builtins.str]] = None,
251
+ name: Optional[pulumi.Input[builtins.str]] = None,
252
+ schema: Optional[pulumi.Input[builtins.str]] = None,
253
+ __props__=None):
254
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
255
+ if not isinstance(opts, pulumi.ResourceOptions):
256
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
257
+ if opts.id is None:
258
+ if __props__ is not None:
259
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
260
+ __props__ = ImageRepositoryArgs.__new__(ImageRepositoryArgs)
261
+
262
+ __props__.__dict__["comment"] = comment
263
+ if database is None and not opts.urn:
264
+ raise TypeError("Missing required property 'database'")
265
+ __props__.__dict__["database"] = database
266
+ __props__.__dict__["name"] = name
267
+ if schema is None and not opts.urn:
268
+ raise TypeError("Missing required property 'schema'")
269
+ __props__.__dict__["schema"] = schema
270
+ __props__.__dict__["fully_qualified_name"] = None
271
+ __props__.__dict__["show_outputs"] = None
272
+ super(ImageRepository, __self__).__init__(
273
+ 'snowflake:index/imageRepository:ImageRepository',
274
+ resource_name,
275
+ __props__,
276
+ opts)
277
+
278
+ @staticmethod
279
+ def get(resource_name: str,
280
+ id: pulumi.Input[str],
281
+ opts: Optional[pulumi.ResourceOptions] = None,
282
+ comment: Optional[pulumi.Input[builtins.str]] = None,
283
+ database: Optional[pulumi.Input[builtins.str]] = None,
284
+ fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
285
+ name: Optional[pulumi.Input[builtins.str]] = None,
286
+ schema: Optional[pulumi.Input[builtins.str]] = None,
287
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ImageRepositoryShowOutputArgs', 'ImageRepositoryShowOutputArgsDict']]]]] = None) -> 'ImageRepository':
288
+ """
289
+ Get an existing ImageRepository resource's state with the given name, id, and optional extra
290
+ properties used to qualify the lookup.
291
+
292
+ :param str resource_name: The unique name of the resulting resource.
293
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
294
+ :param pulumi.ResourceOptions opts: Options for the resource.
295
+ :param pulumi.Input[builtins.str] comment: Specifies a comment for the object.
296
+ :param pulumi.Input[builtins.str] database: The database in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
297
+ :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).
298
+ :param pulumi.Input[builtins.str] name: Specifies the identifier for the image repository; must be unique for the schema in which the image repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
299
+ :param pulumi.Input[builtins.str] schema: The schema in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
300
+ :param pulumi.Input[Sequence[pulumi.Input[Union['ImageRepositoryShowOutputArgs', 'ImageRepositoryShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW IMAGE REPOSITORIES` for the given image repository.
301
+ """
302
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
303
+
304
+ __props__ = _ImageRepositoryState.__new__(_ImageRepositoryState)
305
+
306
+ __props__.__dict__["comment"] = comment
307
+ __props__.__dict__["database"] = database
308
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
309
+ __props__.__dict__["name"] = name
310
+ __props__.__dict__["schema"] = schema
311
+ __props__.__dict__["show_outputs"] = show_outputs
312
+ return ImageRepository(resource_name, opts=opts, __props__=__props__)
313
+
314
+ @property
315
+ @pulumi.getter
316
+ def comment(self) -> pulumi.Output[Optional[builtins.str]]:
317
+ """
318
+ Specifies a comment for the object.
319
+ """
320
+ return pulumi.get(self, "comment")
321
+
322
+ @property
323
+ @pulumi.getter
324
+ def database(self) -> pulumi.Output[builtins.str]:
325
+ """
326
+ The database in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
327
+ """
328
+ return pulumi.get(self, "database")
329
+
330
+ @property
331
+ @pulumi.getter(name="fullyQualifiedName")
332
+ def fully_qualified_name(self) -> pulumi.Output[builtins.str]:
333
+ """
334
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
335
+ """
336
+ return pulumi.get(self, "fully_qualified_name")
337
+
338
+ @property
339
+ @pulumi.getter
340
+ def name(self) -> pulumi.Output[builtins.str]:
341
+ """
342
+ Specifies the identifier for the image repository; must be unique for the schema in which the image repository is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
343
+ """
344
+ return pulumi.get(self, "name")
345
+
346
+ @property
347
+ @pulumi.getter
348
+ def schema(self) -> pulumi.Output[builtins.str]:
349
+ """
350
+ The schema in which to create the image repository. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
351
+ """
352
+ return pulumi.get(self, "schema")
353
+
354
+ @property
355
+ @pulumi.getter(name="showOutputs")
356
+ def show_outputs(self) -> pulumi.Output[Sequence['outputs.ImageRepositoryShowOutput']]:
357
+ """
358
+ Outputs the result of `SHOW IMAGE REPOSITORIES` for the given image repository.
359
+ """
360
+ return pulumi.get(self, "show_outputs")
361
+