pulumi-snowflake 0.57.2__py3-none-any.whl → 0.58.0a1722527984__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/account_role.py +18 -32
- pulumi_snowflake/alert.py +11 -11
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +4 -4
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +4 -4
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +4 -4
- pulumi_snowflake/cortex_search_service.py +0 -76
- pulumi_snowflake/database.py +133 -15
- pulumi_snowflake/database_old.py +13 -13
- pulumi_snowflake/dynamic_table.py +11 -11
- pulumi_snowflake/external_function.py +26 -26
- pulumi_snowflake/external_oauth_integration.py +6 -6
- pulumi_snowflake/external_table.py +26 -26
- pulumi_snowflake/failover_group.py +32 -32
- pulumi_snowflake/function.py +5 -5
- pulumi_snowflake/get_cortex_search_services.py +16 -16
- pulumi_snowflake/get_databases.py +6 -6
- pulumi_snowflake/get_dynamic_tables.py +12 -12
- pulumi_snowflake/get_grants.py +138 -138
- pulumi_snowflake/get_network_policies.py +2 -2
- pulumi_snowflake/get_roles.py +2 -2
- pulumi_snowflake/get_schemas.py +8 -12
- pulumi_snowflake/get_security_integrations.py +2 -2
- pulumi_snowflake/get_streamlits.py +10 -10
- pulumi_snowflake/get_warehouses.py +2 -2
- pulumi_snowflake/grant_ownership.py +5 -5
- pulumi_snowflake/grant_privileges_to_account_role.py +19 -19
- pulumi_snowflake/grant_privileges_to_database_role.py +10 -10
- pulumi_snowflake/grant_privileges_to_share.py +2 -2
- pulumi_snowflake/masking_policy.py +17 -17
- pulumi_snowflake/materialized_view.py +5 -5
- pulumi_snowflake/network_policy.py +34 -12
- pulumi_snowflake/oauth_integration_for_custom_clients.py +4 -4
- pulumi_snowflake/oauth_integration_for_partner_applications.py +4 -4
- pulumi_snowflake/object_parameter.py +37 -37
- pulumi_snowflake/procedure.py +5 -5
- pulumi_snowflake/provider.py +2 -2
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/role.py +18 -32
- pulumi_snowflake/saml2_integration.py +4 -4
- pulumi_snowflake/schema.py +13 -17
- pulumi_snowflake/scim_integration.py +4 -4
- pulumi_snowflake/stage.py +5 -5
- pulumi_snowflake/streamlit.py +4 -4
- pulumi_snowflake/table.py +15 -15
- pulumi_snowflake/table_constraint.py +67 -67
- pulumi_snowflake/tag_association.py +47 -47
- pulumi_snowflake/view.py +5 -5
- pulumi_snowflake/warehouse.py +4 -4
- {pulumi_snowflake-0.57.2.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/METADATA +1 -1
- {pulumi_snowflake-0.57.2.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/RECORD +52 -52
- {pulumi_snowflake-0.57.2.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/WHEEL +1 -1
- {pulumi_snowflake-0.57.2.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/top_level.txt +0 -0
pulumi_snowflake/get_schemas.py
CHANGED
|
@@ -130,22 +130,20 @@ class AwaitableGetSchemasResult(GetSchemasResult):
|
|
|
130
130
|
with_parameters=self.with_parameters)
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
def get_schemas(in_: Optional[
|
|
133
|
+
def get_schemas(in_: Optional[pulumi.InputType['GetSchemasInArgs']] = None,
|
|
134
134
|
like: Optional[str] = None,
|
|
135
|
-
limit: Optional[
|
|
135
|
+
limit: Optional[pulumi.InputType['GetSchemasLimitArgs']] = None,
|
|
136
136
|
starts_with: Optional[str] = None,
|
|
137
137
|
with_describe: Optional[bool] = None,
|
|
138
138
|
with_parameters: Optional[bool] = None,
|
|
139
139
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchemasResult:
|
|
140
140
|
"""
|
|
141
|
-
!> **V1 release candidate** This data source 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 data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
|
|
142
|
-
|
|
143
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.
|
|
144
142
|
|
|
145
143
|
|
|
146
|
-
:param
|
|
144
|
+
:param pulumi.InputType['GetSchemasInArgs'] in_: IN clause to filter the list of streamlits
|
|
147
145
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
148
|
-
:param
|
|
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`.
|
|
149
147
|
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
150
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.
|
|
151
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.
|
|
@@ -172,22 +170,20 @@ def get_schemas(in_: Optional[Union['GetSchemasInArgs', 'GetSchemasInArgsDict']]
|
|
|
172
170
|
|
|
173
171
|
|
|
174
172
|
@_utilities.lift_output_func(get_schemas)
|
|
175
|
-
def get_schemas_output(in_: Optional[pulumi.Input[Optional[
|
|
173
|
+
def get_schemas_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetSchemasInArgs']]]] = None,
|
|
176
174
|
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
177
|
-
limit: Optional[pulumi.Input[Optional[
|
|
175
|
+
limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetSchemasLimitArgs']]]] = None,
|
|
178
176
|
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
179
177
|
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
180
178
|
with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
181
179
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSchemasResult]:
|
|
182
180
|
"""
|
|
183
|
-
!> **V1 release candidate** This data source 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 data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
|
|
184
|
-
|
|
185
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.
|
|
186
182
|
|
|
187
183
|
|
|
188
|
-
:param
|
|
184
|
+
:param pulumi.InputType['GetSchemasInArgs'] in_: IN clause to filter the list of streamlits
|
|
189
185
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
190
|
-
:param
|
|
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`.
|
|
191
187
|
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
192
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.
|
|
193
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.
|
|
@@ -85,7 +85,7 @@ def get_security_integrations(like: Optional[str] = None,
|
|
|
85
85
|
with_describe: Optional[bool] = None,
|
|
86
86
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecurityIntegrationsResult:
|
|
87
87
|
"""
|
|
88
|
-
!> **V1 release candidate** This
|
|
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.
|
|
89
89
|
|
|
90
90
|
Datasource used to get details of filtered security integrations. Filtering is aligned with the current possibilities for [SHOW SECURITY INTEGRATIONS](https://docs.snowflake.com/en/sql-reference/sql/show-integrations) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `security_integrations`.
|
|
91
91
|
|
|
@@ -111,7 +111,7 @@ def get_security_integrations_output(like: Optional[pulumi.Input[Optional[str]]]
|
|
|
111
111
|
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
112
112
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecurityIntegrationsResult]:
|
|
113
113
|
"""
|
|
114
|
-
!> **V1 release candidate** This
|
|
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.
|
|
115
115
|
|
|
116
116
|
Datasource used to get details of filtered security integrations. Filtering is aligned with the current possibilities for [SHOW SECURITY INTEGRATIONS](https://docs.snowflake.com/en/sql-reference/sql/show-integrations) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `security_integrations`.
|
|
117
117
|
|
|
@@ -106,20 +106,20 @@ class AwaitableGetStreamlitsResult(GetStreamlitsResult):
|
|
|
106
106
|
with_describe=self.with_describe)
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
def get_streamlits(in_: Optional[
|
|
109
|
+
def get_streamlits(in_: Optional[pulumi.InputType['GetStreamlitsInArgs']] = None,
|
|
110
110
|
like: Optional[str] = None,
|
|
111
|
-
limit: Optional[
|
|
111
|
+
limit: Optional[pulumi.InputType['GetStreamlitsLimitArgs']] = None,
|
|
112
112
|
with_describe: Optional[bool] = None,
|
|
113
113
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetStreamlitsResult:
|
|
114
114
|
"""
|
|
115
|
-
!> **V1 release candidate** This
|
|
115
|
+
!> **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.
|
|
116
116
|
|
|
117
117
|
Datasource used to get details of filtered streamlits. Filtering is aligned with the current possibilities for [SHOW STREAMLITS](https://docs.snowflake.com/en/sql-reference/sql/show-streamlits) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `streamlits`.
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
:param
|
|
120
|
+
:param pulumi.InputType['GetStreamlitsInArgs'] in_: IN clause to filter the list of streamlits
|
|
121
121
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
122
|
-
:param
|
|
122
|
+
:param pulumi.InputType['GetStreamlitsLimitArgs'] 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`.
|
|
123
123
|
:param bool with_describe: Runs DESC STREAMLIT for each streamlit returned by SHOW STREAMLITS. The output of describe is saved to the description field. By default this value is set to true.
|
|
124
124
|
"""
|
|
125
125
|
__args__ = dict()
|
|
@@ -140,20 +140,20 @@ def get_streamlits(in_: Optional[Union['GetStreamlitsInArgs', 'GetStreamlitsInAr
|
|
|
140
140
|
|
|
141
141
|
|
|
142
142
|
@_utilities.lift_output_func(get_streamlits)
|
|
143
|
-
def get_streamlits_output(in_: Optional[pulumi.Input[Optional[
|
|
143
|
+
def get_streamlits_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetStreamlitsInArgs']]]] = None,
|
|
144
144
|
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
145
|
-
limit: Optional[pulumi.Input[Optional[
|
|
145
|
+
limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetStreamlitsLimitArgs']]]] = None,
|
|
146
146
|
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
147
147
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetStreamlitsResult]:
|
|
148
148
|
"""
|
|
149
|
-
!> **V1 release candidate** This
|
|
149
|
+
!> **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.
|
|
150
150
|
|
|
151
151
|
Datasource used to get details of filtered streamlits. Filtering is aligned with the current possibilities for [SHOW STREAMLITS](https://docs.snowflake.com/en/sql-reference/sql/show-streamlits) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `streamlits`.
|
|
152
152
|
|
|
153
153
|
|
|
154
|
-
:param
|
|
154
|
+
:param pulumi.InputType['GetStreamlitsInArgs'] in_: IN clause to filter the list of streamlits
|
|
155
155
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
156
|
-
:param
|
|
156
|
+
:param pulumi.InputType['GetStreamlitsLimitArgs'] 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`.
|
|
157
157
|
:param bool with_describe: Runs DESC STREAMLIT for each streamlit returned by SHOW STREAMLITS. The output of describe is saved to the description field. By default this value is set to true.
|
|
158
158
|
"""
|
|
159
159
|
...
|
|
@@ -98,7 +98,7 @@ def get_warehouses(like: Optional[str] = None,
|
|
|
98
98
|
with_parameters: Optional[bool] = None,
|
|
99
99
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWarehousesResult:
|
|
100
100
|
"""
|
|
101
|
-
!> **V1 release candidate** This
|
|
101
|
+
!> **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.
|
|
102
102
|
|
|
103
103
|
Datasource used to get details of filtered warehouses. Filtering is aligned with the current possibilities for [SHOW WAREHOUSES](https://docs.snowflake.com/en/sql-reference/sql/show-warehouses) query (only `like` is supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
|
|
104
104
|
|
|
@@ -128,7 +128,7 @@ def get_warehouses_output(like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
128
128
|
with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
129
129
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetWarehousesResult]:
|
|
130
130
|
"""
|
|
131
|
-
!> **V1 release candidate** This
|
|
131
|
+
!> **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.
|
|
132
132
|
|
|
133
133
|
Datasource used to get details of filtered warehouses. Filtering is aligned with the current possibilities for [SHOW WAREHOUSES](https://docs.snowflake.com/en/sql-reference/sql/show-warehouses) query (only `like` is supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
|
|
134
134
|
|
|
@@ -163,7 +163,7 @@ class GrantOwnership(pulumi.CustomResource):
|
|
|
163
163
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
164
164
|
account_role_name: Optional[pulumi.Input[str]] = None,
|
|
165
165
|
database_role_name: Optional[pulumi.Input[str]] = None,
|
|
166
|
-
on: Optional[pulumi.Input[
|
|
166
|
+
on: Optional[pulumi.Input[pulumi.InputType['GrantOwnershipOnArgs']]] = None,
|
|
167
167
|
outbound_privileges: Optional[pulumi.Input[str]] = None,
|
|
168
168
|
__props__=None):
|
|
169
169
|
"""
|
|
@@ -217,7 +217,7 @@ class GrantOwnership(pulumi.CustomResource):
|
|
|
217
217
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
218
218
|
:param pulumi.Input[str] account_role_name: The fully qualified name of the account role to which privileges will be granted.
|
|
219
219
|
:param pulumi.Input[str] database_role_name: The fully qualified name of the database role to which privileges will be granted.
|
|
220
|
-
:param pulumi.Input[
|
|
220
|
+
:param pulumi.Input[pulumi.InputType['GrantOwnershipOnArgs']] on: Configures which object(s) should transfer their ownership to the specified role.
|
|
221
221
|
:param pulumi.Input[str] outbound_privileges: Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role. Available options are: REVOKE for removing existing privileges and COPY to transfer them with ownership. For more information head over to [Snowflake documentation](https://docs.snowflake.com/en/sql-reference/sql/grant-ownership#optional-parameters).
|
|
222
222
|
"""
|
|
223
223
|
...
|
|
@@ -290,7 +290,7 @@ class GrantOwnership(pulumi.CustomResource):
|
|
|
290
290
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
291
291
|
account_role_name: Optional[pulumi.Input[str]] = None,
|
|
292
292
|
database_role_name: Optional[pulumi.Input[str]] = None,
|
|
293
|
-
on: Optional[pulumi.Input[
|
|
293
|
+
on: Optional[pulumi.Input[pulumi.InputType['GrantOwnershipOnArgs']]] = None,
|
|
294
294
|
outbound_privileges: Optional[pulumi.Input[str]] = None,
|
|
295
295
|
__props__=None):
|
|
296
296
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -319,7 +319,7 @@ class GrantOwnership(pulumi.CustomResource):
|
|
|
319
319
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
320
320
|
account_role_name: Optional[pulumi.Input[str]] = None,
|
|
321
321
|
database_role_name: Optional[pulumi.Input[str]] = None,
|
|
322
|
-
on: Optional[pulumi.Input[
|
|
322
|
+
on: Optional[pulumi.Input[pulumi.InputType['GrantOwnershipOnArgs']]] = None,
|
|
323
323
|
outbound_privileges: Optional[pulumi.Input[str]] = None) -> 'GrantOwnership':
|
|
324
324
|
"""
|
|
325
325
|
Get an existing GrantOwnership resource's state with the given name, id, and optional extra
|
|
@@ -330,7 +330,7 @@ class GrantOwnership(pulumi.CustomResource):
|
|
|
330
330
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
331
331
|
:param pulumi.Input[str] account_role_name: The fully qualified name of the account role to which privileges will be granted.
|
|
332
332
|
:param pulumi.Input[str] database_role_name: The fully qualified name of the database role to which privileges will be granted.
|
|
333
|
-
:param pulumi.Input[
|
|
333
|
+
:param pulumi.Input[pulumi.InputType['GrantOwnershipOnArgs']] on: Configures which object(s) should transfer their ownership to the specified role.
|
|
334
334
|
:param pulumi.Input[str] outbound_privileges: Specifies whether to remove or transfer all existing outbound privileges on the object when ownership is transferred to a new role. Available options are: REVOKE for removing existing privileges and COPY to transfer them with ownership. For more information head over to [Snowflake documentation](https://docs.snowflake.com/en/sql-reference/sql/grant-ownership#optional-parameters).
|
|
335
335
|
"""
|
|
336
336
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -350,16 +350,16 @@ class GrantPrivilegesToAccountRole(pulumi.CustomResource):
|
|
|
350
350
|
always_apply: Optional[pulumi.Input[bool]] = None,
|
|
351
351
|
always_apply_trigger: Optional[pulumi.Input[str]] = None,
|
|
352
352
|
on_account: Optional[pulumi.Input[bool]] = None,
|
|
353
|
-
on_account_object: Optional[pulumi.Input[
|
|
354
|
-
on_schema: Optional[pulumi.Input[
|
|
355
|
-
on_schema_object: Optional[pulumi.Input[
|
|
353
|
+
on_account_object: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnAccountObjectArgs']]] = None,
|
|
354
|
+
on_schema: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnSchemaArgs']]] = None,
|
|
355
|
+
on_schema_object: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnSchemaObjectArgs']]] = None,
|
|
356
356
|
privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
357
357
|
with_grant_option: Optional[pulumi.Input[bool]] = None,
|
|
358
358
|
__props__=None):
|
|
359
359
|
"""
|
|
360
|
-
|
|
360
|
+
## Import
|
|
361
361
|
|
|
362
|
-
|
|
362
|
+
### Import examples
|
|
363
363
|
|
|
364
364
|
#### Grant all privileges OnAccountObject (Database)
|
|
365
365
|
|
|
@@ -391,9 +391,9 @@ class GrantPrivilegesToAccountRole(pulumi.CustomResource):
|
|
|
391
391
|
:param pulumi.Input[bool] all_privileges: Grant all privileges on the account role.
|
|
392
392
|
:param pulumi.Input[str] always_apply_trigger: This is a helper field and should not be set. Its main purpose is to help to achieve the functionality described by the always_apply field.
|
|
393
393
|
:param pulumi.Input[bool] on_account: If true, the privileges will be granted on the account.
|
|
394
|
-
:param pulumi.Input[
|
|
395
|
-
:param pulumi.Input[
|
|
396
|
-
:param pulumi.Input[
|
|
394
|
+
:param pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnAccountObjectArgs']] on_account_object: Specifies the account object on which privileges will be granted
|
|
395
|
+
:param pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnSchemaArgs']] on_schema: Specifies the schema on which privileges will be granted.
|
|
396
|
+
:param pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnSchemaObjectArgs']] on_schema_object: Specifies the schema object on which privileges will be granted.
|
|
397
397
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] privileges: The privileges to grant on the account role.
|
|
398
398
|
:param pulumi.Input[bool] with_grant_option: Specifies whether the grantee can grant the privileges to other users.
|
|
399
399
|
"""
|
|
@@ -404,9 +404,9 @@ class GrantPrivilegesToAccountRole(pulumi.CustomResource):
|
|
|
404
404
|
args: GrantPrivilegesToAccountRoleArgs,
|
|
405
405
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
406
406
|
"""
|
|
407
|
-
|
|
407
|
+
## Import
|
|
408
408
|
|
|
409
|
-
|
|
409
|
+
### Import examples
|
|
410
410
|
|
|
411
411
|
#### Grant all privileges OnAccountObject (Database)
|
|
412
412
|
|
|
@@ -452,9 +452,9 @@ class GrantPrivilegesToAccountRole(pulumi.CustomResource):
|
|
|
452
452
|
always_apply: Optional[pulumi.Input[bool]] = None,
|
|
453
453
|
always_apply_trigger: Optional[pulumi.Input[str]] = None,
|
|
454
454
|
on_account: Optional[pulumi.Input[bool]] = None,
|
|
455
|
-
on_account_object: Optional[pulumi.Input[
|
|
456
|
-
on_schema: Optional[pulumi.Input[
|
|
457
|
-
on_schema_object: Optional[pulumi.Input[
|
|
455
|
+
on_account_object: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnAccountObjectArgs']]] = None,
|
|
456
|
+
on_schema: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnSchemaArgs']]] = None,
|
|
457
|
+
on_schema_object: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnSchemaObjectArgs']]] = None,
|
|
458
458
|
privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
459
459
|
with_grant_option: Optional[pulumi.Input[bool]] = None,
|
|
460
460
|
__props__=None):
|
|
@@ -493,9 +493,9 @@ class GrantPrivilegesToAccountRole(pulumi.CustomResource):
|
|
|
493
493
|
always_apply: Optional[pulumi.Input[bool]] = None,
|
|
494
494
|
always_apply_trigger: Optional[pulumi.Input[str]] = None,
|
|
495
495
|
on_account: Optional[pulumi.Input[bool]] = None,
|
|
496
|
-
on_account_object: Optional[pulumi.Input[
|
|
497
|
-
on_schema: Optional[pulumi.Input[
|
|
498
|
-
on_schema_object: Optional[pulumi.Input[
|
|
496
|
+
on_account_object: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnAccountObjectArgs']]] = None,
|
|
497
|
+
on_schema: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnSchemaArgs']]] = None,
|
|
498
|
+
on_schema_object: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnSchemaObjectArgs']]] = None,
|
|
499
499
|
privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
500
500
|
with_grant_option: Optional[pulumi.Input[bool]] = None) -> 'GrantPrivilegesToAccountRole':
|
|
501
501
|
"""
|
|
@@ -509,9 +509,9 @@ class GrantPrivilegesToAccountRole(pulumi.CustomResource):
|
|
|
509
509
|
:param pulumi.Input[bool] all_privileges: Grant all privileges on the account role.
|
|
510
510
|
:param pulumi.Input[str] always_apply_trigger: This is a helper field and should not be set. Its main purpose is to help to achieve the functionality described by the always_apply field.
|
|
511
511
|
:param pulumi.Input[bool] on_account: If true, the privileges will be granted on the account.
|
|
512
|
-
:param pulumi.Input[
|
|
513
|
-
:param pulumi.Input[
|
|
514
|
-
:param pulumi.Input[
|
|
512
|
+
:param pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnAccountObjectArgs']] on_account_object: Specifies the account object on which privileges will be granted
|
|
513
|
+
:param pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnSchemaArgs']] on_schema: Specifies the schema on which privileges will be granted.
|
|
514
|
+
:param pulumi.Input[pulumi.InputType['GrantPrivilegesToAccountRoleOnSchemaObjectArgs']] on_schema_object: Specifies the schema object on which privileges will be granted.
|
|
515
515
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] privileges: The privileges to grant on the account role.
|
|
516
516
|
:param pulumi.Input[bool] with_grant_option: Specifies whether the grantee can grant the privileges to other users.
|
|
517
517
|
"""
|
|
@@ -318,8 +318,8 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
|
|
|
318
318
|
always_apply_trigger: Optional[pulumi.Input[str]] = None,
|
|
319
319
|
database_role_name: Optional[pulumi.Input[str]] = None,
|
|
320
320
|
on_database: Optional[pulumi.Input[str]] = None,
|
|
321
|
-
on_schema: Optional[pulumi.Input[
|
|
322
|
-
on_schema_object: Optional[pulumi.Input[
|
|
321
|
+
on_schema: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToDatabaseRoleOnSchemaArgs']]] = None,
|
|
322
|
+
on_schema_object: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToDatabaseRoleOnSchemaObjectArgs']]] = None,
|
|
323
323
|
privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
324
324
|
with_grant_option: Optional[pulumi.Input[bool]] = None,
|
|
325
325
|
__props__=None):
|
|
@@ -356,8 +356,8 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
|
|
|
356
356
|
:param pulumi.Input[str] always_apply_trigger: This is a helper field and should not be set. Its main purpose is to help to achieve the functionality described by the always_apply field.
|
|
357
357
|
:param pulumi.Input[str] database_role_name: The fully qualified name of the database role to which privileges will be granted.
|
|
358
358
|
:param pulumi.Input[str] on_database: The fully qualified name of the database on which privileges will be granted.
|
|
359
|
-
:param pulumi.Input[
|
|
360
|
-
:param pulumi.Input[
|
|
359
|
+
:param pulumi.Input[pulumi.InputType['GrantPrivilegesToDatabaseRoleOnSchemaArgs']] on_schema: Specifies the schema on which privileges will be granted.
|
|
360
|
+
:param pulumi.Input[pulumi.InputType['GrantPrivilegesToDatabaseRoleOnSchemaObjectArgs']] on_schema_object: Specifies the schema object on which privileges will be granted.
|
|
361
361
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] privileges: The privileges to grant on the database role.
|
|
362
362
|
:param pulumi.Input[bool] with_grant_option: If specified, allows the recipient role to grant the privileges to other roles.
|
|
363
363
|
"""
|
|
@@ -414,8 +414,8 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
|
|
|
414
414
|
always_apply_trigger: Optional[pulumi.Input[str]] = None,
|
|
415
415
|
database_role_name: Optional[pulumi.Input[str]] = None,
|
|
416
416
|
on_database: Optional[pulumi.Input[str]] = None,
|
|
417
|
-
on_schema: Optional[pulumi.Input[
|
|
418
|
-
on_schema_object: Optional[pulumi.Input[
|
|
417
|
+
on_schema: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToDatabaseRoleOnSchemaArgs']]] = None,
|
|
418
|
+
on_schema_object: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToDatabaseRoleOnSchemaObjectArgs']]] = None,
|
|
419
419
|
privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
420
420
|
with_grant_option: Optional[pulumi.Input[bool]] = None,
|
|
421
421
|
__props__=None):
|
|
@@ -453,8 +453,8 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
|
|
|
453
453
|
always_apply_trigger: Optional[pulumi.Input[str]] = None,
|
|
454
454
|
database_role_name: Optional[pulumi.Input[str]] = None,
|
|
455
455
|
on_database: Optional[pulumi.Input[str]] = None,
|
|
456
|
-
on_schema: Optional[pulumi.Input[
|
|
457
|
-
on_schema_object: Optional[pulumi.Input[
|
|
456
|
+
on_schema: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToDatabaseRoleOnSchemaArgs']]] = None,
|
|
457
|
+
on_schema_object: Optional[pulumi.Input[pulumi.InputType['GrantPrivilegesToDatabaseRoleOnSchemaObjectArgs']]] = None,
|
|
458
458
|
privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
459
459
|
with_grant_option: Optional[pulumi.Input[bool]] = None) -> 'GrantPrivilegesToDatabaseRole':
|
|
460
460
|
"""
|
|
@@ -468,8 +468,8 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
|
|
|
468
468
|
:param pulumi.Input[str] always_apply_trigger: This is a helper field and should not be set. Its main purpose is to help to achieve the functionality described by the always_apply field.
|
|
469
469
|
:param pulumi.Input[str] database_role_name: The fully qualified name of the database role to which privileges will be granted.
|
|
470
470
|
:param pulumi.Input[str] on_database: The fully qualified name of the database on which privileges will be granted.
|
|
471
|
-
:param pulumi.Input[
|
|
472
|
-
:param pulumi.Input[
|
|
471
|
+
:param pulumi.Input[pulumi.InputType['GrantPrivilegesToDatabaseRoleOnSchemaArgs']] on_schema: Specifies the schema on which privileges will be granted.
|
|
472
|
+
:param pulumi.Input[pulumi.InputType['GrantPrivilegesToDatabaseRoleOnSchemaObjectArgs']] on_schema_object: Specifies the schema object on which privileges will be granted.
|
|
473
473
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] privileges: The privileges to grant on the database role.
|
|
474
474
|
:param pulumi.Input[bool] with_grant_option: If specified, allows the recipient role to grant the privileges to other roles.
|
|
475
475
|
"""
|
|
@@ -296,7 +296,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
|
|
|
296
296
|
to_share: Optional[pulumi.Input[str]] = None,
|
|
297
297
|
__props__=None):
|
|
298
298
|
"""
|
|
299
|
-
##
|
|
299
|
+
## Import
|
|
300
300
|
|
|
301
301
|
### OnView
|
|
302
302
|
|
|
@@ -322,7 +322,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
|
|
|
322
322
|
args: GrantPrivilegesToShareArgs,
|
|
323
323
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
324
324
|
"""
|
|
325
|
-
##
|
|
325
|
+
## Import
|
|
326
326
|
|
|
327
327
|
### OnView
|
|
328
328
|
|
|
@@ -374,7 +374,7 @@ class MaskingPolicy(pulumi.CustomResource):
|
|
|
374
374
|
or_replace: Optional[pulumi.Input[bool]] = None,
|
|
375
375
|
return_data_type: Optional[pulumi.Input[str]] = None,
|
|
376
376
|
schema: Optional[pulumi.Input[str]] = None,
|
|
377
|
-
signature: Optional[pulumi.Input[
|
|
377
|
+
signature: Optional[pulumi.Input[pulumi.InputType['MaskingPolicySignatureArgs']]] = None,
|
|
378
378
|
__props__=None):
|
|
379
379
|
"""
|
|
380
380
|
## Example Usage
|
|
@@ -387,12 +387,12 @@ class MaskingPolicy(pulumi.CustomResource):
|
|
|
387
387
|
name="EXAMPLE_MASKING_POLICY",
|
|
388
388
|
database="EXAMPLE_DB",
|
|
389
389
|
schema="EXAMPLE_SCHEMA",
|
|
390
|
-
signature=
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
390
|
+
signature=snowflake.MaskingPolicySignatureArgs(
|
|
391
|
+
columns=[snowflake.MaskingPolicySignatureColumnArgs(
|
|
392
|
+
name="val",
|
|
393
|
+
type="VARCHAR",
|
|
394
|
+
)],
|
|
395
|
+
),
|
|
396
396
|
masking_expression=\"\"\"case
|
|
397
397
|
when current_role() in ('ROLE_A') then
|
|
398
398
|
val
|
|
@@ -424,7 +424,7 @@ class MaskingPolicy(pulumi.CustomResource):
|
|
|
424
424
|
:param pulumi.Input[bool] or_replace: Whether to override a previous masking policy with the same name.
|
|
425
425
|
:param pulumi.Input[str] return_data_type: Specifies the data type to return.
|
|
426
426
|
:param pulumi.Input[str] schema: The schema in which to create the masking policy.
|
|
427
|
-
:param pulumi.Input[
|
|
427
|
+
:param pulumi.Input[pulumi.InputType['MaskingPolicySignatureArgs']] signature: The signature for the masking policy; specifies the input columns and data types to evaluate at query runtime.
|
|
428
428
|
"""
|
|
429
429
|
...
|
|
430
430
|
@overload
|
|
@@ -443,12 +443,12 @@ class MaskingPolicy(pulumi.CustomResource):
|
|
|
443
443
|
name="EXAMPLE_MASKING_POLICY",
|
|
444
444
|
database="EXAMPLE_DB",
|
|
445
445
|
schema="EXAMPLE_SCHEMA",
|
|
446
|
-
signature=
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
446
|
+
signature=snowflake.MaskingPolicySignatureArgs(
|
|
447
|
+
columns=[snowflake.MaskingPolicySignatureColumnArgs(
|
|
448
|
+
name="val",
|
|
449
|
+
type="VARCHAR",
|
|
450
|
+
)],
|
|
451
|
+
),
|
|
452
452
|
masking_expression=\"\"\"case
|
|
453
453
|
when current_role() in ('ROLE_A') then
|
|
454
454
|
val
|
|
@@ -493,7 +493,7 @@ class MaskingPolicy(pulumi.CustomResource):
|
|
|
493
493
|
or_replace: Optional[pulumi.Input[bool]] = None,
|
|
494
494
|
return_data_type: Optional[pulumi.Input[str]] = None,
|
|
495
495
|
schema: Optional[pulumi.Input[str]] = None,
|
|
496
|
-
signature: Optional[pulumi.Input[
|
|
496
|
+
signature: Optional[pulumi.Input[pulumi.InputType['MaskingPolicySignatureArgs']]] = None,
|
|
497
497
|
__props__=None):
|
|
498
498
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
499
499
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -544,7 +544,7 @@ class MaskingPolicy(pulumi.CustomResource):
|
|
|
544
544
|
qualified_name: Optional[pulumi.Input[str]] = None,
|
|
545
545
|
return_data_type: Optional[pulumi.Input[str]] = None,
|
|
546
546
|
schema: Optional[pulumi.Input[str]] = None,
|
|
547
|
-
signature: Optional[pulumi.Input[
|
|
547
|
+
signature: Optional[pulumi.Input[pulumi.InputType['MaskingPolicySignatureArgs']]] = None) -> 'MaskingPolicy':
|
|
548
548
|
"""
|
|
549
549
|
Get an existing MaskingPolicy resource's state with the given name, id, and optional extra
|
|
550
550
|
properties used to qualify the lookup.
|
|
@@ -562,7 +562,7 @@ class MaskingPolicy(pulumi.CustomResource):
|
|
|
562
562
|
:param pulumi.Input[str] qualified_name: Specifies the qualified identifier for the masking policy.
|
|
563
563
|
:param pulumi.Input[str] return_data_type: Specifies the data type to return.
|
|
564
564
|
:param pulumi.Input[str] schema: The schema in which to create the masking policy.
|
|
565
|
-
:param pulumi.Input[
|
|
565
|
+
:param pulumi.Input[pulumi.InputType['MaskingPolicySignatureArgs']] signature: The signature for the masking policy; specifies the input columns and data types to evaluate at query runtime.
|
|
566
566
|
"""
|
|
567
567
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
568
568
|
|
|
@@ -333,7 +333,7 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
333
333
|
or_replace: Optional[pulumi.Input[bool]] = None,
|
|
334
334
|
schema: Optional[pulumi.Input[str]] = None,
|
|
335
335
|
statement: Optional[pulumi.Input[str]] = None,
|
|
336
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
336
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MaterializedViewTagArgs']]]]] = None,
|
|
337
337
|
warehouse: Optional[pulumi.Input[str]] = None,
|
|
338
338
|
__props__=None):
|
|
339
339
|
"""
|
|
@@ -371,7 +371,7 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
371
371
|
:param pulumi.Input[bool] or_replace: Overwrites the View if it exists.
|
|
372
372
|
:param pulumi.Input[str] schema: The schema in which to create the view. Don't use the | character.
|
|
373
373
|
:param pulumi.Input[str] statement: Specifies the query used to create the view.
|
|
374
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
374
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MaterializedViewTagArgs']]]] tags: Definitions of a tag to associate with the resource.
|
|
375
375
|
:param pulumi.Input[str] warehouse: The warehouse name.
|
|
376
376
|
"""
|
|
377
377
|
...
|
|
@@ -428,7 +428,7 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
428
428
|
or_replace: Optional[pulumi.Input[bool]] = None,
|
|
429
429
|
schema: Optional[pulumi.Input[str]] = None,
|
|
430
430
|
statement: Optional[pulumi.Input[str]] = None,
|
|
431
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
431
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MaterializedViewTagArgs']]]]] = None,
|
|
432
432
|
warehouse: Optional[pulumi.Input[str]] = None,
|
|
433
433
|
__props__=None):
|
|
434
434
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -473,7 +473,7 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
473
473
|
or_replace: Optional[pulumi.Input[bool]] = None,
|
|
474
474
|
schema: Optional[pulumi.Input[str]] = None,
|
|
475
475
|
statement: Optional[pulumi.Input[str]] = None,
|
|
476
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
476
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MaterializedViewTagArgs']]]]] = None,
|
|
477
477
|
warehouse: Optional[pulumi.Input[str]] = None) -> 'MaterializedView':
|
|
478
478
|
"""
|
|
479
479
|
Get an existing MaterializedView resource's state with the given name, id, and optional extra
|
|
@@ -489,7 +489,7 @@ class MaterializedView(pulumi.CustomResource):
|
|
|
489
489
|
:param pulumi.Input[bool] or_replace: Overwrites the View if it exists.
|
|
490
490
|
:param pulumi.Input[str] schema: The schema in which to create the view. Don't use the | character.
|
|
491
491
|
:param pulumi.Input[str] statement: Specifies the query used to create the view.
|
|
492
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
492
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MaterializedViewTagArgs']]]] tags: Definitions of a tag to associate with the resource.
|
|
493
493
|
:param pulumi.Input[str] warehouse: The warehouse name.
|
|
494
494
|
"""
|
|
495
495
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -270,11 +270,22 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
270
270
|
|
|
271
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
272
|
|
|
273
|
-
##
|
|
273
|
+
## Minimal
|
|
274
274
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
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
|
+
}
|
|
278
289
|
|
|
279
290
|
:param str resource_name: The name of the resource.
|
|
280
291
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -296,11 +307,22 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
296
307
|
|
|
297
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.
|
|
298
309
|
|
|
299
|
-
##
|
|
310
|
+
## Minimal
|
|
311
|
+
|
|
312
|
+
resource "NetworkPolicy" "basic" {
|
|
313
|
+
name = "network_policy_name"
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
## Complete (with every optional set)
|
|
300
317
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
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
|
+
}
|
|
304
326
|
|
|
305
327
|
:param str resource_name: The name of the resource.
|
|
306
328
|
:param NetworkPolicyArgs args: The arguments to use to populate this resource's properties.
|
|
@@ -355,9 +377,9 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
355
377
|
blocked_ip_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
356
378
|
blocked_network_rule_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
357
379
|
comment: Optional[pulumi.Input[str]] = None,
|
|
358
|
-
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
380
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NetworkPolicyDescribeOutputArgs']]]]] = None,
|
|
359
381
|
name: Optional[pulumi.Input[str]] = None,
|
|
360
|
-
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
382
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NetworkPolicyShowOutputArgs']]]]] = None) -> 'NetworkPolicy':
|
|
361
383
|
"""
|
|
362
384
|
Get an existing NetworkPolicy resource's state with the given name, id, and optional extra
|
|
363
385
|
properties used to qualify the lookup.
|
|
@@ -370,9 +392,9 @@ class NetworkPolicy(pulumi.CustomResource):
|
|
|
370
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`.
|
|
371
393
|
: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
394
|
:param pulumi.Input[str] comment: Specifies a comment for the network policy.
|
|
373
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
395
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NetworkPolicyDescribeOutputArgs']]]] describe_outputs: Outputs the result of `DESCRIBE NETWORK POLICY` for the given network policy.
|
|
374
396
|
: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.
|
|
375
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
397
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NetworkPolicyShowOutputArgs']]]] show_outputs: Outputs the result of `SHOW NETWORK POLICIES` for the given network policy.
|
|
376
398
|
"""
|
|
377
399
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
378
400
|
|