pulumi-snowflake 0.58.0__py3-none-any.whl → 0.58.0a1722527984__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. pulumi_snowflake/_inputs.py +125 -5857
  2. pulumi_snowflake/account.py +50 -28
  3. pulumi_snowflake/account_parameter.py +28 -0
  4. pulumi_snowflake/account_password_policy_attachment.py +30 -2
  5. pulumi_snowflake/account_role.py +32 -51
  6. pulumi_snowflake/alert.py +45 -33
  7. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +19 -39
  8. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +19 -39
  9. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +19 -39
  10. pulumi_snowflake/api_integration.py +54 -28
  11. pulumi_snowflake/cortex_search_service.py +0 -28
  12. pulumi_snowflake/database.py +148 -97
  13. pulumi_snowflake/database_old.py +77 -5
  14. pulumi_snowflake/database_role.py +42 -76
  15. pulumi_snowflake/dynamic_table.py +43 -33
  16. pulumi_snowflake/email_notification_integration.py +26 -28
  17. pulumi_snowflake/external_function.py +62 -38
  18. pulumi_snowflake/external_oauth_integration.py +21 -41
  19. pulumi_snowflake/external_table.py +58 -38
  20. pulumi_snowflake/failover_group.py +82 -38
  21. pulumi_snowflake/file_format.py +26 -28
  22. pulumi_snowflake/function.py +9 -33
  23. pulumi_snowflake/get_cortex_search_services.py +16 -16
  24. pulumi_snowflake/get_database_roles.py +38 -61
  25. pulumi_snowflake/get_databases.py +6 -6
  26. pulumi_snowflake/get_dynamic_tables.py +12 -12
  27. pulumi_snowflake/get_grants.py +138 -138
  28. pulumi_snowflake/get_network_policies.py +2 -2
  29. pulumi_snowflake/get_roles.py +2 -2
  30. pulumi_snowflake/get_schemas.py +8 -12
  31. pulumi_snowflake/get_security_integrations.py +2 -2
  32. pulumi_snowflake/get_streamlits.py +10 -10
  33. pulumi_snowflake/get_users.py +33 -96
  34. pulumi_snowflake/get_views.py +53 -92
  35. pulumi_snowflake/get_warehouses.py +2 -2
  36. pulumi_snowflake/grant_account_role.py +4 -0
  37. pulumi_snowflake/grant_application_role.py +4 -0
  38. pulumi_snowflake/grant_database_role.py +4 -0
  39. pulumi_snowflake/grant_ownership.py +5 -5
  40. pulumi_snowflake/grant_privileges_to_account_role.py +15 -15
  41. pulumi_snowflake/grant_privileges_to_database_role.py +12 -16
  42. pulumi_snowflake/grant_privileges_to_share.py +0 -47
  43. pulumi_snowflake/managed_account.py +4 -28
  44. pulumi_snowflake/masking_policy.py +89 -33
  45. pulumi_snowflake/materialized_view.py +39 -33
  46. pulumi_snowflake/network_policy.py +49 -47
  47. pulumi_snowflake/network_policy_attachment.py +30 -0
  48. pulumi_snowflake/network_rule.py +66 -28
  49. pulumi_snowflake/notification_integration.py +34 -28
  50. pulumi_snowflake/oauth_integration.py +34 -0
  51. pulumi_snowflake/oauth_integration_for_custom_clients.py +105 -39
  52. pulumi_snowflake/oauth_integration_for_partner_applications.py +19 -39
  53. pulumi_snowflake/object_parameter.py +103 -5
  54. pulumi_snowflake/outputs.py +4207 -12013
  55. pulumi_snowflake/password_policy.py +28 -28
  56. pulumi_snowflake/pipe.py +4 -28
  57. pulumi_snowflake/procedure.py +9 -33
  58. pulumi_snowflake/provider.py +16 -16
  59. pulumi_snowflake/pulumi-plugin.json +1 -1
  60. pulumi_snowflake/resource_monitor.py +48 -28
  61. pulumi_snowflake/role.py +32 -51
  62. pulumi_snowflake/row_access_policy.py +34 -28
  63. pulumi_snowflake/saml2_integration.py +19 -39
  64. pulumi_snowflake/saml_integration.py +34 -0
  65. pulumi_snowflake/schema.py +28 -52
  66. pulumi_snowflake/scim_integration.py +19 -39
  67. pulumi_snowflake/secondary_database.py +19 -35
  68. pulumi_snowflake/sequence.py +36 -4
  69. pulumi_snowflake/session_parameter.py +32 -0
  70. pulumi_snowflake/share.py +28 -28
  71. pulumi_snowflake/shared_database.py +15 -35
  72. pulumi_snowflake/stage.py +33 -33
  73. pulumi_snowflake/storage_integration.py +4 -28
  74. pulumi_snowflake/stream.py +4 -28
  75. pulumi_snowflake/streamlit.py +19 -39
  76. pulumi_snowflake/table.py +47 -43
  77. pulumi_snowflake/table_column_masking_policy_application.py +14 -2
  78. pulumi_snowflake/table_constraint.py +157 -5
  79. pulumi_snowflake/tag.py +40 -28
  80. pulumi_snowflake/tag_association.py +125 -5
  81. pulumi_snowflake/tag_masking_policy_association.py +4 -0
  82. pulumi_snowflake/task.py +92 -28
  83. pulumi_snowflake/unsafe_execute.py +20 -2
  84. pulumi_snowflake/user.py +373 -3346
  85. pulumi_snowflake/user_password_policy_attachment.py +36 -0
  86. pulumi_snowflake/view.py +185 -465
  87. pulumi_snowflake/warehouse.py +43 -39
  88. {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/METADATA +1 -1
  89. pulumi_snowflake-0.58.0a1722527984.dist-info/RECORD +129 -0
  90. {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/WHEEL +1 -1
  91. pulumi_snowflake-0.58.0.dist-info/RECORD +0 -129
  92. {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/top_level.txt +0 -0
@@ -173,7 +173,6 @@ class _FailoverGroupState:
173
173
  allowed_integration_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
174
174
  allowed_shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
175
175
  from_replica: Optional[pulumi.Input['FailoverGroupFromReplicaArgs']] = None,
176
- fully_qualified_name: Optional[pulumi.Input[str]] = None,
177
176
  ignore_edition_check: Optional[pulumi.Input[bool]] = None,
178
177
  name: Optional[pulumi.Input[str]] = None,
179
178
  object_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -185,7 +184,6 @@ class _FailoverGroupState:
185
184
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_integration_types: Type(s) of integrations for which you are enabling replication and failover from the source account to the target account. This property requires that the OBJECT_TYPES list include INTEGRATIONS to set this parameter. The following integration types are supported: "SECURITY INTEGRATIONS", "API INTEGRATIONS", "STORAGE INTEGRATIONS", "EXTERNAL ACCESS INTEGRATIONS", "NOTIFICATION INTEGRATIONS"
186
185
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_shares: Specifies the share or list of shares for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include SHARES to set this parameter.
187
186
  :param pulumi.Input['FailoverGroupFromReplicaArgs'] from_replica: Specifies the name of the replica to use as the source for the failover group.
188
- :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).
189
187
  :param pulumi.Input[bool] ignore_edition_check: Allows replicating objects to accounts on lower editions.
190
188
  :param pulumi.Input[str] name: Specifies the identifier for the failover group. The identifier must start with an alphabetic character and cannot contain spaces or special characters unless the identifier string is enclosed in double quotes (e.g. "My object"). Identifiers enclosed in double quotes are also case-sensitive.
191
189
  :param pulumi.Input[Sequence[pulumi.Input[str]]] object_types: Type(s) of objects for which you are enabling replication and failover from the source account to the target account. The following object types are supported: "ACCOUNT PARAMETERS", "DATABASES", "INTEGRATIONS", "NETWORK POLICIES", "RESOURCE MONITORS", "ROLES", "SHARES", "USERS", "WAREHOUSES"
@@ -201,8 +199,6 @@ class _FailoverGroupState:
201
199
  pulumi.set(__self__, "allowed_shares", allowed_shares)
202
200
  if from_replica is not None:
203
201
  pulumi.set(__self__, "from_replica", from_replica)
204
- if fully_qualified_name is not None:
205
- pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
206
202
  if ignore_edition_check is not None:
207
203
  pulumi.set(__self__, "ignore_edition_check", ignore_edition_check)
208
204
  if name is not None:
@@ -272,18 +268,6 @@ class _FailoverGroupState:
272
268
  def from_replica(self, value: Optional[pulumi.Input['FailoverGroupFromReplicaArgs']]):
273
269
  pulumi.set(self, "from_replica", value)
274
270
 
275
- @property
276
- @pulumi.getter(name="fullyQualifiedName")
277
- def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
278
- """
279
- Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
280
- """
281
- return pulumi.get(self, "fully_qualified_name")
282
-
283
- @fully_qualified_name.setter
284
- def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
285
- pulumi.set(self, "fully_qualified_name", value)
286
-
287
271
  @property
288
272
  @pulumi.getter(name="ignoreEditionCheck")
289
273
  def ignore_edition_check(self) -> Optional[pulumi.Input[bool]]:
@@ -342,13 +326,49 @@ class FailoverGroup(pulumi.CustomResource):
342
326
  allowed_databases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
343
327
  allowed_integration_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
344
328
  allowed_shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
345
- from_replica: Optional[pulumi.Input[Union['FailoverGroupFromReplicaArgs', 'FailoverGroupFromReplicaArgsDict']]] = None,
329
+ from_replica: Optional[pulumi.Input[pulumi.InputType['FailoverGroupFromReplicaArgs']]] = None,
346
330
  ignore_edition_check: Optional[pulumi.Input[bool]] = None,
347
331
  name: Optional[pulumi.Input[str]] = None,
348
332
  object_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
349
- replication_schedule: Optional[pulumi.Input[Union['FailoverGroupReplicationScheduleArgs', 'FailoverGroupReplicationScheduleArgsDict']]] = None,
333
+ replication_schedule: Optional[pulumi.Input[pulumi.InputType['FailoverGroupReplicationScheduleArgs']]] = None,
350
334
  __props__=None):
351
335
  """
336
+ ## Example Usage
337
+
338
+ ```python
339
+ import pulumi
340
+ import pulumi_snowflake as snowflake
341
+
342
+ db = snowflake.Database("db", name="db1")
343
+ source_failover_group = snowflake.FailoverGroup("source_failover_group",
344
+ name="FG1",
345
+ object_types=[
346
+ "WAREHOUSES",
347
+ "DATABASES",
348
+ "INTEGRATIONS",
349
+ "ROLES",
350
+ ],
351
+ allowed_accounts=[
352
+ "<org_name>.<target_account_name1>",
353
+ "<org_name>.<target_account_name2>",
354
+ ],
355
+ allowed_databases=[db.name],
356
+ allowed_integration_types=["SECURITY INTEGRATIONS"],
357
+ replication_schedule=snowflake.FailoverGroupReplicationScheduleArgs(
358
+ cron=snowflake.FailoverGroupReplicationScheduleCronArgs(
359
+ expression="0 0 10-20 * TUE,THU",
360
+ time_zone="UTC",
361
+ ),
362
+ ))
363
+ target_failover_group = snowflake.FailoverGroup("target_failover_group",
364
+ name="FG1",
365
+ from_replica=snowflake.FailoverGroupFromReplicaArgs(
366
+ organization_name="...",
367
+ source_account_name="...",
368
+ name=source_failover_group.name,
369
+ ))
370
+ ```
371
+
352
372
  ## Import
353
373
 
354
374
  ```sh
@@ -361,11 +381,11 @@ class FailoverGroup(pulumi.CustomResource):
361
381
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_databases: Specifies the database or list of databases for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include DATABASES to set this parameter.
362
382
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_integration_types: Type(s) of integrations for which you are enabling replication and failover from the source account to the target account. This property requires that the OBJECT_TYPES list include INTEGRATIONS to set this parameter. The following integration types are supported: "SECURITY INTEGRATIONS", "API INTEGRATIONS", "STORAGE INTEGRATIONS", "EXTERNAL ACCESS INTEGRATIONS", "NOTIFICATION INTEGRATIONS"
363
383
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_shares: Specifies the share or list of shares for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include SHARES to set this parameter.
364
- :param pulumi.Input[Union['FailoverGroupFromReplicaArgs', 'FailoverGroupFromReplicaArgsDict']] from_replica: Specifies the name of the replica to use as the source for the failover group.
384
+ :param pulumi.Input[pulumi.InputType['FailoverGroupFromReplicaArgs']] from_replica: Specifies the name of the replica to use as the source for the failover group.
365
385
  :param pulumi.Input[bool] ignore_edition_check: Allows replicating objects to accounts on lower editions.
366
386
  :param pulumi.Input[str] name: Specifies the identifier for the failover group. The identifier must start with an alphabetic character and cannot contain spaces or special characters unless the identifier string is enclosed in double quotes (e.g. "My object"). Identifiers enclosed in double quotes are also case-sensitive.
367
387
  :param pulumi.Input[Sequence[pulumi.Input[str]]] object_types: Type(s) of objects for which you are enabling replication and failover from the source account to the target account. The following object types are supported: "ACCOUNT PARAMETERS", "DATABASES", "INTEGRATIONS", "NETWORK POLICIES", "RESOURCE MONITORS", "ROLES", "SHARES", "USERS", "WAREHOUSES"
368
- :param pulumi.Input[Union['FailoverGroupReplicationScheduleArgs', 'FailoverGroupReplicationScheduleArgsDict']] replication_schedule: Specifies the schedule for refreshing secondary failover groups.
388
+ :param pulumi.Input[pulumi.InputType['FailoverGroupReplicationScheduleArgs']] replication_schedule: Specifies the schedule for refreshing secondary failover groups.
369
389
  """
370
390
  ...
371
391
  @overload
@@ -374,6 +394,42 @@ class FailoverGroup(pulumi.CustomResource):
374
394
  args: Optional[FailoverGroupArgs] = None,
375
395
  opts: Optional[pulumi.ResourceOptions] = None):
376
396
  """
397
+ ## Example Usage
398
+
399
+ ```python
400
+ import pulumi
401
+ import pulumi_snowflake as snowflake
402
+
403
+ db = snowflake.Database("db", name="db1")
404
+ source_failover_group = snowflake.FailoverGroup("source_failover_group",
405
+ name="FG1",
406
+ object_types=[
407
+ "WAREHOUSES",
408
+ "DATABASES",
409
+ "INTEGRATIONS",
410
+ "ROLES",
411
+ ],
412
+ allowed_accounts=[
413
+ "<org_name>.<target_account_name1>",
414
+ "<org_name>.<target_account_name2>",
415
+ ],
416
+ allowed_databases=[db.name],
417
+ allowed_integration_types=["SECURITY INTEGRATIONS"],
418
+ replication_schedule=snowflake.FailoverGroupReplicationScheduleArgs(
419
+ cron=snowflake.FailoverGroupReplicationScheduleCronArgs(
420
+ expression="0 0 10-20 * TUE,THU",
421
+ time_zone="UTC",
422
+ ),
423
+ ))
424
+ target_failover_group = snowflake.FailoverGroup("target_failover_group",
425
+ name="FG1",
426
+ from_replica=snowflake.FailoverGroupFromReplicaArgs(
427
+ organization_name="...",
428
+ source_account_name="...",
429
+ name=source_failover_group.name,
430
+ ))
431
+ ```
432
+
377
433
  ## Import
378
434
 
379
435
  ```sh
@@ -399,11 +455,11 @@ class FailoverGroup(pulumi.CustomResource):
399
455
  allowed_databases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
400
456
  allowed_integration_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
401
457
  allowed_shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
402
- from_replica: Optional[pulumi.Input[Union['FailoverGroupFromReplicaArgs', 'FailoverGroupFromReplicaArgsDict']]] = None,
458
+ from_replica: Optional[pulumi.Input[pulumi.InputType['FailoverGroupFromReplicaArgs']]] = None,
403
459
  ignore_edition_check: Optional[pulumi.Input[bool]] = None,
404
460
  name: Optional[pulumi.Input[str]] = None,
405
461
  object_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
406
- replication_schedule: Optional[pulumi.Input[Union['FailoverGroupReplicationScheduleArgs', 'FailoverGroupReplicationScheduleArgsDict']]] = None,
462
+ replication_schedule: Optional[pulumi.Input[pulumi.InputType['FailoverGroupReplicationScheduleArgs']]] = None,
407
463
  __props__=None):
408
464
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
409
465
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -422,7 +478,6 @@ class FailoverGroup(pulumi.CustomResource):
422
478
  __props__.__dict__["name"] = name
423
479
  __props__.__dict__["object_types"] = object_types
424
480
  __props__.__dict__["replication_schedule"] = replication_schedule
425
- __props__.__dict__["fully_qualified_name"] = None
426
481
  super(FailoverGroup, __self__).__init__(
427
482
  'snowflake:index/failoverGroup:FailoverGroup',
428
483
  resource_name,
@@ -437,12 +492,11 @@ class FailoverGroup(pulumi.CustomResource):
437
492
  allowed_databases: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
438
493
  allowed_integration_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
439
494
  allowed_shares: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
440
- from_replica: Optional[pulumi.Input[Union['FailoverGroupFromReplicaArgs', 'FailoverGroupFromReplicaArgsDict']]] = None,
441
- fully_qualified_name: Optional[pulumi.Input[str]] = None,
495
+ from_replica: Optional[pulumi.Input[pulumi.InputType['FailoverGroupFromReplicaArgs']]] = None,
442
496
  ignore_edition_check: Optional[pulumi.Input[bool]] = None,
443
497
  name: Optional[pulumi.Input[str]] = None,
444
498
  object_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
445
- replication_schedule: Optional[pulumi.Input[Union['FailoverGroupReplicationScheduleArgs', 'FailoverGroupReplicationScheduleArgsDict']]] = None) -> 'FailoverGroup':
499
+ replication_schedule: Optional[pulumi.Input[pulumi.InputType['FailoverGroupReplicationScheduleArgs']]] = None) -> 'FailoverGroup':
446
500
  """
447
501
  Get an existing FailoverGroup resource's state with the given name, id, and optional extra
448
502
  properties used to qualify the lookup.
@@ -454,12 +508,11 @@ class FailoverGroup(pulumi.CustomResource):
454
508
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_databases: Specifies the database or list of databases for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include DATABASES to set this parameter.
455
509
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_integration_types: Type(s) of integrations for which you are enabling replication and failover from the source account to the target account. This property requires that the OBJECT_TYPES list include INTEGRATIONS to set this parameter. The following integration types are supported: "SECURITY INTEGRATIONS", "API INTEGRATIONS", "STORAGE INTEGRATIONS", "EXTERNAL ACCESS INTEGRATIONS", "NOTIFICATION INTEGRATIONS"
456
510
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_shares: Specifies the share or list of shares for which you are enabling replication and failover from the source account to the target account. The OBJECT_TYPES list must include SHARES to set this parameter.
457
- :param pulumi.Input[Union['FailoverGroupFromReplicaArgs', 'FailoverGroupFromReplicaArgsDict']] from_replica: Specifies the name of the replica to use as the source for the failover group.
458
- :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).
511
+ :param pulumi.Input[pulumi.InputType['FailoverGroupFromReplicaArgs']] from_replica: Specifies the name of the replica to use as the source for the failover group.
459
512
  :param pulumi.Input[bool] ignore_edition_check: Allows replicating objects to accounts on lower editions.
460
513
  :param pulumi.Input[str] name: Specifies the identifier for the failover group. The identifier must start with an alphabetic character and cannot contain spaces or special characters unless the identifier string is enclosed in double quotes (e.g. "My object"). Identifiers enclosed in double quotes are also case-sensitive.
461
514
  :param pulumi.Input[Sequence[pulumi.Input[str]]] object_types: Type(s) of objects for which you are enabling replication and failover from the source account to the target account. The following object types are supported: "ACCOUNT PARAMETERS", "DATABASES", "INTEGRATIONS", "NETWORK POLICIES", "RESOURCE MONITORS", "ROLES", "SHARES", "USERS", "WAREHOUSES"
462
- :param pulumi.Input[Union['FailoverGroupReplicationScheduleArgs', 'FailoverGroupReplicationScheduleArgsDict']] replication_schedule: Specifies the schedule for refreshing secondary failover groups.
515
+ :param pulumi.Input[pulumi.InputType['FailoverGroupReplicationScheduleArgs']] replication_schedule: Specifies the schedule for refreshing secondary failover groups.
463
516
  """
464
517
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
465
518
 
@@ -470,7 +523,6 @@ class FailoverGroup(pulumi.CustomResource):
470
523
  __props__.__dict__["allowed_integration_types"] = allowed_integration_types
471
524
  __props__.__dict__["allowed_shares"] = allowed_shares
472
525
  __props__.__dict__["from_replica"] = from_replica
473
- __props__.__dict__["fully_qualified_name"] = fully_qualified_name
474
526
  __props__.__dict__["ignore_edition_check"] = ignore_edition_check
475
527
  __props__.__dict__["name"] = name
476
528
  __props__.__dict__["object_types"] = object_types
@@ -517,14 +569,6 @@ class FailoverGroup(pulumi.CustomResource):
517
569
  """
518
570
  return pulumi.get(self, "from_replica")
519
571
 
520
- @property
521
- @pulumi.getter(name="fullyQualifiedName")
522
- def fully_qualified_name(self) -> pulumi.Output[str]:
523
- """
524
- Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
525
- """
526
- return pulumi.get(self, "fully_qualified_name")
527
-
528
572
  @property
529
573
  @pulumi.getter(name="ignoreEditionCheck")
530
574
  def ignore_edition_check(self) -> pulumi.Output[Optional[bool]]:
@@ -614,7 +614,6 @@ class _FileFormatState:
614
614
  field_optionally_enclosed_by: Optional[pulumi.Input[str]] = None,
615
615
  file_extension: Optional[pulumi.Input[str]] = None,
616
616
  format_type: Optional[pulumi.Input[str]] = None,
617
- fully_qualified_name: Optional[pulumi.Input[str]] = None,
618
617
  ignore_utf8_errors: Optional[pulumi.Input[bool]] = None,
619
618
  name: Optional[pulumi.Input[str]] = None,
620
619
  null_ifs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -653,7 +652,6 @@ class _FileFormatState:
653
652
  :param pulumi.Input[str] field_optionally_enclosed_by: Character used to enclose strings.
654
653
  :param pulumi.Input[str] file_extension: Specifies the extension for files unloaded to a stage.
655
654
  :param pulumi.Input[str] format_type: Specifies the format of the input files (for data loading) or output files (for data unloading).
656
- :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).
657
655
  :param pulumi.Input[bool] ignore_utf8_errors: Boolean that specifies whether UTF-8 encoding errors produce error conditions.
658
656
  :param pulumi.Input[str] name: Specifies the identifier for the file format; must be unique for the database and schema in which the file format is created.
659
657
  :param pulumi.Input[Sequence[pulumi.Input[str]]] null_ifs: String used to convert to and from SQL NULL.
@@ -710,8 +708,6 @@ class _FileFormatState:
710
708
  pulumi.set(__self__, "file_extension", file_extension)
711
709
  if format_type is not None:
712
710
  pulumi.set(__self__, "format_type", format_type)
713
- if fully_qualified_name is not None:
714
- pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
715
711
  if ignore_utf8_errors is not None:
716
712
  pulumi.set(__self__, "ignore_utf8_errors", ignore_utf8_errors)
717
713
  if name is not None:
@@ -975,18 +971,6 @@ class _FileFormatState:
975
971
  def format_type(self, value: Optional[pulumi.Input[str]]):
976
972
  pulumi.set(self, "format_type", value)
977
973
 
978
- @property
979
- @pulumi.getter(name="fullyQualifiedName")
980
- def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
981
- """
982
- Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
983
- """
984
- return pulumi.get(self, "fully_qualified_name")
985
-
986
- @fully_qualified_name.setter
987
- def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
988
- pulumi.set(self, "fully_qualified_name", value)
989
-
990
974
  @property
991
975
  @pulumi.getter(name="ignoreUtf8Errors")
992
976
  def ignore_utf8_errors(self) -> Optional[pulumi.Input[bool]]:
@@ -1235,6 +1219,19 @@ class FileFormat(pulumi.CustomResource):
1235
1219
  trim_space: Optional[pulumi.Input[bool]] = None,
1236
1220
  __props__=None):
1237
1221
  """
1222
+ ## Example Usage
1223
+
1224
+ ```python
1225
+ import pulumi
1226
+ import pulumi_snowflake as snowflake
1227
+
1228
+ example_file_format = snowflake.FileFormat("example_file_format",
1229
+ name="EXAMPLE_FILE_FORMAT",
1230
+ database="EXAMPLE_DB",
1231
+ schema="EXAMPLE_SCHEMA",
1232
+ format_type="CSV")
1233
+ ```
1234
+
1238
1235
  ## Import
1239
1236
 
1240
1237
  format is database name | schema name | file format name
@@ -1289,6 +1286,19 @@ class FileFormat(pulumi.CustomResource):
1289
1286
  args: FileFormatArgs,
1290
1287
  opts: Optional[pulumi.ResourceOptions] = None):
1291
1288
  """
1289
+ ## Example Usage
1290
+
1291
+ ```python
1292
+ import pulumi
1293
+ import pulumi_snowflake as snowflake
1294
+
1295
+ example_file_format = snowflake.FileFormat("example_file_format",
1296
+ name="EXAMPLE_FILE_FORMAT",
1297
+ database="EXAMPLE_DB",
1298
+ schema="EXAMPLE_SCHEMA",
1299
+ format_type="CSV")
1300
+ ```
1301
+
1292
1302
  ## Import
1293
1303
 
1294
1304
  format is database name | schema name | file format name
@@ -1399,7 +1409,6 @@ class FileFormat(pulumi.CustomResource):
1399
1409
  __props__.__dict__["time_format"] = time_format
1400
1410
  __props__.__dict__["timestamp_format"] = timestamp_format
1401
1411
  __props__.__dict__["trim_space"] = trim_space
1402
- __props__.__dict__["fully_qualified_name"] = None
1403
1412
  super(FileFormat, __self__).__init__(
1404
1413
  'snowflake:index/fileFormat:FileFormat',
1405
1414
  resource_name,
@@ -1429,7 +1438,6 @@ class FileFormat(pulumi.CustomResource):
1429
1438
  field_optionally_enclosed_by: Optional[pulumi.Input[str]] = None,
1430
1439
  file_extension: Optional[pulumi.Input[str]] = None,
1431
1440
  format_type: Optional[pulumi.Input[str]] = None,
1432
- fully_qualified_name: Optional[pulumi.Input[str]] = None,
1433
1441
  ignore_utf8_errors: Optional[pulumi.Input[bool]] = None,
1434
1442
  name: Optional[pulumi.Input[str]] = None,
1435
1443
  null_ifs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
@@ -1473,7 +1481,6 @@ class FileFormat(pulumi.CustomResource):
1473
1481
  :param pulumi.Input[str] field_optionally_enclosed_by: Character used to enclose strings.
1474
1482
  :param pulumi.Input[str] file_extension: Specifies the extension for files unloaded to a stage.
1475
1483
  :param pulumi.Input[str] format_type: Specifies the format of the input files (for data loading) or output files (for data unloading).
1476
- :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).
1477
1484
  :param pulumi.Input[bool] ignore_utf8_errors: Boolean that specifies whether UTF-8 encoding errors produce error conditions.
1478
1485
  :param pulumi.Input[str] name: Specifies the identifier for the file format; must be unique for the database and schema in which the file format is created.
1479
1486
  :param pulumi.Input[Sequence[pulumi.Input[str]]] null_ifs: String used to convert to and from SQL NULL.
@@ -1515,7 +1522,6 @@ class FileFormat(pulumi.CustomResource):
1515
1522
  __props__.__dict__["field_optionally_enclosed_by"] = field_optionally_enclosed_by
1516
1523
  __props__.__dict__["file_extension"] = file_extension
1517
1524
  __props__.__dict__["format_type"] = format_type
1518
- __props__.__dict__["fully_qualified_name"] = fully_qualified_name
1519
1525
  __props__.__dict__["ignore_utf8_errors"] = ignore_utf8_errors
1520
1526
  __props__.__dict__["name"] = name
1521
1527
  __props__.__dict__["null_ifs"] = null_ifs
@@ -1687,14 +1693,6 @@ class FileFormat(pulumi.CustomResource):
1687
1693
  """
1688
1694
  return pulumi.get(self, "format_type")
1689
1695
 
1690
- @property
1691
- @pulumi.getter(name="fullyQualifiedName")
1692
- def fully_qualified_name(self) -> pulumi.Output[str]:
1693
- """
1694
- Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
1695
- """
1696
- return pulumi.get(self, "fully_qualified_name")
1697
-
1698
1696
  @property
1699
1697
  @pulumi.getter(name="ignoreUtf8Errors")
1700
1698
  def ignore_utf8_errors(self) -> pulumi.Output[Optional[bool]]:
@@ -279,7 +279,6 @@ class _FunctionState:
279
279
  arguments: Optional[pulumi.Input[Sequence[pulumi.Input['FunctionArgumentArgs']]]] = None,
280
280
  comment: Optional[pulumi.Input[str]] = None,
281
281
  database: Optional[pulumi.Input[str]] = None,
282
- fully_qualified_name: Optional[pulumi.Input[str]] = None,
283
282
  handler: Optional[pulumi.Input[str]] = None,
284
283
  imports: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
285
284
  is_secure: Optional[pulumi.Input[bool]] = None,
@@ -298,7 +297,6 @@ class _FunctionState:
298
297
  :param pulumi.Input[Sequence[pulumi.Input['FunctionArgumentArgs']]] arguments: List of the arguments for the function
299
298
  :param pulumi.Input[str] comment: Specifies a comment for the function.
300
299
  :param pulumi.Input[str] database: The database in which to create the function. Don't use the | character.
301
- :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
300
  :param pulumi.Input[str] handler: The handler method for Java / Python function.
303
301
  :param pulumi.Input[Sequence[pulumi.Input[str]]] imports: Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
304
302
  :param pulumi.Input[bool] is_secure: Specifies that the function is secure.
@@ -319,8 +317,6 @@ class _FunctionState:
319
317
  pulumi.set(__self__, "comment", comment)
320
318
  if database is not None:
321
319
  pulumi.set(__self__, "database", database)
322
- if fully_qualified_name is not None:
323
- pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
324
320
  if handler is not None:
325
321
  pulumi.set(__self__, "handler", handler)
326
322
  if imports is not None:
@@ -384,18 +380,6 @@ class _FunctionState:
384
380
  def database(self, value: Optional[pulumi.Input[str]]):
385
381
  pulumi.set(self, "database", value)
386
382
 
387
- @property
388
- @pulumi.getter(name="fullyQualifiedName")
389
- def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
390
- """
391
- Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
392
- """
393
- return pulumi.get(self, "fully_qualified_name")
394
-
395
- @fully_qualified_name.setter
396
- def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
397
- pulumi.set(self, "fully_qualified_name", value)
398
-
399
383
  @property
400
384
  @pulumi.getter
401
385
  def handler(self) -> Optional[pulumi.Input[str]]:
@@ -558,7 +542,7 @@ class Function(pulumi.CustomResource):
558
542
  def __init__(__self__,
559
543
  resource_name: str,
560
544
  opts: Optional[pulumi.ResourceOptions] = None,
561
- arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]]] = None,
545
+ arguments: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FunctionArgumentArgs']]]]] = None,
562
546
  comment: Optional[pulumi.Input[str]] = None,
563
547
  database: Optional[pulumi.Input[str]] = None,
564
548
  handler: Optional[pulumi.Input[str]] = None,
@@ -576,6 +560,8 @@ class Function(pulumi.CustomResource):
576
560
  target_path: Optional[pulumi.Input[str]] = None,
577
561
  __props__=None):
578
562
  """
563
+ ## Example Usage
564
+
579
565
  ## Import
580
566
 
581
567
  format is <database_name>.<schema_name>.<function_name>(<arg types, separated with ','>)
@@ -586,7 +572,7 @@ class Function(pulumi.CustomResource):
586
572
 
587
573
  :param str resource_name: The name of the resource.
588
574
  :param pulumi.ResourceOptions opts: Options for the resource.
589
- :param pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]] arguments: List of the arguments for the function
575
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FunctionArgumentArgs']]]] arguments: List of the arguments for the function
590
576
  :param pulumi.Input[str] comment: Specifies a comment for the function.
591
577
  :param pulumi.Input[str] database: The database in which to create the function. Don't use the | character.
592
578
  :param pulumi.Input[str] handler: The handler method for Java / Python function.
@@ -610,6 +596,8 @@ class Function(pulumi.CustomResource):
610
596
  args: FunctionArgs,
611
597
  opts: Optional[pulumi.ResourceOptions] = None):
612
598
  """
599
+ ## Example Usage
600
+
613
601
  ## Import
614
602
 
615
603
  format is <database_name>.<schema_name>.<function_name>(<arg types, separated with ','>)
@@ -633,7 +621,7 @@ class Function(pulumi.CustomResource):
633
621
  def _internal_init(__self__,
634
622
  resource_name: str,
635
623
  opts: Optional[pulumi.ResourceOptions] = None,
636
- arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]]] = None,
624
+ arguments: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FunctionArgumentArgs']]]]] = None,
637
625
  comment: Optional[pulumi.Input[str]] = None,
638
626
  database: Optional[pulumi.Input[str]] = None,
639
627
  handler: Optional[pulumi.Input[str]] = None,
@@ -682,7 +670,6 @@ class Function(pulumi.CustomResource):
682
670
  raise TypeError("Missing required property 'statement'")
683
671
  __props__.__dict__["statement"] = statement
684
672
  __props__.__dict__["target_path"] = target_path
685
- __props__.__dict__["fully_qualified_name"] = None
686
673
  super(Function, __self__).__init__(
687
674
  'snowflake:index/function:Function',
688
675
  resource_name,
@@ -693,10 +680,9 @@ class Function(pulumi.CustomResource):
693
680
  def get(resource_name: str,
694
681
  id: pulumi.Input[str],
695
682
  opts: Optional[pulumi.ResourceOptions] = None,
696
- arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]]] = None,
683
+ arguments: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FunctionArgumentArgs']]]]] = None,
697
684
  comment: Optional[pulumi.Input[str]] = None,
698
685
  database: Optional[pulumi.Input[str]] = None,
699
- fully_qualified_name: Optional[pulumi.Input[str]] = None,
700
686
  handler: Optional[pulumi.Input[str]] = None,
701
687
  imports: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
702
688
  is_secure: Optional[pulumi.Input[bool]] = None,
@@ -717,10 +703,9 @@ class Function(pulumi.CustomResource):
717
703
  :param str resource_name: The unique name of the resulting resource.
718
704
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
719
705
  :param pulumi.ResourceOptions opts: Options for the resource.
720
- :param pulumi.Input[Sequence[pulumi.Input[Union['FunctionArgumentArgs', 'FunctionArgumentArgsDict']]]] arguments: List of the arguments for the function
706
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FunctionArgumentArgs']]]] arguments: List of the arguments for the function
721
707
  :param pulumi.Input[str] comment: Specifies a comment for the function.
722
708
  :param pulumi.Input[str] database: The database in which to create the function. Don't use the | character.
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).
724
709
  :param pulumi.Input[str] handler: The handler method for Java / Python function.
725
710
  :param pulumi.Input[Sequence[pulumi.Input[str]]] imports: Imports for Java / Python functions. For Java this a list of jar files, for Python this is a list of Python files.
726
711
  :param pulumi.Input[bool] is_secure: Specifies that the function is secure.
@@ -742,7 +727,6 @@ class Function(pulumi.CustomResource):
742
727
  __props__.__dict__["arguments"] = arguments
743
728
  __props__.__dict__["comment"] = comment
744
729
  __props__.__dict__["database"] = database
745
- __props__.__dict__["fully_qualified_name"] = fully_qualified_name
746
730
  __props__.__dict__["handler"] = handler
747
731
  __props__.__dict__["imports"] = imports
748
732
  __props__.__dict__["is_secure"] = is_secure
@@ -782,14 +766,6 @@ class Function(pulumi.CustomResource):
782
766
  """
783
767
  return pulumi.get(self, "database")
784
768
 
785
- @property
786
- @pulumi.getter(name="fullyQualifiedName")
787
- def fully_qualified_name(self) -> pulumi.Output[str]:
788
- """
789
- Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
790
- """
791
- return pulumi.get(self, "fully_qualified_name")
792
-
793
769
  @property
794
770
  @pulumi.getter
795
771
  def handler(self) -> pulumi.Output[Optional[str]]:
@@ -106,9 +106,9 @@ class AwaitableGetCortexSearchServicesResult(GetCortexSearchServicesResult):
106
106
  starts_with=self.starts_with)
107
107
 
108
108
 
109
- def get_cortex_search_services(in_: Optional[Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict']] = None,
109
+ def get_cortex_search_services(in_: Optional[pulumi.InputType['GetCortexSearchServicesInArgs']] = None,
110
110
  like: Optional[str] = None,
111
- limit: Optional[Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict']] = None,
111
+ limit: Optional[pulumi.InputType['GetCortexSearchServicesLimitArgs']] = None,
112
112
  starts_with: Optional[str] = None,
113
113
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCortexSearchServicesResult:
114
114
  """
@@ -128,17 +128,17 @@ def get_cortex_search_services(in_: Optional[Union['GetCortexSearchServicesInArg
128
128
  starts_with = snowflake.get_cortex_search_services(starts_with="prefix-")
129
129
  pulumi.export("startsWithOutput", starts_with.cortex_search_services)
130
130
  # Filtering (limit)
131
- limit = snowflake.get_cortex_search_services(limit={
132
- "rows": 10,
133
- "from_": "prefix-",
134
- })
131
+ limit = snowflake.get_cortex_search_services(limit=snowflake.GetCortexSearchServicesLimitArgs(
132
+ rows=10,
133
+ from_="prefix-",
134
+ ))
135
135
  pulumi.export("limitOutput", limit.cortex_search_services)
136
136
  ```
137
137
 
138
138
 
139
- :param Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict'] in_: IN clause to filter the list of cortex search services.
139
+ :param pulumi.InputType['GetCortexSearchServicesInArgs'] in_: IN clause to filter the list of cortex search services.
140
140
  :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
141
- :param Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
141
+ :param pulumi.InputType['GetCortexSearchServicesLimitArgs'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
142
142
  :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
143
143
  """
144
144
  __args__ = dict()
@@ -159,9 +159,9 @@ def get_cortex_search_services(in_: Optional[Union['GetCortexSearchServicesInArg
159
159
 
160
160
 
161
161
  @_utilities.lift_output_func(get_cortex_search_services)
162
- def get_cortex_search_services_output(in_: Optional[pulumi.Input[Optional[Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict']]]] = None,
162
+ def get_cortex_search_services_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetCortexSearchServicesInArgs']]]] = None,
163
163
  like: Optional[pulumi.Input[Optional[str]]] = None,
164
- limit: Optional[pulumi.Input[Optional[Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict']]]] = None,
164
+ limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetCortexSearchServicesLimitArgs']]]] = None,
165
165
  starts_with: Optional[pulumi.Input[Optional[str]]] = None,
166
166
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCortexSearchServicesResult]:
167
167
  """
@@ -181,17 +181,17 @@ def get_cortex_search_services_output(in_: Optional[pulumi.Input[Optional[Union[
181
181
  starts_with = snowflake.get_cortex_search_services(starts_with="prefix-")
182
182
  pulumi.export("startsWithOutput", starts_with.cortex_search_services)
183
183
  # Filtering (limit)
184
- limit = snowflake.get_cortex_search_services(limit={
185
- "rows": 10,
186
- "from_": "prefix-",
187
- })
184
+ limit = snowflake.get_cortex_search_services(limit=snowflake.GetCortexSearchServicesLimitArgs(
185
+ rows=10,
186
+ from_="prefix-",
187
+ ))
188
188
  pulumi.export("limitOutput", limit.cortex_search_services)
189
189
  ```
190
190
 
191
191
 
192
- :param Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict'] in_: IN clause to filter the list of cortex search services.
192
+ :param pulumi.InputType['GetCortexSearchServicesInArgs'] in_: IN clause to filter the list of cortex search services.
193
193
  :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
194
- :param Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
194
+ :param pulumi.InputType['GetCortexSearchServicesLimitArgs'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
195
195
  :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
196
196
  """
197
197
  ...