pulumi-snowflake 0.57.0__py3-none-any.whl → 0.57.0a1721891443__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. pulumi_snowflake/__init__.py +0 -20
  2. pulumi_snowflake/_inputs.py +241 -2479
  3. pulumi_snowflake/_utilities.py +0 -2
  4. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +0 -4
  5. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +0 -4
  6. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +0 -4
  7. pulumi_snowflake/database.py +63 -63
  8. pulumi_snowflake/external_oauth_integration.py +2 -2
  9. pulumi_snowflake/get_roles.py +31 -37
  10. pulumi_snowflake/get_schemas.py +38 -115
  11. pulumi_snowflake/network_policy.py +19 -103
  12. pulumi_snowflake/oauth_integration_for_custom_clients.py +14 -18
  13. pulumi_snowflake/oauth_integration_for_partner_applications.py +14 -18
  14. pulumi_snowflake/outputs.py +2761 -5882
  15. pulumi_snowflake/pulumi-plugin.json +1 -1
  16. pulumi_snowflake/role.py +72 -44
  17. pulumi_snowflake/saml2_integration.py +28 -32
  18. pulumi_snowflake/schema.py +151 -905
  19. pulumi_snowflake/scim_integration.py +21 -25
  20. pulumi_snowflake/secondary_database.py +63 -63
  21. pulumi_snowflake/shared_database.py +63 -63
  22. pulumi_snowflake/table.py +120 -0
  23. pulumi_snowflake/table_constraint.py +2 -2
  24. pulumi_snowflake/unsafe_execute.py +8 -8
  25. {pulumi_snowflake-0.57.0.dist-info → pulumi_snowflake-0.57.0a1721891443.dist-info}/METADATA +1 -1
  26. {pulumi_snowflake-0.57.0.dist-info → pulumi_snowflake-0.57.0a1721891443.dist-info}/RECORD +28 -32
  27. {pulumi_snowflake-0.57.0.dist-info → pulumi_snowflake-0.57.0a1721891443.dist-info}/WHEEL +1 -1
  28. pulumi_snowflake/account_role.py +0 -226
  29. pulumi_snowflake/get_network_policies.py +0 -122
  30. pulumi_snowflake/get_streamlits.py +0 -159
  31. pulumi_snowflake/streamlit.py +0 -650
  32. {pulumi_snowflake-0.57.0.dist-info → pulumi_snowflake-0.57.0a1721891443.dist-info}/top_level.txt +0 -0
@@ -22,16 +22,13 @@ class GetRolesResult:
22
22
  """
23
23
  A collection of values returned by getRoles.
24
24
  """
25
- def __init__(__self__, id=None, in_class=None, like=None, roles=None):
25
+ def __init__(__self__, id=None, pattern=None, roles=None):
26
26
  if id and not isinstance(id, str):
27
27
  raise TypeError("Expected argument 'id' to be a str")
28
28
  pulumi.set(__self__, "id", id)
29
- if in_class and not isinstance(in_class, str):
30
- raise TypeError("Expected argument 'in_class' to be a str")
31
- pulumi.set(__self__, "in_class", in_class)
32
- if like and not isinstance(like, str):
33
- raise TypeError("Expected argument 'like' to be a str")
34
- pulumi.set(__self__, "like", like)
29
+ if pattern and not isinstance(pattern, str):
30
+ raise TypeError("Expected argument 'pattern' to be a str")
31
+ pulumi.set(__self__, "pattern", pattern)
35
32
  if roles and not isinstance(roles, list):
36
33
  raise TypeError("Expected argument 'roles' to be a list")
37
34
  pulumi.set(__self__, "roles", roles)
@@ -44,27 +41,19 @@ class GetRolesResult:
44
41
  """
45
42
  return pulumi.get(self, "id")
46
43
 
47
- @property
48
- @pulumi.getter(name="inClass")
49
- def in_class(self) -> Optional[str]:
50
- """
51
- Filters the SHOW GRANTS output by class name.
52
- """
53
- return pulumi.get(self, "in_class")
54
-
55
44
  @property
56
45
  @pulumi.getter
57
- def like(self) -> Optional[str]:
46
+ def pattern(self) -> Optional[str]:
58
47
  """
59
- Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
48
+ Filters the command output by object name.
60
49
  """
61
- return pulumi.get(self, "like")
50
+ return pulumi.get(self, "pattern")
62
51
 
63
52
  @property
64
53
  @pulumi.getter
65
54
  def roles(self) -> Sequence['outputs.GetRolesRoleResult']:
66
55
  """
67
- Holds the aggregated output of all role details queries.
56
+ List of all the roles which you can view across your entire account, including the system-defined roles and any custom roles that exist.
68
57
  """
69
58
  return pulumi.get(self, "roles")
70
59
 
@@ -76,47 +65,52 @@ class AwaitableGetRolesResult(GetRolesResult):
76
65
  yield self
77
66
  return GetRolesResult(
78
67
  id=self.id,
79
- in_class=self.in_class,
80
- like=self.like,
68
+ pattern=self.pattern,
81
69
  roles=self.roles)
82
70
 
83
71
 
84
- def get_roles(in_class: Optional[str] = None,
85
- like: Optional[str] = None,
72
+ def get_roles(pattern: Optional[str] = None,
86
73
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRolesResult:
87
74
  """
88
- !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
75
+ ## Example Usage
76
+
77
+ ```python
78
+ import pulumi
79
+ import pulumi_snowflake as snowflake
89
80
 
90
- Datasource used to get details of filtered roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `in_class` are all supported). The results of SHOW are encapsulated in one output collection.
81
+ this = snowflake.get_roles()
82
+ ad = snowflake.get_roles(pattern="SYSADMIN")
83
+ ```
91
84
 
92
85
 
93
- :param str in_class: Filters the SHOW GRANTS output by class name.
94
- :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
86
+ :param str pattern: Filters the command output by object name.
95
87
  """
96
88
  __args__ = dict()
97
- __args__['inClass'] = in_class
98
- __args__['like'] = like
89
+ __args__['pattern'] = pattern
99
90
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
100
91
  __ret__ = pulumi.runtime.invoke('snowflake:index/getRoles:getRoles', __args__, opts=opts, typ=GetRolesResult).value
101
92
 
102
93
  return AwaitableGetRolesResult(
103
94
  id=pulumi.get(__ret__, 'id'),
104
- in_class=pulumi.get(__ret__, 'in_class'),
105
- like=pulumi.get(__ret__, 'like'),
95
+ pattern=pulumi.get(__ret__, 'pattern'),
106
96
  roles=pulumi.get(__ret__, 'roles'))
107
97
 
108
98
 
109
99
  @_utilities.lift_output_func(get_roles)
110
- def get_roles_output(in_class: Optional[pulumi.Input[Optional[str]]] = None,
111
- like: Optional[pulumi.Input[Optional[str]]] = None,
100
+ def get_roles_output(pattern: Optional[pulumi.Input[Optional[str]]] = None,
112
101
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRolesResult]:
113
102
  """
114
- !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
103
+ ## Example Usage
104
+
105
+ ```python
106
+ import pulumi
107
+ import pulumi_snowflake as snowflake
115
108
 
116
- Datasource used to get details of filtered roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `in_class` are all supported). The results of SHOW are encapsulated in one output collection.
109
+ this = snowflake.get_roles()
110
+ ad = snowflake.get_roles(pattern="SYSADMIN")
111
+ ```
117
112
 
118
113
 
119
- :param str in_class: Filters the SHOW GRANTS output by class name.
120
- :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
114
+ :param str pattern: Filters the command output by object name.
121
115
  """
122
116
  ...
@@ -9,7 +9,6 @@ import pulumi.runtime
9
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from . import _utilities
11
11
  from . import outputs
12
- from ._inputs import *
13
12
 
14
13
  __all__ = [
15
14
  'GetSchemasResult',
@@ -23,96 +22,41 @@ class GetSchemasResult:
23
22
  """
24
23
  A collection of values returned by getSchemas.
25
24
  """
26
- def __init__(__self__, id=None, in_=None, like=None, limit=None, schemas=None, starts_with=None, with_describe=None, with_parameters=None):
25
+ def __init__(__self__, database=None, id=None, schemas=None):
26
+ if database and not isinstance(database, str):
27
+ raise TypeError("Expected argument 'database' to be a str")
28
+ pulumi.set(__self__, "database", database)
27
29
  if id and not isinstance(id, str):
28
30
  raise TypeError("Expected argument 'id' to be a str")
29
31
  pulumi.set(__self__, "id", id)
30
- if in_ and not isinstance(in_, dict):
31
- raise TypeError("Expected argument 'in_' to be a dict")
32
- pulumi.set(__self__, "in_", in_)
33
- if like and not isinstance(like, str):
34
- raise TypeError("Expected argument 'like' to be a str")
35
- pulumi.set(__self__, "like", like)
36
- if limit and not isinstance(limit, dict):
37
- raise TypeError("Expected argument 'limit' to be a dict")
38
- pulumi.set(__self__, "limit", limit)
39
32
  if schemas and not isinstance(schemas, list):
40
33
  raise TypeError("Expected argument 'schemas' to be a list")
41
34
  pulumi.set(__self__, "schemas", schemas)
42
- if starts_with and not isinstance(starts_with, str):
43
- raise TypeError("Expected argument 'starts_with' to be a str")
44
- pulumi.set(__self__, "starts_with", starts_with)
45
- if with_describe and not isinstance(with_describe, bool):
46
- raise TypeError("Expected argument 'with_describe' to be a bool")
47
- pulumi.set(__self__, "with_describe", with_describe)
48
- if with_parameters and not isinstance(with_parameters, bool):
49
- raise TypeError("Expected argument 'with_parameters' to be a bool")
50
- pulumi.set(__self__, "with_parameters", with_parameters)
51
35
 
52
36
  @property
53
37
  @pulumi.getter
54
- def id(self) -> str:
38
+ def database(self) -> str:
55
39
  """
56
- The provider-assigned unique ID for this managed resource.
40
+ The database from which to return the schemas from.
57
41
  """
58
- return pulumi.get(self, "id")
59
-
60
- @property
61
- @pulumi.getter(name="in")
62
- def in_(self) -> Optional['outputs.GetSchemasInResult']:
63
- """
64
- IN clause to filter the list of streamlits
65
- """
66
- return pulumi.get(self, "in_")
42
+ return pulumi.get(self, "database")
67
43
 
68
44
  @property
69
45
  @pulumi.getter
70
- def like(self) -> Optional[str]:
71
- """
72
- Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
73
- """
74
- return pulumi.get(self, "like")
75
-
76
- @property
77
- @pulumi.getter
78
- def limit(self) -> Optional['outputs.GetSchemasLimitResult']:
46
+ def id(self) -> str:
79
47
  """
80
- Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
48
+ The provider-assigned unique ID for this managed resource.
81
49
  """
82
- return pulumi.get(self, "limit")
50
+ return pulumi.get(self, "id")
83
51
 
84
52
  @property
85
53
  @pulumi.getter
86
54
  def schemas(self) -> Sequence['outputs.GetSchemasSchemaResult']:
87
55
  """
88
- Holds the aggregated output of all SCHEMA details queries.
56
+ The schemas in the database
89
57
  """
90
58
  return pulumi.get(self, "schemas")
91
59
 
92
- @property
93
- @pulumi.getter(name="startsWith")
94
- def starts_with(self) -> Optional[str]:
95
- """
96
- Filters the output with **case-sensitive** characters indicating the beginning of the object name.
97
- """
98
- return pulumi.get(self, "starts_with")
99
-
100
- @property
101
- @pulumi.getter(name="withDescribe")
102
- def with_describe(self) -> Optional[bool]:
103
- """
104
- Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
105
- """
106
- return pulumi.get(self, "with_describe")
107
-
108
- @property
109
- @pulumi.getter(name="withParameters")
110
- def with_parameters(self) -> Optional[bool]:
111
- """
112
- Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
113
- """
114
- return pulumi.get(self, "with_parameters")
115
-
116
60
 
117
61
  class AwaitableGetSchemasResult(GetSchemasResult):
118
62
  # pylint: disable=using-constant-test
@@ -120,72 +64,51 @@ class AwaitableGetSchemasResult(GetSchemasResult):
120
64
  if False:
121
65
  yield self
122
66
  return GetSchemasResult(
67
+ database=self.database,
123
68
  id=self.id,
124
- in_=self.in_,
125
- like=self.like,
126
- limit=self.limit,
127
- schemas=self.schemas,
128
- starts_with=self.starts_with,
129
- with_describe=self.with_describe,
130
- with_parameters=self.with_parameters)
131
-
132
-
133
- def get_schemas(in_: Optional[pulumi.InputType['GetSchemasInArgs']] = None,
134
- like: Optional[str] = None,
135
- limit: Optional[pulumi.InputType['GetSchemasLimitArgs']] = None,
136
- starts_with: Optional[str] = None,
137
- with_describe: Optional[bool] = None,
138
- with_parameters: Optional[bool] = None,
69
+ schemas=self.schemas)
70
+
71
+
72
+ def get_schemas(database: Optional[str] = None,
139
73
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchemasResult:
140
74
  """
141
- Datasource used to get details of filtered schemas. Filtering is aligned with the current possibilities for [SHOW SCHEMAS](https://docs.snowflake.com/en/sql-reference/sql/show-schemas) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
75
+ ## Example Usage
142
76
 
77
+ ```python
78
+ import pulumi
79
+ import pulumi_snowflake as snowflake
143
80
 
144
- :param pulumi.InputType['GetSchemasInArgs'] in_: IN clause to filter the list of streamlits
145
- :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
146
- :param pulumi.InputType['GetSchemasLimitArgs'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
147
- :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
148
- :param bool with_describe: Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
149
- :param bool with_parameters: Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
81
+ current = snowflake.get_schemas(database="MYDB")
82
+ ```
83
+
84
+
85
+ :param str database: The database from which to return the schemas from.
150
86
  """
151
87
  __args__ = dict()
152
- __args__['in'] = in_
153
- __args__['like'] = like
154
- __args__['limit'] = limit
155
- __args__['startsWith'] = starts_with
156
- __args__['withDescribe'] = with_describe
157
- __args__['withParameters'] = with_parameters
88
+ __args__['database'] = database
158
89
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
159
90
  __ret__ = pulumi.runtime.invoke('snowflake:index/getSchemas:getSchemas', __args__, opts=opts, typ=GetSchemasResult).value
160
91
 
161
92
  return AwaitableGetSchemasResult(
93
+ database=pulumi.get(__ret__, 'database'),
162
94
  id=pulumi.get(__ret__, 'id'),
163
- in_=pulumi.get(__ret__, 'in_'),
164
- like=pulumi.get(__ret__, 'like'),
165
- limit=pulumi.get(__ret__, 'limit'),
166
- schemas=pulumi.get(__ret__, 'schemas'),
167
- starts_with=pulumi.get(__ret__, 'starts_with'),
168
- with_describe=pulumi.get(__ret__, 'with_describe'),
169
- with_parameters=pulumi.get(__ret__, 'with_parameters'))
95
+ schemas=pulumi.get(__ret__, 'schemas'))
170
96
 
171
97
 
172
98
  @_utilities.lift_output_func(get_schemas)
173
- def get_schemas_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetSchemasInArgs']]]] = None,
174
- like: Optional[pulumi.Input[Optional[str]]] = None,
175
- limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetSchemasLimitArgs']]]] = None,
176
- starts_with: Optional[pulumi.Input[Optional[str]]] = None,
177
- with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
178
- with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
99
+ def get_schemas_output(database: Optional[pulumi.Input[str]] = None,
179
100
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSchemasResult]:
180
101
  """
181
- Datasource used to get details of filtered schemas. Filtering is aligned with the current possibilities for [SHOW SCHEMAS](https://docs.snowflake.com/en/sql-reference/sql/show-schemas) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
102
+ ## Example Usage
103
+
104
+ ```python
105
+ import pulumi
106
+ import pulumi_snowflake as snowflake
107
+
108
+ current = snowflake.get_schemas(database="MYDB")
109
+ ```
182
110
 
183
111
 
184
- :param pulumi.InputType['GetSchemasInArgs'] in_: IN clause to filter the list of streamlits
185
- :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
186
- :param pulumi.InputType['GetSchemasLimitArgs'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
187
- :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
188
- :param bool with_describe: Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
189
- :param bool with_parameters: Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
112
+ :param str database: The database from which to return the schemas from.
190
113
  """
191
114
  ...
@@ -8,8 +8,6 @@ import pulumi
8
8
  import pulumi.runtime
9
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from . import _utilities
11
- from . import outputs
12
- from ._inputs import *
13
11
 
14
12
  __all__ = ['NetworkPolicyArgs', 'NetworkPolicy']
15
13
 
@@ -26,7 +24,7 @@ class NetworkPolicyArgs:
26
24
  The set of arguments for constructing a NetworkPolicy resource.
27
25
  :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.
28
26
  :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.
29
- :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`.
27
+ :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`.
30
28
  :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.
31
29
  :param pulumi.Input[str] comment: Specifies a comment for the network policy.
32
30
  :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.
@@ -72,7 +70,7 @@ class NetworkPolicyArgs:
72
70
  @pulumi.getter(name="blockedIpLists")
73
71
  def blocked_ip_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
74
72
  """
75
- 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`.
73
+ 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`.
76
74
  """
77
75
  return pulumi.get(self, "blocked_ip_lists")
78
76
 
@@ -125,19 +123,15 @@ class _NetworkPolicyState:
125
123
  blocked_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
126
124
  blocked_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
127
125
  comment: Optional[pulumi.Input[str]] = None,
128
- describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]]] = None,
129
- name: Optional[pulumi.Input[str]] = None,
130
- show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyShowOutputArgs']]]] = None):
126
+ name: Optional[pulumi.Input[str]] = None):
131
127
  """
132
128
  Input properties used for looking up and filtering NetworkPolicy resources.
133
129
  :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.
134
130
  :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.
135
- :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`.
131
+ :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`.
136
132
  :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.
137
133
  :param pulumi.Input[str] comment: Specifies a comment for the network policy.
138
- :param pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
139
134
  :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.
140
- :param pulumi.Input[Sequence[pulumi.Input['NetworkPolicyShowOutputArgs']]] show_outputs: Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
141
135
  """
142
136
  if allowed_ip_lists is not None:
143
137
  pulumi.set(__self__, "allowed_ip_lists", allowed_ip_lists)
@@ -149,12 +143,8 @@ class _NetworkPolicyState:
149
143
  pulumi.set(__self__, "blocked_network_rule_lists", blocked_network_rule_lists)
150
144
  if comment is not None:
151
145
  pulumi.set(__self__, "comment", comment)
152
- if describe_outputs is not None:
153
- pulumi.set(__self__, "describe_outputs", describe_outputs)
154
146
  if name is not None:
155
147
  pulumi.set(__self__, "name", name)
156
- if show_outputs is not None:
157
- pulumi.set(__self__, "show_outputs", show_outputs)
158
148
 
159
149
  @property
160
150
  @pulumi.getter(name="allowedIpLists")
@@ -184,7 +174,7 @@ class _NetworkPolicyState:
184
174
  @pulumi.getter(name="blockedIpLists")
185
175
  def blocked_ip_lists(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
186
176
  """
187
- 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`.
177
+ 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`.
188
178
  """
189
179
  return pulumi.get(self, "blocked_ip_lists")
190
180
 
@@ -216,18 +206,6 @@ class _NetworkPolicyState:
216
206
  def comment(self, value: Optional[pulumi.Input[str]]):
217
207
  pulumi.set(self, "comment", value)
218
208
 
219
- @property
220
- @pulumi.getter(name="describeOutputs")
221
- def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]]]:
222
- """
223
- Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
224
- """
225
- return pulumi.get(self, "describe_outputs")
226
-
227
- @describe_outputs.setter
228
- def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]]]):
229
- pulumi.set(self, "describe_outputs", value)
230
-
231
209
  @property
232
210
  @pulumi.getter
233
211
  def name(self) -> Optional[pulumi.Input[str]]:
@@ -240,18 +218,6 @@ class _NetworkPolicyState:
240
218
  def name(self, value: Optional[pulumi.Input[str]]):
241
219
  pulumi.set(self, "name", value)
242
220
 
243
- @property
244
- @pulumi.getter(name="showOutputs")
245
- def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyShowOutputArgs']]]]:
246
- """
247
- Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
248
- """
249
- return pulumi.get(self, "show_outputs")
250
-
251
- @show_outputs.setter
252
- def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyShowOutputArgs']]]]):
253
- pulumi.set(self, "show_outputs", value)
254
-
255
221
 
256
222
  class NetworkPolicy(pulumi.CustomResource):
257
223
  @overload
@@ -266,32 +232,19 @@ class NetworkPolicy(pulumi.CustomResource):
266
232
  name: Optional[pulumi.Input[str]] = None,
267
233
  __props__=None):
268
234
  """
269
- !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
270
-
271
- Resource used to control network traffic. For more information, check an [official guide](https://docs.snowflake.com/en/user-guide/network-policies) on controlling network traffic with network policies.
235
+ ## Example Usage
272
236
 
273
- ## Minimal
237
+ ## Import
274
238
 
275
- resource "NetworkPolicy" "basic" {
276
- name = "network_policy_name"
277
- }
278
-
279
- ## Complete (with every optional set)
280
-
281
- resource "NetworkPolicy" "basic" {
282
- name = "network_policy_name"
283
- allowed_network_rule_list = ["<fully qualified network rule id>"]
284
- blocked_network_rule_list = ["<fully qualified network rule id>"]
285
- allowed_ip_list = ["192.168.1.0/24"]
286
- blocked_ip_list = ["192.168.1.99"]
287
- comment = "my network policy"
288
- }
239
+ ```sh
240
+ $ pulumi import snowflake:index/networkPolicy:NetworkPolicy example policyname
241
+ ```
289
242
 
290
243
  :param str resource_name: The name of the resource.
291
244
  :param pulumi.ResourceOptions opts: Options for the resource.
292
245
  :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.
293
246
  :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.
294
- :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`.
247
+ :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`.
295
248
  :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.
296
249
  :param pulumi.Input[str] comment: Specifies a comment for the network policy.
297
250
  :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,26 +256,13 @@ class NetworkPolicy(pulumi.CustomResource):
303
256
  args: Optional[NetworkPolicyArgs] = None,
304
257
  opts: Optional[pulumi.ResourceOptions] = None):
305
258
  """
306
- !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
307
-
308
- Resource used to control network traffic. For more information, check an [official guide](https://docs.snowflake.com/en/user-guide/network-policies) on controlling network traffic with network policies.
309
-
310
- ## Minimal
259
+ ## Example Usage
311
260
 
312
- resource "NetworkPolicy" "basic" {
313
- name = "network_policy_name"
314
- }
261
+ ## Import
315
262
 
316
- ## Complete (with every optional set)
317
-
318
- resource "NetworkPolicy" "basic" {
319
- name = "network_policy_name"
320
- allowed_network_rule_list = ["<fully qualified network rule id>"]
321
- blocked_network_rule_list = ["<fully qualified network rule id>"]
322
- allowed_ip_list = ["192.168.1.0/24"]
323
- blocked_ip_list = ["192.168.1.99"]
324
- comment = "my network policy"
325
- }
263
+ ```sh
264
+ $ pulumi import snowflake:index/networkPolicy:NetworkPolicy example policyname
265
+ ```
326
266
 
327
267
  :param str resource_name: The name of the resource.
328
268
  :param NetworkPolicyArgs args: The arguments to use to populate this resource's properties.
@@ -360,8 +300,6 @@ class NetworkPolicy(pulumi.CustomResource):
360
300
  __props__.__dict__["blocked_network_rule_lists"] = blocked_network_rule_lists
361
301
  __props__.__dict__["comment"] = comment
362
302
  __props__.__dict__["name"] = name
363
- __props__.__dict__["describe_outputs"] = None
364
- __props__.__dict__["show_outputs"] = None
365
303
  super(NetworkPolicy, __self__).__init__(
366
304
  'snowflake:index/networkPolicy:NetworkPolicy',
367
305
  resource_name,
@@ -377,9 +315,7 @@ class NetworkPolicy(pulumi.CustomResource):
377
315
  blocked_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
378
316
  blocked_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
379
317
  comment: Optional[pulumi.Input[str]] = None,
380
- describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NetworkPolicyDescribeOutputArgs']]]]] = None,
381
- name: Optional[pulumi.Input[str]] = None,
382
- show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NetworkPolicyShowOutputArgs']]]]] = None) -> 'NetworkPolicy':
318
+ name: Optional[pulumi.Input[str]] = None) -> 'NetworkPolicy':
383
319
  """
384
320
  Get an existing NetworkPolicy resource's state with the given name, id, and optional extra
385
321
  properties used to qualify the lookup.
@@ -389,12 +325,10 @@ class NetworkPolicy(pulumi.CustomResource):
389
325
  :param pulumi.ResourceOptions opts: Options for the resource.
390
326
  :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.
391
327
  :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.
392
- :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`.
328
+ :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`.
393
329
  :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.
394
330
  :param pulumi.Input[str] comment: Specifies a comment for the network policy.
395
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NetworkPolicyDescribeOutputArgs']]]] describe_outputs: Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
396
331
  :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.
397
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NetworkPolicyShowOutputArgs']]]] show_outputs: Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
398
332
  """
399
333
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
400
334
 
@@ -405,9 +339,7 @@ class NetworkPolicy(pulumi.CustomResource):
405
339
  __props__.__dict__["blocked_ip_lists"] = blocked_ip_lists
406
340
  __props__.__dict__["blocked_network_rule_lists"] = blocked_network_rule_lists
407
341
  __props__.__dict__["comment"] = comment
408
- __props__.__dict__["describe_outputs"] = describe_outputs
409
342
  __props__.__dict__["name"] = name
410
- __props__.__dict__["show_outputs"] = show_outputs
411
343
  return NetworkPolicy(resource_name, opts=opts, __props__=__props__)
412
344
 
413
345
  @property
@@ -430,7 +362,7 @@ class NetworkPolicy(pulumi.CustomResource):
430
362
  @pulumi.getter(name="blockedIpLists")
431
363
  def blocked_ip_lists(self) -> pulumi.Output[Optional[Sequence[str]]]:
432
364
  """
433
- 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`.
365
+ 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`.
434
366
  """
435
367
  return pulumi.get(self, "blocked_ip_lists")
436
368
 
@@ -450,14 +382,6 @@ class NetworkPolicy(pulumi.CustomResource):
450
382
  """
451
383
  return pulumi.get(self, "comment")
452
384
 
453
- @property
454
- @pulumi.getter(name="describeOutputs")
455
- def describe_outputs(self) -> pulumi.Output[Sequence['outputs.NetworkPolicyDescribeOutput']]:
456
- """
457
- Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
458
- """
459
- return pulumi.get(self, "describe_outputs")
460
-
461
385
  @property
462
386
  @pulumi.getter
463
387
  def name(self) -> pulumi.Output[str]:
@@ -466,11 +390,3 @@ class NetworkPolicy(pulumi.CustomResource):
466
390
  """
467
391
  return pulumi.get(self, "name")
468
392
 
469
- @property
470
- @pulumi.getter(name="showOutputs")
471
- def show_outputs(self) -> pulumi.Output[Sequence['outputs.NetworkPolicyShowOutput']]:
472
- """
473
- Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
474
- """
475
- return pulumi.get(self, "show_outputs")
476
-