pulumi-snowflake 0.57.1a1722856643__py3-none-any.whl → 0.58.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/_inputs.py +5859 -127
- pulumi_snowflake/account.py +28 -50
- pulumi_snowflake/account_parameter.py +0 -28
- pulumi_snowflake/account_password_policy_attachment.py +2 -30
- pulumi_snowflake/account_role.py +51 -32
- pulumi_snowflake/alert.py +33 -45
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +39 -19
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +39 -19
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +39 -19
- pulumi_snowflake/api_integration.py +28 -54
- pulumi_snowflake/cortex_search_service.py +28 -0
- pulumi_snowflake/database.py +97 -148
- pulumi_snowflake/database_old.py +5 -77
- pulumi_snowflake/database_role.py +76 -42
- pulumi_snowflake/dynamic_table.py +33 -43
- pulumi_snowflake/email_notification_integration.py +28 -26
- pulumi_snowflake/external_function.py +38 -62
- pulumi_snowflake/external_oauth_integration.py +41 -21
- pulumi_snowflake/external_table.py +38 -58
- pulumi_snowflake/failover_group.py +38 -82
- pulumi_snowflake/file_format.py +28 -26
- pulumi_snowflake/function.py +33 -9
- pulumi_snowflake/get_cortex_search_services.py +16 -16
- pulumi_snowflake/get_database_roles.py +61 -38
- pulumi_snowflake/get_databases.py +4 -4
- pulumi_snowflake/get_dynamic_tables.py +12 -12
- pulumi_snowflake/get_grants.py +138 -138
- pulumi_snowflake/get_schemas.py +8 -8
- pulumi_snowflake/get_streamlits.py +8 -8
- pulumi_snowflake/get_users.py +96 -33
- pulumi_snowflake/get_views.py +92 -53
- pulumi_snowflake/grant_account_role.py +0 -4
- pulumi_snowflake/grant_application_role.py +0 -4
- pulumi_snowflake/grant_database_role.py +0 -4
- 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 +16 -12
- pulumi_snowflake/grant_privileges_to_share.py +47 -0
- pulumi_snowflake/managed_account.py +28 -4
- pulumi_snowflake/masking_policy.py +33 -89
- pulumi_snowflake/materialized_view.py +33 -39
- pulumi_snowflake/network_policy.py +47 -49
- pulumi_snowflake/network_policy_attachment.py +0 -30
- pulumi_snowflake/network_rule.py +28 -66
- pulumi_snowflake/notification_integration.py +28 -34
- pulumi_snowflake/oauth_integration.py +0 -34
- pulumi_snowflake/oauth_integration_for_custom_clients.py +39 -105
- pulumi_snowflake/oauth_integration_for_partner_applications.py +39 -19
- pulumi_snowflake/object_parameter.py +5 -103
- pulumi_snowflake/outputs.py +11648 -3842
- pulumi_snowflake/password_policy.py +28 -28
- pulumi_snowflake/pipe.py +28 -4
- pulumi_snowflake/procedure.py +33 -9
- pulumi_snowflake/provider.py +16 -16
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +28 -48
- pulumi_snowflake/role.py +51 -32
- pulumi_snowflake/row_access_policy.py +28 -34
- pulumi_snowflake/saml2_integration.py +39 -19
- pulumi_snowflake/saml_integration.py +0 -34
- pulumi_snowflake/schema.py +45 -25
- pulumi_snowflake/scim_integration.py +39 -19
- pulumi_snowflake/secondary_database.py +35 -19
- pulumi_snowflake/sequence.py +4 -36
- pulumi_snowflake/session_parameter.py +0 -32
- pulumi_snowflake/share.py +28 -28
- pulumi_snowflake/shared_database.py +35 -15
- pulumi_snowflake/stage.py +33 -33
- pulumi_snowflake/storage_integration.py +28 -4
- pulumi_snowflake/stream.py +28 -4
- pulumi_snowflake/streamlit.py +39 -19
- pulumi_snowflake/table.py +43 -47
- pulumi_snowflake/table_column_masking_policy_application.py +2 -14
- pulumi_snowflake/table_constraint.py +5 -157
- pulumi_snowflake/tag.py +28 -40
- pulumi_snowflake/tag_association.py +5 -125
- pulumi_snowflake/tag_masking_policy_association.py +0 -4
- pulumi_snowflake/task.py +28 -92
- pulumi_snowflake/unsafe_execute.py +2 -20
- pulumi_snowflake/user.py +3341 -368
- pulumi_snowflake/user_password_policy_attachment.py +0 -36
- pulumi_snowflake/view.py +465 -185
- pulumi_snowflake/warehouse.py +39 -43
- {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/METADATA +1 -1
- pulumi_snowflake-0.58.0.dist-info/RECORD +129 -0
- {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/WHEEL +1 -1
- pulumi_snowflake-0.57.1a1722856643.dist-info/RECORD +0 -129
- {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/top_level.txt +0 -0
|
@@ -230,7 +230,7 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
230
230
|
def __init__(__self__,
|
|
231
231
|
resource_name: str,
|
|
232
232
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
233
|
-
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
233
|
+
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TagAssociationObjectIdentifierArgs', 'TagAssociationObjectIdentifierArgsDict']]]]] = None,
|
|
234
234
|
object_name: Optional[pulumi.Input[str]] = None,
|
|
235
235
|
object_type: Optional[pulumi.Input[str]] = None,
|
|
236
236
|
skip_validation: Optional[pulumi.Input[bool]] = None,
|
|
@@ -238,66 +238,6 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
238
238
|
tag_value: Optional[pulumi.Input[str]] = None,
|
|
239
239
|
__props__=None):
|
|
240
240
|
"""
|
|
241
|
-
## Example Usage
|
|
242
|
-
|
|
243
|
-
```python
|
|
244
|
-
import pulumi
|
|
245
|
-
import pulumi_snowflake as snowflake
|
|
246
|
-
|
|
247
|
-
test = snowflake.Database("test", name="database")
|
|
248
|
-
test_schema = snowflake.Schema("test",
|
|
249
|
-
name="schema",
|
|
250
|
-
database=test.name)
|
|
251
|
-
test_tag = snowflake.Tag("test",
|
|
252
|
-
name="cost_center",
|
|
253
|
-
database=test.name,
|
|
254
|
-
schema=test_schema.name,
|
|
255
|
-
allowed_values=[
|
|
256
|
-
"finance",
|
|
257
|
-
"engineering",
|
|
258
|
-
])
|
|
259
|
-
db_association = snowflake.TagAssociation("db_association",
|
|
260
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
261
|
-
name=test.name,
|
|
262
|
-
)],
|
|
263
|
-
object_type="DATABASE",
|
|
264
|
-
tag_id=test_tag.id,
|
|
265
|
-
tag_value="finance")
|
|
266
|
-
test_table = snowflake.Table("test",
|
|
267
|
-
database=test.name,
|
|
268
|
-
schema=test_schema.name,
|
|
269
|
-
name="TABLE_NAME",
|
|
270
|
-
comment="Terraform example table",
|
|
271
|
-
columns=[
|
|
272
|
-
snowflake.TableColumnArgs(
|
|
273
|
-
name="column1",
|
|
274
|
-
type="VARIANT",
|
|
275
|
-
),
|
|
276
|
-
snowflake.TableColumnArgs(
|
|
277
|
-
name="column2",
|
|
278
|
-
type="VARCHAR(16)",
|
|
279
|
-
),
|
|
280
|
-
])
|
|
281
|
-
table_association = snowflake.TagAssociation("table_association",
|
|
282
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
283
|
-
name=test_table.name,
|
|
284
|
-
database=test.name,
|
|
285
|
-
schema=test_schema.name,
|
|
286
|
-
)],
|
|
287
|
-
object_type="TABLE",
|
|
288
|
-
tag_id=test_tag.id,
|
|
289
|
-
tag_value="engineering")
|
|
290
|
-
column_association = snowflake.TagAssociation("column_association",
|
|
291
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
292
|
-
name=test_table.name.apply(lambda name: f"{name}.column_name"),
|
|
293
|
-
database=test.name,
|
|
294
|
-
schema=test_schema.name,
|
|
295
|
-
)],
|
|
296
|
-
object_type="COLUMN",
|
|
297
|
-
tag_id=test_tag.id,
|
|
298
|
-
tag_value="engineering")
|
|
299
|
-
```
|
|
300
|
-
|
|
301
241
|
## Import
|
|
302
242
|
|
|
303
243
|
format is dbName.schemaName.tagName or dbName.schemaName.tagName
|
|
@@ -308,7 +248,7 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
308
248
|
|
|
309
249
|
:param str resource_name: The name of the resource.
|
|
310
250
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
311
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
251
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['TagAssociationObjectIdentifierArgs', 'TagAssociationObjectIdentifierArgsDict']]]] object_identifiers: Specifies the object identifier for the tag association.
|
|
312
252
|
:param pulumi.Input[str] object_name: Specifies the object identifier for the tag association.
|
|
313
253
|
:param pulumi.Input[str] object_type: Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE INTEGRATION NETWORK POLICY ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT EXTERNAL FUNCTION EXTERNAL TABLE GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
|
|
314
254
|
:param pulumi.Input[bool] skip_validation: If true, skips validation of the tag association.
|
|
@@ -322,66 +262,6 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
322
262
|
args: TagAssociationArgs,
|
|
323
263
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
324
264
|
"""
|
|
325
|
-
## Example Usage
|
|
326
|
-
|
|
327
|
-
```python
|
|
328
|
-
import pulumi
|
|
329
|
-
import pulumi_snowflake as snowflake
|
|
330
|
-
|
|
331
|
-
test = snowflake.Database("test", name="database")
|
|
332
|
-
test_schema = snowflake.Schema("test",
|
|
333
|
-
name="schema",
|
|
334
|
-
database=test.name)
|
|
335
|
-
test_tag = snowflake.Tag("test",
|
|
336
|
-
name="cost_center",
|
|
337
|
-
database=test.name,
|
|
338
|
-
schema=test_schema.name,
|
|
339
|
-
allowed_values=[
|
|
340
|
-
"finance",
|
|
341
|
-
"engineering",
|
|
342
|
-
])
|
|
343
|
-
db_association = snowflake.TagAssociation("db_association",
|
|
344
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
345
|
-
name=test.name,
|
|
346
|
-
)],
|
|
347
|
-
object_type="DATABASE",
|
|
348
|
-
tag_id=test_tag.id,
|
|
349
|
-
tag_value="finance")
|
|
350
|
-
test_table = snowflake.Table("test",
|
|
351
|
-
database=test.name,
|
|
352
|
-
schema=test_schema.name,
|
|
353
|
-
name="TABLE_NAME",
|
|
354
|
-
comment="Terraform example table",
|
|
355
|
-
columns=[
|
|
356
|
-
snowflake.TableColumnArgs(
|
|
357
|
-
name="column1",
|
|
358
|
-
type="VARIANT",
|
|
359
|
-
),
|
|
360
|
-
snowflake.TableColumnArgs(
|
|
361
|
-
name="column2",
|
|
362
|
-
type="VARCHAR(16)",
|
|
363
|
-
),
|
|
364
|
-
])
|
|
365
|
-
table_association = snowflake.TagAssociation("table_association",
|
|
366
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
367
|
-
name=test_table.name,
|
|
368
|
-
database=test.name,
|
|
369
|
-
schema=test_schema.name,
|
|
370
|
-
)],
|
|
371
|
-
object_type="TABLE",
|
|
372
|
-
tag_id=test_tag.id,
|
|
373
|
-
tag_value="engineering")
|
|
374
|
-
column_association = snowflake.TagAssociation("column_association",
|
|
375
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
376
|
-
name=test_table.name.apply(lambda name: f"{name}.column_name"),
|
|
377
|
-
database=test.name,
|
|
378
|
-
schema=test_schema.name,
|
|
379
|
-
)],
|
|
380
|
-
object_type="COLUMN",
|
|
381
|
-
tag_id=test_tag.id,
|
|
382
|
-
tag_value="engineering")
|
|
383
|
-
```
|
|
384
|
-
|
|
385
265
|
## Import
|
|
386
266
|
|
|
387
267
|
format is dbName.schemaName.tagName or dbName.schemaName.tagName
|
|
@@ -405,7 +285,7 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
405
285
|
def _internal_init(__self__,
|
|
406
286
|
resource_name: str,
|
|
407
287
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
408
|
-
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
288
|
+
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TagAssociationObjectIdentifierArgs', 'TagAssociationObjectIdentifierArgsDict']]]]] = None,
|
|
409
289
|
object_name: Optional[pulumi.Input[str]] = None,
|
|
410
290
|
object_type: Optional[pulumi.Input[str]] = None,
|
|
411
291
|
skip_validation: Optional[pulumi.Input[bool]] = None,
|
|
@@ -444,7 +324,7 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
444
324
|
def get(resource_name: str,
|
|
445
325
|
id: pulumi.Input[str],
|
|
446
326
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
447
|
-
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
327
|
+
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TagAssociationObjectIdentifierArgs', 'TagAssociationObjectIdentifierArgsDict']]]]] = None,
|
|
448
328
|
object_name: Optional[pulumi.Input[str]] = None,
|
|
449
329
|
object_type: Optional[pulumi.Input[str]] = None,
|
|
450
330
|
skip_validation: Optional[pulumi.Input[bool]] = None,
|
|
@@ -457,7 +337,7 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
457
337
|
:param str resource_name: The unique name of the resulting resource.
|
|
458
338
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
459
339
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
460
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
340
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['TagAssociationObjectIdentifierArgs', 'TagAssociationObjectIdentifierArgsDict']]]] object_identifiers: Specifies the object identifier for the tag association.
|
|
461
341
|
:param pulumi.Input[str] object_name: Specifies the object identifier for the tag association.
|
|
462
342
|
:param pulumi.Input[str] object_type: Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE INTEGRATION NETWORK POLICY ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT EXTERNAL FUNCTION EXTERNAL TABLE GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
|
|
463
343
|
:param pulumi.Input[bool] skip_validation: If true, skips validation of the tag association.
|
|
@@ -98,8 +98,6 @@ class TagMaskingPolicyAssociation(pulumi.CustomResource):
|
|
|
98
98
|
tag_id: Optional[pulumi.Input[str]] = None,
|
|
99
99
|
__props__=None):
|
|
100
100
|
"""
|
|
101
|
-
Attach a masking policy to a tag. Requires a current warehouse to be set. Either with SNOWFLAKE_WAREHOUSE env variable or in current session. If no warehouse is provided, a temporary warehouse will be created.
|
|
102
|
-
|
|
103
101
|
## Import
|
|
104
102
|
|
|
105
103
|
format is tag database name | tag schema name | tag name | masking policy database | masking policy schema | masking policy name
|
|
@@ -120,8 +118,6 @@ class TagMaskingPolicyAssociation(pulumi.CustomResource):
|
|
|
120
118
|
args: TagMaskingPolicyAssociationArgs,
|
|
121
119
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
122
120
|
"""
|
|
123
|
-
Attach a masking policy to a tag. Requires a current warehouse to be set. Either with SNOWFLAKE_WAREHOUSE env variable or in current session. If no warehouse is provided, a temporary warehouse will be created.
|
|
124
|
-
|
|
125
121
|
## Import
|
|
126
122
|
|
|
127
123
|
format is tag database name | tag schema name | tag name | masking policy database | masking policy schema | masking policy name
|
pulumi_snowflake/task.py
CHANGED
|
@@ -281,6 +281,7 @@ class _TaskState:
|
|
|
281
281
|
database: Optional[pulumi.Input[str]] = None,
|
|
282
282
|
enabled: Optional[pulumi.Input[bool]] = None,
|
|
283
283
|
error_integration: Optional[pulumi.Input[str]] = None,
|
|
284
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
284
285
|
name: Optional[pulumi.Input[str]] = None,
|
|
285
286
|
schedule: Optional[pulumi.Input[str]] = None,
|
|
286
287
|
schema: Optional[pulumi.Input[str]] = None,
|
|
@@ -299,6 +300,7 @@ class _TaskState:
|
|
|
299
300
|
:param pulumi.Input[str] database: The database in which to create the task.
|
|
300
301
|
:param pulumi.Input[bool] enabled: Specifies if the task should be started (enabled) after creation or should remain suspended (default).
|
|
301
302
|
:param pulumi.Input[str] error_integration: Specifies the name of the notification integration used for error notifications.
|
|
303
|
+
: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).
|
|
302
304
|
:param pulumi.Input[str] name: Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
|
|
303
305
|
:param pulumi.Input[str] schedule: The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
|
|
304
306
|
:param pulumi.Input[str] schema: The schema in which to create the task.
|
|
@@ -322,6 +324,8 @@ class _TaskState:
|
|
|
322
324
|
pulumi.set(__self__, "enabled", enabled)
|
|
323
325
|
if error_integration is not None:
|
|
324
326
|
pulumi.set(__self__, "error_integration", error_integration)
|
|
327
|
+
if fully_qualified_name is not None:
|
|
328
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
325
329
|
if name is not None:
|
|
326
330
|
pulumi.set(__self__, "name", name)
|
|
327
331
|
if schedule is not None:
|
|
@@ -415,6 +419,18 @@ class _TaskState:
|
|
|
415
419
|
def error_integration(self, value: Optional[pulumi.Input[str]]):
|
|
416
420
|
pulumi.set(self, "error_integration", value)
|
|
417
421
|
|
|
422
|
+
@property
|
|
423
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
424
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
425
|
+
"""
|
|
426
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
427
|
+
"""
|
|
428
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
429
|
+
|
|
430
|
+
@fully_qualified_name.setter
|
|
431
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
432
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
433
|
+
|
|
418
434
|
@property
|
|
419
435
|
@pulumi.getter
|
|
420
436
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -559,52 +575,6 @@ class Task(pulumi.CustomResource):
|
|
|
559
575
|
when: Optional[pulumi.Input[str]] = None,
|
|
560
576
|
__props__=None):
|
|
561
577
|
"""
|
|
562
|
-
## Example Usage
|
|
563
|
-
|
|
564
|
-
```python
|
|
565
|
-
import pulumi
|
|
566
|
-
import pulumi_snowflake as snowflake
|
|
567
|
-
|
|
568
|
-
task = snowflake.Task("task",
|
|
569
|
-
comment="my task",
|
|
570
|
-
database="database",
|
|
571
|
-
schema="schema",
|
|
572
|
-
warehouse="warehouse",
|
|
573
|
-
name="task",
|
|
574
|
-
schedule="10 MINUTE",
|
|
575
|
-
sql_statement="select * from foo;",
|
|
576
|
-
session_parameters={
|
|
577
|
-
"foo": "bar",
|
|
578
|
-
},
|
|
579
|
-
user_task_timeout_ms=10000,
|
|
580
|
-
afters="preceding_task",
|
|
581
|
-
when="foo AND bar",
|
|
582
|
-
enabled=True)
|
|
583
|
-
serverless_task = snowflake.Task("serverless_task",
|
|
584
|
-
comment="my serverless task",
|
|
585
|
-
database="db",
|
|
586
|
-
schema="schema",
|
|
587
|
-
name="serverless_task",
|
|
588
|
-
schedule="10 MINUTE",
|
|
589
|
-
sql_statement="select * from foo;",
|
|
590
|
-
session_parameters={
|
|
591
|
-
"foo": "bar",
|
|
592
|
-
},
|
|
593
|
-
user_task_timeout_ms=10000,
|
|
594
|
-
user_task_managed_initial_warehouse_size="XSMALL",
|
|
595
|
-
afters=[task.name],
|
|
596
|
-
when="foo AND bar",
|
|
597
|
-
enabled=True)
|
|
598
|
-
test_task = snowflake.Task("test_task",
|
|
599
|
-
comment="task with allow_overlapping_execution",
|
|
600
|
-
database="database",
|
|
601
|
-
schema="schema",
|
|
602
|
-
name="test_task",
|
|
603
|
-
sql_statement="select 1 as c;",
|
|
604
|
-
allow_overlapping_execution=True,
|
|
605
|
-
enabled=True)
|
|
606
|
-
```
|
|
607
|
-
|
|
608
578
|
## Import
|
|
609
579
|
|
|
610
580
|
format is database name | schema name | task name
|
|
@@ -639,52 +609,6 @@ class Task(pulumi.CustomResource):
|
|
|
639
609
|
args: TaskArgs,
|
|
640
610
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
641
611
|
"""
|
|
642
|
-
## Example Usage
|
|
643
|
-
|
|
644
|
-
```python
|
|
645
|
-
import pulumi
|
|
646
|
-
import pulumi_snowflake as snowflake
|
|
647
|
-
|
|
648
|
-
task = snowflake.Task("task",
|
|
649
|
-
comment="my task",
|
|
650
|
-
database="database",
|
|
651
|
-
schema="schema",
|
|
652
|
-
warehouse="warehouse",
|
|
653
|
-
name="task",
|
|
654
|
-
schedule="10 MINUTE",
|
|
655
|
-
sql_statement="select * from foo;",
|
|
656
|
-
session_parameters={
|
|
657
|
-
"foo": "bar",
|
|
658
|
-
},
|
|
659
|
-
user_task_timeout_ms=10000,
|
|
660
|
-
afters="preceding_task",
|
|
661
|
-
when="foo AND bar",
|
|
662
|
-
enabled=True)
|
|
663
|
-
serverless_task = snowflake.Task("serverless_task",
|
|
664
|
-
comment="my serverless task",
|
|
665
|
-
database="db",
|
|
666
|
-
schema="schema",
|
|
667
|
-
name="serverless_task",
|
|
668
|
-
schedule="10 MINUTE",
|
|
669
|
-
sql_statement="select * from foo;",
|
|
670
|
-
session_parameters={
|
|
671
|
-
"foo": "bar",
|
|
672
|
-
},
|
|
673
|
-
user_task_timeout_ms=10000,
|
|
674
|
-
user_task_managed_initial_warehouse_size="XSMALL",
|
|
675
|
-
afters=[task.name],
|
|
676
|
-
when="foo AND bar",
|
|
677
|
-
enabled=True)
|
|
678
|
-
test_task = snowflake.Task("test_task",
|
|
679
|
-
comment="task with allow_overlapping_execution",
|
|
680
|
-
database="database",
|
|
681
|
-
schema="schema",
|
|
682
|
-
name="test_task",
|
|
683
|
-
sql_statement="select 1 as c;",
|
|
684
|
-
allow_overlapping_execution=True,
|
|
685
|
-
enabled=True)
|
|
686
|
-
```
|
|
687
|
-
|
|
688
612
|
## Import
|
|
689
613
|
|
|
690
614
|
format is database name | schema name | task name
|
|
@@ -755,6 +679,7 @@ class Task(pulumi.CustomResource):
|
|
|
755
679
|
__props__.__dict__["user_task_timeout_ms"] = user_task_timeout_ms
|
|
756
680
|
__props__.__dict__["warehouse"] = warehouse
|
|
757
681
|
__props__.__dict__["when"] = when
|
|
682
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
758
683
|
super(Task, __self__).__init__(
|
|
759
684
|
'snowflake:index/task:Task',
|
|
760
685
|
resource_name,
|
|
@@ -771,6 +696,7 @@ class Task(pulumi.CustomResource):
|
|
|
771
696
|
database: Optional[pulumi.Input[str]] = None,
|
|
772
697
|
enabled: Optional[pulumi.Input[bool]] = None,
|
|
773
698
|
error_integration: Optional[pulumi.Input[str]] = None,
|
|
699
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
774
700
|
name: Optional[pulumi.Input[str]] = None,
|
|
775
701
|
schedule: Optional[pulumi.Input[str]] = None,
|
|
776
702
|
schema: Optional[pulumi.Input[str]] = None,
|
|
@@ -794,6 +720,7 @@ class Task(pulumi.CustomResource):
|
|
|
794
720
|
:param pulumi.Input[str] database: The database in which to create the task.
|
|
795
721
|
:param pulumi.Input[bool] enabled: Specifies if the task should be started (enabled) after creation or should remain suspended (default).
|
|
796
722
|
:param pulumi.Input[str] error_integration: Specifies the name of the notification integration used for error notifications.
|
|
723
|
+
: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).
|
|
797
724
|
:param pulumi.Input[str] name: Specifies the identifier for the task; must be unique for the database and schema in which the task is created.
|
|
798
725
|
:param pulumi.Input[str] schedule: The schedule for periodically running the task. This can be a cron or interval in minutes. (Conflict with after)
|
|
799
726
|
:param pulumi.Input[str] schema: The schema in which to create the task.
|
|
@@ -815,6 +742,7 @@ class Task(pulumi.CustomResource):
|
|
|
815
742
|
__props__.__dict__["database"] = database
|
|
816
743
|
__props__.__dict__["enabled"] = enabled
|
|
817
744
|
__props__.__dict__["error_integration"] = error_integration
|
|
745
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
818
746
|
__props__.__dict__["name"] = name
|
|
819
747
|
__props__.__dict__["schedule"] = schedule
|
|
820
748
|
__props__.__dict__["schema"] = schema
|
|
@@ -875,6 +803,14 @@ class Task(pulumi.CustomResource):
|
|
|
875
803
|
"""
|
|
876
804
|
return pulumi.get(self, "error_integration")
|
|
877
805
|
|
|
806
|
+
@property
|
|
807
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
808
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
809
|
+
"""
|
|
810
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
811
|
+
"""
|
|
812
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
813
|
+
|
|
878
814
|
@property
|
|
879
815
|
@pulumi.getter
|
|
880
816
|
def name(self) -> pulumi.Output[str]:
|
|
@@ -147,16 +147,7 @@ class UnsafeExecute(pulumi.CustomResource):
|
|
|
147
147
|
revert: Optional[pulumi.Input[str]] = None,
|
|
148
148
|
__props__=None):
|
|
149
149
|
"""
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
> **Note** This resource will be included in the V1 (check here.
|
|
153
|
-
|
|
154
|
-
> **Note** It can be theoretically used to manage resource that are not supported by the provider. This is risky and may brake other resources if used incorrectly.
|
|
155
|
-
|
|
156
|
-
> **Note** Use `query` parameter with caution. It will fetch **ALL** the results returned by the query provided. Try to limit the number of results by writing query with filters. Query failure does not stop resource creation; it simply results in `query_results` being empty.
|
|
157
|
-
|
|
158
|
-
Experimental resource allowing execution of ANY SQL statement. It may destroy resources if used incorrectly. It may behave incorrectly combined with other resources. Use at your own risk.
|
|
159
|
-
|
|
150
|
+
Create a UnsafeExecute resource with the given unique name, props, and options.
|
|
160
151
|
:param str resource_name: The name of the resource.
|
|
161
152
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
162
153
|
:param pulumi.Input[str] execute: SQL statement to execute. Forces recreation of resource on change.
|
|
@@ -170,16 +161,7 @@ class UnsafeExecute(pulumi.CustomResource):
|
|
|
170
161
|
args: UnsafeExecuteArgs,
|
|
171
162
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
172
163
|
"""
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
> **Note** This resource will be included in the V1 (check here.
|
|
176
|
-
|
|
177
|
-
> **Note** It can be theoretically used to manage resource that are not supported by the provider. This is risky and may brake other resources if used incorrectly.
|
|
178
|
-
|
|
179
|
-
> **Note** Use `query` parameter with caution. It will fetch **ALL** the results returned by the query provided. Try to limit the number of results by writing query with filters. Query failure does not stop resource creation; it simply results in `query_results` being empty.
|
|
180
|
-
|
|
181
|
-
Experimental resource allowing execution of ANY SQL statement. It may destroy resources if used incorrectly. It may behave incorrectly combined with other resources. Use at your own risk.
|
|
182
|
-
|
|
164
|
+
Create a UnsafeExecute resource with the given unique name, props, and options.
|
|
183
165
|
:param str resource_name: The name of the resource.
|
|
184
166
|
:param UnsafeExecuteArgs args: The arguments to use to populate this resource's properties.
|
|
185
167
|
:param pulumi.ResourceOptions opts: Options for the resource.
|