pulumi-snowflake 0.58.0a1725948527__py3-none-any.whl → 0.58.0a1726066221__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 +5859 -127
- 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 +61 -38
- pulumi_snowflake/get_users.py +96 -33
- pulumi_snowflake/get_views.py +92 -53
- 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 +28 -84
- 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 +11648 -3842
- 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 +28 -48
- pulumi_snowflake/role.py +41 -36
- pulumi_snowflake/row_access_policy.py +28 -34
- 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 +35 -39
- {pulumi_snowflake-0.58.0a1725948527.dist-info → pulumi_snowflake-0.58.0a1726066221.dist-info}/METADATA +1 -1
- pulumi_snowflake-0.58.0a1726066221.dist-info/RECORD +129 -0
- pulumi_snowflake-0.58.0a1725948527.dist-info/RECORD +0 -129
- {pulumi_snowflake-0.58.0a1725948527.dist-info → pulumi_snowflake-0.58.0a1726066221.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-0.58.0a1725948527.dist-info → pulumi_snowflake-0.58.0a1726066221.dist-info}/top_level.txt +0 -0
|
@@ -31,7 +31,7 @@ class OauthIntegrationForPartnerApplicationsArgs:
|
|
|
31
31
|
:param pulumi.Input[str] oauth_client: Creates an OAuth interface between Snowflake and a partner application. Valid options are: `LOOKER` | `TABLEAU_DESKTOP` | `TABLEAU_SERVER`.
|
|
32
32
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
33
33
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
34
|
-
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
34
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
35
35
|
:param pulumi.Input[str] oauth_issue_refresh_tokens: Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
36
36
|
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
|
|
37
37
|
:param pulumi.Input[str] oauth_use_secondary_roles: Specifies whether default secondary roles set in the user properties are activated by default in the session being opened. Valid options are: `IMPLICIT` | `NONE`.
|
|
@@ -105,7 +105,7 @@ class OauthIntegrationForPartnerApplicationsArgs:
|
|
|
105
105
|
@pulumi.getter
|
|
106
106
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
107
107
|
"""
|
|
108
|
-
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
108
|
+
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
109
109
|
"""
|
|
110
110
|
return pulumi.get(self, "name")
|
|
111
111
|
|
|
@@ -166,6 +166,7 @@ class _OauthIntegrationForPartnerApplicationsState:
|
|
|
166
166
|
comment: Optional[pulumi.Input[str]] = None,
|
|
167
167
|
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['OauthIntegrationForPartnerApplicationsDescribeOutputArgs']]]] = None,
|
|
168
168
|
enabled: Optional[pulumi.Input[str]] = None,
|
|
169
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
169
170
|
name: Optional[pulumi.Input[str]] = None,
|
|
170
171
|
oauth_client: Optional[pulumi.Input[str]] = None,
|
|
171
172
|
oauth_issue_refresh_tokens: Optional[pulumi.Input[str]] = None,
|
|
@@ -179,7 +180,8 @@ class _OauthIntegrationForPartnerApplicationsState:
|
|
|
179
180
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
180
181
|
:param pulumi.Input[Sequence[pulumi.Input['OauthIntegrationForPartnerApplicationsDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE SECURITY INTEGRATION` for the given integration.
|
|
181
182
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
182
|
-
:param pulumi.Input[str]
|
|
183
|
+
: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
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
183
185
|
:param pulumi.Input[str] oauth_client: Creates an OAuth interface between Snowflake and a partner application. Valid options are: `LOOKER` | `TABLEAU_DESKTOP` | `TABLEAU_SERVER`.
|
|
184
186
|
:param pulumi.Input[str] oauth_issue_refresh_tokens: Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
185
187
|
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
|
|
@@ -194,6 +196,8 @@ class _OauthIntegrationForPartnerApplicationsState:
|
|
|
194
196
|
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
195
197
|
if enabled is not None:
|
|
196
198
|
pulumi.set(__self__, "enabled", enabled)
|
|
199
|
+
if fully_qualified_name is not None:
|
|
200
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
197
201
|
if name is not None:
|
|
198
202
|
pulumi.set(__self__, "name", name)
|
|
199
203
|
if oauth_client is not None:
|
|
@@ -257,11 +261,23 @@ class _OauthIntegrationForPartnerApplicationsState:
|
|
|
257
261
|
def enabled(self, value: Optional[pulumi.Input[str]]):
|
|
258
262
|
pulumi.set(self, "enabled", value)
|
|
259
263
|
|
|
264
|
+
@property
|
|
265
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
266
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
267
|
+
"""
|
|
268
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
269
|
+
"""
|
|
270
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
271
|
+
|
|
272
|
+
@fully_qualified_name.setter
|
|
273
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
274
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
275
|
+
|
|
260
276
|
@property
|
|
261
277
|
@pulumi.getter
|
|
262
278
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
263
279
|
"""
|
|
264
|
-
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
280
|
+
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
265
281
|
"""
|
|
266
282
|
return pulumi.get(self, "name")
|
|
267
283
|
|
|
@@ -355,10 +371,6 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
355
371
|
oauth_use_secondary_roles: Optional[pulumi.Input[str]] = None,
|
|
356
372
|
__props__=None):
|
|
357
373
|
"""
|
|
358
|
-
!> **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.
|
|
359
|
-
|
|
360
|
-
Resource used to manage oauth security integration for partner applications objects. For more information, check [security integrations documentation](https://docs.snowflake.com/en/sql-reference/sql/create-security-integration-oauth-snowflake).
|
|
361
|
-
|
|
362
374
|
## Import
|
|
363
375
|
|
|
364
376
|
```sh
|
|
@@ -370,7 +382,7 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
370
382
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_roles_lists: A set of Snowflake roles that a user cannot explicitly consent to using after authenticating.
|
|
371
383
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
372
384
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
373
|
-
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
385
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
374
386
|
:param pulumi.Input[str] oauth_client: Creates an OAuth interface between Snowflake and a partner application. Valid options are: `LOOKER` | `TABLEAU_DESKTOP` | `TABLEAU_SERVER`.
|
|
375
387
|
:param pulumi.Input[str] oauth_issue_refresh_tokens: Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
376
388
|
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
|
|
@@ -383,10 +395,6 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
383
395
|
args: OauthIntegrationForPartnerApplicationsArgs,
|
|
384
396
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
385
397
|
"""
|
|
386
|
-
!> **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.
|
|
387
|
-
|
|
388
|
-
Resource used to manage oauth security integration for partner applications objects. For more information, check [security integrations documentation](https://docs.snowflake.com/en/sql-reference/sql/create-security-integration-oauth-snowflake).
|
|
389
|
-
|
|
390
398
|
## Import
|
|
391
399
|
|
|
392
400
|
```sh
|
|
@@ -440,6 +448,7 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
440
448
|
__props__.__dict__["oauth_refresh_token_validity"] = oauth_refresh_token_validity
|
|
441
449
|
__props__.__dict__["oauth_use_secondary_roles"] = oauth_use_secondary_roles
|
|
442
450
|
__props__.__dict__["describe_outputs"] = None
|
|
451
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
443
452
|
__props__.__dict__["show_outputs"] = None
|
|
444
453
|
super(OauthIntegrationForPartnerApplications, __self__).__init__(
|
|
445
454
|
'snowflake:index/oauthIntegrationForPartnerApplications:OauthIntegrationForPartnerApplications',
|
|
@@ -455,6 +464,7 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
455
464
|
comment: Optional[pulumi.Input[str]] = None,
|
|
456
465
|
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OauthIntegrationForPartnerApplicationsDescribeOutputArgs', 'OauthIntegrationForPartnerApplicationsDescribeOutputArgsDict']]]]] = None,
|
|
457
466
|
enabled: Optional[pulumi.Input[str]] = None,
|
|
467
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
458
468
|
name: Optional[pulumi.Input[str]] = None,
|
|
459
469
|
oauth_client: Optional[pulumi.Input[str]] = None,
|
|
460
470
|
oauth_issue_refresh_tokens: Optional[pulumi.Input[str]] = None,
|
|
@@ -473,7 +483,8 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
473
483
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
474
484
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OauthIntegrationForPartnerApplicationsDescribeOutputArgs', 'OauthIntegrationForPartnerApplicationsDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE SECURITY INTEGRATION` for the given integration.
|
|
475
485
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
476
|
-
:param pulumi.Input[str]
|
|
486
|
+
: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
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
477
488
|
:param pulumi.Input[str] oauth_client: Creates an OAuth interface between Snowflake and a partner application. Valid options are: `LOOKER` | `TABLEAU_DESKTOP` | `TABLEAU_SERVER`.
|
|
478
489
|
:param pulumi.Input[str] oauth_issue_refresh_tokens: Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
479
490
|
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
|
|
@@ -488,6 +499,7 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
488
499
|
__props__.__dict__["comment"] = comment
|
|
489
500
|
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
490
501
|
__props__.__dict__["enabled"] = enabled
|
|
502
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
491
503
|
__props__.__dict__["name"] = name
|
|
492
504
|
__props__.__dict__["oauth_client"] = oauth_client
|
|
493
505
|
__props__.__dict__["oauth_issue_refresh_tokens"] = oauth_issue_refresh_tokens
|
|
@@ -529,11 +541,19 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
529
541
|
"""
|
|
530
542
|
return pulumi.get(self, "enabled")
|
|
531
543
|
|
|
544
|
+
@property
|
|
545
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
546
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
547
|
+
"""
|
|
548
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
549
|
+
"""
|
|
550
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
551
|
+
|
|
532
552
|
@property
|
|
533
553
|
@pulumi.getter
|
|
534
554
|
def name(self) -> pulumi.Output[str]:
|
|
535
555
|
"""
|
|
536
|
-
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
556
|
+
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
537
557
|
"""
|
|
538
558
|
return pulumi.get(self, "name")
|
|
539
559
|
|
|
@@ -199,55 +199,6 @@ class ObjectParameter(pulumi.CustomResource):
|
|
|
199
199
|
value: Optional[pulumi.Input[str]] = None,
|
|
200
200
|
__props__=None):
|
|
201
201
|
"""
|
|
202
|
-
## Example Usage
|
|
203
|
-
|
|
204
|
-
```python
|
|
205
|
-
import pulumi
|
|
206
|
-
import pulumi_snowflake as snowflake
|
|
207
|
-
|
|
208
|
-
d = snowflake.Database("d", name="TEST_DB")
|
|
209
|
-
o = snowflake.ObjectParameter("o",
|
|
210
|
-
key="SUSPEND_TASK_AFTER_NUM_FAILURES",
|
|
211
|
-
value="33",
|
|
212
|
-
object_type="DATABASE",
|
|
213
|
-
object_identifiers=[{
|
|
214
|
-
"name": d.name,
|
|
215
|
-
}])
|
|
216
|
-
s = snowflake.Schema("s",
|
|
217
|
-
name="TEST_SCHEMA",
|
|
218
|
-
database=d.name)
|
|
219
|
-
o2 = snowflake.ObjectParameter("o2",
|
|
220
|
-
key="USER_TASK_TIMEOUT_MS",
|
|
221
|
-
value="500",
|
|
222
|
-
object_type="SCHEMA",
|
|
223
|
-
object_identifiers=[{
|
|
224
|
-
"database": d.name,
|
|
225
|
-
"name": s.name,
|
|
226
|
-
}])
|
|
227
|
-
t = snowflake.Table("t",
|
|
228
|
-
name="TEST_TABLE",
|
|
229
|
-
database=d.name,
|
|
230
|
-
schema=s.name,
|
|
231
|
-
columns=[{
|
|
232
|
-
"name": "id",
|
|
233
|
-
"type": "NUMBER",
|
|
234
|
-
}])
|
|
235
|
-
o3 = snowflake.ObjectParameter("o3",
|
|
236
|
-
key="DATA_RETENTION_TIME_IN_DAYS",
|
|
237
|
-
value="89",
|
|
238
|
-
object_type="TABLE",
|
|
239
|
-
object_identifiers=[{
|
|
240
|
-
"database": d.name,
|
|
241
|
-
"schema": s.name,
|
|
242
|
-
"name": t.name,
|
|
243
|
-
}])
|
|
244
|
-
# Setting object parameter at account level
|
|
245
|
-
o4 = snowflake.ObjectParameter("o4",
|
|
246
|
-
key="DATA_RETENTION_TIME_IN_DAYS",
|
|
247
|
-
value="89",
|
|
248
|
-
on_account=True)
|
|
249
|
-
```
|
|
250
|
-
|
|
251
202
|
## Import
|
|
252
203
|
|
|
253
204
|
```sh
|
|
@@ -269,55 +220,6 @@ class ObjectParameter(pulumi.CustomResource):
|
|
|
269
220
|
args: ObjectParameterArgs,
|
|
270
221
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
271
222
|
"""
|
|
272
|
-
## Example Usage
|
|
273
|
-
|
|
274
|
-
```python
|
|
275
|
-
import pulumi
|
|
276
|
-
import pulumi_snowflake as snowflake
|
|
277
|
-
|
|
278
|
-
d = snowflake.Database("d", name="TEST_DB")
|
|
279
|
-
o = snowflake.ObjectParameter("o",
|
|
280
|
-
key="SUSPEND_TASK_AFTER_NUM_FAILURES",
|
|
281
|
-
value="33",
|
|
282
|
-
object_type="DATABASE",
|
|
283
|
-
object_identifiers=[{
|
|
284
|
-
"name": d.name,
|
|
285
|
-
}])
|
|
286
|
-
s = snowflake.Schema("s",
|
|
287
|
-
name="TEST_SCHEMA",
|
|
288
|
-
database=d.name)
|
|
289
|
-
o2 = snowflake.ObjectParameter("o2",
|
|
290
|
-
key="USER_TASK_TIMEOUT_MS",
|
|
291
|
-
value="500",
|
|
292
|
-
object_type="SCHEMA",
|
|
293
|
-
object_identifiers=[{
|
|
294
|
-
"database": d.name,
|
|
295
|
-
"name": s.name,
|
|
296
|
-
}])
|
|
297
|
-
t = snowflake.Table("t",
|
|
298
|
-
name="TEST_TABLE",
|
|
299
|
-
database=d.name,
|
|
300
|
-
schema=s.name,
|
|
301
|
-
columns=[{
|
|
302
|
-
"name": "id",
|
|
303
|
-
"type": "NUMBER",
|
|
304
|
-
}])
|
|
305
|
-
o3 = snowflake.ObjectParameter("o3",
|
|
306
|
-
key="DATA_RETENTION_TIME_IN_DAYS",
|
|
307
|
-
value="89",
|
|
308
|
-
object_type="TABLE",
|
|
309
|
-
object_identifiers=[{
|
|
310
|
-
"database": d.name,
|
|
311
|
-
"schema": s.name,
|
|
312
|
-
"name": t.name,
|
|
313
|
-
}])
|
|
314
|
-
# Setting object parameter at account level
|
|
315
|
-
o4 = snowflake.ObjectParameter("o4",
|
|
316
|
-
key="DATA_RETENTION_TIME_IN_DAYS",
|
|
317
|
-
value="89",
|
|
318
|
-
on_account=True)
|
|
319
|
-
```
|
|
320
|
-
|
|
321
223
|
## Import
|
|
322
224
|
|
|
323
225
|
```sh
|