pulumi-snowflake 0.50.2a1709892015__py3-none-any.whl → 1.2.0a1736835738__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 +52854 -1662
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -214
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -44
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -28
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -43
  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 +35 -50
  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 -209
  20. pulumi_snowflake/database_role.py +81 -40
  21. pulumi_snowflake/dynamic_table.py +44 -47
  22. pulumi_snowflake/email_notification_integration.py +35 -26
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -139
  24. pulumi_snowflake/external_function.py +54 -71
  25. pulumi_snowflake/external_oauth_integration.py +593 -538
  26. pulumi_snowflake/external_table.py +67 -86
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +59 -96
  29. pulumi_snowflake/file_format.py +33 -24
  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 -5
  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 -9
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -5
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -43
  45. pulumi_snowflake/get_databases.py +91 -69
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -5
  48. pulumi_snowflake/get_external_tables.py +28 -5
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -5
  51. pulumi_snowflake/get_functions.py +28 -5
  52. pulumi_snowflake/get_grants.py +207 -80
  53. pulumi_snowflake/get_masking_policies.py +91 -47
  54. pulumi_snowflake/get_materialized_views.py +28 -5
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -11
  57. pulumi_snowflake/get_pipes.py +28 -5
  58. pulumi_snowflake/get_procedures.py +28 -5
  59. pulumi_snowflake/get_resource_monitors.py +37 -20
  60. pulumi_snowflake/get_row_access_policies.py +91 -47
  61. pulumi_snowflake/get_schemas.py +145 -37
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -5
  65. pulumi_snowflake/get_shares.py +18 -5
  66. pulumi_snowflake/get_stages.py +28 -5
  67. pulumi_snowflake/get_storage_integrations.py +16 -5
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -50
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -5
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +121 -6
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -5
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -50
  77. pulumi_snowflake/get_users.py +116 -40
  78. pulumi_snowflake/get_views.py +114 -50
  79. pulumi_snowflake/get_warehouses.py +79 -22
  80. pulumi_snowflake/grant_account_role.py +28 -61
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -108
  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 -223
  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 +42 -9
  89. pulumi_snowflake/masking_policy.py +213 -306
  90. pulumi_snowflake/materialized_view.py +62 -67
  91. pulumi_snowflake/network_policy.py +217 -57
  92. pulumi_snowflake/network_policy_attachment.py +7 -32
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +51 -82
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -188
  97. pulumi_snowflake/object_parameter.py +12 -99
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -0
  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 -323
  110. pulumi_snowflake/row_access_policy.py +200 -145
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -295
  112. pulumi_snowflake/schema.py +949 -174
  113. pulumi_snowflake/scim_integration.py +286 -105
  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 -30
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +35 -26
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -80
  125. pulumi_snowflake/storage_integration.py +48 -2
  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 -93
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -168
  134. pulumi_snowflake/tag.py +142 -70
  135. pulumi_snowflake/tag_association.py +40 -211
  136. pulumi_snowflake/task.py +3048 -414
  137. pulumi_snowflake/user.py +3351 -380
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +7 -6
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -211
  142. pulumi_snowflake/warehouse.py +184 -164
  143. {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
  144. pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
  145. {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -339
  147. pulumi_snowflake/database_grant.py +0 -491
  148. pulumi_snowflake/external_table_grant.py +0 -686
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -631
  151. pulumi_snowflake/function.py +0 -868
  152. pulumi_snowflake/function_grant.py +0 -741
  153. pulumi_snowflake/get_role.py +0 -117
  154. pulumi_snowflake/get_roles.py +0 -116
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -667
  156. pulumi_snowflake/integration_grant.py +0 -436
  157. pulumi_snowflake/masking_policy_grant.py +0 -538
  158. pulumi_snowflake/materialized_view_grant.py +0 -685
  159. pulumi_snowflake/pipe_grant.py +0 -583
  160. pulumi_snowflake/procedure.py +0 -883
  161. pulumi_snowflake/procedure_grant.py +0 -741
  162. pulumi_snowflake/resource_monitor_grant.py +0 -383
  163. pulumi_snowflake/role.py +0 -269
  164. pulumi_snowflake/role_grants.py +0 -348
  165. pulumi_snowflake/role_ownership_grant.py +0 -334
  166. pulumi_snowflake/row_access_policy_grant.py +0 -536
  167. pulumi_snowflake/schema_grant.py +0 -643
  168. pulumi_snowflake/sequence_grant.py +0 -631
  169. pulumi_snowflake/session_parameter.py +0 -328
  170. pulumi_snowflake/stage_grant.py +0 -631
  171. pulumi_snowflake/stream.py +0 -610
  172. pulumi_snowflake/stream_grant.py +0 -631
  173. pulumi_snowflake/table_grant.py +0 -673
  174. pulumi_snowflake/tag_grant.py +0 -528
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -631
  177. pulumi_snowflake/user_grant.py +0 -390
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -701
  180. pulumi_snowflake/warehouse_grant.py +0 -436
  181. pulumi_snowflake-0.50.2a1709892015.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
@@ -4,30 +4,46 @@
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
16
+ from . import outputs
17
+ from ._inputs import *
11
18
 
12
19
  __all__ = ['NetworkPolicyArgs', 'NetworkPolicy']
13
20
 
14
21
  @pulumi.input_type
15
22
  class NetworkPolicyArgs:
16
23
  def __init__(__self__, *,
17
- allowed_ip_lists: pulumi.Input[Sequence[pulumi.Input[str]]],
24
+ allowed_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
25
+ allowed_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
18
26
  blocked_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
27
+ blocked_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
19
28
  comment: Optional[pulumi.Input[str]] = None,
20
29
  name: Optional[pulumi.Input[str]] = None):
21
30
  """
22
31
  The set of arguments for constructing a NetworkPolicy resource.
23
- :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
24
- :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\\n\\n\\n\\n**Do not** add `0.0.0.0/0` to `blocked_ip_list`
32
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account.
33
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_network_rule_lists: Specifies a list of fully qualified network rules that contain the network identifiers that are allowed access to Snowflake. For more information about this resource, see docs.
34
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account. **Do not** add `0.0.0.0/0` to `blocked_ip_list`, in order to block all IP addresses except a select list, you only need to add IP addresses to `allowed_ip_list`.
35
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_network_rule_lists: Specifies a list of fully qualified network rules that contain the network identifiers that are denied access to Snowflake. For more information about this resource, see docs.
25
36
  :param pulumi.Input[str] comment: Specifies a comment for the network policy.
26
- :param pulumi.Input[str] name: Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
37
+ :param pulumi.Input[str] name: Specifies the identifier for the network policy; must be unique for the account in which the network policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
27
38
  """
28
- pulumi.set(__self__, "allowed_ip_lists", allowed_ip_lists)
39
+ if allowed_ip_lists is not None:
40
+ pulumi.set(__self__, "allowed_ip_lists", allowed_ip_lists)
41
+ if allowed_network_rule_lists is not None:
42
+ pulumi.set(__self__, "allowed_network_rule_lists", allowed_network_rule_lists)
29
43
  if blocked_ip_lists is not None:
30
44
  pulumi.set(__self__, "blocked_ip_lists", blocked_ip_lists)
45
+ if blocked_network_rule_lists is not None:
46
+ pulumi.set(__self__, "blocked_network_rule_lists", blocked_network_rule_lists)
31
47
  if comment is not None:
32
48
  pulumi.set(__self__, "comment", comment)
33
49
  if name is not None:
@@ -35,21 +51,33 @@ class NetworkPolicyArgs:
35
51
 
36
52
  @property
37
53
  @pulumi.getter(name="allowedIpLists")
38
- def allowed_ip_lists(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
54
+ def allowed_ip_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
39
55
  """
40
- Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
56
+ Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account.
41
57
  """
42
58
  return pulumi.get(self, "allowed_ip_lists")
43
59
 
44
60
  @allowed_ip_lists.setter
45
- def allowed_ip_lists(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
61
+ def allowed_ip_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
46
62
  pulumi.set(self, "allowed_ip_lists", value)
47
63
 
64
+ @property
65
+ @pulumi.getter(name="allowedNetworkRuleLists")
66
+ def allowed_network_rule_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
67
+ """
68
+ Specifies a list of fully qualified network rules that contain the network identifiers that are allowed access to Snowflake. For more information about this resource, see docs.
69
+ """
70
+ return pulumi.get(self, "allowed_network_rule_lists")
71
+
72
+ @allowed_network_rule_lists.setter
73
+ def allowed_network_rule_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
74
+ pulumi.set(self, "allowed_network_rule_lists", value)
75
+
48
76
  @property
49
77
  @pulumi.getter(name="blockedIpLists")
50
78
  def blocked_ip_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
51
79
  """
52
- Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\\n\\n\\n\\n**Do not** add `0.0.0.0/0` to `blocked_ip_list`
80
+ Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account. **Do not** add `0.0.0.0/0` to `blocked_ip_list`, in order to block all IP addresses except a select list, you only need to add IP addresses to `allowed_ip_list`.
53
81
  """
54
82
  return pulumi.get(self, "blocked_ip_lists")
55
83
 
@@ -57,6 +85,18 @@ class NetworkPolicyArgs:
57
85
  def blocked_ip_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
58
86
  pulumi.set(self, "blocked_ip_lists", value)
59
87
 
88
+ @property
89
+ @pulumi.getter(name="blockedNetworkRuleLists")
90
+ def blocked_network_rule_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
91
+ """
92
+ Specifies a list of fully qualified network rules that contain the network identifiers that are denied access to Snowflake. For more information about this resource, see docs.
93
+ """
94
+ return pulumi.get(self, "blocked_network_rule_lists")
95
+
96
+ @blocked_network_rule_lists.setter
97
+ def blocked_network_rule_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
98
+ pulumi.set(self, "blocked_network_rule_lists", value)
99
+
60
100
  @property
61
101
  @pulumi.getter
62
102
  def comment(self) -> Optional[pulumi.Input[str]]:
@@ -73,7 +113,7 @@ class NetworkPolicyArgs:
73
113
  @pulumi.getter
74
114
  def name(self) -> Optional[pulumi.Input[str]]:
75
115
  """
76
- Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
116
+ Specifies the identifier for the network policy; must be unique for the account in which the network policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
77
117
  """
78
118
  return pulumi.get(self, "name")
79
119
 
@@ -86,30 +126,50 @@ class NetworkPolicyArgs:
86
126
  class _NetworkPolicyState:
87
127
  def __init__(__self__, *,
88
128
  allowed_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
129
+ allowed_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
89
130
  blocked_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
131
+ blocked_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
90
132
  comment: Optional[pulumi.Input[str]] = None,
91
- name: Optional[pulumi.Input[str]] = None):
133
+ describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]]] = None,
134
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
135
+ name: Optional[pulumi.Input[str]] = None,
136
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyShowOutputArgs']]]] = None):
92
137
  """
93
138
  Input properties used for looking up and filtering NetworkPolicy resources.
94
- :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
95
- :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\\n\\n\\n\\n**Do not** add `0.0.0.0/0` to `blocked_ip_list`
139
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account.
140
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_network_rule_lists: Specifies a list of fully qualified network rules that contain the network identifiers that are allowed access to Snowflake. For more information about this resource, see docs.
141
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account. **Do not** add `0.0.0.0/0` to `blocked_ip_list`, in order to block all IP addresses except a select list, you only need to add IP addresses to `allowed_ip_list`.
142
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_network_rule_lists: Specifies a list of fully qualified network rules that contain the network identifiers that are denied access to Snowflake. For more information about this resource, see docs.
96
143
  :param pulumi.Input[str] comment: Specifies a comment for the network policy.
97
- :param pulumi.Input[str] name: Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
144
+ :param pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
145
+ :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).
146
+ :param pulumi.Input[str] name: Specifies the identifier for the network policy; must be unique for the account in which the network policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
147
+ :param pulumi.Input[Sequence[pulumi.Input['NetworkPolicyShowOutputArgs']]] show_outputs: Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
98
148
  """
99
149
  if allowed_ip_lists is not None:
100
150
  pulumi.set(__self__, "allowed_ip_lists", allowed_ip_lists)
151
+ if allowed_network_rule_lists is not None:
152
+ pulumi.set(__self__, "allowed_network_rule_lists", allowed_network_rule_lists)
101
153
  if blocked_ip_lists is not None:
102
154
  pulumi.set(__self__, "blocked_ip_lists", blocked_ip_lists)
155
+ if blocked_network_rule_lists is not None:
156
+ pulumi.set(__self__, "blocked_network_rule_lists", blocked_network_rule_lists)
103
157
  if comment is not None:
104
158
  pulumi.set(__self__, "comment", comment)
159
+ if describe_outputs is not None:
160
+ pulumi.set(__self__, "describe_outputs", describe_outputs)
161
+ if fully_qualified_name is not None:
162
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
105
163
  if name is not None:
106
164
  pulumi.set(__self__, "name", name)
165
+ if show_outputs is not None:
166
+ pulumi.set(__self__, "show_outputs", show_outputs)
107
167
 
108
168
  @property
109
169
  @pulumi.getter(name="allowedIpLists")
110
170
  def allowed_ip_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
111
171
  """
112
- Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
172
+ Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account.
113
173
  """
114
174
  return pulumi.get(self, "allowed_ip_lists")
115
175
 
@@ -117,11 +177,23 @@ class _NetworkPolicyState:
117
177
  def allowed_ip_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
118
178
  pulumi.set(self, "allowed_ip_lists", value)
119
179
 
180
+ @property
181
+ @pulumi.getter(name="allowedNetworkRuleLists")
182
+ def allowed_network_rule_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
183
+ """
184
+ Specifies a list of fully qualified network rules that contain the network identifiers that are allowed access to Snowflake. For more information about this resource, see docs.
185
+ """
186
+ return pulumi.get(self, "allowed_network_rule_lists")
187
+
188
+ @allowed_network_rule_lists.setter
189
+ def allowed_network_rule_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
190
+ pulumi.set(self, "allowed_network_rule_lists", value)
191
+
120
192
  @property
121
193
  @pulumi.getter(name="blockedIpLists")
122
194
  def blocked_ip_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
123
195
  """
124
- Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\\n\\n\\n\\n**Do not** add `0.0.0.0/0` to `blocked_ip_list`
196
+ Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account. **Do not** add `0.0.0.0/0` to `blocked_ip_list`, in order to block all IP addresses except a select list, you only need to add IP addresses to `allowed_ip_list`.
125
197
  """
126
198
  return pulumi.get(self, "blocked_ip_lists")
127
199
 
@@ -129,6 +201,18 @@ class _NetworkPolicyState:
129
201
  def blocked_ip_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
130
202
  pulumi.set(self, "blocked_ip_lists", value)
131
203
 
204
+ @property
205
+ @pulumi.getter(name="blockedNetworkRuleLists")
206
+ def blocked_network_rule_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
207
+ """
208
+ Specifies a list of fully qualified network rules that contain the network identifiers that are denied access to Snowflake. For more information about this resource, see docs.
209
+ """
210
+ return pulumi.get(self, "blocked_network_rule_lists")
211
+
212
+ @blocked_network_rule_lists.setter
213
+ def blocked_network_rule_lists(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
214
+ pulumi.set(self, "blocked_network_rule_lists", value)
215
+
132
216
  @property
133
217
  @pulumi.getter
134
218
  def comment(self) -> Optional[pulumi.Input[str]]:
@@ -141,11 +225,35 @@ class _NetworkPolicyState:
141
225
  def comment(self, value: Optional[pulumi.Input[str]]):
142
226
  pulumi.set(self, "comment", value)
143
227
 
228
+ @property
229
+ @pulumi.getter(name="describeOutputs")
230
+ def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]]]:
231
+ """
232
+ Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
233
+ """
234
+ return pulumi.get(self, "describe_outputs")
235
+
236
+ @describe_outputs.setter
237
+ def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]]]):
238
+ pulumi.set(self, "describe_outputs", value)
239
+
240
+ @property
241
+ @pulumi.getter(name="fullyQualifiedName")
242
+ def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
243
+ """
244
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
245
+ """
246
+ return pulumi.get(self, "fully_qualified_name")
247
+
248
+ @fully_qualified_name.setter
249
+ def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
250
+ pulumi.set(self, "fully_qualified_name", value)
251
+
144
252
  @property
145
253
  @pulumi.getter
146
254
  def name(self) -> Optional[pulumi.Input[str]]:
147
255
  """
148
- Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
256
+ Specifies the identifier for the network policy; must be unique for the account in which the network policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
149
257
  """
150
258
  return pulumi.get(self, "name")
151
259
 
@@ -153,6 +261,18 @@ class _NetworkPolicyState:
153
261
  def name(self, value: Optional[pulumi.Input[str]]):
154
262
  pulumi.set(self, "name", value)
155
263
 
264
+ @property
265
+ @pulumi.getter(name="showOutputs")
266
+ def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyShowOutputArgs']]]]:
267
+ """
268
+ Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
269
+ """
270
+ return pulumi.get(self, "show_outputs")
271
+
272
+ @show_outputs.setter
273
+ def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyShowOutputArgs']]]]):
274
+ pulumi.set(self, "show_outputs", value)
275
+
156
276
 
157
277
  class NetworkPolicy(pulumi.CustomResource):
158
278
  @overload
@@ -160,59 +280,39 @@ class NetworkPolicy(pulumi.CustomResource):
160
280
  resource_name: str,
161
281
  opts: Optional[pulumi.ResourceOptions] = None,
162
282
  allowed_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
283
+ allowed_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
163
284
  blocked_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
285
+ blocked_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
164
286
  comment: Optional[pulumi.Input[str]] = None,
165
287
  name: Optional[pulumi.Input[str]] = None,
166
288
  __props__=None):
167
289
  """
168
- ## Example Usage
169
-
170
- ```python
171
- import pulumi
172
- import pulumi_snowflake as snowflake
173
-
174
- policy = snowflake.NetworkPolicy("policy",
175
- allowed_ip_lists=["192.168.0.100/24"],
176
- blocked_ip_lists=["192.168.0.101"],
177
- comment="A policy.")
178
- ```
179
-
180
290
  ## Import
181
291
 
182
292
  ```sh
183
- $ pulumi import snowflake:index/networkPolicy:NetworkPolicy example policyname
293
+ $ pulumi import snowflake:index/networkPolicy:NetworkPolicy example '"<network_policy_name>"'
184
294
  ```
185
295
 
186
296
  :param str resource_name: The name of the resource.
187
297
  :param pulumi.ResourceOptions opts: Options for the resource.
188
- :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
189
- :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\\n\\n\\n\\n**Do not** add `0.0.0.0/0` to `blocked_ip_list`
298
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account.
299
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_network_rule_lists: Specifies a list of fully qualified network rules that contain the network identifiers that are allowed access to Snowflake. For more information about this resource, see docs.
300
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account. **Do not** add `0.0.0.0/0` to `blocked_ip_list`, in order to block all IP addresses except a select list, you only need to add IP addresses to `allowed_ip_list`.
301
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_network_rule_lists: Specifies a list of fully qualified network rules that contain the network identifiers that are denied access to Snowflake. For more information about this resource, see docs.
190
302
  :param pulumi.Input[str] comment: Specifies a comment for the network policy.
191
- :param pulumi.Input[str] name: Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
303
+ :param pulumi.Input[str] name: Specifies the identifier for the network policy; must be unique for the account in which the network policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
192
304
  """
193
305
  ...
194
306
  @overload
195
307
  def __init__(__self__,
196
308
  resource_name: str,
197
- args: NetworkPolicyArgs,
309
+ args: Optional[NetworkPolicyArgs] = None,
198
310
  opts: Optional[pulumi.ResourceOptions] = None):
199
311
  """
200
- ## Example Usage
201
-
202
- ```python
203
- import pulumi
204
- import pulumi_snowflake as snowflake
205
-
206
- policy = snowflake.NetworkPolicy("policy",
207
- allowed_ip_lists=["192.168.0.100/24"],
208
- blocked_ip_lists=["192.168.0.101"],
209
- comment="A policy.")
210
- ```
211
-
212
312
  ## Import
213
313
 
214
314
  ```sh
215
- $ pulumi import snowflake:index/networkPolicy:NetworkPolicy example policyname
315
+ $ pulumi import snowflake:index/networkPolicy:NetworkPolicy example '"<network_policy_name>"'
216
316
  ```
217
317
 
218
318
  :param str resource_name: The name of the resource.
@@ -231,7 +331,9 @@ class NetworkPolicy(pulumi.CustomResource):
231
331
  resource_name: str,
232
332
  opts: Optional[pulumi.ResourceOptions] = None,
233
333
  allowed_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
334
+ allowed_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
234
335
  blocked_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
336
+ blocked_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
235
337
  comment: Optional[pulumi.Input[str]] = None,
236
338
  name: Optional[pulumi.Input[str]] = None,
237
339
  __props__=None):
@@ -243,12 +345,15 @@ class NetworkPolicy(pulumi.CustomResource):
243
345
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
244
346
  __props__ = NetworkPolicyArgs.__new__(NetworkPolicyArgs)
245
347
 
246
- if allowed_ip_lists is None and not opts.urn:
247
- raise TypeError("Missing required property 'allowed_ip_lists'")
248
348
  __props__.__dict__["allowed_ip_lists"] = allowed_ip_lists
349
+ __props__.__dict__["allowed_network_rule_lists"] = allowed_network_rule_lists
249
350
  __props__.__dict__["blocked_ip_lists"] = blocked_ip_lists
351
+ __props__.__dict__["blocked_network_rule_lists"] = blocked_network_rule_lists
250
352
  __props__.__dict__["comment"] = comment
251
353
  __props__.__dict__["name"] = name
354
+ __props__.__dict__["describe_outputs"] = None
355
+ __props__.__dict__["fully_qualified_name"] = None
356
+ __props__.__dict__["show_outputs"] = None
252
357
  super(NetworkPolicy, __self__).__init__(
253
358
  'snowflake:index/networkPolicy:NetworkPolicy',
254
359
  resource_name,
@@ -260,9 +365,14 @@ class NetworkPolicy(pulumi.CustomResource):
260
365
  id: pulumi.Input[str],
261
366
  opts: Optional[pulumi.ResourceOptions] = None,
262
367
  allowed_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
368
+ allowed_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
263
369
  blocked_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
370
+ blocked_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
264
371
  comment: Optional[pulumi.Input[str]] = None,
265
- name: Optional[pulumi.Input[str]] = None) -> 'NetworkPolicy':
372
+ describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NetworkPolicyDescribeOutputArgs', 'NetworkPolicyDescribeOutputArgsDict']]]]] = None,
373
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
374
+ name: Optional[pulumi.Input[str]] = None,
375
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NetworkPolicyShowOutputArgs', 'NetworkPolicyShowOutputArgsDict']]]]] = None) -> 'NetworkPolicy':
266
376
  """
267
377
  Get an existing NetworkPolicy resource's state with the given name, id, and optional extra
268
378
  properties used to qualify the lookup.
@@ -270,37 +380,63 @@ class NetworkPolicy(pulumi.CustomResource):
270
380
  :param str resource_name: The unique name of the resulting resource.
271
381
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
272
382
  :param pulumi.ResourceOptions opts: Options for the resource.
273
- :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
274
- :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\\n\\n\\n\\n**Do not** add `0.0.0.0/0` to `blocked_ip_list`
383
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account.
384
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_network_rule_lists: Specifies a list of fully qualified network rules that contain the network identifiers that are allowed access to Snowflake. For more information about this resource, see docs.
385
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_ip_lists: Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account. **Do not** add `0.0.0.0/0` to `blocked_ip_list`, in order to block all IP addresses except a select list, you only need to add IP addresses to `allowed_ip_list`.
386
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_network_rule_lists: Specifies a list of fully qualified network rules that contain the network identifiers that are denied access to Snowflake. For more information about this resource, see docs.
275
387
  :param pulumi.Input[str] comment: Specifies a comment for the network policy.
276
- :param pulumi.Input[str] name: Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
388
+ :param pulumi.Input[Sequence[pulumi.Input[Union['NetworkPolicyDescribeOutputArgs', 'NetworkPolicyDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
389
+ :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).
390
+ :param pulumi.Input[str] name: Specifies the identifier for the network policy; must be unique for the account in which the network policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
391
+ :param pulumi.Input[Sequence[pulumi.Input[Union['NetworkPolicyShowOutputArgs', 'NetworkPolicyShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
277
392
  """
278
393
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
279
394
 
280
395
  __props__ = _NetworkPolicyState.__new__(_NetworkPolicyState)
281
396
 
282
397
  __props__.__dict__["allowed_ip_lists"] = allowed_ip_lists
398
+ __props__.__dict__["allowed_network_rule_lists"] = allowed_network_rule_lists
283
399
  __props__.__dict__["blocked_ip_lists"] = blocked_ip_lists
400
+ __props__.__dict__["blocked_network_rule_lists"] = blocked_network_rule_lists
284
401
  __props__.__dict__["comment"] = comment
402
+ __props__.__dict__["describe_outputs"] = describe_outputs
403
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
285
404
  __props__.__dict__["name"] = name
405
+ __props__.__dict__["show_outputs"] = show_outputs
286
406
  return NetworkPolicy(resource_name, opts=opts, __props__=__props__)
287
407
 
288
408
  @property
289
409
  @pulumi.getter(name="allowedIpLists")
290
- def allowed_ip_lists(self) -> pulumi.Output[Sequence[str]]:
410
+ def allowed_ip_lists(self) -> pulumi.Output[Optional[Sequence[str]]]:
291
411
  """
292
- Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account
412
+ Specifies one or more IPv4 addresses (CIDR notation) that are allowed access to your Snowflake account.
293
413
  """
294
414
  return pulumi.get(self, "allowed_ip_lists")
295
415
 
416
+ @property
417
+ @pulumi.getter(name="allowedNetworkRuleLists")
418
+ def allowed_network_rule_lists(self) -> pulumi.Output[Optional[Sequence[str]]]:
419
+ """
420
+ Specifies a list of fully qualified network rules that contain the network identifiers that are allowed access to Snowflake. For more information about this resource, see docs.
421
+ """
422
+ return pulumi.get(self, "allowed_network_rule_lists")
423
+
296
424
  @property
297
425
  @pulumi.getter(name="blockedIpLists")
298
426
  def blocked_ip_lists(self) -> pulumi.Output[Optional[Sequence[str]]]:
299
427
  """
300
- Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account\\n\\n\\n\\n**Do not** add `0.0.0.0/0` to `blocked_ip_list`
428
+ Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account. **Do not** add `0.0.0.0/0` to `blocked_ip_list`, in order to block all IP addresses except a select list, you only need to add IP addresses to `allowed_ip_list`.
301
429
  """
302
430
  return pulumi.get(self, "blocked_ip_lists")
303
431
 
432
+ @property
433
+ @pulumi.getter(name="blockedNetworkRuleLists")
434
+ def blocked_network_rule_lists(self) -> pulumi.Output[Optional[Sequence[str]]]:
435
+ """
436
+ Specifies a list of fully qualified network rules that contain the network identifiers that are denied access to Snowflake. For more information about this resource, see docs.
437
+ """
438
+ return pulumi.get(self, "blocked_network_rule_lists")
439
+
304
440
  @property
305
441
  @pulumi.getter
306
442
  def comment(self) -> pulumi.Output[Optional[str]]:
@@ -309,11 +445,35 @@ class NetworkPolicy(pulumi.CustomResource):
309
445
  """
310
446
  return pulumi.get(self, "comment")
311
447
 
448
+ @property
449
+ @pulumi.getter(name="describeOutputs")
450
+ def describe_outputs(self) -> pulumi.Output[Sequence['outputs.NetworkPolicyDescribeOutput']]:
451
+ """
452
+ Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
453
+ """
454
+ return pulumi.get(self, "describe_outputs")
455
+
456
+ @property
457
+ @pulumi.getter(name="fullyQualifiedName")
458
+ def fully_qualified_name(self) -> pulumi.Output[str]:
459
+ """
460
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
461
+ """
462
+ return pulumi.get(self, "fully_qualified_name")
463
+
312
464
  @property
313
465
  @pulumi.getter
314
466
  def name(self) -> pulumi.Output[str]:
315
467
  """
316
- Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
468
+ Specifies the identifier for the network policy; must be unique for the account in which the network policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
317
469
  """
318
470
  return pulumi.get(self, "name")
319
471
 
472
+ @property
473
+ @pulumi.getter(name="showOutputs")
474
+ def show_outputs(self) -> pulumi.Output[Sequence['outputs.NetworkPolicyShowOutput']]:
475
+ """
476
+ Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
477
+ """
478
+ return pulumi.get(self, "show_outputs")
479
+
@@ -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__ = ['NetworkPolicyAttachmentArgs', 'NetworkPolicyAttachment']
@@ -132,25 +137,10 @@ class NetworkPolicyAttachment(pulumi.CustomResource):
132
137
  users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
133
138
  __props__=None):
134
139
  """
135
- ## Example Usage
136
-
137
- ```python
138
- import pulumi
139
- import pulumi_snowflake as snowflake
140
-
141
- attach = snowflake.NetworkPolicyAttachment("attach",
142
- network_policy_name="policy",
143
- set_for_account=False,
144
- users=[
145
- "user1",
146
- "user2",
147
- ])
148
- ```
149
-
150
140
  ## Import
151
141
 
152
142
  ```sh
153
- $ pulumi import snowflake:index/networkPolicyAttachment:NetworkPolicyAttachment example attachment_policyname
143
+ $ pulumi import snowflake:index/networkPolicyAttachment:NetworkPolicyAttachment example attachment_policyname
154
144
  ```
155
145
 
156
146
  :param str resource_name: The name of the resource.
@@ -166,25 +156,10 @@ class NetworkPolicyAttachment(pulumi.CustomResource):
166
156
  args: NetworkPolicyAttachmentArgs,
167
157
  opts: Optional[pulumi.ResourceOptions] = None):
168
158
  """
169
- ## Example Usage
170
-
171
- ```python
172
- import pulumi
173
- import pulumi_snowflake as snowflake
174
-
175
- attach = snowflake.NetworkPolicyAttachment("attach",
176
- network_policy_name="policy",
177
- set_for_account=False,
178
- users=[
179
- "user1",
180
- "user2",
181
- ])
182
- ```
183
-
184
159
  ## Import
185
160
 
186
161
  ```sh
187
- $ pulumi import snowflake:index/networkPolicyAttachment:NetworkPolicyAttachment example attachment_policyname
162
+ $ pulumi import snowflake:index/networkPolicyAttachment:NetworkPolicyAttachment example attachment_policyname
188
163
  ```
189
164
 
190
165
  :param str resource_name: The name of the resource.