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.

Files changed (80) hide show
  1. pulumi_snowflake/_inputs.py +5859 -127
  2. pulumi_snowflake/account.py +28 -50
  3. pulumi_snowflake/account_parameter.py +0 -28
  4. pulumi_snowflake/account_password_policy_attachment.py +2 -30
  5. pulumi_snowflake/account_role.py +41 -36
  6. pulumi_snowflake/alert.py +28 -40
  7. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +35 -15
  8. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +35 -15
  9. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +35 -15
  10. pulumi_snowflake/api_integration.py +28 -54
  11. pulumi_snowflake/cortex_search_service.py +28 -76
  12. pulumi_snowflake/database.py +82 -15
  13. pulumi_snowflake/database_old.py +0 -72
  14. pulumi_snowflake/database_role.py +76 -42
  15. pulumi_snowflake/dynamic_table.py +28 -38
  16. pulumi_snowflake/email_notification_integration.py +28 -26
  17. pulumi_snowflake/external_function.py +28 -52
  18. pulumi_snowflake/external_oauth_integration.py +35 -15
  19. pulumi_snowflake/external_table.py +28 -48
  20. pulumi_snowflake/failover_group.py +28 -72
  21. pulumi_snowflake/file_format.py +28 -26
  22. pulumi_snowflake/function.py +28 -4
  23. pulumi_snowflake/get_database_roles.py +61 -38
  24. pulumi_snowflake/get_users.py +96 -33
  25. pulumi_snowflake/get_views.py +92 -53
  26. pulumi_snowflake/grant_account_role.py +0 -4
  27. pulumi_snowflake/grant_application_role.py +0 -4
  28. pulumi_snowflake/grant_database_role.py +0 -4
  29. pulumi_snowflake/grant_privileges_to_account_role.py +4 -4
  30. pulumi_snowflake/grant_privileges_to_database_role.py +6 -2
  31. pulumi_snowflake/grant_privileges_to_share.py +49 -2
  32. pulumi_snowflake/managed_account.py +28 -4
  33. pulumi_snowflake/masking_policy.py +28 -84
  34. pulumi_snowflake/materialized_view.py +28 -34
  35. pulumi_snowflake/network_policy.py +35 -15
  36. pulumi_snowflake/network_policy_attachment.py +0 -30
  37. pulumi_snowflake/network_rule.py +28 -66
  38. pulumi_snowflake/notification_integration.py +28 -34
  39. pulumi_snowflake/oauth_integration.py +0 -34
  40. pulumi_snowflake/oauth_integration_for_custom_clients.py +35 -101
  41. pulumi_snowflake/oauth_integration_for_partner_applications.py +35 -15
  42. pulumi_snowflake/object_parameter.py +0 -98
  43. pulumi_snowflake/outputs.py +11648 -3842
  44. pulumi_snowflake/password_policy.py +28 -28
  45. pulumi_snowflake/pipe.py +28 -4
  46. pulumi_snowflake/procedure.py +28 -4
  47. pulumi_snowflake/pulumi-plugin.json +1 -1
  48. pulumi_snowflake/resource_monitor.py +28 -48
  49. pulumi_snowflake/role.py +41 -36
  50. pulumi_snowflake/row_access_policy.py +28 -34
  51. pulumi_snowflake/saml2_integration.py +35 -15
  52. pulumi_snowflake/saml_integration.py +0 -34
  53. pulumi_snowflake/schema.py +39 -19
  54. pulumi_snowflake/scim_integration.py +35 -15
  55. pulumi_snowflake/secondary_database.py +35 -19
  56. pulumi_snowflake/sequence.py +4 -36
  57. pulumi_snowflake/session_parameter.py +0 -32
  58. pulumi_snowflake/share.py +28 -28
  59. pulumi_snowflake/shared_database.py +35 -15
  60. pulumi_snowflake/stage.py +28 -28
  61. pulumi_snowflake/storage_integration.py +28 -4
  62. pulumi_snowflake/stream.py +28 -4
  63. pulumi_snowflake/streamlit.py +36 -16
  64. pulumi_snowflake/table.py +28 -32
  65. pulumi_snowflake/table_column_masking_policy_application.py +2 -14
  66. pulumi_snowflake/table_constraint.py +0 -152
  67. pulumi_snowflake/tag.py +28 -40
  68. pulumi_snowflake/tag_association.py +0 -120
  69. pulumi_snowflake/tag_masking_policy_association.py +0 -4
  70. pulumi_snowflake/task.py +28 -92
  71. pulumi_snowflake/unsafe_execute.py +2 -20
  72. pulumi_snowflake/user.py +3341 -368
  73. pulumi_snowflake/user_password_policy_attachment.py +0 -46
  74. pulumi_snowflake/view.py +465 -185
  75. pulumi_snowflake/warehouse.py +35 -39
  76. {pulumi_snowflake-0.58.0a1725948527.dist-info → pulumi_snowflake-0.58.0a1726066221.dist-info}/METADATA +1 -1
  77. pulumi_snowflake-0.58.0a1726066221.dist-info/RECORD +129 -0
  78. pulumi_snowflake-0.58.0a1725948527.dist-info/RECORD +0 -129
  79. {pulumi_snowflake-0.58.0a1725948527.dist-info → pulumi_snowflake-0.58.0a1726066221.dist-info}/WHEEL +0 -0
  80. {pulumi_snowflake-0.58.0a1725948527.dist-info → pulumi_snowflake-0.58.0a1726066221.dist-info}/top_level.txt +0 -0
@@ -9,6 +9,7 @@ import pulumi.runtime
9
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from . import _utilities
11
11
  from . import outputs
12
+ from ._inputs import *
12
13
 
13
14
  __all__ = [
14
15
  'GetViewsResult',
@@ -22,52 +23,85 @@ class GetViewsResult:
22
23
  """
23
24
  A collection of values returned by getViews.
24
25
  """
25
- def __init__(__self__, database=None, id=None, schema=None, views=None):
26
- if database and not isinstance(database, str):
27
- raise TypeError("Expected argument 'database' to be a str")
28
- pulumi.set(__self__, "database", database)
26
+ def __init__(__self__, id=None, in_=None, like=None, limit=None, starts_with=None, views=None, with_describe=None):
29
27
  if id and not isinstance(id, str):
30
28
  raise TypeError("Expected argument 'id' to be a str")
31
29
  pulumi.set(__self__, "id", id)
32
- if schema and not isinstance(schema, str):
33
- raise TypeError("Expected argument 'schema' to be a str")
34
- pulumi.set(__self__, "schema", schema)
30
+ if in_ and not isinstance(in_, dict):
31
+ raise TypeError("Expected argument 'in_' to be a dict")
32
+ pulumi.set(__self__, "in_", in_)
33
+ if like and not isinstance(like, str):
34
+ raise TypeError("Expected argument 'like' to be a str")
35
+ pulumi.set(__self__, "like", like)
36
+ if limit and not isinstance(limit, dict):
37
+ raise TypeError("Expected argument 'limit' to be a dict")
38
+ pulumi.set(__self__, "limit", limit)
39
+ if starts_with and not isinstance(starts_with, str):
40
+ raise TypeError("Expected argument 'starts_with' to be a str")
41
+ pulumi.set(__self__, "starts_with", starts_with)
35
42
  if views and not isinstance(views, list):
36
43
  raise TypeError("Expected argument 'views' to be a list")
37
44
  pulumi.set(__self__, "views", views)
45
+ if with_describe and not isinstance(with_describe, bool):
46
+ raise TypeError("Expected argument 'with_describe' to be a bool")
47
+ pulumi.set(__self__, "with_describe", with_describe)
38
48
 
39
49
  @property
40
50
  @pulumi.getter
41
- def database(self) -> str:
51
+ def id(self) -> str:
52
+ """
53
+ The provider-assigned unique ID for this managed resource.
54
+ """
55
+ return pulumi.get(self, "id")
56
+
57
+ @property
58
+ @pulumi.getter(name="in")
59
+ def in_(self) -> Optional['outputs.GetViewsInResult']:
42
60
  """
43
- The database from which to return the schemas from.
61
+ IN clause to filter the list of views
44
62
  """
45
- return pulumi.get(self, "database")
63
+ return pulumi.get(self, "in_")
46
64
 
47
65
  @property
48
66
  @pulumi.getter
49
- def id(self) -> str:
67
+ def like(self) -> Optional[str]:
50
68
  """
51
- The provider-assigned unique ID for this managed resource.
69
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
52
70
  """
53
- return pulumi.get(self, "id")
71
+ return pulumi.get(self, "like")
54
72
 
55
73
  @property
56
74
  @pulumi.getter
57
- def schema(self) -> str:
75
+ def limit(self) -> Optional['outputs.GetViewsLimitResult']:
76
+ """
77
+ 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`.
78
+ """
79
+ return pulumi.get(self, "limit")
80
+
81
+ @property
82
+ @pulumi.getter(name="startsWith")
83
+ def starts_with(self) -> Optional[str]:
58
84
  """
59
- The schema from which to return the views from.
85
+ Filters the output with **case-sensitive** characters indicating the beginning of the object name.
60
86
  """
61
- return pulumi.get(self, "schema")
87
+ return pulumi.get(self, "starts_with")
62
88
 
63
89
  @property
64
90
  @pulumi.getter
65
91
  def views(self) -> Sequence['outputs.GetViewsViewResult']:
66
92
  """
67
- The views in the schema
93
+ Holds the aggregated output of all views details queries.
68
94
  """
69
95
  return pulumi.get(self, "views")
70
96
 
97
+ @property
98
+ @pulumi.getter(name="withDescribe")
99
+ def with_describe(self) -> Optional[bool]:
100
+ """
101
+ Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
102
+ """
103
+ return pulumi.get(self, "with_describe")
104
+
71
105
 
72
106
  class AwaitableGetViewsResult(GetViewsResult):
73
107
  # pylint: disable=using-constant-test
@@ -75,60 +109,65 @@ class AwaitableGetViewsResult(GetViewsResult):
75
109
  if False:
76
110
  yield self
77
111
  return GetViewsResult(
78
- database=self.database,
79
112
  id=self.id,
80
- schema=self.schema,
81
- views=self.views)
82
-
83
-
84
- def get_views(database: Optional[str] = None,
85
- schema: Optional[str] = None,
113
+ in_=self.in_,
114
+ like=self.like,
115
+ limit=self.limit,
116
+ starts_with=self.starts_with,
117
+ views=self.views,
118
+ with_describe=self.with_describe)
119
+
120
+
121
+ def get_views(in_: Optional[Union['GetViewsInArgs', 'GetViewsInArgsDict']] = None,
122
+ like: Optional[str] = None,
123
+ limit: Optional[Union['GetViewsLimitArgs', 'GetViewsLimitArgsDict']] = None,
124
+ starts_with: Optional[str] = None,
125
+ with_describe: Optional[bool] = None,
86
126
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetViewsResult:
87
127
  """
88
- ## Example Usage
89
-
90
- ```python
91
- import pulumi
92
- import pulumi_snowflake as snowflake
128
+ Datasource used to get details of filtered views. Filtering is aligned with the current possibilities for [SHOW VIEWS](https://docs.snowflake.com/en/sql-reference/sql/show-views) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `views`.
93
129
 
94
- current = snowflake.get_views(database="MYDB",
95
- schema="MYSCHEMA")
96
- ```
97
130
 
98
-
99
- :param str database: The database from which to return the schemas from.
100
- :param str schema: The schema from which to return the views from.
131
+ :param Union['GetViewsInArgs', 'GetViewsInArgsDict'] in_: IN clause to filter the list of views
132
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
133
+ :param Union['GetViewsLimitArgs', 'GetViewsLimitArgsDict'] 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`.
134
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
135
+ :param bool with_describe: Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
101
136
  """
102
137
  __args__ = dict()
103
- __args__['database'] = database
104
- __args__['schema'] = schema
138
+ __args__['in'] = in_
139
+ __args__['like'] = like
140
+ __args__['limit'] = limit
141
+ __args__['startsWith'] = starts_with
142
+ __args__['withDescribe'] = with_describe
105
143
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
106
144
  __ret__ = pulumi.runtime.invoke('snowflake:index/getViews:getViews', __args__, opts=opts, typ=GetViewsResult).value
107
145
 
108
146
  return AwaitableGetViewsResult(
109
- database=pulumi.get(__ret__, 'database'),
110
147
  id=pulumi.get(__ret__, 'id'),
111
- schema=pulumi.get(__ret__, 'schema'),
112
- views=pulumi.get(__ret__, 'views'))
148
+ in_=pulumi.get(__ret__, 'in_'),
149
+ like=pulumi.get(__ret__, 'like'),
150
+ limit=pulumi.get(__ret__, 'limit'),
151
+ starts_with=pulumi.get(__ret__, 'starts_with'),
152
+ views=pulumi.get(__ret__, 'views'),
153
+ with_describe=pulumi.get(__ret__, 'with_describe'))
113
154
 
114
155
 
115
156
  @_utilities.lift_output_func(get_views)
116
- def get_views_output(database: Optional[pulumi.Input[str]] = None,
117
- schema: Optional[pulumi.Input[str]] = None,
157
+ def get_views_output(in_: Optional[pulumi.Input[Optional[Union['GetViewsInArgs', 'GetViewsInArgsDict']]]] = None,
158
+ like: Optional[pulumi.Input[Optional[str]]] = None,
159
+ limit: Optional[pulumi.Input[Optional[Union['GetViewsLimitArgs', 'GetViewsLimitArgsDict']]]] = None,
160
+ starts_with: Optional[pulumi.Input[Optional[str]]] = None,
161
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
118
162
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetViewsResult]:
119
163
  """
120
- ## Example Usage
121
-
122
- ```python
123
- import pulumi
124
- import pulumi_snowflake as snowflake
125
-
126
- current = snowflake.get_views(database="MYDB",
127
- schema="MYSCHEMA")
128
- ```
164
+ Datasource used to get details of filtered views. Filtering is aligned with the current possibilities for [SHOW VIEWS](https://docs.snowflake.com/en/sql-reference/sql/show-views) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `views`.
129
165
 
130
166
 
131
- :param str database: The database from which to return the schemas from.
132
- :param str schema: The schema from which to return the views from.
167
+ :param Union['GetViewsInArgs', 'GetViewsInArgsDict'] in_: IN clause to filter the list of views
168
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
169
+ :param Union['GetViewsLimitArgs', 'GetViewsLimitArgsDict'] 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`.
170
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
171
+ :param bool with_describe: Runs DESC VIEW for each view returned by SHOW VIEWS. The output of describe is saved to the description field. By default this value is set to true.
133
172
  """
134
173
  ...
@@ -132,8 +132,6 @@ class GrantAccountRole(pulumi.CustomResource):
132
132
  user_name: Optional[pulumi.Input[str]] = None,
133
133
  __props__=None):
134
134
  """
135
- ## Example Usage
136
-
137
135
  ## Import
138
136
 
139
137
  format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
@@ -155,8 +153,6 @@ class GrantAccountRole(pulumi.CustomResource):
155
153
  args: GrantAccountRoleArgs,
156
154
  opts: Optional[pulumi.ResourceOptions] = None):
157
155
  """
158
- ## Example Usage
159
-
160
156
  ## Import
161
157
 
162
158
  format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
@@ -132,8 +132,6 @@ class GrantApplicationRole(pulumi.CustomResource):
132
132
  parent_account_role_name: Optional[pulumi.Input[str]] = None,
133
133
  __props__=None):
134
134
  """
135
- ## Example Usage
136
-
137
135
  ## Import
138
136
 
139
137
  format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string)
@@ -155,8 +153,6 @@ class GrantApplicationRole(pulumi.CustomResource):
155
153
  args: GrantApplicationRoleArgs,
156
154
  opts: Optional[pulumi.ResourceOptions] = None):
157
155
  """
158
- ## Example Usage
159
-
160
156
  ## Import
161
157
 
162
158
  format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string)
@@ -165,8 +165,6 @@ class GrantDatabaseRole(pulumi.CustomResource):
165
165
  share_name: Optional[pulumi.Input[str]] = None,
166
166
  __props__=None):
167
167
  """
168
- ## Example Usage
169
-
170
168
  ## Import
171
169
 
172
170
  format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
@@ -189,8 +187,6 @@ class GrantDatabaseRole(pulumi.CustomResource):
189
187
  args: GrantDatabaseRoleArgs,
190
188
  opts: Optional[pulumi.ResourceOptions] = None):
191
189
  """
192
- ## Example Usage
193
-
194
190
  ## Import
195
191
 
196
192
  format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
@@ -357,9 +357,9 @@ class GrantPrivilegesToAccountRole(pulumi.CustomResource):
357
357
  with_grant_option: Optional[pulumi.Input[bool]] = None,
358
358
  __props__=None):
359
359
  """
360
- !> **Warning** Be careful when using `always_apply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
360
+ ## Import
361
361
 
362
- > **Note** When granting privileges on applications (for example, the default "SNOWFLAKE" application) use `on_account_object.object_type = "DATABASE"` instead.
362
+ ### Import examples
363
363
 
364
364
  #### Grant all privileges OnAccountObject (Database)
365
365
 
@@ -404,9 +404,9 @@ class GrantPrivilegesToAccountRole(pulumi.CustomResource):
404
404
  args: GrantPrivilegesToAccountRoleArgs,
405
405
  opts: Optional[pulumi.ResourceOptions] = None):
406
406
  """
407
- !> **Warning** Be careful when using `always_apply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
407
+ ## Import
408
408
 
409
- > **Note** When granting privileges on applications (for example, the default "SNOWFLAKE" application) use `on_account_object.object_type = "DATABASE"` instead.
409
+ ### Import examples
410
410
 
411
411
  #### Grant all privileges OnAccountObject (Database)
412
412
 
@@ -324,7 +324,9 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
324
324
  with_grant_option: Optional[pulumi.Input[bool]] = None,
325
325
  __props__=None):
326
326
  """
327
- !> **Warning** Be careful when using `always_apply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
327
+ ## Import
328
+
329
+ ### Import examples
328
330
 
329
331
  #### Grant all privileges OnDatabase
330
332
 
@@ -368,7 +370,9 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
368
370
  args: GrantPrivilegesToDatabaseRoleArgs,
369
371
  opts: Optional[pulumi.ResourceOptions] = None):
370
372
  """
371
- !> **Warning** Be careful when using `always_apply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
373
+ ## Import
374
+
375
+ ### Import examples
372
376
 
373
377
  #### Grant all privileges OnDatabase
374
378
 
@@ -18,6 +18,7 @@ class GrantPrivilegesToShareArgs:
18
18
  to_share: pulumi.Input[str],
19
19
  on_all_tables_in_schema: Optional[pulumi.Input[str]] = None,
20
20
  on_database: Optional[pulumi.Input[str]] = None,
21
+ on_function: Optional[pulumi.Input[str]] = None,
21
22
  on_schema: Optional[pulumi.Input[str]] = None,
22
23
  on_table: Optional[pulumi.Input[str]] = None,
23
24
  on_tag: Optional[pulumi.Input[str]] = None,
@@ -28,6 +29,7 @@ class GrantPrivilegesToShareArgs:
28
29
  :param pulumi.Input[str] to_share: The fully qualified name of the share on which privileges will be granted.
29
30
  :param pulumi.Input[str] on_all_tables_in_schema: The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
30
31
  :param pulumi.Input[str] on_database: The fully qualified name of the database on which privileges will be granted.
32
+ :param pulumi.Input[str] on_function: The fully qualified name of the function on which privileges will be granted.
31
33
  :param pulumi.Input[str] on_schema: The fully qualified name of the schema on which privileges will be granted.
32
34
  :param pulumi.Input[str] on_table: The fully qualified name of the table on which privileges will be granted.
33
35
  :param pulumi.Input[str] on_tag: The fully qualified name of the tag on which privileges will be granted.
@@ -39,6 +41,8 @@ class GrantPrivilegesToShareArgs:
39
41
  pulumi.set(__self__, "on_all_tables_in_schema", on_all_tables_in_schema)
40
42
  if on_database is not None:
41
43
  pulumi.set(__self__, "on_database", on_database)
44
+ if on_function is not None:
45
+ pulumi.set(__self__, "on_function", on_function)
42
46
  if on_schema is not None:
43
47
  pulumi.set(__self__, "on_schema", on_schema)
44
48
  if on_table is not None:
@@ -96,6 +100,18 @@ class GrantPrivilegesToShareArgs:
96
100
  def on_database(self, value: Optional[pulumi.Input[str]]):
97
101
  pulumi.set(self, "on_database", value)
98
102
 
103
+ @property
104
+ @pulumi.getter(name="onFunction")
105
+ def on_function(self) -> Optional[pulumi.Input[str]]:
106
+ """
107
+ The fully qualified name of the function on which privileges will be granted.
108
+ """
109
+ return pulumi.get(self, "on_function")
110
+
111
+ @on_function.setter
112
+ def on_function(self, value: Optional[pulumi.Input[str]]):
113
+ pulumi.set(self, "on_function", value)
114
+
99
115
  @property
100
116
  @pulumi.getter(name="onSchema")
101
117
  def on_schema(self) -> Optional[pulumi.Input[str]]:
@@ -150,6 +166,7 @@ class _GrantPrivilegesToShareState:
150
166
  def __init__(__self__, *,
151
167
  on_all_tables_in_schema: Optional[pulumi.Input[str]] = None,
152
168
  on_database: Optional[pulumi.Input[str]] = None,
169
+ on_function: Optional[pulumi.Input[str]] = None,
153
170
  on_schema: Optional[pulumi.Input[str]] = None,
154
171
  on_table: Optional[pulumi.Input[str]] = None,
155
172
  on_tag: Optional[pulumi.Input[str]] = None,
@@ -160,6 +177,7 @@ class _GrantPrivilegesToShareState:
160
177
  Input properties used for looking up and filtering GrantPrivilegesToShare resources.
161
178
  :param pulumi.Input[str] on_all_tables_in_schema: The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
162
179
  :param pulumi.Input[str] on_database: The fully qualified name of the database on which privileges will be granted.
180
+ :param pulumi.Input[str] on_function: The fully qualified name of the function on which privileges will be granted.
163
181
  :param pulumi.Input[str] on_schema: The fully qualified name of the schema on which privileges will be granted.
164
182
  :param pulumi.Input[str] on_table: The fully qualified name of the table on which privileges will be granted.
165
183
  :param pulumi.Input[str] on_tag: The fully qualified name of the tag on which privileges will be granted.
@@ -171,6 +189,8 @@ class _GrantPrivilegesToShareState:
171
189
  pulumi.set(__self__, "on_all_tables_in_schema", on_all_tables_in_schema)
172
190
  if on_database is not None:
173
191
  pulumi.set(__self__, "on_database", on_database)
192
+ if on_function is not None:
193
+ pulumi.set(__self__, "on_function", on_function)
174
194
  if on_schema is not None:
175
195
  pulumi.set(__self__, "on_schema", on_schema)
176
196
  if on_table is not None:
@@ -208,6 +228,18 @@ class _GrantPrivilegesToShareState:
208
228
  def on_database(self, value: Optional[pulumi.Input[str]]):
209
229
  pulumi.set(self, "on_database", value)
210
230
 
231
+ @property
232
+ @pulumi.getter(name="onFunction")
233
+ def on_function(self) -> Optional[pulumi.Input[str]]:
234
+ """
235
+ The fully qualified name of the function on which privileges will be granted.
236
+ """
237
+ return pulumi.get(self, "on_function")
238
+
239
+ @on_function.setter
240
+ def on_function(self, value: Optional[pulumi.Input[str]]):
241
+ pulumi.set(self, "on_function", value)
242
+
211
243
  @property
212
244
  @pulumi.getter(name="onSchema")
213
245
  def on_schema(self) -> Optional[pulumi.Input[str]]:
@@ -288,6 +320,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
288
320
  opts: Optional[pulumi.ResourceOptions] = None,
289
321
  on_all_tables_in_schema: Optional[pulumi.Input[str]] = None,
290
322
  on_database: Optional[pulumi.Input[str]] = None,
323
+ on_function: Optional[pulumi.Input[str]] = None,
291
324
  on_schema: Optional[pulumi.Input[str]] = None,
292
325
  on_table: Optional[pulumi.Input[str]] = None,
293
326
  on_tag: Optional[pulumi.Input[str]] = None,
@@ -296,7 +329,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
296
329
  to_share: Optional[pulumi.Input[str]] = None,
297
330
  __props__=None):
298
331
  """
299
- ## Example Usage
332
+ ## Import
300
333
 
301
334
  ### OnView
302
335
 
@@ -308,6 +341,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
308
341
  :param pulumi.ResourceOptions opts: Options for the resource.
309
342
  :param pulumi.Input[str] on_all_tables_in_schema: The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
310
343
  :param pulumi.Input[str] on_database: The fully qualified name of the database on which privileges will be granted.
344
+ :param pulumi.Input[str] on_function: The fully qualified name of the function on which privileges will be granted.
311
345
  :param pulumi.Input[str] on_schema: The fully qualified name of the schema on which privileges will be granted.
312
346
  :param pulumi.Input[str] on_table: The fully qualified name of the table on which privileges will be granted.
313
347
  :param pulumi.Input[str] on_tag: The fully qualified name of the tag on which privileges will be granted.
@@ -322,7 +356,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
322
356
  args: GrantPrivilegesToShareArgs,
323
357
  opts: Optional[pulumi.ResourceOptions] = None):
324
358
  """
325
- ## Example Usage
359
+ ## Import
326
360
 
327
361
  ### OnView
328
362
 
@@ -347,6 +381,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
347
381
  opts: Optional[pulumi.ResourceOptions] = None,
348
382
  on_all_tables_in_schema: Optional[pulumi.Input[str]] = None,
349
383
  on_database: Optional[pulumi.Input[str]] = None,
384
+ on_function: Optional[pulumi.Input[str]] = None,
350
385
  on_schema: Optional[pulumi.Input[str]] = None,
351
386
  on_table: Optional[pulumi.Input[str]] = None,
352
387
  on_tag: Optional[pulumi.Input[str]] = None,
@@ -364,6 +399,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
364
399
 
365
400
  __props__.__dict__["on_all_tables_in_schema"] = on_all_tables_in_schema
366
401
  __props__.__dict__["on_database"] = on_database
402
+ __props__.__dict__["on_function"] = on_function
367
403
  __props__.__dict__["on_schema"] = on_schema
368
404
  __props__.__dict__["on_table"] = on_table
369
405
  __props__.__dict__["on_tag"] = on_tag
@@ -386,6 +422,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
386
422
  opts: Optional[pulumi.ResourceOptions] = None,
387
423
  on_all_tables_in_schema: Optional[pulumi.Input[str]] = None,
388
424
  on_database: Optional[pulumi.Input[str]] = None,
425
+ on_function: Optional[pulumi.Input[str]] = None,
389
426
  on_schema: Optional[pulumi.Input[str]] = None,
390
427
  on_table: Optional[pulumi.Input[str]] = None,
391
428
  on_tag: Optional[pulumi.Input[str]] = None,
@@ -401,6 +438,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
401
438
  :param pulumi.ResourceOptions opts: Options for the resource.
402
439
  :param pulumi.Input[str] on_all_tables_in_schema: The fully qualified identifier for the schema for which the specified privilege will be granted for all tables.
403
440
  :param pulumi.Input[str] on_database: The fully qualified name of the database on which privileges will be granted.
441
+ :param pulumi.Input[str] on_function: The fully qualified name of the function on which privileges will be granted.
404
442
  :param pulumi.Input[str] on_schema: The fully qualified name of the schema on which privileges will be granted.
405
443
  :param pulumi.Input[str] on_table: The fully qualified name of the table on which privileges will be granted.
406
444
  :param pulumi.Input[str] on_tag: The fully qualified name of the tag on which privileges will be granted.
@@ -414,6 +452,7 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
414
452
 
415
453
  __props__.__dict__["on_all_tables_in_schema"] = on_all_tables_in_schema
416
454
  __props__.__dict__["on_database"] = on_database
455
+ __props__.__dict__["on_function"] = on_function
417
456
  __props__.__dict__["on_schema"] = on_schema
418
457
  __props__.__dict__["on_table"] = on_table
419
458
  __props__.__dict__["on_tag"] = on_tag
@@ -438,6 +477,14 @@ class GrantPrivilegesToShare(pulumi.CustomResource):
438
477
  """
439
478
  return pulumi.get(self, "on_database")
440
479
 
480
+ @property
481
+ @pulumi.getter(name="onFunction")
482
+ def on_function(self) -> pulumi.Output[Optional[str]]:
483
+ """
484
+ The fully qualified name of the function on which privileges will be granted.
485
+ """
486
+ return pulumi.get(self, "on_function")
487
+
441
488
  @property
442
489
  @pulumi.getter(name="onSchema")
443
490
  def on_schema(self) -> pulumi.Output[Optional[str]]:
@@ -105,6 +105,7 @@ class _ManagedAccountState:
105
105
  cloud: Optional[pulumi.Input[str]] = None,
106
106
  comment: Optional[pulumi.Input[str]] = None,
107
107
  created_on: Optional[pulumi.Input[str]] = None,
108
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
108
109
  locator: Optional[pulumi.Input[str]] = None,
109
110
  name: Optional[pulumi.Input[str]] = None,
110
111
  region: Optional[pulumi.Input[str]] = None,
@@ -117,6 +118,7 @@ class _ManagedAccountState:
117
118
  :param pulumi.Input[str] cloud: Cloud in which the managed account is located.
118
119
  :param pulumi.Input[str] comment: Specifies a comment for the managed account.
119
120
  :param pulumi.Input[str] created_on: Date and time when the managed account was created.
121
+ :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).
120
122
  :param pulumi.Input[str] locator: Display name of the managed account.
121
123
  :param pulumi.Input[str] name: Identifier for the managed account; must be unique for your account.
122
124
  :param pulumi.Input[str] region: Snowflake Region in which the managed account is located.
@@ -133,6 +135,8 @@ class _ManagedAccountState:
133
135
  pulumi.set(__self__, "comment", comment)
134
136
  if created_on is not None:
135
137
  pulumi.set(__self__, "created_on", created_on)
138
+ if fully_qualified_name is not None:
139
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
136
140
  if locator is not None:
137
141
  pulumi.set(__self__, "locator", locator)
138
142
  if name is not None:
@@ -204,6 +208,18 @@ class _ManagedAccountState:
204
208
  def created_on(self, value: Optional[pulumi.Input[str]]):
205
209
  pulumi.set(self, "created_on", value)
206
210
 
211
+ @property
212
+ @pulumi.getter(name="fullyQualifiedName")
213
+ def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
214
+ """
215
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
216
+ """
217
+ return pulumi.get(self, "fully_qualified_name")
218
+
219
+ @fully_qualified_name.setter
220
+ def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
221
+ pulumi.set(self, "fully_qualified_name", value)
222
+
207
223
  @property
208
224
  @pulumi.getter
209
225
  def locator(self) -> Optional[pulumi.Input[str]]:
@@ -277,8 +293,6 @@ class ManagedAccount(pulumi.CustomResource):
277
293
  type: Optional[pulumi.Input[str]] = None,
278
294
  __props__=None):
279
295
  """
280
- ## Example Usage
281
-
282
296
  ## Import
283
297
 
284
298
  ```sh
@@ -300,8 +314,6 @@ class ManagedAccount(pulumi.CustomResource):
300
314
  args: ManagedAccountArgs,
301
315
  opts: Optional[pulumi.ResourceOptions] = None):
302
316
  """
303
- ## Example Usage
304
-
305
317
  ## Import
306
318
 
307
319
  ```sh
@@ -348,6 +360,7 @@ class ManagedAccount(pulumi.CustomResource):
348
360
  __props__.__dict__["type"] = type
349
361
  __props__.__dict__["cloud"] = None
350
362
  __props__.__dict__["created_on"] = None
363
+ __props__.__dict__["fully_qualified_name"] = None
351
364
  __props__.__dict__["locator"] = None
352
365
  __props__.__dict__["region"] = None
353
366
  __props__.__dict__["url"] = None
@@ -368,6 +381,7 @@ class ManagedAccount(pulumi.CustomResource):
368
381
  cloud: Optional[pulumi.Input[str]] = None,
369
382
  comment: Optional[pulumi.Input[str]] = None,
370
383
  created_on: Optional[pulumi.Input[str]] = None,
384
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
371
385
  locator: Optional[pulumi.Input[str]] = None,
372
386
  name: Optional[pulumi.Input[str]] = None,
373
387
  region: Optional[pulumi.Input[str]] = None,
@@ -385,6 +399,7 @@ class ManagedAccount(pulumi.CustomResource):
385
399
  :param pulumi.Input[str] cloud: Cloud in which the managed account is located.
386
400
  :param pulumi.Input[str] comment: Specifies a comment for the managed account.
387
401
  :param pulumi.Input[str] created_on: Date and time when the managed account was created.
402
+ :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).
388
403
  :param pulumi.Input[str] locator: Display name of the managed account.
389
404
  :param pulumi.Input[str] name: Identifier for the managed account; must be unique for your account.
390
405
  :param pulumi.Input[str] region: Snowflake Region in which the managed account is located.
@@ -400,6 +415,7 @@ class ManagedAccount(pulumi.CustomResource):
400
415
  __props__.__dict__["cloud"] = cloud
401
416
  __props__.__dict__["comment"] = comment
402
417
  __props__.__dict__["created_on"] = created_on
418
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
403
419
  __props__.__dict__["locator"] = locator
404
420
  __props__.__dict__["name"] = name
405
421
  __props__.__dict__["region"] = region
@@ -447,6 +463,14 @@ class ManagedAccount(pulumi.CustomResource):
447
463
  """
448
464
  return pulumi.get(self, "created_on")
449
465
 
466
+ @property
467
+ @pulumi.getter(name="fullyQualifiedName")
468
+ def fully_qualified_name(self) -> pulumi.Output[str]:
469
+ """
470
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
471
+ """
472
+ return pulumi.get(self, "fully_qualified_name")
473
+
450
474
  @property
451
475
  @pulumi.getter
452
476
  def locator(self) -> pulumi.Output[str]: