pulumi-snowflake 0.58.0a1726035035__py3-none-any.whl → 0.59.0__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/_inputs.py +8587 -2022
- pulumi_snowflake/account.py +28 -50
- pulumi_snowflake/account_parameter.py +0 -28
- pulumi_snowflake/account_password_policy_attachment.py +2 -30
- pulumi_snowflake/account_role.py +41 -36
- pulumi_snowflake/alert.py +28 -40
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +35 -15
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +35 -15
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +35 -15
- pulumi_snowflake/api_integration.py +28 -54
- pulumi_snowflake/cortex_search_service.py +28 -76
- pulumi_snowflake/database.py +82 -15
- pulumi_snowflake/database_old.py +0 -72
- pulumi_snowflake/database_role.py +76 -42
- pulumi_snowflake/dynamic_table.py +28 -38
- pulumi_snowflake/email_notification_integration.py +28 -26
- pulumi_snowflake/external_function.py +28 -52
- pulumi_snowflake/external_oauth_integration.py +35 -15
- pulumi_snowflake/external_table.py +28 -48
- pulumi_snowflake/failover_group.py +28 -72
- pulumi_snowflake/file_format.py +28 -26
- pulumi_snowflake/function.py +28 -4
- pulumi_snowflake/get_database_roles.py +63 -36
- pulumi_snowflake/get_masking_policies.py +73 -48
- pulumi_snowflake/get_resource_monitors.py +28 -16
- pulumi_snowflake/get_row_access_policies.py +73 -48
- pulumi_snowflake/get_users.py +96 -33
- pulumi_snowflake/get_views.py +94 -51
- pulumi_snowflake/grant_account_role.py +0 -4
- pulumi_snowflake/grant_application_role.py +0 -4
- pulumi_snowflake/grant_database_role.py +0 -4
- pulumi_snowflake/grant_privileges_to_account_role.py +4 -4
- pulumi_snowflake/grant_privileges_to_database_role.py +6 -2
- pulumi_snowflake/grant_privileges_to_share.py +49 -2
- pulumi_snowflake/managed_account.py +28 -4
- pulumi_snowflake/masking_policy.py +208 -306
- pulumi_snowflake/materialized_view.py +28 -34
- pulumi_snowflake/network_policy.py +35 -15
- pulumi_snowflake/network_policy_attachment.py +0 -30
- pulumi_snowflake/network_rule.py +28 -66
- pulumi_snowflake/notification_integration.py +28 -34
- pulumi_snowflake/oauth_integration.py +0 -34
- pulumi_snowflake/oauth_integration_for_custom_clients.py +35 -101
- pulumi_snowflake/oauth_integration_for_partner_applications.py +35 -15
- pulumi_snowflake/object_parameter.py +0 -98
- pulumi_snowflake/outputs.py +13035 -4202
- pulumi_snowflake/password_policy.py +28 -28
- pulumi_snowflake/pipe.py +28 -4
- pulumi_snowflake/procedure.py +28 -4
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +111 -307
- pulumi_snowflake/role.py +41 -36
- pulumi_snowflake/row_access_policy.py +195 -147
- pulumi_snowflake/saml2_integration.py +35 -15
- pulumi_snowflake/saml_integration.py +0 -34
- pulumi_snowflake/schema.py +39 -19
- pulumi_snowflake/scim_integration.py +35 -15
- pulumi_snowflake/secondary_database.py +35 -19
- pulumi_snowflake/sequence.py +4 -36
- pulumi_snowflake/session_parameter.py +0 -32
- pulumi_snowflake/share.py +28 -28
- pulumi_snowflake/shared_database.py +35 -15
- pulumi_snowflake/stage.py +28 -28
- pulumi_snowflake/storage_integration.py +28 -4
- pulumi_snowflake/stream.py +28 -4
- pulumi_snowflake/streamlit.py +36 -16
- pulumi_snowflake/table.py +28 -32
- pulumi_snowflake/table_column_masking_policy_application.py +2 -14
- pulumi_snowflake/table_constraint.py +0 -152
- pulumi_snowflake/tag.py +28 -40
- pulumi_snowflake/tag_association.py +0 -120
- pulumi_snowflake/tag_masking_policy_association.py +0 -4
- pulumi_snowflake/task.py +28 -92
- pulumi_snowflake/unsafe_execute.py +2 -20
- pulumi_snowflake/user.py +3341 -368
- pulumi_snowflake/user_password_policy_attachment.py +0 -46
- pulumi_snowflake/view.py +465 -185
- pulumi_snowflake/warehouse.py +39 -43
- {pulumi_snowflake-0.58.0a1726035035.dist-info → pulumi_snowflake-0.59.0.dist-info}/METADATA +1 -1
- pulumi_snowflake-0.59.0.dist-info/RECORD +129 -0
- {pulumi_snowflake-0.58.0a1726035035.dist-info → pulumi_snowflake-0.59.0.dist-info}/WHEEL +1 -1
- pulumi_snowflake-0.58.0a1726035035.dist-info/RECORD +0 -129
- {pulumi_snowflake-0.58.0a1726035035.dist-info → pulumi_snowflake-0.59.0.dist-info}/top_level.txt +0 -0
|
@@ -170,6 +170,7 @@ class _MaterializedViewState:
|
|
|
170
170
|
def __init__(__self__, *,
|
|
171
171
|
comment: Optional[pulumi.Input[str]] = None,
|
|
172
172
|
database: Optional[pulumi.Input[str]] = None,
|
|
173
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
173
174
|
is_secure: Optional[pulumi.Input[bool]] = None,
|
|
174
175
|
name: Optional[pulumi.Input[str]] = None,
|
|
175
176
|
or_replace: Optional[pulumi.Input[bool]] = None,
|
|
@@ -181,6 +182,7 @@ class _MaterializedViewState:
|
|
|
181
182
|
Input properties used for looking up and filtering MaterializedView resources.
|
|
182
183
|
:param pulumi.Input[str] comment: Specifies a comment for the view.
|
|
183
184
|
:param pulumi.Input[str] database: The database in which to create the view. Don't use the | character.
|
|
185
|
+
: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).
|
|
184
186
|
:param pulumi.Input[bool] is_secure: Specifies that the view is secure.
|
|
185
187
|
:param pulumi.Input[str] name: Specifies the identifier for the view; must be unique for the schema in which the view is created.
|
|
186
188
|
:param pulumi.Input[bool] or_replace: Overwrites the View if it exists.
|
|
@@ -193,6 +195,8 @@ class _MaterializedViewState:
|
|
|
193
195
|
pulumi.set(__self__, "comment", comment)
|
|
194
196
|
if database is not None:
|
|
195
197
|
pulumi.set(__self__, "database", database)
|
|
198
|
+
if fully_qualified_name is not None:
|
|
199
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
196
200
|
if is_secure is not None:
|
|
197
201
|
pulumi.set(__self__, "is_secure", is_secure)
|
|
198
202
|
if name is not None:
|
|
@@ -235,6 +239,18 @@ class _MaterializedViewState:
|
|
|
235
239
|
def database(self, value: Optional[pulumi.Input[str]]):
|
|
236
240
|
pulumi.set(self, "database", value)
|
|
237
241
|
|
|
242
|
+
@property
|
|
243
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
244
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
245
|
+
"""
|
|
246
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
247
|
+
"""
|
|
248
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
249
|
+
|
|
250
|
+
@fully_qualified_name.setter
|
|
251
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
252
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
253
|
+
|
|
238
254
|
@property
|
|
239
255
|
@pulumi.getter(name="isSecure")
|
|
240
256
|
def is_secure(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -337,23 +353,6 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
337
353
|
warehouse: Optional[pulumi.Input[str]] = None,
|
|
338
354
|
__props__=None):
|
|
339
355
|
"""
|
|
340
|
-
## Example Usage
|
|
341
|
-
|
|
342
|
-
```python
|
|
343
|
-
import pulumi
|
|
344
|
-
import pulumi_snowflake as snowflake
|
|
345
|
-
|
|
346
|
-
view = snowflake.MaterializedView("view",
|
|
347
|
-
database="db",
|
|
348
|
-
schema="schema",
|
|
349
|
-
name="view",
|
|
350
|
-
warehouse="warehouse",
|
|
351
|
-
comment="comment",
|
|
352
|
-
statement="select * from foo;\\n",
|
|
353
|
-
or_replace=False,
|
|
354
|
-
is_secure=False)
|
|
355
|
-
```
|
|
356
|
-
|
|
357
356
|
## Import
|
|
358
357
|
|
|
359
358
|
format is database name | schema name | view name
|
|
@@ -381,23 +380,6 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
381
380
|
args: MaterializedViewArgs,
|
|
382
381
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
383
382
|
"""
|
|
384
|
-
## Example Usage
|
|
385
|
-
|
|
386
|
-
```python
|
|
387
|
-
import pulumi
|
|
388
|
-
import pulumi_snowflake as snowflake
|
|
389
|
-
|
|
390
|
-
view = snowflake.MaterializedView("view",
|
|
391
|
-
database="db",
|
|
392
|
-
schema="schema",
|
|
393
|
-
name="view",
|
|
394
|
-
warehouse="warehouse",
|
|
395
|
-
comment="comment",
|
|
396
|
-
statement="select * from foo;\\n",
|
|
397
|
-
or_replace=False,
|
|
398
|
-
is_secure=False)
|
|
399
|
-
```
|
|
400
|
-
|
|
401
383
|
## Import
|
|
402
384
|
|
|
403
385
|
format is database name | schema name | view name
|
|
@@ -456,6 +438,7 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
456
438
|
if warehouse is None and not opts.urn:
|
|
457
439
|
raise TypeError("Missing required property 'warehouse'")
|
|
458
440
|
__props__.__dict__["warehouse"] = warehouse
|
|
441
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
459
442
|
super(MaterializedView, __self__).__init__(
|
|
460
443
|
'snowflake:index/materializedView:MaterializedView',
|
|
461
444
|
resource_name,
|
|
@@ -468,6 +451,7 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
468
451
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
469
452
|
comment: Optional[pulumi.Input[str]] = None,
|
|
470
453
|
database: Optional[pulumi.Input[str]] = None,
|
|
454
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
471
455
|
is_secure: Optional[pulumi.Input[bool]] = None,
|
|
472
456
|
name: Optional[pulumi.Input[str]] = None,
|
|
473
457
|
or_replace: Optional[pulumi.Input[bool]] = None,
|
|
@@ -484,6 +468,7 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
484
468
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
485
469
|
:param pulumi.Input[str] comment: Specifies a comment for the view.
|
|
486
470
|
:param pulumi.Input[str] database: The database in which to create the view. Don't use the | character.
|
|
471
|
+
: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).
|
|
487
472
|
:param pulumi.Input[bool] is_secure: Specifies that the view is secure.
|
|
488
473
|
:param pulumi.Input[str] name: Specifies the identifier for the view; must be unique for the schema in which the view is created.
|
|
489
474
|
:param pulumi.Input[bool] or_replace: Overwrites the View if it exists.
|
|
@@ -498,6 +483,7 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
498
483
|
|
|
499
484
|
__props__.__dict__["comment"] = comment
|
|
500
485
|
__props__.__dict__["database"] = database
|
|
486
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
501
487
|
__props__.__dict__["is_secure"] = is_secure
|
|
502
488
|
__props__.__dict__["name"] = name
|
|
503
489
|
__props__.__dict__["or_replace"] = or_replace
|
|
@@ -523,6 +509,14 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
523
509
|
"""
|
|
524
510
|
return pulumi.get(self, "database")
|
|
525
511
|
|
|
512
|
+
@property
|
|
513
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
514
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
515
|
+
"""
|
|
516
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
517
|
+
"""
|
|
518
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
519
|
+
|
|
526
520
|
@property
|
|
527
521
|
@pulumi.getter(name="isSecure")
|
|
528
522
|
def is_secure(self) -> pulumi.Output[Optional[bool]]:
|
|
@@ -29,7 +29,7 @@ class NetworkPolicyArgs:
|
|
|
29
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`.
|
|
30
30
|
: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
31
|
:param pulumi.Input[str] comment: Specifies a comment for the network policy.
|
|
32
|
-
: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.
|
|
32
|
+
: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: `|`, `.`, `(`, `)`, `"`
|
|
33
33
|
"""
|
|
34
34
|
if allowed_ip_lists is not None:
|
|
35
35
|
pulumi.set(__self__, "allowed_ip_lists", allowed_ip_lists)
|
|
@@ -108,7 +108,7 @@ class NetworkPolicyArgs:
|
|
|
108
108
|
@pulumi.getter
|
|
109
109
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
110
110
|
"""
|
|
111
|
-
Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
|
|
111
|
+
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: `|`, `.`, `(`, `)`, `"`
|
|
112
112
|
"""
|
|
113
113
|
return pulumi.get(self, "name")
|
|
114
114
|
|
|
@@ -126,6 +126,7 @@ class _NetworkPolicyState:
|
|
|
126
126
|
blocked_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
127
127
|
comment: Optional[pulumi.Input[str]] = None,
|
|
128
128
|
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]]] = None,
|
|
129
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
129
130
|
name: Optional[pulumi.Input[str]] = None,
|
|
130
131
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyShowOutputArgs']]]] = None):
|
|
131
132
|
"""
|
|
@@ -136,7 +137,8 @@ class _NetworkPolicyState:
|
|
|
136
137
|
: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
138
|
:param pulumi.Input[str] comment: Specifies a comment for the network policy.
|
|
138
139
|
:param pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
|
|
139
|
-
:param pulumi.Input[str]
|
|
140
|
+
: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).
|
|
141
|
+
: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: `|`, `.`, `(`, `)`, `"`
|
|
140
142
|
:param pulumi.Input[Sequence[pulumi.Input['NetworkPolicyShowOutputArgs']]] show_outputs: Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
|
|
141
143
|
"""
|
|
142
144
|
if allowed_ip_lists is not None:
|
|
@@ -151,6 +153,8 @@ class _NetworkPolicyState:
|
|
|
151
153
|
pulumi.set(__self__, "comment", comment)
|
|
152
154
|
if describe_outputs is not None:
|
|
153
155
|
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
156
|
+
if fully_qualified_name is not None:
|
|
157
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
154
158
|
if name is not None:
|
|
155
159
|
pulumi.set(__self__, "name", name)
|
|
156
160
|
if show_outputs is not None:
|
|
@@ -228,11 +232,23 @@ class _NetworkPolicyState:
|
|
|
228
232
|
def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NetworkPolicyDescribeOutputArgs']]]]):
|
|
229
233
|
pulumi.set(self, "describe_outputs", value)
|
|
230
234
|
|
|
235
|
+
@property
|
|
236
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
237
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
238
|
+
"""
|
|
239
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
240
|
+
"""
|
|
241
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
242
|
+
|
|
243
|
+
@fully_qualified_name.setter
|
|
244
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
245
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
246
|
+
|
|
231
247
|
@property
|
|
232
248
|
@pulumi.getter
|
|
233
249
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
234
250
|
"""
|
|
235
|
-
Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
|
|
251
|
+
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: `|`, `.`, `(`, `)`, `"`
|
|
236
252
|
"""
|
|
237
253
|
return pulumi.get(self, "name")
|
|
238
254
|
|
|
@@ -266,10 +282,6 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
266
282
|
name: Optional[pulumi.Input[str]] = None,
|
|
267
283
|
__props__=None):
|
|
268
284
|
"""
|
|
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.
|
|
272
|
-
|
|
273
285
|
## Import
|
|
274
286
|
|
|
275
287
|
```sh
|
|
@@ -283,7 +295,7 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
283
295
|
: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`.
|
|
284
296
|
: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.
|
|
285
297
|
:param pulumi.Input[str] comment: Specifies a comment for the network policy.
|
|
286
|
-
: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.
|
|
298
|
+
: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: `|`, `.`, `(`, `)`, `"`
|
|
287
299
|
"""
|
|
288
300
|
...
|
|
289
301
|
@overload
|
|
@@ -292,10 +304,6 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
292
304
|
args: Optional[NetworkPolicyArgs] = None,
|
|
293
305
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
294
306
|
"""
|
|
295
|
-
!> **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.
|
|
296
|
-
|
|
297
|
-
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.
|
|
298
|
-
|
|
299
307
|
## Import
|
|
300
308
|
|
|
301
309
|
```sh
|
|
@@ -339,6 +347,7 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
339
347
|
__props__.__dict__["comment"] = comment
|
|
340
348
|
__props__.__dict__["name"] = name
|
|
341
349
|
__props__.__dict__["describe_outputs"] = None
|
|
350
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
342
351
|
__props__.__dict__["show_outputs"] = None
|
|
343
352
|
super(NetworkPolicy, __self__).__init__(
|
|
344
353
|
'snowflake:index/networkPolicy:NetworkPolicy',
|
|
@@ -356,6 +365,7 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
356
365
|
blocked_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
357
366
|
comment: Optional[pulumi.Input[str]] = None,
|
|
358
367
|
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NetworkPolicyDescribeOutputArgs', 'NetworkPolicyDescribeOutputArgsDict']]]]] = None,
|
|
368
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
359
369
|
name: Optional[pulumi.Input[str]] = None,
|
|
360
370
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NetworkPolicyShowOutputArgs', 'NetworkPolicyShowOutputArgsDict']]]]] = None) -> 'NetworkPolicy':
|
|
361
371
|
"""
|
|
@@ -371,7 +381,8 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
371
381
|
: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.
|
|
372
382
|
:param pulumi.Input[str] comment: Specifies a comment for the network policy.
|
|
373
383
|
:param pulumi.Input[Sequence[pulumi.Input[Union['NetworkPolicyDescribeOutputArgs', 'NetworkPolicyDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
|
|
374
|
-
:param pulumi.Input[str]
|
|
384
|
+
: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).
|
|
385
|
+
: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: `|`, `.`, `(`, `)`, `"`
|
|
375
386
|
:param pulumi.Input[Sequence[pulumi.Input[Union['NetworkPolicyShowOutputArgs', 'NetworkPolicyShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
|
|
376
387
|
"""
|
|
377
388
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -384,6 +395,7 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
384
395
|
__props__.__dict__["blocked_network_rule_lists"] = blocked_network_rule_lists
|
|
385
396
|
__props__.__dict__["comment"] = comment
|
|
386
397
|
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
398
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
387
399
|
__props__.__dict__["name"] = name
|
|
388
400
|
__props__.__dict__["show_outputs"] = show_outputs
|
|
389
401
|
return NetworkPolicy(resource_name, opts=opts, __props__=__props__)
|
|
@@ -436,11 +448,19 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
436
448
|
"""
|
|
437
449
|
return pulumi.get(self, "describe_outputs")
|
|
438
450
|
|
|
451
|
+
@property
|
|
452
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
453
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
454
|
+
"""
|
|
455
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
456
|
+
"""
|
|
457
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
458
|
+
|
|
439
459
|
@property
|
|
440
460
|
@pulumi.getter
|
|
441
461
|
def name(self) -> pulumi.Output[str]:
|
|
442
462
|
"""
|
|
443
|
-
Specifies the identifier for the network policy; must be unique for the account in which the network policy is created.
|
|
463
|
+
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: `|`, `.`, `(`, `)`, `"`
|
|
444
464
|
"""
|
|
445
465
|
return pulumi.get(self, "name")
|
|
446
466
|
|
|
@@ -132,21 +132,6 @@ class NetworkPolicyAttachment(pulumi.CustomResource):
|
|
|
132
132
|
users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
133
133
|
__props__=None):
|
|
134
134
|
"""
|
|
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
135
|
## Import
|
|
151
136
|
|
|
152
137
|
```sh
|
|
@@ -166,21 +151,6 @@ class NetworkPolicyAttachment(pulumi.CustomResource):
|
|
|
166
151
|
args: NetworkPolicyAttachmentArgs,
|
|
167
152
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
168
153
|
"""
|
|
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
154
|
## Import
|
|
185
155
|
|
|
186
156
|
```sh
|
pulumi_snowflake/network_rule.py
CHANGED
|
@@ -131,9 +131,9 @@ class _NetworkRuleState:
|
|
|
131
131
|
def __init__(__self__, *,
|
|
132
132
|
comment: Optional[pulumi.Input[str]] = None,
|
|
133
133
|
database: Optional[pulumi.Input[str]] = None,
|
|
134
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
134
135
|
mode: Optional[pulumi.Input[str]] = None,
|
|
135
136
|
name: Optional[pulumi.Input[str]] = None,
|
|
136
|
-
qualified_name: Optional[pulumi.Input[str]] = None,
|
|
137
137
|
schema: Optional[pulumi.Input[str]] = None,
|
|
138
138
|
type: Optional[pulumi.Input[str]] = None,
|
|
139
139
|
value_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
@@ -141,9 +141,9 @@ class _NetworkRuleState:
|
|
|
141
141
|
Input properties used for looking up and filtering NetworkRule resources.
|
|
142
142
|
:param pulumi.Input[str] comment: Specifies a comment for the network rule.
|
|
143
143
|
:param pulumi.Input[str] database: The database in which to create the network rule.
|
|
144
|
+
: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).
|
|
144
145
|
:param pulumi.Input[str] mode: Specifies what is restricted by the network rule. Valid values are INGRESS, INTERNAL_STAGE and EGRESS; see https://docs.snowflake.com/en/sql-reference/sql/create-network-rule#required-parameters for details.
|
|
145
146
|
:param pulumi.Input[str] name: Specifies the identifier for the network rule; must be unique for the database and schema in which the network rule is created.
|
|
146
|
-
:param pulumi.Input[str] qualified_name: Qualified name of the network rule.
|
|
147
147
|
:param pulumi.Input[str] schema: The schema in which to create the network rule.
|
|
148
148
|
:param pulumi.Input[str] type: Specifies the type of network identifiers being allowed or blocked. A network rule can have only one type. Allowed values are IPV4, AWSVPCEID, AZURELINKID and HOST_PORT; allowed values are determined by the mode of the network rule; see https://docs.snowflake.com/en/sql-reference/sql/create-network-rule#required-parameters for details.
|
|
149
149
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] value_lists: Specifies the network identifiers that will be allowed or blocked. Valid values in the list are determined by the type of network rule, see https://docs.snowflake.com/en/sql-reference/sql/create-network-rule#required-parameters for details.
|
|
@@ -152,12 +152,12 @@ class _NetworkRuleState:
|
|
|
152
152
|
pulumi.set(__self__, "comment", comment)
|
|
153
153
|
if database is not None:
|
|
154
154
|
pulumi.set(__self__, "database", database)
|
|
155
|
+
if fully_qualified_name is not None:
|
|
156
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
155
157
|
if mode is not None:
|
|
156
158
|
pulumi.set(__self__, "mode", mode)
|
|
157
159
|
if name is not None:
|
|
158
160
|
pulumi.set(__self__, "name", name)
|
|
159
|
-
if qualified_name is not None:
|
|
160
|
-
pulumi.set(__self__, "qualified_name", qualified_name)
|
|
161
161
|
if schema is not None:
|
|
162
162
|
pulumi.set(__self__, "schema", schema)
|
|
163
163
|
if type is not None:
|
|
@@ -189,6 +189,18 @@ class _NetworkRuleState:
|
|
|
189
189
|
def database(self, value: Optional[pulumi.Input[str]]):
|
|
190
190
|
pulumi.set(self, "database", value)
|
|
191
191
|
|
|
192
|
+
@property
|
|
193
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
194
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
195
|
+
"""
|
|
196
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
197
|
+
"""
|
|
198
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
199
|
+
|
|
200
|
+
@fully_qualified_name.setter
|
|
201
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
202
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
203
|
+
|
|
192
204
|
@property
|
|
193
205
|
@pulumi.getter
|
|
194
206
|
def mode(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -213,18 +225,6 @@ class _NetworkRuleState:
|
|
|
213
225
|
def name(self, value: Optional[pulumi.Input[str]]):
|
|
214
226
|
pulumi.set(self, "name", value)
|
|
215
227
|
|
|
216
|
-
@property
|
|
217
|
-
@pulumi.getter(name="qualifiedName")
|
|
218
|
-
def qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
219
|
-
"""
|
|
220
|
-
Qualified name of the network rule.
|
|
221
|
-
"""
|
|
222
|
-
return pulumi.get(self, "qualified_name")
|
|
223
|
-
|
|
224
|
-
@qualified_name.setter
|
|
225
|
-
def qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
226
|
-
pulumi.set(self, "qualified_name", value)
|
|
227
|
-
|
|
228
228
|
@property
|
|
229
229
|
@pulumi.getter
|
|
230
230
|
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -276,25 +276,6 @@ class NetworkRule(pulumi.CustomResource):
|
|
|
276
276
|
value_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
277
277
|
__props__=None):
|
|
278
278
|
"""
|
|
279
|
-
## Example Usage
|
|
280
|
-
|
|
281
|
-
```python
|
|
282
|
-
import pulumi
|
|
283
|
-
import pulumi_snowflake as snowflake
|
|
284
|
-
|
|
285
|
-
rule = snowflake.NetworkRule("rule",
|
|
286
|
-
name="rule",
|
|
287
|
-
database="EXAMPLE_DB",
|
|
288
|
-
schema="EXAMPLE_SCHEMA",
|
|
289
|
-
comment="A rule.",
|
|
290
|
-
type="IPV4",
|
|
291
|
-
mode="INGRESS",
|
|
292
|
-
value_lists=[
|
|
293
|
-
"192.168.0.100/24",
|
|
294
|
-
"29.254.123.20",
|
|
295
|
-
])
|
|
296
|
-
```
|
|
297
|
-
|
|
298
279
|
## Import
|
|
299
280
|
|
|
300
281
|
```sh
|
|
@@ -318,25 +299,6 @@ class NetworkRule(pulumi.CustomResource):
|
|
|
318
299
|
args: NetworkRuleArgs,
|
|
319
300
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
320
301
|
"""
|
|
321
|
-
## Example Usage
|
|
322
|
-
|
|
323
|
-
```python
|
|
324
|
-
import pulumi
|
|
325
|
-
import pulumi_snowflake as snowflake
|
|
326
|
-
|
|
327
|
-
rule = snowflake.NetworkRule("rule",
|
|
328
|
-
name="rule",
|
|
329
|
-
database="EXAMPLE_DB",
|
|
330
|
-
schema="EXAMPLE_SCHEMA",
|
|
331
|
-
comment="A rule.",
|
|
332
|
-
type="IPV4",
|
|
333
|
-
mode="INGRESS",
|
|
334
|
-
value_lists=[
|
|
335
|
-
"192.168.0.100/24",
|
|
336
|
-
"29.254.123.20",
|
|
337
|
-
])
|
|
338
|
-
```
|
|
339
|
-
|
|
340
302
|
## Import
|
|
341
303
|
|
|
342
304
|
```sh
|
|
@@ -391,7 +353,7 @@ class NetworkRule(pulumi.CustomResource):
|
|
|
391
353
|
if value_lists is None and not opts.urn:
|
|
392
354
|
raise TypeError("Missing required property 'value_lists'")
|
|
393
355
|
__props__.__dict__["value_lists"] = value_lists
|
|
394
|
-
__props__.__dict__["
|
|
356
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
395
357
|
super(NetworkRule, __self__).__init__(
|
|
396
358
|
'snowflake:index/networkRule:NetworkRule',
|
|
397
359
|
resource_name,
|
|
@@ -404,9 +366,9 @@ class NetworkRule(pulumi.CustomResource):
|
|
|
404
366
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
405
367
|
comment: Optional[pulumi.Input[str]] = None,
|
|
406
368
|
database: Optional[pulumi.Input[str]] = None,
|
|
369
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
407
370
|
mode: Optional[pulumi.Input[str]] = None,
|
|
408
371
|
name: Optional[pulumi.Input[str]] = None,
|
|
409
|
-
qualified_name: Optional[pulumi.Input[str]] = None,
|
|
410
372
|
schema: Optional[pulumi.Input[str]] = None,
|
|
411
373
|
type: Optional[pulumi.Input[str]] = None,
|
|
412
374
|
value_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'NetworkRule':
|
|
@@ -419,9 +381,9 @@ class NetworkRule(pulumi.CustomResource):
|
|
|
419
381
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
420
382
|
:param pulumi.Input[str] comment: Specifies a comment for the network rule.
|
|
421
383
|
:param pulumi.Input[str] database: The database in which to create the network rule.
|
|
384
|
+
: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).
|
|
422
385
|
:param pulumi.Input[str] mode: Specifies what is restricted by the network rule. Valid values are INGRESS, INTERNAL_STAGE and EGRESS; see https://docs.snowflake.com/en/sql-reference/sql/create-network-rule#required-parameters for details.
|
|
423
386
|
:param pulumi.Input[str] name: Specifies the identifier for the network rule; must be unique for the database and schema in which the network rule is created.
|
|
424
|
-
:param pulumi.Input[str] qualified_name: Qualified name of the network rule.
|
|
425
387
|
:param pulumi.Input[str] schema: The schema in which to create the network rule.
|
|
426
388
|
:param pulumi.Input[str] type: Specifies the type of network identifiers being allowed or blocked. A network rule can have only one type. Allowed values are IPV4, AWSVPCEID, AZURELINKID and HOST_PORT; allowed values are determined by the mode of the network rule; see https://docs.snowflake.com/en/sql-reference/sql/create-network-rule#required-parameters for details.
|
|
427
389
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] value_lists: Specifies the network identifiers that will be allowed or blocked. Valid values in the list are determined by the type of network rule, see https://docs.snowflake.com/en/sql-reference/sql/create-network-rule#required-parameters for details.
|
|
@@ -432,9 +394,9 @@ class NetworkRule(pulumi.CustomResource):
|
|
|
432
394
|
|
|
433
395
|
__props__.__dict__["comment"] = comment
|
|
434
396
|
__props__.__dict__["database"] = database
|
|
397
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
435
398
|
__props__.__dict__["mode"] = mode
|
|
436
399
|
__props__.__dict__["name"] = name
|
|
437
|
-
__props__.__dict__["qualified_name"] = qualified_name
|
|
438
400
|
__props__.__dict__["schema"] = schema
|
|
439
401
|
__props__.__dict__["type"] = type
|
|
440
402
|
__props__.__dict__["value_lists"] = value_lists
|
|
@@ -456,6 +418,14 @@ class NetworkRule(pulumi.CustomResource):
|
|
|
456
418
|
"""
|
|
457
419
|
return pulumi.get(self, "database")
|
|
458
420
|
|
|
421
|
+
@property
|
|
422
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
423
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
424
|
+
"""
|
|
425
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
426
|
+
"""
|
|
427
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
428
|
+
|
|
459
429
|
@property
|
|
460
430
|
@pulumi.getter
|
|
461
431
|
def mode(self) -> pulumi.Output[str]:
|
|
@@ -472,14 +442,6 @@ class NetworkRule(pulumi.CustomResource):
|
|
|
472
442
|
"""
|
|
473
443
|
return pulumi.get(self, "name")
|
|
474
444
|
|
|
475
|
-
@property
|
|
476
|
-
@pulumi.getter(name="qualifiedName")
|
|
477
|
-
def qualified_name(self) -> pulumi.Output[str]:
|
|
478
|
-
"""
|
|
479
|
-
Qualified name of the network rule.
|
|
480
|
-
"""
|
|
481
|
-
return pulumi.get(self, "qualified_name")
|
|
482
|
-
|
|
483
445
|
@property
|
|
484
446
|
@pulumi.getter
|
|
485
447
|
def schema(self) -> pulumi.Output[str]:
|