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.
- pulumi_snowflake/__init__.py +58 -0
- pulumi_snowflake/_inputs.py +4790 -958
- pulumi_snowflake/account.py +47 -0
- pulumi_snowflake/compute_pool.py +625 -0
- pulumi_snowflake/config/__init__.pyi +6 -3
- pulumi_snowflake/config/vars.py +6 -3
- pulumi_snowflake/cortex_search_service.py +77 -0
- pulumi_snowflake/current_account.py +5885 -0
- pulumi_snowflake/database.py +7 -7
- pulumi_snowflake/get_compute_pools.py +175 -0
- pulumi_snowflake/get_cortex_search_services.py +3 -3
- pulumi_snowflake/get_database_roles.py +3 -3
- pulumi_snowflake/get_databases.py +3 -3
- pulumi_snowflake/get_git_repositories.py +175 -0
- pulumi_snowflake/get_image_repositories.py +135 -0
- pulumi_snowflake/get_masking_policies.py +3 -3
- pulumi_snowflake/get_row_access_policies.py +3 -3
- pulumi_snowflake/get_schemas.py +3 -3
- pulumi_snowflake/get_services.py +215 -0
- pulumi_snowflake/get_streamlits.py +3 -3
- pulumi_snowflake/get_streams.py +3 -3
- pulumi_snowflake/get_tables.py +103 -62
- pulumi_snowflake/get_tasks.py +3 -3
- pulumi_snowflake/get_users.py +3 -3
- pulumi_snowflake/get_views.py +3 -3
- pulumi_snowflake/git_repository.py +532 -0
- pulumi_snowflake/image_repository.py +361 -0
- pulumi_snowflake/job_service.py +653 -0
- pulumi_snowflake/outputs.py +4220 -136
- pulumi_snowflake/provider.py +24 -12
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/schema.py +7 -7
- pulumi_snowflake/secondary_database.py +7 -7
- pulumi_snowflake/service.py +888 -0
- pulumi_snowflake/shared_database.py +7 -7
- pulumi_snowflake/tag_association.py +7 -7
- {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/METADATA +1 -1
- {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/RECORD +40 -30
- {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/top_level.txt +0 -0
pulumi_snowflake/config/vars.py
CHANGED
|
@@ -36,7 +36,8 @@ class _ExportableConfig(types.ModuleType):
|
|
|
36
36
|
"""
|
|
37
37
|
Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
38
38
|
connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `SNOWFLAKE_JWT` |
|
|
39
|
-
`TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Can also be sourced from the
|
|
39
|
+
`TOKENACCESSOR` | `USERNAMEPASSWORDMFA` | `PROGRAMMATIC_ACCESS_TOKEN`. Can also be sourced from the
|
|
40
|
+
`SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
40
41
|
"""
|
|
41
42
|
return __config__.get('authenticator')
|
|
42
43
|
|
|
@@ -227,8 +228,10 @@ class _ExportableConfig(types.ModuleType):
|
|
|
227
228
|
@property
|
|
228
229
|
def password(self) -> Optional[str]:
|
|
229
230
|
"""
|
|
230
|
-
Password for user + password
|
|
231
|
-
|
|
231
|
+
Password for user + password or
|
|
232
|
+
[token](https://docs.snowflake.com/en/user-guide/programmatic-access-tokens#generating-a-programmatic-access-token) for
|
|
233
|
+
[PAT auth](https://docs.snowflake.com/en/user-guide/programmatic-access-tokens). Cannot be used with `private_key` and
|
|
234
|
+
`private_key_passphrase`. Can also be sourced from the `SNOWFLAKE_PASSWORD` environment variable.
|
|
232
235
|
"""
|
|
233
236
|
return __config__.get('password') or _utilities.get_env('SNOWFLAKE_PASSWORD')
|
|
234
237
|
|
|
@@ -14,6 +14,8 @@ if sys.version_info >= (3, 11):
|
|
|
14
14
|
else:
|
|
15
15
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
16
|
from . import _utilities
|
|
17
|
+
from . import outputs
|
|
18
|
+
from ._inputs import *
|
|
17
19
|
|
|
18
20
|
__all__ = ['CortexSearchServiceArgs', 'CortexSearchService']
|
|
19
21
|
|
|
@@ -28,6 +30,7 @@ class CortexSearchServiceArgs:
|
|
|
28
30
|
warehouse: pulumi.Input[builtins.str],
|
|
29
31
|
attributes: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
30
32
|
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
33
|
+
embedding_model: Optional[pulumi.Input[builtins.str]] = None,
|
|
31
34
|
name: Optional[pulumi.Input[builtins.str]] = None):
|
|
32
35
|
"""
|
|
33
36
|
The set of arguments for constructing a CortexSearchService resource.
|
|
@@ -39,6 +42,7 @@ class CortexSearchServiceArgs:
|
|
|
39
42
|
:param pulumi.Input[builtins.str] warehouse: The warehouse in which to create the Cortex search service.
|
|
40
43
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] attributes: Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
|
|
41
44
|
:param pulumi.Input[builtins.str] comment: Specifies a comment for the Cortex search service.
|
|
45
|
+
:param pulumi.Input[builtins.str] embedding_model: Specifies the embedding model to use for the Cortex search service.
|
|
42
46
|
:param pulumi.Input[builtins.str] name: Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
|
|
43
47
|
"""
|
|
44
48
|
pulumi.set(__self__, "database", database)
|
|
@@ -51,6 +55,8 @@ class CortexSearchServiceArgs:
|
|
|
51
55
|
pulumi.set(__self__, "attributes", attributes)
|
|
52
56
|
if comment is not None:
|
|
53
57
|
pulumi.set(__self__, "comment", comment)
|
|
58
|
+
if embedding_model is not None:
|
|
59
|
+
pulumi.set(__self__, "embedding_model", embedding_model)
|
|
54
60
|
if name is not None:
|
|
55
61
|
pulumi.set(__self__, "name", name)
|
|
56
62
|
|
|
@@ -150,6 +156,18 @@ class CortexSearchServiceArgs:
|
|
|
150
156
|
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
151
157
|
pulumi.set(self, "comment", value)
|
|
152
158
|
|
|
159
|
+
@property
|
|
160
|
+
@pulumi.getter(name="embeddingModel")
|
|
161
|
+
def embedding_model(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
162
|
+
"""
|
|
163
|
+
Specifies the embedding model to use for the Cortex search service.
|
|
164
|
+
"""
|
|
165
|
+
return pulumi.get(self, "embedding_model")
|
|
166
|
+
|
|
167
|
+
@embedding_model.setter
|
|
168
|
+
def embedding_model(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
169
|
+
pulumi.set(self, "embedding_model", value)
|
|
170
|
+
|
|
153
171
|
@property
|
|
154
172
|
@pulumi.getter
|
|
155
173
|
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
@@ -170,6 +188,8 @@ class _CortexSearchServiceState:
|
|
|
170
188
|
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
171
189
|
created_on: Optional[pulumi.Input[builtins.str]] = None,
|
|
172
190
|
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
191
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['CortexSearchServiceDescribeOutputArgs']]]] = None,
|
|
192
|
+
embedding_model: Optional[pulumi.Input[builtins.str]] = None,
|
|
173
193
|
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
174
194
|
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
175
195
|
on: Optional[pulumi.Input[builtins.str]] = None,
|
|
@@ -183,6 +203,8 @@ class _CortexSearchServiceState:
|
|
|
183
203
|
:param pulumi.Input[builtins.str] comment: Specifies a comment for the Cortex search service.
|
|
184
204
|
:param pulumi.Input[builtins.str] created_on: Creation date for the given Cortex search service.
|
|
185
205
|
:param pulumi.Input[builtins.str] database: The database in which to create the Cortex search service.
|
|
206
|
+
:param pulumi.Input[Sequence[pulumi.Input['CortexSearchServiceDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE CORTEX SEARCH SERVICE` for the given cortex search service.
|
|
207
|
+
:param pulumi.Input[builtins.str] embedding_model: Specifies the embedding model to use for the Cortex search service.
|
|
186
208
|
: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).
|
|
187
209
|
:param pulumi.Input[builtins.str] name: Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
|
|
188
210
|
:param pulumi.Input[builtins.str] on: Specifies the column to use as the search column for the Cortex search service; must be a text value.
|
|
@@ -199,6 +221,10 @@ class _CortexSearchServiceState:
|
|
|
199
221
|
pulumi.set(__self__, "created_on", created_on)
|
|
200
222
|
if database is not None:
|
|
201
223
|
pulumi.set(__self__, "database", database)
|
|
224
|
+
if describe_outputs is not None:
|
|
225
|
+
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
226
|
+
if embedding_model is not None:
|
|
227
|
+
pulumi.set(__self__, "embedding_model", embedding_model)
|
|
202
228
|
if fully_qualified_name is not None:
|
|
203
229
|
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
204
230
|
if name is not None:
|
|
@@ -262,6 +288,30 @@ class _CortexSearchServiceState:
|
|
|
262
288
|
def database(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
263
289
|
pulumi.set(self, "database", value)
|
|
264
290
|
|
|
291
|
+
@property
|
|
292
|
+
@pulumi.getter(name="describeOutputs")
|
|
293
|
+
def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CortexSearchServiceDescribeOutputArgs']]]]:
|
|
294
|
+
"""
|
|
295
|
+
Outputs the result of `DESCRIBE CORTEX SEARCH SERVICE` for the given cortex search service.
|
|
296
|
+
"""
|
|
297
|
+
return pulumi.get(self, "describe_outputs")
|
|
298
|
+
|
|
299
|
+
@describe_outputs.setter
|
|
300
|
+
def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['CortexSearchServiceDescribeOutputArgs']]]]):
|
|
301
|
+
pulumi.set(self, "describe_outputs", value)
|
|
302
|
+
|
|
303
|
+
@property
|
|
304
|
+
@pulumi.getter(name="embeddingModel")
|
|
305
|
+
def embedding_model(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
306
|
+
"""
|
|
307
|
+
Specifies the embedding model to use for the Cortex search service.
|
|
308
|
+
"""
|
|
309
|
+
return pulumi.get(self, "embedding_model")
|
|
310
|
+
|
|
311
|
+
@embedding_model.setter
|
|
312
|
+
def embedding_model(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
313
|
+
pulumi.set(self, "embedding_model", value)
|
|
314
|
+
|
|
265
315
|
@property
|
|
266
316
|
@pulumi.getter(name="fullyQualifiedName")
|
|
267
317
|
def fully_qualified_name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
@@ -356,6 +406,7 @@ class CortexSearchService(pulumi.CustomResource):
|
|
|
356
406
|
attributes: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
357
407
|
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
358
408
|
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
409
|
+
embedding_model: Optional[pulumi.Input[builtins.str]] = None,
|
|
359
410
|
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
360
411
|
on: Optional[pulumi.Input[builtins.str]] = None,
|
|
361
412
|
query: Optional[pulumi.Input[builtins.str]] = None,
|
|
@@ -375,6 +426,7 @@ class CortexSearchService(pulumi.CustomResource):
|
|
|
375
426
|
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] attributes: Specifies the list of columns in the base table to enable filtering on when issuing queries to the service.
|
|
376
427
|
:param pulumi.Input[builtins.str] comment: Specifies a comment for the Cortex search service.
|
|
377
428
|
:param pulumi.Input[builtins.str] database: The database in which to create the Cortex search service.
|
|
429
|
+
:param pulumi.Input[builtins.str] embedding_model: Specifies the embedding model to use for the Cortex search service.
|
|
378
430
|
:param pulumi.Input[builtins.str] name: Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
|
|
379
431
|
:param pulumi.Input[builtins.str] on: Specifies the column to use as the search column for the Cortex search service; must be a text value.
|
|
380
432
|
:param pulumi.Input[builtins.str] query: Specifies the query to use to populate the Cortex search service.
|
|
@@ -413,6 +465,7 @@ class CortexSearchService(pulumi.CustomResource):
|
|
|
413
465
|
attributes: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
414
466
|
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
415
467
|
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
468
|
+
embedding_model: Optional[pulumi.Input[builtins.str]] = None,
|
|
416
469
|
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
417
470
|
on: Optional[pulumi.Input[builtins.str]] = None,
|
|
418
471
|
query: Optional[pulumi.Input[builtins.str]] = None,
|
|
@@ -433,6 +486,7 @@ class CortexSearchService(pulumi.CustomResource):
|
|
|
433
486
|
if database is None and not opts.urn:
|
|
434
487
|
raise TypeError("Missing required property 'database'")
|
|
435
488
|
__props__.__dict__["database"] = database
|
|
489
|
+
__props__.__dict__["embedding_model"] = embedding_model
|
|
436
490
|
__props__.__dict__["name"] = name
|
|
437
491
|
if on is None and not opts.urn:
|
|
438
492
|
raise TypeError("Missing required property 'on'")
|
|
@@ -450,6 +504,7 @@ class CortexSearchService(pulumi.CustomResource):
|
|
|
450
504
|
raise TypeError("Missing required property 'warehouse'")
|
|
451
505
|
__props__.__dict__["warehouse"] = warehouse
|
|
452
506
|
__props__.__dict__["created_on"] = None
|
|
507
|
+
__props__.__dict__["describe_outputs"] = None
|
|
453
508
|
__props__.__dict__["fully_qualified_name"] = None
|
|
454
509
|
super(CortexSearchService, __self__).__init__(
|
|
455
510
|
'snowflake:index/cortexSearchService:CortexSearchService',
|
|
@@ -465,6 +520,8 @@ class CortexSearchService(pulumi.CustomResource):
|
|
|
465
520
|
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
466
521
|
created_on: Optional[pulumi.Input[builtins.str]] = None,
|
|
467
522
|
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
523
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['CortexSearchServiceDescribeOutputArgs', 'CortexSearchServiceDescribeOutputArgsDict']]]]] = None,
|
|
524
|
+
embedding_model: Optional[pulumi.Input[builtins.str]] = None,
|
|
468
525
|
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
469
526
|
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
470
527
|
on: Optional[pulumi.Input[builtins.str]] = None,
|
|
@@ -483,6 +540,8 @@ class CortexSearchService(pulumi.CustomResource):
|
|
|
483
540
|
:param pulumi.Input[builtins.str] comment: Specifies a comment for the Cortex search service.
|
|
484
541
|
:param pulumi.Input[builtins.str] created_on: Creation date for the given Cortex search service.
|
|
485
542
|
:param pulumi.Input[builtins.str] database: The database in which to create the Cortex search service.
|
|
543
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['CortexSearchServiceDescribeOutputArgs', 'CortexSearchServiceDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE CORTEX SEARCH SERVICE` for the given cortex search service.
|
|
544
|
+
:param pulumi.Input[builtins.str] embedding_model: Specifies the embedding model to use for the Cortex search service.
|
|
486
545
|
: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).
|
|
487
546
|
:param pulumi.Input[builtins.str] name: Specifies the name of the Cortex search service. The name must be unique for the schema in which the service is created.
|
|
488
547
|
:param pulumi.Input[builtins.str] on: Specifies the column to use as the search column for the Cortex search service; must be a text value.
|
|
@@ -499,6 +558,8 @@ class CortexSearchService(pulumi.CustomResource):
|
|
|
499
558
|
__props__.__dict__["comment"] = comment
|
|
500
559
|
__props__.__dict__["created_on"] = created_on
|
|
501
560
|
__props__.__dict__["database"] = database
|
|
561
|
+
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
562
|
+
__props__.__dict__["embedding_model"] = embedding_model
|
|
502
563
|
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
503
564
|
__props__.__dict__["name"] = name
|
|
504
565
|
__props__.__dict__["on"] = on
|
|
@@ -540,6 +601,22 @@ class CortexSearchService(pulumi.CustomResource):
|
|
|
540
601
|
"""
|
|
541
602
|
return pulumi.get(self, "database")
|
|
542
603
|
|
|
604
|
+
@property
|
|
605
|
+
@pulumi.getter(name="describeOutputs")
|
|
606
|
+
def describe_outputs(self) -> pulumi.Output[Sequence['outputs.CortexSearchServiceDescribeOutput']]:
|
|
607
|
+
"""
|
|
608
|
+
Outputs the result of `DESCRIBE CORTEX SEARCH SERVICE` for the given cortex search service.
|
|
609
|
+
"""
|
|
610
|
+
return pulumi.get(self, "describe_outputs")
|
|
611
|
+
|
|
612
|
+
@property
|
|
613
|
+
@pulumi.getter(name="embeddingModel")
|
|
614
|
+
def embedding_model(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
615
|
+
"""
|
|
616
|
+
Specifies the embedding model to use for the Cortex search service.
|
|
617
|
+
"""
|
|
618
|
+
return pulumi.get(self, "embedding_model")
|
|
619
|
+
|
|
543
620
|
@property
|
|
544
621
|
@pulumi.getter(name="fullyQualifiedName")
|
|
545
622
|
def fully_qualified_name(self) -> pulumi.Output[builtins.str]:
|