pulumi-snowflake 0.50.3a1710160126__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.
- pulumi_snowflake/__init__.py +224 -172
- pulumi_snowflake/_inputs.py +52857 -1665
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -218
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -48
- pulumi_snowflake/account_password_policy_attachment.py +7 -32
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -47
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
- pulumi_snowflake/api_integration.py +33 -52
- pulumi_snowflake/authentication_policy.py +622 -0
- pulumi_snowflake/config/__init__.pyi +76 -99
- pulumi_snowflake/config/outputs.py +5 -0
- pulumi_snowflake/config/vars.py +93 -124
- pulumi_snowflake/cortex_search_service.py +596 -0
- pulumi_snowflake/database.py +819 -213
- pulumi_snowflake/database_role.py +81 -44
- pulumi_snowflake/dynamic_table.py +42 -49
- pulumi_snowflake/email_notification_integration.py +33 -28
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
- pulumi_snowflake/external_function.py +54 -75
- pulumi_snowflake/external_oauth_integration.py +593 -542
- pulumi_snowflake/external_table.py +67 -90
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +57 -98
- pulumi_snowflake/file_format.py +33 -28
- pulumi_snowflake/function_java.py +1211 -0
- pulumi_snowflake/function_javascript.py +882 -0
- pulumi_snowflake/function_python.py +1212 -0
- pulumi_snowflake/function_scala.py +1212 -0
- pulumi_snowflake/function_sql.py +835 -0
- pulumi_snowflake/get_account_roles.py +129 -0
- pulumi_snowflake/get_accounts.py +53 -22
- pulumi_snowflake/get_alerts.py +22 -9
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -13
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -9
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -47
- pulumi_snowflake/get_databases.py +91 -73
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -9
- pulumi_snowflake/get_external_tables.py +28 -9
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -9
- pulumi_snowflake/get_functions.py +28 -9
- pulumi_snowflake/get_grants.py +207 -84
- pulumi_snowflake/get_masking_policies.py +91 -51
- pulumi_snowflake/get_materialized_views.py +28 -9
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -15
- pulumi_snowflake/get_pipes.py +28 -9
- pulumi_snowflake/get_procedures.py +28 -9
- pulumi_snowflake/get_resource_monitors.py +37 -24
- pulumi_snowflake/get_row_access_policies.py +91 -51
- pulumi_snowflake/get_schemas.py +145 -41
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -9
- pulumi_snowflake/get_shares.py +18 -9
- pulumi_snowflake/get_stages.py +28 -9
- pulumi_snowflake/get_storage_integrations.py +16 -9
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -54
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +120 -5
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -9
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -54
- pulumi_snowflake/get_users.py +116 -44
- pulumi_snowflake/get_views.py +114 -54
- pulumi_snowflake/get_warehouses.py +79 -26
- pulumi_snowflake/grant_account_role.py +28 -75
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -94
- pulumi_snowflake/grant_ownership.py +382 -0
- pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
- pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +40 -11
- pulumi_snowflake/masking_policy.py +213 -310
- pulumi_snowflake/materialized_view.py +62 -71
- pulumi_snowflake/network_policy.py +217 -61
- pulumi_snowflake/network_policy_attachment.py +5 -34
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +49 -84
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
- pulumi_snowflake/object_parameter.py +10 -101
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -4
- pulumi_snowflake/primary_connection.py +330 -0
- pulumi_snowflake/procedure_java.py +1273 -0
- pulumi_snowflake/procedure_javascript.py +895 -0
- pulumi_snowflake/procedure_python.py +1226 -0
- pulumi_snowflake/procedure_scala.py +1273 -0
- pulumi_snowflake/procedure_sql.py +895 -0
- pulumi_snowflake/provider.py +378 -613
- pulumi_snowflake/pulumi-plugin.json +2 -1
- pulumi_snowflake/resource_monitor.py +118 -327
- pulumi_snowflake/row_access_policy.py +200 -149
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
- pulumi_snowflake/schema.py +949 -178
- pulumi_snowflake/scim_integration.py +286 -109
- pulumi_snowflake/secondary_connection.py +339 -0
- pulumi_snowflake/secondary_database.py +1080 -0
- pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
- pulumi_snowflake/secret_with_basic_authentication.py +500 -0
- pulumi_snowflake/secret_with_client_credentials.py +511 -0
- pulumi_snowflake/secret_with_generic_string.py +452 -0
- pulumi_snowflake/sequence.py +9 -34
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +33 -28
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -84
- pulumi_snowflake/storage_integration.py +46 -4
- pulumi_snowflake/stream_on_directory_table.py +517 -0
- pulumi_snowflake/stream_on_external_table.py +632 -0
- pulumi_snowflake/stream_on_table.py +666 -0
- pulumi_snowflake/stream_on_view.py +666 -0
- pulumi_snowflake/streamlit.py +671 -0
- pulumi_snowflake/table.py +86 -97
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -172
- pulumi_snowflake/tag.py +142 -74
- pulumi_snowflake/tag_association.py +40 -215
- pulumi_snowflake/task.py +3048 -418
- pulumi_snowflake/user.py +3351 -384
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +5 -4
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -215
- pulumi_snowflake/warehouse.py +184 -168
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
- pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -343
- pulumi_snowflake/database_grant.py +0 -495
- pulumi_snowflake/external_table_grant.py +0 -690
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -635
- pulumi_snowflake/function.py +0 -872
- pulumi_snowflake/function_grant.py +0 -745
- pulumi_snowflake/get_role.py +0 -121
- pulumi_snowflake/get_roles.py +0 -120
- pulumi_snowflake/grant_privileges_to_role.py +0 -825
- pulumi_snowflake/integration_grant.py +0 -440
- pulumi_snowflake/masking_policy_grant.py +0 -542
- pulumi_snowflake/materialized_view_grant.py +0 -689
- pulumi_snowflake/pipe_grant.py +0 -587
- pulumi_snowflake/procedure.py +0 -887
- pulumi_snowflake/procedure_grant.py +0 -745
- pulumi_snowflake/resource_monitor_grant.py +0 -387
- pulumi_snowflake/role.py +0 -273
- pulumi_snowflake/role_grants.py +0 -352
- pulumi_snowflake/role_ownership_grant.py +0 -338
- pulumi_snowflake/row_access_policy_grant.py +0 -540
- pulumi_snowflake/schema_grant.py +0 -647
- pulumi_snowflake/sequence_grant.py +0 -635
- pulumi_snowflake/session_parameter.py +0 -332
- pulumi_snowflake/stage_grant.py +0 -635
- pulumi_snowflake/stream.py +0 -614
- pulumi_snowflake/stream_grant.py +0 -635
- pulumi_snowflake/table_grant.py +0 -677
- pulumi_snowflake/tag_grant.py +0 -532
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -635
- pulumi_snowflake/user_grant.py +0 -394
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -705
- pulumi_snowflake/warehouse_grant.py +0 -440
- pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.3a1710160126.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]]]
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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]]]
|
|
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[
|
|
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
|
|
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,63 +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
|
-
<!--Start PulumiCodeChooser -->
|
|
171
|
-
```python
|
|
172
|
-
import pulumi
|
|
173
|
-
import pulumi_snowflake as snowflake
|
|
174
|
-
|
|
175
|
-
policy = snowflake.NetworkPolicy("policy",
|
|
176
|
-
allowed_ip_lists=["192.168.0.100/24"],
|
|
177
|
-
blocked_ip_lists=["192.168.0.101"],
|
|
178
|
-
comment="A policy.")
|
|
179
|
-
```
|
|
180
|
-
<!--End PulumiCodeChooser -->
|
|
181
|
-
|
|
182
290
|
## Import
|
|
183
291
|
|
|
184
292
|
```sh
|
|
185
|
-
$ pulumi import snowflake:index/networkPolicy:NetworkPolicy example
|
|
293
|
+
$ pulumi import snowflake:index/networkPolicy:NetworkPolicy example '"<network_policy_name>"'
|
|
186
294
|
```
|
|
187
295
|
|
|
188
296
|
:param str resource_name: The name of the resource.
|
|
189
297
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
190
|
-
: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
|
|
191
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]]
|
|
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.
|
|
192
302
|
:param pulumi.Input[str] comment: Specifies a comment for the network policy.
|
|
193
|
-
: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: `|`, `.`, `"`.
|
|
194
304
|
"""
|
|
195
305
|
...
|
|
196
306
|
@overload
|
|
197
307
|
def __init__(__self__,
|
|
198
308
|
resource_name: str,
|
|
199
|
-
args: NetworkPolicyArgs,
|
|
309
|
+
args: Optional[NetworkPolicyArgs] = None,
|
|
200
310
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
201
311
|
"""
|
|
202
|
-
## Example Usage
|
|
203
|
-
|
|
204
|
-
<!--Start PulumiCodeChooser -->
|
|
205
|
-
```python
|
|
206
|
-
import pulumi
|
|
207
|
-
import pulumi_snowflake as snowflake
|
|
208
|
-
|
|
209
|
-
policy = snowflake.NetworkPolicy("policy",
|
|
210
|
-
allowed_ip_lists=["192.168.0.100/24"],
|
|
211
|
-
blocked_ip_lists=["192.168.0.101"],
|
|
212
|
-
comment="A policy.")
|
|
213
|
-
```
|
|
214
|
-
<!--End PulumiCodeChooser -->
|
|
215
|
-
|
|
216
312
|
## Import
|
|
217
313
|
|
|
218
314
|
```sh
|
|
219
|
-
$ pulumi import snowflake:index/networkPolicy:NetworkPolicy example
|
|
315
|
+
$ pulumi import snowflake:index/networkPolicy:NetworkPolicy example '"<network_policy_name>"'
|
|
220
316
|
```
|
|
221
317
|
|
|
222
318
|
:param str resource_name: The name of the resource.
|
|
@@ -235,7 +331,9 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
235
331
|
resource_name: str,
|
|
236
332
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
237
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,
|
|
238
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,
|
|
239
337
|
comment: Optional[pulumi.Input[str]] = None,
|
|
240
338
|
name: Optional[pulumi.Input[str]] = None,
|
|
241
339
|
__props__=None):
|
|
@@ -247,12 +345,15 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
247
345
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
248
346
|
__props__ = NetworkPolicyArgs.__new__(NetworkPolicyArgs)
|
|
249
347
|
|
|
250
|
-
if allowed_ip_lists is None and not opts.urn:
|
|
251
|
-
raise TypeError("Missing required property 'allowed_ip_lists'")
|
|
252
348
|
__props__.__dict__["allowed_ip_lists"] = allowed_ip_lists
|
|
349
|
+
__props__.__dict__["allowed_network_rule_lists"] = allowed_network_rule_lists
|
|
253
350
|
__props__.__dict__["blocked_ip_lists"] = blocked_ip_lists
|
|
351
|
+
__props__.__dict__["blocked_network_rule_lists"] = blocked_network_rule_lists
|
|
254
352
|
__props__.__dict__["comment"] = comment
|
|
255
353
|
__props__.__dict__["name"] = name
|
|
354
|
+
__props__.__dict__["describe_outputs"] = None
|
|
355
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
356
|
+
__props__.__dict__["show_outputs"] = None
|
|
256
357
|
super(NetworkPolicy, __self__).__init__(
|
|
257
358
|
'snowflake:index/networkPolicy:NetworkPolicy',
|
|
258
359
|
resource_name,
|
|
@@ -264,9 +365,14 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
264
365
|
id: pulumi.Input[str],
|
|
265
366
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
266
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,
|
|
267
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,
|
|
268
371
|
comment: Optional[pulumi.Input[str]] = None,
|
|
269
|
-
|
|
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':
|
|
270
376
|
"""
|
|
271
377
|
Get an existing NetworkPolicy resource's state with the given name, id, and optional extra
|
|
272
378
|
properties used to qualify the lookup.
|
|
@@ -274,37 +380,63 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
274
380
|
:param str resource_name: The unique name of the resulting resource.
|
|
275
381
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
276
382
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
277
|
-
: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
|
|
278
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]]
|
|
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.
|
|
279
387
|
:param pulumi.Input[str] comment: Specifies a comment for the network policy.
|
|
280
|
-
:param pulumi.Input[
|
|
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.
|
|
281
392
|
"""
|
|
282
393
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
283
394
|
|
|
284
395
|
__props__ = _NetworkPolicyState.__new__(_NetworkPolicyState)
|
|
285
396
|
|
|
286
397
|
__props__.__dict__["allowed_ip_lists"] = allowed_ip_lists
|
|
398
|
+
__props__.__dict__["allowed_network_rule_lists"] = allowed_network_rule_lists
|
|
287
399
|
__props__.__dict__["blocked_ip_lists"] = blocked_ip_lists
|
|
400
|
+
__props__.__dict__["blocked_network_rule_lists"] = blocked_network_rule_lists
|
|
288
401
|
__props__.__dict__["comment"] = comment
|
|
402
|
+
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
403
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
289
404
|
__props__.__dict__["name"] = name
|
|
405
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
290
406
|
return NetworkPolicy(resource_name, opts=opts, __props__=__props__)
|
|
291
407
|
|
|
292
408
|
@property
|
|
293
409
|
@pulumi.getter(name="allowedIpLists")
|
|
294
|
-
def allowed_ip_lists(self) -> pulumi.Output[Sequence[str]]:
|
|
410
|
+
def allowed_ip_lists(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
295
411
|
"""
|
|
296
|
-
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.
|
|
297
413
|
"""
|
|
298
414
|
return pulumi.get(self, "allowed_ip_lists")
|
|
299
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
|
+
|
|
300
424
|
@property
|
|
301
425
|
@pulumi.getter(name="blockedIpLists")
|
|
302
426
|
def blocked_ip_lists(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
303
427
|
"""
|
|
304
|
-
Specifies one or more IPv4 addresses (CIDR notation) that are denied access to your Snowflake account
|
|
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`.
|
|
305
429
|
"""
|
|
306
430
|
return pulumi.get(self, "blocked_ip_lists")
|
|
307
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
|
+
|
|
308
440
|
@property
|
|
309
441
|
@pulumi.getter
|
|
310
442
|
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -313,11 +445,35 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
313
445
|
"""
|
|
314
446
|
return pulumi.get(self, "comment")
|
|
315
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
|
+
|
|
316
464
|
@property
|
|
317
465
|
@pulumi.getter
|
|
318
466
|
def name(self) -> pulumi.Output[str]:
|
|
319
467
|
"""
|
|
320
|
-
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: `|`, `.`, `"`.
|
|
321
469
|
"""
|
|
322
470
|
return pulumi.get(self, "name")
|
|
323
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,23 +137,6 @@ 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
|
-
<!--Start PulumiCodeChooser -->
|
|
138
|
-
```python
|
|
139
|
-
import pulumi
|
|
140
|
-
import pulumi_snowflake as snowflake
|
|
141
|
-
|
|
142
|
-
attach = snowflake.NetworkPolicyAttachment("attach",
|
|
143
|
-
network_policy_name="policy",
|
|
144
|
-
set_for_account=False,
|
|
145
|
-
users=[
|
|
146
|
-
"user1",
|
|
147
|
-
"user2",
|
|
148
|
-
])
|
|
149
|
-
```
|
|
150
|
-
<!--End PulumiCodeChooser -->
|
|
151
|
-
|
|
152
140
|
## Import
|
|
153
141
|
|
|
154
142
|
```sh
|
|
@@ -168,23 +156,6 @@ class NetworkPolicyAttachment(pulumi.CustomResource):
|
|
|
168
156
|
args: NetworkPolicyAttachmentArgs,
|
|
169
157
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
170
158
|
"""
|
|
171
|
-
## Example Usage
|
|
172
|
-
|
|
173
|
-
<!--Start PulumiCodeChooser -->
|
|
174
|
-
```python
|
|
175
|
-
import pulumi
|
|
176
|
-
import pulumi_snowflake as snowflake
|
|
177
|
-
|
|
178
|
-
attach = snowflake.NetworkPolicyAttachment("attach",
|
|
179
|
-
network_policy_name="policy",
|
|
180
|
-
set_for_account=False,
|
|
181
|
-
users=[
|
|
182
|
-
"user1",
|
|
183
|
-
"user2",
|
|
184
|
-
])
|
|
185
|
-
```
|
|
186
|
-
<!--End PulumiCodeChooser -->
|
|
187
|
-
|
|
188
159
|
## Import
|
|
189
160
|
|
|
190
161
|
```sh
|