pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736849992__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 (182) hide show
  1. pulumi_snowflake/__init__.py +224 -172
  2. pulumi_snowflake/_inputs.py +52857 -1665
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -218
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -48
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -32
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -47
  10. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
  11. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
  12. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
  13. pulumi_snowflake/api_integration.py +33 -52
  14. pulumi_snowflake/authentication_policy.py +622 -0
  15. pulumi_snowflake/config/__init__.pyi +76 -99
  16. pulumi_snowflake/config/outputs.py +5 -0
  17. pulumi_snowflake/config/vars.py +93 -124
  18. pulumi_snowflake/cortex_search_service.py +596 -0
  19. pulumi_snowflake/database.py +819 -213
  20. pulumi_snowflake/database_role.py +81 -44
  21. pulumi_snowflake/dynamic_table.py +42 -49
  22. pulumi_snowflake/email_notification_integration.py +33 -28
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
  24. pulumi_snowflake/external_function.py +54 -75
  25. pulumi_snowflake/external_oauth_integration.py +593 -542
  26. pulumi_snowflake/external_table.py +67 -90
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +57 -98
  29. pulumi_snowflake/file_format.py +33 -28
  30. pulumi_snowflake/function_java.py +1211 -0
  31. pulumi_snowflake/function_javascript.py +882 -0
  32. pulumi_snowflake/function_python.py +1212 -0
  33. pulumi_snowflake/function_scala.py +1212 -0
  34. pulumi_snowflake/function_sql.py +835 -0
  35. pulumi_snowflake/get_account_roles.py +129 -0
  36. pulumi_snowflake/get_accounts.py +53 -22
  37. pulumi_snowflake/get_alerts.py +22 -9
  38. pulumi_snowflake/get_connections.py +109 -0
  39. pulumi_snowflake/get_cortex_search_services.py +216 -0
  40. pulumi_snowflake/get_current_account.py +24 -13
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -9
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -47
  45. pulumi_snowflake/get_databases.py +91 -73
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -9
  48. pulumi_snowflake/get_external_tables.py +28 -9
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -9
  51. pulumi_snowflake/get_functions.py +28 -9
  52. pulumi_snowflake/get_grants.py +207 -84
  53. pulumi_snowflake/get_masking_policies.py +91 -51
  54. pulumi_snowflake/get_materialized_views.py +28 -9
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -15
  57. pulumi_snowflake/get_pipes.py +28 -9
  58. pulumi_snowflake/get_procedures.py +28 -9
  59. pulumi_snowflake/get_resource_monitors.py +37 -24
  60. pulumi_snowflake/get_row_access_policies.py +91 -51
  61. pulumi_snowflake/get_schemas.py +145 -41
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -9
  65. pulumi_snowflake/get_shares.py +18 -9
  66. pulumi_snowflake/get_stages.py +28 -9
  67. pulumi_snowflake/get_storage_integrations.py +16 -9
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -54
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +120 -5
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -9
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -54
  77. pulumi_snowflake/get_users.py +116 -44
  78. pulumi_snowflake/get_views.py +114 -54
  79. pulumi_snowflake/get_warehouses.py +79 -26
  80. pulumi_snowflake/grant_account_role.py +28 -75
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -94
  83. pulumi_snowflake/grant_ownership.py +382 -0
  84. pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
  85. pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
  86. pulumi_snowflake/grant_privileges_to_share.py +96 -44
  87. pulumi_snowflake/legacy_service_user.py +3670 -0
  88. pulumi_snowflake/managed_account.py +40 -11
  89. pulumi_snowflake/masking_policy.py +213 -310
  90. pulumi_snowflake/materialized_view.py +62 -71
  91. pulumi_snowflake/network_policy.py +217 -61
  92. pulumi_snowflake/network_policy_attachment.py +5 -34
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +49 -84
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
  97. pulumi_snowflake/object_parameter.py +10 -101
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -4
  101. pulumi_snowflake/primary_connection.py +330 -0
  102. pulumi_snowflake/procedure_java.py +1273 -0
  103. pulumi_snowflake/procedure_javascript.py +895 -0
  104. pulumi_snowflake/procedure_python.py +1226 -0
  105. pulumi_snowflake/procedure_scala.py +1273 -0
  106. pulumi_snowflake/procedure_sql.py +895 -0
  107. pulumi_snowflake/provider.py +378 -613
  108. pulumi_snowflake/pulumi-plugin.json +2 -1
  109. pulumi_snowflake/resource_monitor.py +118 -327
  110. pulumi_snowflake/row_access_policy.py +200 -149
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
  112. pulumi_snowflake/schema.py +949 -178
  113. pulumi_snowflake/scim_integration.py +286 -109
  114. pulumi_snowflake/secondary_connection.py +339 -0
  115. pulumi_snowflake/secondary_database.py +1080 -0
  116. pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
  117. pulumi_snowflake/secret_with_basic_authentication.py +500 -0
  118. pulumi_snowflake/secret_with_client_credentials.py +511 -0
  119. pulumi_snowflake/secret_with_generic_string.py +452 -0
  120. pulumi_snowflake/sequence.py +9 -34
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +33 -28
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -84
  125. pulumi_snowflake/storage_integration.py +46 -4
  126. pulumi_snowflake/stream_on_directory_table.py +517 -0
  127. pulumi_snowflake/stream_on_external_table.py +632 -0
  128. pulumi_snowflake/stream_on_table.py +666 -0
  129. pulumi_snowflake/stream_on_view.py +666 -0
  130. pulumi_snowflake/streamlit.py +671 -0
  131. pulumi_snowflake/table.py +86 -97
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -172
  134. pulumi_snowflake/tag.py +142 -74
  135. pulumi_snowflake/tag_association.py +40 -215
  136. pulumi_snowflake/task.py +3048 -418
  137. pulumi_snowflake/user.py +3351 -384
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +5 -4
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -215
  142. pulumi_snowflake/warehouse.py +184 -168
  143. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/METADATA +7 -6
  144. pulumi_snowflake-1.2.0a1736849992.dist-info/RECORD +148 -0
  145. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -343
  147. pulumi_snowflake/database_grant.py +0 -495
  148. pulumi_snowflake/external_table_grant.py +0 -690
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -635
  151. pulumi_snowflake/function.py +0 -872
  152. pulumi_snowflake/function_grant.py +0 -745
  153. pulumi_snowflake/get_role.py +0 -121
  154. pulumi_snowflake/get_roles.py +0 -120
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -825
  156. pulumi_snowflake/integration_grant.py +0 -440
  157. pulumi_snowflake/masking_policy_grant.py +0 -542
  158. pulumi_snowflake/materialized_view_grant.py +0 -689
  159. pulumi_snowflake/pipe_grant.py +0 -587
  160. pulumi_snowflake/procedure.py +0 -887
  161. pulumi_snowflake/procedure_grant.py +0 -745
  162. pulumi_snowflake/resource_monitor_grant.py +0 -387
  163. pulumi_snowflake/role.py +0 -273
  164. pulumi_snowflake/role_grants.py +0 -352
  165. pulumi_snowflake/role_ownership_grant.py +0 -338
  166. pulumi_snowflake/row_access_policy_grant.py +0 -540
  167. pulumi_snowflake/schema_grant.py +0 -647
  168. pulumi_snowflake/sequence_grant.py +0 -635
  169. pulumi_snowflake/session_parameter.py +0 -332
  170. pulumi_snowflake/stage_grant.py +0 -635
  171. pulumi_snowflake/stream.py +0 -614
  172. pulumi_snowflake/stream_grant.py +0 -635
  173. pulumi_snowflake/table_grant.py +0 -677
  174. pulumi_snowflake/tag_grant.py +0 -532
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -635
  177. pulumi_snowflake/user_grant.py +0 -394
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -705
  180. pulumi_snowflake/warehouse_grant.py +0 -440
  181. pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['PasswordPolicyArgs', 'PasswordPolicy']
@@ -294,6 +299,7 @@ class _PasswordPolicyState:
294
299
  def __init__(__self__, *,
295
300
  comment: Optional[pulumi.Input[str]] = None,
296
301
  database: Optional[pulumi.Input[str]] = None,
302
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
297
303
  history: Optional[pulumi.Input[int]] = None,
298
304
  if_not_exists: Optional[pulumi.Input[bool]] = None,
299
305
  lockout_time_mins: Optional[pulumi.Input[int]] = None,
@@ -308,12 +314,12 @@ class _PasswordPolicyState:
308
314
  min_upper_case_chars: Optional[pulumi.Input[int]] = None,
309
315
  name: Optional[pulumi.Input[str]] = None,
310
316
  or_replace: Optional[pulumi.Input[bool]] = None,
311
- qualified_name: Optional[pulumi.Input[str]] = None,
312
317
  schema: Optional[pulumi.Input[str]] = None):
313
318
  """
314
319
  Input properties used for looking up and filtering PasswordPolicy resources.
315
320
  :param pulumi.Input[str] comment: Adds a comment or overwrites an existing comment for the password policy.
316
321
  :param pulumi.Input[str] database: The database this password policy belongs to.
322
+ :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).
317
323
  :param pulumi.Input[int] history: Specifies the number of the most recent passwords that Snowflake stores. These stored passwords cannot be repeated when a user updates their password value. The current password value does not count towards the history. When you increase the history value, Snowflake saves the previous values. When you decrease the value, Snowflake saves the stored values up to that value that is set. For example, if the history value is 8 and you change the history value to 3, Snowflake stores the most recent 3 passwords and deletes the 5 older password values from the history. Default: 0 Max: 24
318
324
  :param pulumi.Input[bool] if_not_exists: Prevent overwriting a previous password policy with the same name.
319
325
  :param pulumi.Input[int] lockout_time_mins: Specifies the number of minutes the user account will be locked after exhausting the designated number of password retries (i.e. PASSWORD*MAX*RETRIES). Supported range: 1 to 999, inclusive. Default: 15
@@ -328,13 +334,14 @@ class _PasswordPolicyState:
328
334
  :param pulumi.Input[int] min_upper_case_chars: Specifies the minimum number of uppercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
329
335
  :param pulumi.Input[str] name: Identifier for the password policy; must be unique for your account.
330
336
  :param pulumi.Input[bool] or_replace: Whether to override a previous password policy with the same name.
331
- :param pulumi.Input[str] qualified_name: The qualified name for the password policy.
332
337
  :param pulumi.Input[str] schema: The schema this password policy belongs to.
333
338
  """
334
339
  if comment is not None:
335
340
  pulumi.set(__self__, "comment", comment)
336
341
  if database is not None:
337
342
  pulumi.set(__self__, "database", database)
343
+ if fully_qualified_name is not None:
344
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
338
345
  if history is not None:
339
346
  pulumi.set(__self__, "history", history)
340
347
  if if_not_exists is not None:
@@ -363,8 +370,6 @@ class _PasswordPolicyState:
363
370
  pulumi.set(__self__, "name", name)
364
371
  if or_replace is not None:
365
372
  pulumi.set(__self__, "or_replace", or_replace)
366
- if qualified_name is not None:
367
- pulumi.set(__self__, "qualified_name", qualified_name)
368
373
  if schema is not None:
369
374
  pulumi.set(__self__, "schema", schema)
370
375
 
@@ -392,6 +397,18 @@ class _PasswordPolicyState:
392
397
  def database(self, value: Optional[pulumi.Input[str]]):
393
398
  pulumi.set(self, "database", value)
394
399
 
400
+ @property
401
+ @pulumi.getter(name="fullyQualifiedName")
402
+ def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
403
+ """
404
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
405
+ """
406
+ return pulumi.get(self, "fully_qualified_name")
407
+
408
+ @fully_qualified_name.setter
409
+ def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
410
+ pulumi.set(self, "fully_qualified_name", value)
411
+
395
412
  @property
396
413
  @pulumi.getter
397
414
  def history(self) -> Optional[pulumi.Input[int]]:
@@ -560,18 +577,6 @@ class _PasswordPolicyState:
560
577
  def or_replace(self, value: Optional[pulumi.Input[bool]]):
561
578
  pulumi.set(self, "or_replace", value)
562
579
 
563
- @property
564
- @pulumi.getter(name="qualifiedName")
565
- def qualified_name(self) -> Optional[pulumi.Input[str]]:
566
- """
567
- The qualified name for the password policy.
568
- """
569
- return pulumi.get(self, "qualified_name")
570
-
571
- @qualified_name.setter
572
- def qualified_name(self, value: Optional[pulumi.Input[str]]):
573
- pulumi.set(self, "qualified_name", value)
574
-
575
580
  @property
576
581
  @pulumi.getter
577
582
  def schema(self) -> Optional[pulumi.Input[str]]:
@@ -609,6 +614,10 @@ class PasswordPolicy(pulumi.CustomResource):
609
614
  schema: Optional[pulumi.Input[str]] = None,
610
615
  __props__=None):
611
616
  """
617
+ !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
618
+
619
+ !> **Note** According to Snowflake [docs](https://docs.snowflake.com/en/sql-reference/sql/drop-password-policy#usage-notes), a password policy cannot be dropped successfully if it is currently assigned to another object. Currently, the provider does not unassign such objects automatically. Before dropping the resource, first unassign the policy from the relevant objects. See guide for more details.
620
+
612
621
  A password policy specifies the requirements that must be met to create and reset a password to authenticate to Snowflake.
613
622
 
614
623
  :param str resource_name: The name of the resource.
@@ -638,6 +647,10 @@ class PasswordPolicy(pulumi.CustomResource):
638
647
  args: PasswordPolicyArgs,
639
648
  opts: Optional[pulumi.ResourceOptions] = None):
640
649
  """
650
+ !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
651
+
652
+ !> **Note** According to Snowflake [docs](https://docs.snowflake.com/en/sql-reference/sql/drop-password-policy#usage-notes), a password policy cannot be dropped successfully if it is currently assigned to another object. Currently, the provider does not unassign such objects automatically. Before dropping the resource, first unassign the policy from the relevant objects. See guide for more details.
653
+
641
654
  A password policy specifies the requirements that must be met to create and reset a password to authenticate to Snowflake.
642
655
 
643
656
  :param str resource_name: The name of the resource.
@@ -702,7 +715,7 @@ class PasswordPolicy(pulumi.CustomResource):
702
715
  if schema is None and not opts.urn:
703
716
  raise TypeError("Missing required property 'schema'")
704
717
  __props__.__dict__["schema"] = schema
705
- __props__.__dict__["qualified_name"] = None
718
+ __props__.__dict__["fully_qualified_name"] = None
706
719
  super(PasswordPolicy, __self__).__init__(
707
720
  'snowflake:index/passwordPolicy:PasswordPolicy',
708
721
  resource_name,
@@ -715,6 +728,7 @@ class PasswordPolicy(pulumi.CustomResource):
715
728
  opts: Optional[pulumi.ResourceOptions] = None,
716
729
  comment: Optional[pulumi.Input[str]] = None,
717
730
  database: Optional[pulumi.Input[str]] = None,
731
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
718
732
  history: Optional[pulumi.Input[int]] = None,
719
733
  if_not_exists: Optional[pulumi.Input[bool]] = None,
720
734
  lockout_time_mins: Optional[pulumi.Input[int]] = None,
@@ -729,7 +743,6 @@ class PasswordPolicy(pulumi.CustomResource):
729
743
  min_upper_case_chars: Optional[pulumi.Input[int]] = None,
730
744
  name: Optional[pulumi.Input[str]] = None,
731
745
  or_replace: Optional[pulumi.Input[bool]] = None,
732
- qualified_name: Optional[pulumi.Input[str]] = None,
733
746
  schema: Optional[pulumi.Input[str]] = None) -> 'PasswordPolicy':
734
747
  """
735
748
  Get an existing PasswordPolicy resource's state with the given name, id, and optional extra
@@ -740,6 +753,7 @@ class PasswordPolicy(pulumi.CustomResource):
740
753
  :param pulumi.ResourceOptions opts: Options for the resource.
741
754
  :param pulumi.Input[str] comment: Adds a comment or overwrites an existing comment for the password policy.
742
755
  :param pulumi.Input[str] database: The database this password policy belongs to.
756
+ :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).
743
757
  :param pulumi.Input[int] history: Specifies the number of the most recent passwords that Snowflake stores. These stored passwords cannot be repeated when a user updates their password value. The current password value does not count towards the history. When you increase the history value, Snowflake saves the previous values. When you decrease the value, Snowflake saves the stored values up to that value that is set. For example, if the history value is 8 and you change the history value to 3, Snowflake stores the most recent 3 passwords and deletes the 5 older password values from the history. Default: 0 Max: 24
744
758
  :param pulumi.Input[bool] if_not_exists: Prevent overwriting a previous password policy with the same name.
745
759
  :param pulumi.Input[int] lockout_time_mins: Specifies the number of minutes the user account will be locked after exhausting the designated number of password retries (i.e. PASSWORD*MAX*RETRIES). Supported range: 1 to 999, inclusive. Default: 15
@@ -754,7 +768,6 @@ class PasswordPolicy(pulumi.CustomResource):
754
768
  :param pulumi.Input[int] min_upper_case_chars: Specifies the minimum number of uppercase characters the password must contain. Supported range: 0 to 256, inclusive. Default: 1
755
769
  :param pulumi.Input[str] name: Identifier for the password policy; must be unique for your account.
756
770
  :param pulumi.Input[bool] or_replace: Whether to override a previous password policy with the same name.
757
- :param pulumi.Input[str] qualified_name: The qualified name for the password policy.
758
771
  :param pulumi.Input[str] schema: The schema this password policy belongs to.
759
772
  """
760
773
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -763,6 +776,7 @@ class PasswordPolicy(pulumi.CustomResource):
763
776
 
764
777
  __props__.__dict__["comment"] = comment
765
778
  __props__.__dict__["database"] = database
779
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
766
780
  __props__.__dict__["history"] = history
767
781
  __props__.__dict__["if_not_exists"] = if_not_exists
768
782
  __props__.__dict__["lockout_time_mins"] = lockout_time_mins
@@ -777,7 +791,6 @@ class PasswordPolicy(pulumi.CustomResource):
777
791
  __props__.__dict__["min_upper_case_chars"] = min_upper_case_chars
778
792
  __props__.__dict__["name"] = name
779
793
  __props__.__dict__["or_replace"] = or_replace
780
- __props__.__dict__["qualified_name"] = qualified_name
781
794
  __props__.__dict__["schema"] = schema
782
795
  return PasswordPolicy(resource_name, opts=opts, __props__=__props__)
783
796
 
@@ -797,6 +810,14 @@ class PasswordPolicy(pulumi.CustomResource):
797
810
  """
798
811
  return pulumi.get(self, "database")
799
812
 
813
+ @property
814
+ @pulumi.getter(name="fullyQualifiedName")
815
+ def fully_qualified_name(self) -> pulumi.Output[str]:
816
+ """
817
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
818
+ """
819
+ return pulumi.get(self, "fully_qualified_name")
820
+
800
821
  @property
801
822
  @pulumi.getter
802
823
  def history(self) -> pulumi.Output[Optional[int]]:
@@ -909,14 +930,6 @@ class PasswordPolicy(pulumi.CustomResource):
909
930
  """
910
931
  return pulumi.get(self, "or_replace")
911
932
 
912
- @property
913
- @pulumi.getter(name="qualifiedName")
914
- def qualified_name(self) -> pulumi.Output[str]:
915
- """
916
- The qualified name for the password policy.
917
- """
918
- return pulumi.get(self, "qualified_name")
919
-
920
933
  @property
921
934
  @pulumi.getter
922
935
  def schema(self) -> pulumi.Output[str]:
pulumi_snowflake/pipe.py CHANGED
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['PipeArgs', 'Pipe']
@@ -169,6 +174,7 @@ class _PipeState:
169
174
  copy_statement: Optional[pulumi.Input[str]] = None,
170
175
  database: Optional[pulumi.Input[str]] = None,
171
176
  error_integration: Optional[pulumi.Input[str]] = None,
177
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
172
178
  integration: Optional[pulumi.Input[str]] = None,
173
179
  name: Optional[pulumi.Input[str]] = None,
174
180
  notification_channel: Optional[pulumi.Input[str]] = None,
@@ -182,6 +188,7 @@ class _PipeState:
182
188
  :param pulumi.Input[str] copy_statement: Specifies the copy statement for the pipe.
183
189
  :param pulumi.Input[str] database: The database in which to create the pipe.
184
190
  :param pulumi.Input[str] error_integration: Specifies the name of the notification integration used for error notifications.
191
+ :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).
185
192
  :param pulumi.Input[str] integration: Specifies an integration for the pipe.
186
193
  :param pulumi.Input[str] name: Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
187
194
  :param pulumi.Input[str] notification_channel: Amazon Resource Name of the Amazon SQS queue for the stage named in the DEFINITION column.
@@ -200,6 +207,8 @@ class _PipeState:
200
207
  pulumi.set(__self__, "database", database)
201
208
  if error_integration is not None:
202
209
  pulumi.set(__self__, "error_integration", error_integration)
210
+ if fully_qualified_name is not None:
211
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
203
212
  if integration is not None:
204
213
  pulumi.set(__self__, "integration", integration)
205
214
  if name is not None:
@@ -283,6 +292,18 @@ class _PipeState:
283
292
  def error_integration(self, value: Optional[pulumi.Input[str]]):
284
293
  pulumi.set(self, "error_integration", value)
285
294
 
295
+ @property
296
+ @pulumi.getter(name="fullyQualifiedName")
297
+ def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
298
+ """
299
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
300
+ """
301
+ return pulumi.get(self, "fully_qualified_name")
302
+
303
+ @fully_qualified_name.setter
304
+ def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
305
+ pulumi.set(self, "fully_qualified_name", value)
306
+
286
307
  @property
287
308
  @pulumi.getter
288
309
  def integration(self) -> Optional[pulumi.Input[str]]:
@@ -360,8 +381,6 @@ class Pipe(pulumi.CustomResource):
360
381
  schema: Optional[pulumi.Input[str]] = None,
361
382
  __props__=None):
362
383
  """
363
- ## Example Usage
364
-
365
384
  ## Import
366
385
 
367
386
  format is database name | schema name | pipe name
@@ -389,8 +408,6 @@ class Pipe(pulumi.CustomResource):
389
408
  args: PipeArgs,
390
409
  opts: Optional[pulumi.ResourceOptions] = None):
391
410
  """
392
- ## Example Usage
393
-
394
411
  ## Import
395
412
 
396
413
  format is database name | schema name | pipe name
@@ -447,6 +464,7 @@ class Pipe(pulumi.CustomResource):
447
464
  if schema is None and not opts.urn:
448
465
  raise TypeError("Missing required property 'schema'")
449
466
  __props__.__dict__["schema"] = schema
467
+ __props__.__dict__["fully_qualified_name"] = None
450
468
  __props__.__dict__["notification_channel"] = None
451
469
  __props__.__dict__["owner"] = None
452
470
  super(Pipe, __self__).__init__(
@@ -465,6 +483,7 @@ class Pipe(pulumi.CustomResource):
465
483
  copy_statement: Optional[pulumi.Input[str]] = None,
466
484
  database: Optional[pulumi.Input[str]] = None,
467
485
  error_integration: Optional[pulumi.Input[str]] = None,
486
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
468
487
  integration: Optional[pulumi.Input[str]] = None,
469
488
  name: Optional[pulumi.Input[str]] = None,
470
489
  notification_channel: Optional[pulumi.Input[str]] = None,
@@ -483,6 +502,7 @@ class Pipe(pulumi.CustomResource):
483
502
  :param pulumi.Input[str] copy_statement: Specifies the copy statement for the pipe.
484
503
  :param pulumi.Input[str] database: The database in which to create the pipe.
485
504
  :param pulumi.Input[str] error_integration: Specifies the name of the notification integration used for error notifications.
505
+ :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).
486
506
  :param pulumi.Input[str] integration: Specifies an integration for the pipe.
487
507
  :param pulumi.Input[str] name: Specifies the identifier for the pipe; must be unique for the database and schema in which the pipe is created.
488
508
  :param pulumi.Input[str] notification_channel: Amazon Resource Name of the Amazon SQS queue for the stage named in the DEFINITION column.
@@ -499,6 +519,7 @@ class Pipe(pulumi.CustomResource):
499
519
  __props__.__dict__["copy_statement"] = copy_statement
500
520
  __props__.__dict__["database"] = database
501
521
  __props__.__dict__["error_integration"] = error_integration
522
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
502
523
  __props__.__dict__["integration"] = integration
503
524
  __props__.__dict__["name"] = name
504
525
  __props__.__dict__["notification_channel"] = notification_channel
@@ -554,6 +575,14 @@ class Pipe(pulumi.CustomResource):
554
575
  """
555
576
  return pulumi.get(self, "error_integration")
556
577
 
578
+ @property
579
+ @pulumi.getter(name="fullyQualifiedName")
580
+ def fully_qualified_name(self) -> pulumi.Output[str]:
581
+ """
582
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
583
+ """
584
+ return pulumi.get(self, "fully_qualified_name")
585
+
557
586
  @property
558
587
  @pulumi.getter
559
588
  def integration(self) -> pulumi.Output[Optional[str]]:
@@ -0,0 +1,330 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
18
+
19
+ __all__ = ['PrimaryConnectionArgs', 'PrimaryConnection']
20
+
21
+ @pulumi.input_type
22
+ class PrimaryConnectionArgs:
23
+ def __init__(__self__, *,
24
+ comment: Optional[pulumi.Input[str]] = None,
25
+ enable_failover_to_accounts: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
26
+ name: Optional[pulumi.Input[str]] = None):
27
+ """
28
+ The set of arguments for constructing a PrimaryConnection resource.
29
+ :param pulumi.Input[str] comment: Specifies a comment for the connection.
30
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] enable_failover_to_accounts: Enables failover for given connection to provided accounts. Specifies a list of accounts in your organization where a secondary connection for this primary connection can be promoted to serve as the primary connection. Include your organization name for each account in the list. For more information about this resource, see docs.
31
+ :param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a primary connection, the name must be unique across connection names and account names in the organization. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
32
+ """
33
+ if comment is not None:
34
+ pulumi.set(__self__, "comment", comment)
35
+ if enable_failover_to_accounts is not None:
36
+ pulumi.set(__self__, "enable_failover_to_accounts", enable_failover_to_accounts)
37
+ if name is not None:
38
+ pulumi.set(__self__, "name", name)
39
+
40
+ @property
41
+ @pulumi.getter
42
+ def comment(self) -> Optional[pulumi.Input[str]]:
43
+ """
44
+ Specifies a comment for the connection.
45
+ """
46
+ return pulumi.get(self, "comment")
47
+
48
+ @comment.setter
49
+ def comment(self, value: Optional[pulumi.Input[str]]):
50
+ pulumi.set(self, "comment", value)
51
+
52
+ @property
53
+ @pulumi.getter(name="enableFailoverToAccounts")
54
+ def enable_failover_to_accounts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
55
+ """
56
+ Enables failover for given connection to provided accounts. Specifies a list of accounts in your organization where a secondary connection for this primary connection can be promoted to serve as the primary connection. Include your organization name for each account in the list. For more information about this resource, see docs.
57
+ """
58
+ return pulumi.get(self, "enable_failover_to_accounts")
59
+
60
+ @enable_failover_to_accounts.setter
61
+ def enable_failover_to_accounts(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
62
+ pulumi.set(self, "enable_failover_to_accounts", value)
63
+
64
+ @property
65
+ @pulumi.getter
66
+ def name(self) -> Optional[pulumi.Input[str]]:
67
+ """
68
+ String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a primary connection, the name must be unique across connection names and account names in the organization. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
69
+ """
70
+ return pulumi.get(self, "name")
71
+
72
+ @name.setter
73
+ def name(self, value: Optional[pulumi.Input[str]]):
74
+ pulumi.set(self, "name", value)
75
+
76
+
77
+ @pulumi.input_type
78
+ class _PrimaryConnectionState:
79
+ def __init__(__self__, *,
80
+ comment: Optional[pulumi.Input[str]] = None,
81
+ enable_failover_to_accounts: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
82
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
83
+ is_primary: Optional[pulumi.Input[bool]] = None,
84
+ name: Optional[pulumi.Input[str]] = None,
85
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['PrimaryConnectionShowOutputArgs']]]] = None):
86
+ """
87
+ Input properties used for looking up and filtering PrimaryConnection resources.
88
+ :param pulumi.Input[str] comment: Specifies a comment for the connection.
89
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] enable_failover_to_accounts: Enables failover for given connection to provided accounts. Specifies a list of accounts in your organization where a secondary connection for this primary connection can be promoted to serve as the primary connection. Include your organization name for each account in the list. For more information about this resource, see docs.
90
+ :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).
91
+ :param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a primary connection, the name must be unique across connection names and account names in the organization. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
92
+ :param pulumi.Input[Sequence[pulumi.Input['PrimaryConnectionShowOutputArgs']]] show_outputs: Outputs the result of `SHOW CONNECTIONS` for the given connection.
93
+ """
94
+ if comment is not None:
95
+ pulumi.set(__self__, "comment", comment)
96
+ if enable_failover_to_accounts is not None:
97
+ pulumi.set(__self__, "enable_failover_to_accounts", enable_failover_to_accounts)
98
+ if fully_qualified_name is not None:
99
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
100
+ if is_primary is not None:
101
+ pulumi.set(__self__, "is_primary", is_primary)
102
+ if name is not None:
103
+ pulumi.set(__self__, "name", name)
104
+ if show_outputs is not None:
105
+ pulumi.set(__self__, "show_outputs", show_outputs)
106
+
107
+ @property
108
+ @pulumi.getter
109
+ def comment(self) -> Optional[pulumi.Input[str]]:
110
+ """
111
+ Specifies a comment for the connection.
112
+ """
113
+ return pulumi.get(self, "comment")
114
+
115
+ @comment.setter
116
+ def comment(self, value: Optional[pulumi.Input[str]]):
117
+ pulumi.set(self, "comment", value)
118
+
119
+ @property
120
+ @pulumi.getter(name="enableFailoverToAccounts")
121
+ def enable_failover_to_accounts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
122
+ """
123
+ Enables failover for given connection to provided accounts. Specifies a list of accounts in your organization where a secondary connection for this primary connection can be promoted to serve as the primary connection. Include your organization name for each account in the list. For more information about this resource, see docs.
124
+ """
125
+ return pulumi.get(self, "enable_failover_to_accounts")
126
+
127
+ @enable_failover_to_accounts.setter
128
+ def enable_failover_to_accounts(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
129
+ pulumi.set(self, "enable_failover_to_accounts", value)
130
+
131
+ @property
132
+ @pulumi.getter(name="fullyQualifiedName")
133
+ def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
134
+ """
135
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
136
+ """
137
+ return pulumi.get(self, "fully_qualified_name")
138
+
139
+ @fully_qualified_name.setter
140
+ def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
141
+ pulumi.set(self, "fully_qualified_name", value)
142
+
143
+ @property
144
+ @pulumi.getter(name="isPrimary")
145
+ def is_primary(self) -> Optional[pulumi.Input[bool]]:
146
+ return pulumi.get(self, "is_primary")
147
+
148
+ @is_primary.setter
149
+ def is_primary(self, value: Optional[pulumi.Input[bool]]):
150
+ pulumi.set(self, "is_primary", value)
151
+
152
+ @property
153
+ @pulumi.getter
154
+ def name(self) -> Optional[pulumi.Input[str]]:
155
+ """
156
+ String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a primary connection, the name must be unique across connection names and account names in the organization. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
157
+ """
158
+ return pulumi.get(self, "name")
159
+
160
+ @name.setter
161
+ def name(self, value: Optional[pulumi.Input[str]]):
162
+ pulumi.set(self, "name", value)
163
+
164
+ @property
165
+ @pulumi.getter(name="showOutputs")
166
+ def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['PrimaryConnectionShowOutputArgs']]]]:
167
+ """
168
+ Outputs the result of `SHOW CONNECTIONS` for the given connection.
169
+ """
170
+ return pulumi.get(self, "show_outputs")
171
+
172
+ @show_outputs.setter
173
+ def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['PrimaryConnectionShowOutputArgs']]]]):
174
+ pulumi.set(self, "show_outputs", value)
175
+
176
+
177
+ class PrimaryConnection(pulumi.CustomResource):
178
+ @overload
179
+ def __init__(__self__,
180
+ resource_name: str,
181
+ opts: Optional[pulumi.ResourceOptions] = None,
182
+ comment: Optional[pulumi.Input[str]] = None,
183
+ enable_failover_to_accounts: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
184
+ name: Optional[pulumi.Input[str]] = None,
185
+ __props__=None):
186
+ """
187
+ ## Import
188
+
189
+ ```sh
190
+ $ pulumi import snowflake:index/primaryConnection:PrimaryConnection example '"<primary_connection_name>"'
191
+ ```
192
+
193
+ :param str resource_name: The name of the resource.
194
+ :param pulumi.ResourceOptions opts: Options for the resource.
195
+ :param pulumi.Input[str] comment: Specifies a comment for the connection.
196
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] enable_failover_to_accounts: Enables failover for given connection to provided accounts. Specifies a list of accounts in your organization where a secondary connection for this primary connection can be promoted to serve as the primary connection. Include your organization name for each account in the list. For more information about this resource, see docs.
197
+ :param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a primary connection, the name must be unique across connection names and account names in the organization. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
198
+ """
199
+ ...
200
+ @overload
201
+ def __init__(__self__,
202
+ resource_name: str,
203
+ args: Optional[PrimaryConnectionArgs] = None,
204
+ opts: Optional[pulumi.ResourceOptions] = None):
205
+ """
206
+ ## Import
207
+
208
+ ```sh
209
+ $ pulumi import snowflake:index/primaryConnection:PrimaryConnection example '"<primary_connection_name>"'
210
+ ```
211
+
212
+ :param str resource_name: The name of the resource.
213
+ :param PrimaryConnectionArgs args: The arguments to use to populate this resource's properties.
214
+ :param pulumi.ResourceOptions opts: Options for the resource.
215
+ """
216
+ ...
217
+ def __init__(__self__, resource_name: str, *args, **kwargs):
218
+ resource_args, opts = _utilities.get_resource_args_opts(PrimaryConnectionArgs, pulumi.ResourceOptions, *args, **kwargs)
219
+ if resource_args is not None:
220
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
221
+ else:
222
+ __self__._internal_init(resource_name, *args, **kwargs)
223
+
224
+ def _internal_init(__self__,
225
+ resource_name: str,
226
+ opts: Optional[pulumi.ResourceOptions] = None,
227
+ comment: Optional[pulumi.Input[str]] = None,
228
+ enable_failover_to_accounts: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
229
+ name: Optional[pulumi.Input[str]] = None,
230
+ __props__=None):
231
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
232
+ if not isinstance(opts, pulumi.ResourceOptions):
233
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
234
+ if opts.id is None:
235
+ if __props__ is not None:
236
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
237
+ __props__ = PrimaryConnectionArgs.__new__(PrimaryConnectionArgs)
238
+
239
+ __props__.__dict__["comment"] = comment
240
+ __props__.__dict__["enable_failover_to_accounts"] = enable_failover_to_accounts
241
+ __props__.__dict__["name"] = name
242
+ __props__.__dict__["fully_qualified_name"] = None
243
+ __props__.__dict__["is_primary"] = None
244
+ __props__.__dict__["show_outputs"] = None
245
+ super(PrimaryConnection, __self__).__init__(
246
+ 'snowflake:index/primaryConnection:PrimaryConnection',
247
+ resource_name,
248
+ __props__,
249
+ opts)
250
+
251
+ @staticmethod
252
+ def get(resource_name: str,
253
+ id: pulumi.Input[str],
254
+ opts: Optional[pulumi.ResourceOptions] = None,
255
+ comment: Optional[pulumi.Input[str]] = None,
256
+ enable_failover_to_accounts: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
257
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
258
+ is_primary: Optional[pulumi.Input[bool]] = None,
259
+ name: Optional[pulumi.Input[str]] = None,
260
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['PrimaryConnectionShowOutputArgs', 'PrimaryConnectionShowOutputArgsDict']]]]] = None) -> 'PrimaryConnection':
261
+ """
262
+ Get an existing PrimaryConnection resource's state with the given name, id, and optional extra
263
+ properties used to qualify the lookup.
264
+
265
+ :param str resource_name: The unique name of the resulting resource.
266
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
267
+ :param pulumi.ResourceOptions opts: Options for the resource.
268
+ :param pulumi.Input[str] comment: Specifies a comment for the connection.
269
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] enable_failover_to_accounts: Enables failover for given connection to provided accounts. Specifies a list of accounts in your organization where a secondary connection for this primary connection can be promoted to serve as the primary connection. Include your organization name for each account in the list. For more information about this resource, see docs.
270
+ :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).
271
+ :param pulumi.Input[str] name: String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a primary connection, the name must be unique across connection names and account names in the organization. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
272
+ :param pulumi.Input[Sequence[pulumi.Input[Union['PrimaryConnectionShowOutputArgs', 'PrimaryConnectionShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW CONNECTIONS` for the given connection.
273
+ """
274
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
275
+
276
+ __props__ = _PrimaryConnectionState.__new__(_PrimaryConnectionState)
277
+
278
+ __props__.__dict__["comment"] = comment
279
+ __props__.__dict__["enable_failover_to_accounts"] = enable_failover_to_accounts
280
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
281
+ __props__.__dict__["is_primary"] = is_primary
282
+ __props__.__dict__["name"] = name
283
+ __props__.__dict__["show_outputs"] = show_outputs
284
+ return PrimaryConnection(resource_name, opts=opts, __props__=__props__)
285
+
286
+ @property
287
+ @pulumi.getter
288
+ def comment(self) -> pulumi.Output[Optional[str]]:
289
+ """
290
+ Specifies a comment for the connection.
291
+ """
292
+ return pulumi.get(self, "comment")
293
+
294
+ @property
295
+ @pulumi.getter(name="enableFailoverToAccounts")
296
+ def enable_failover_to_accounts(self) -> pulumi.Output[Optional[Sequence[str]]]:
297
+ """
298
+ Enables failover for given connection to provided accounts. Specifies a list of accounts in your organization where a secondary connection for this primary connection can be promoted to serve as the primary connection. Include your organization name for each account in the list. For more information about this resource, see docs.
299
+ """
300
+ return pulumi.get(self, "enable_failover_to_accounts")
301
+
302
+ @property
303
+ @pulumi.getter(name="fullyQualifiedName")
304
+ def fully_qualified_name(self) -> pulumi.Output[str]:
305
+ """
306
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
307
+ """
308
+ return pulumi.get(self, "fully_qualified_name")
309
+
310
+ @property
311
+ @pulumi.getter(name="isPrimary")
312
+ def is_primary(self) -> pulumi.Output[bool]:
313
+ return pulumi.get(self, "is_primary")
314
+
315
+ @property
316
+ @pulumi.getter
317
+ def name(self) -> pulumi.Output[str]:
318
+ """
319
+ String that specifies the identifier (i.e. name) for the connection. Must start with an alphabetic character and may only contain letters, decimal digits (0-9), and underscores (_). For a primary connection, the name must be unique across connection names and account names in the organization. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
320
+ """
321
+ return pulumi.get(self, "name")
322
+
323
+ @property
324
+ @pulumi.getter(name="showOutputs")
325
+ def show_outputs(self) -> pulumi.Output[Sequence['outputs.PrimaryConnectionShowOutput']]:
326
+ """
327
+ Outputs the result of `SHOW CONNECTIONS` for the given connection.
328
+ """
329
+ return pulumi.get(self, "show_outputs")
330
+