pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736835738__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 (182) hide show
  1. pulumi_snowflake/__init__.py +224 -172
  2. pulumi_snowflake/_inputs.py +52857 -1665
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -218
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -48
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -32
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -47
  10. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
  11. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
  12. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
  13. pulumi_snowflake/api_integration.py +33 -52
  14. pulumi_snowflake/authentication_policy.py +622 -0
  15. pulumi_snowflake/config/__init__.pyi +76 -99
  16. pulumi_snowflake/config/outputs.py +5 -0
  17. pulumi_snowflake/config/vars.py +93 -124
  18. pulumi_snowflake/cortex_search_service.py +596 -0
  19. pulumi_snowflake/database.py +819 -213
  20. pulumi_snowflake/database_role.py +81 -44
  21. pulumi_snowflake/dynamic_table.py +42 -49
  22. pulumi_snowflake/email_notification_integration.py +33 -28
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
  24. pulumi_snowflake/external_function.py +54 -75
  25. pulumi_snowflake/external_oauth_integration.py +593 -542
  26. pulumi_snowflake/external_table.py +67 -90
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +57 -98
  29. pulumi_snowflake/file_format.py +33 -28
  30. pulumi_snowflake/function_java.py +1211 -0
  31. pulumi_snowflake/function_javascript.py +882 -0
  32. pulumi_snowflake/function_python.py +1212 -0
  33. pulumi_snowflake/function_scala.py +1212 -0
  34. pulumi_snowflake/function_sql.py +835 -0
  35. pulumi_snowflake/get_account_roles.py +129 -0
  36. pulumi_snowflake/get_accounts.py +53 -22
  37. pulumi_snowflake/get_alerts.py +22 -9
  38. pulumi_snowflake/get_connections.py +109 -0
  39. pulumi_snowflake/get_cortex_search_services.py +216 -0
  40. pulumi_snowflake/get_current_account.py +24 -13
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -9
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -47
  45. pulumi_snowflake/get_databases.py +91 -73
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -9
  48. pulumi_snowflake/get_external_tables.py +28 -9
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -9
  51. pulumi_snowflake/get_functions.py +28 -9
  52. pulumi_snowflake/get_grants.py +207 -84
  53. pulumi_snowflake/get_masking_policies.py +91 -51
  54. pulumi_snowflake/get_materialized_views.py +28 -9
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -15
  57. pulumi_snowflake/get_pipes.py +28 -9
  58. pulumi_snowflake/get_procedures.py +28 -9
  59. pulumi_snowflake/get_resource_monitors.py +37 -24
  60. pulumi_snowflake/get_row_access_policies.py +91 -51
  61. pulumi_snowflake/get_schemas.py +145 -41
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -9
  65. pulumi_snowflake/get_shares.py +18 -9
  66. pulumi_snowflake/get_stages.py +28 -9
  67. pulumi_snowflake/get_storage_integrations.py +16 -9
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -54
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +120 -5
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -9
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -54
  77. pulumi_snowflake/get_users.py +116 -44
  78. pulumi_snowflake/get_views.py +114 -54
  79. pulumi_snowflake/get_warehouses.py +79 -26
  80. pulumi_snowflake/grant_account_role.py +28 -75
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -94
  83. pulumi_snowflake/grant_ownership.py +382 -0
  84. pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
  85. pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
  86. pulumi_snowflake/grant_privileges_to_share.py +96 -44
  87. pulumi_snowflake/legacy_service_user.py +3670 -0
  88. pulumi_snowflake/managed_account.py +40 -11
  89. pulumi_snowflake/masking_policy.py +213 -310
  90. pulumi_snowflake/materialized_view.py +62 -71
  91. pulumi_snowflake/network_policy.py +217 -61
  92. pulumi_snowflake/network_policy_attachment.py +5 -34
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +49 -84
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
  97. pulumi_snowflake/object_parameter.py +10 -101
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -4
  101. pulumi_snowflake/primary_connection.py +330 -0
  102. pulumi_snowflake/procedure_java.py +1273 -0
  103. pulumi_snowflake/procedure_javascript.py +895 -0
  104. pulumi_snowflake/procedure_python.py +1226 -0
  105. pulumi_snowflake/procedure_scala.py +1273 -0
  106. pulumi_snowflake/procedure_sql.py +895 -0
  107. pulumi_snowflake/provider.py +378 -613
  108. pulumi_snowflake/pulumi-plugin.json +2 -1
  109. pulumi_snowflake/resource_monitor.py +118 -327
  110. pulumi_snowflake/row_access_policy.py +200 -149
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
  112. pulumi_snowflake/schema.py +949 -178
  113. pulumi_snowflake/scim_integration.py +286 -109
  114. pulumi_snowflake/secondary_connection.py +339 -0
  115. pulumi_snowflake/secondary_database.py +1080 -0
  116. pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
  117. pulumi_snowflake/secret_with_basic_authentication.py +500 -0
  118. pulumi_snowflake/secret_with_client_credentials.py +511 -0
  119. pulumi_snowflake/secret_with_generic_string.py +452 -0
  120. pulumi_snowflake/sequence.py +9 -34
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +33 -28
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -84
  125. pulumi_snowflake/storage_integration.py +46 -4
  126. pulumi_snowflake/stream_on_directory_table.py +517 -0
  127. pulumi_snowflake/stream_on_external_table.py +632 -0
  128. pulumi_snowflake/stream_on_table.py +666 -0
  129. pulumi_snowflake/stream_on_view.py +666 -0
  130. pulumi_snowflake/streamlit.py +671 -0
  131. pulumi_snowflake/table.py +86 -97
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -172
  134. pulumi_snowflake/tag.py +142 -74
  135. pulumi_snowflake/tag_association.py +40 -215
  136. pulumi_snowflake/task.py +3048 -418
  137. pulumi_snowflake/user.py +3351 -384
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +5 -4
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -215
  142. pulumi_snowflake/warehouse.py +184 -168
  143. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
  144. pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
  145. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -343
  147. pulumi_snowflake/database_grant.py +0 -495
  148. pulumi_snowflake/external_table_grant.py +0 -690
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -635
  151. pulumi_snowflake/function.py +0 -872
  152. pulumi_snowflake/function_grant.py +0 -745
  153. pulumi_snowflake/get_role.py +0 -121
  154. pulumi_snowflake/get_roles.py +0 -120
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -825
  156. pulumi_snowflake/integration_grant.py +0 -440
  157. pulumi_snowflake/masking_policy_grant.py +0 -542
  158. pulumi_snowflake/materialized_view_grant.py +0 -689
  159. pulumi_snowflake/pipe_grant.py +0 -587
  160. pulumi_snowflake/procedure.py +0 -887
  161. pulumi_snowflake/procedure_grant.py +0 -745
  162. pulumi_snowflake/resource_monitor_grant.py +0 -387
  163. pulumi_snowflake/role.py +0 -273
  164. pulumi_snowflake/role_grants.py +0 -352
  165. pulumi_snowflake/role_ownership_grant.py +0 -338
  166. pulumi_snowflake/row_access_policy_grant.py +0 -540
  167. pulumi_snowflake/schema_grant.py +0 -647
  168. pulumi_snowflake/sequence_grant.py +0 -635
  169. pulumi_snowflake/session_parameter.py +0 -332
  170. pulumi_snowflake/stage_grant.py +0 -635
  171. pulumi_snowflake/stream.py +0 -614
  172. pulumi_snowflake/stream_grant.py +0 -635
  173. pulumi_snowflake/table_grant.py +0 -677
  174. pulumi_snowflake/tag_grant.py +0 -532
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -635
  177. pulumi_snowflake/user_grant.py +0 -394
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -705
  180. pulumi_snowflake/warehouse_grant.py +0 -440
  181. pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['GrantAccountRoleArgs', 'GrantAccountRole']
@@ -19,9 +24,9 @@ class GrantAccountRoleArgs:
19
24
  user_name: Optional[pulumi.Input[str]] = None):
20
25
  """
21
26
  The set of arguments for constructing a GrantAccountRole resource.
22
- :param pulumi.Input[str] role_name: The fully qualified name of the role which will be granted to the user or parent role.
23
- :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent role which will create a parent-child relationship between the roles.
24
- :param pulumi.Input[str] user_name: The fully qualified name of the user on which specified role will be granted.
27
+ :param pulumi.Input[str] role_name: The fully qualified name of the role which will be granted to the user or parent role. For more information about this resource, see docs.
28
+ :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
29
+ :param pulumi.Input[str] user_name: The fully qualified name of the user on which specified role will be granted. For more information about this resource, see docs.
25
30
  """
26
31
  pulumi.set(__self__, "role_name", role_name)
27
32
  if parent_role_name is not None:
@@ -33,7 +38,7 @@ class GrantAccountRoleArgs:
33
38
  @pulumi.getter(name="roleName")
34
39
  def role_name(self) -> pulumi.Input[str]:
35
40
  """
36
- The fully qualified name of the role which will be granted to the user or parent role.
41
+ The fully qualified name of the role which will be granted to the user or parent role. For more information about this resource, see docs.
37
42
  """
38
43
  return pulumi.get(self, "role_name")
39
44
 
@@ -45,7 +50,7 @@ class GrantAccountRoleArgs:
45
50
  @pulumi.getter(name="parentRoleName")
46
51
  def parent_role_name(self) -> Optional[pulumi.Input[str]]:
47
52
  """
48
- The fully qualified name of the parent role which will create a parent-child relationship between the roles.
53
+ The fully qualified name of the parent role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
49
54
  """
50
55
  return pulumi.get(self, "parent_role_name")
51
56
 
@@ -57,7 +62,7 @@ class GrantAccountRoleArgs:
57
62
  @pulumi.getter(name="userName")
58
63
  def user_name(self) -> Optional[pulumi.Input[str]]:
59
64
  """
60
- The fully qualified name of the user on which specified role will be granted.
65
+ The fully qualified name of the user on which specified role will be granted. For more information about this resource, see docs.
61
66
  """
62
67
  return pulumi.get(self, "user_name")
63
68
 
@@ -74,9 +79,9 @@ class _GrantAccountRoleState:
74
79
  user_name: Optional[pulumi.Input[str]] = None):
75
80
  """
76
81
  Input properties used for looking up and filtering GrantAccountRole resources.
77
- :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent role which will create a parent-child relationship between the roles.
78
- :param pulumi.Input[str] role_name: The fully qualified name of the role which will be granted to the user or parent role.
79
- :param pulumi.Input[str] user_name: The fully qualified name of the user on which specified role will be granted.
82
+ :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
83
+ :param pulumi.Input[str] role_name: The fully qualified name of the role which will be granted to the user or parent role. For more information about this resource, see docs.
84
+ :param pulumi.Input[str] user_name: The fully qualified name of the user on which specified role will be granted. For more information about this resource, see docs.
80
85
  """
81
86
  if parent_role_name is not None:
82
87
  pulumi.set(__self__, "parent_role_name", parent_role_name)
@@ -89,7 +94,7 @@ class _GrantAccountRoleState:
89
94
  @pulumi.getter(name="parentRoleName")
90
95
  def parent_role_name(self) -> Optional[pulumi.Input[str]]:
91
96
  """
92
- The fully qualified name of the parent role which will create a parent-child relationship between the roles.
97
+ The fully qualified name of the parent role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
93
98
  """
94
99
  return pulumi.get(self, "parent_role_name")
95
100
 
@@ -101,7 +106,7 @@ class _GrantAccountRoleState:
101
106
  @pulumi.getter(name="roleName")
102
107
  def role_name(self) -> Optional[pulumi.Input[str]]:
103
108
  """
104
- The fully qualified name of the role which will be granted to the user or parent role.
109
+ The fully qualified name of the role which will be granted to the user or parent role. For more information about this resource, see docs.
105
110
  """
106
111
  return pulumi.get(self, "role_name")
107
112
 
@@ -113,7 +118,7 @@ class _GrantAccountRoleState:
113
118
  @pulumi.getter(name="userName")
114
119
  def user_name(self) -> Optional[pulumi.Input[str]]:
115
120
  """
116
- The fully qualified name of the user on which specified role will be granted.
121
+ The fully qualified name of the user on which specified role will be granted. For more information about this resource, see docs.
117
122
  """
118
123
  return pulumi.get(self, "user_name")
119
124
 
@@ -132,45 +137,19 @@ class GrantAccountRole(pulumi.CustomResource):
132
137
  user_name: Optional[pulumi.Input[str]] = None,
133
138
  __props__=None):
134
139
  """
135
- ## Example Usage
136
-
137
- <!--Start PulumiCodeChooser -->
138
- ```python
139
- import pulumi
140
- import pulumi_snowflake as snowflake
141
-
142
- ##################################
143
- ### grant account role to account role
144
- ##################################
145
- role_role = snowflake.Role("roleRole")
146
- parent_role = snowflake.Role("parentRole")
147
- grant_account_role = snowflake.GrantAccountRole("grantAccountRole",
148
- role_name=role_role.name,
149
- parent_role_name=parent_role.name)
150
- ##################################
151
- ### grant account role to user
152
- ##################################
153
- role_index_role_role = snowflake.Role("roleIndex/roleRole")
154
- user = snowflake.User("user")
155
- index_grant_account_role_grant_account_role = snowflake.GrantAccountRole("index/grantAccountRoleGrantAccountRole",
156
- role_name=role_role.name,
157
- user_name=user.name)
158
- ```
159
- <!--End PulumiCodeChooser -->
160
-
161
140
  ## Import
162
141
 
163
142
  format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
164
143
 
165
144
  ```sh
166
- $ pulumi import snowflake:index/grantAccountRole:GrantAccountRole "\\"test_role\\"|ROLE|\\"test_parent_role\\""
145
+ $ pulumi import snowflake:index/grantAccountRole:GrantAccountRole example '"test_role"|ROLE|"test_parent_role"'
167
146
  ```
168
147
 
169
148
  :param str resource_name: The name of the resource.
170
149
  :param pulumi.ResourceOptions opts: Options for the resource.
171
- :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent role which will create a parent-child relationship between the roles.
172
- :param pulumi.Input[str] role_name: The fully qualified name of the role which will be granted to the user or parent role.
173
- :param pulumi.Input[str] user_name: The fully qualified name of the user on which specified role will be granted.
150
+ :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
151
+ :param pulumi.Input[str] role_name: The fully qualified name of the role which will be granted to the user or parent role. For more information about this resource, see docs.
152
+ :param pulumi.Input[str] user_name: The fully qualified name of the user on which specified role will be granted. For more information about this resource, see docs.
174
153
  """
175
154
  ...
176
155
  @overload
@@ -179,38 +158,12 @@ class GrantAccountRole(pulumi.CustomResource):
179
158
  args: GrantAccountRoleArgs,
180
159
  opts: Optional[pulumi.ResourceOptions] = None):
181
160
  """
182
- ## Example Usage
183
-
184
- <!--Start PulumiCodeChooser -->
185
- ```python
186
- import pulumi
187
- import pulumi_snowflake as snowflake
188
-
189
- ##################################
190
- ### grant account role to account role
191
- ##################################
192
- role_role = snowflake.Role("roleRole")
193
- parent_role = snowflake.Role("parentRole")
194
- grant_account_role = snowflake.GrantAccountRole("grantAccountRole",
195
- role_name=role_role.name,
196
- parent_role_name=parent_role.name)
197
- ##################################
198
- ### grant account role to user
199
- ##################################
200
- role_index_role_role = snowflake.Role("roleIndex/roleRole")
201
- user = snowflake.User("user")
202
- index_grant_account_role_grant_account_role = snowflake.GrantAccountRole("index/grantAccountRoleGrantAccountRole",
203
- role_name=role_role.name,
204
- user_name=user.name)
205
- ```
206
- <!--End PulumiCodeChooser -->
207
-
208
161
  ## Import
209
162
 
210
163
  format is role_name (string) | grantee_object_type (ROLE|USER) | grantee_name (string)
211
164
 
212
165
  ```sh
213
- $ pulumi import snowflake:index/grantAccountRole:GrantAccountRole "\\"test_role\\"|ROLE|\\"test_parent_role\\""
166
+ $ pulumi import snowflake:index/grantAccountRole:GrantAccountRole example '"test_role"|ROLE|"test_parent_role"'
214
167
  ```
215
168
 
216
169
  :param str resource_name: The name of the resource.
@@ -265,9 +218,9 @@ class GrantAccountRole(pulumi.CustomResource):
265
218
  :param str resource_name: The unique name of the resulting resource.
266
219
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
267
220
  :param pulumi.ResourceOptions opts: Options for the resource.
268
- :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent role which will create a parent-child relationship between the roles.
269
- :param pulumi.Input[str] role_name: The fully qualified name of the role which will be granted to the user or parent role.
270
- :param pulumi.Input[str] user_name: The fully qualified name of the user on which specified role will be granted.
221
+ :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
222
+ :param pulumi.Input[str] role_name: The fully qualified name of the role which will be granted to the user or parent role. For more information about this resource, see docs.
223
+ :param pulumi.Input[str] user_name: The fully qualified name of the user on which specified role will be granted. For more information about this resource, see docs.
271
224
  """
272
225
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
273
226
 
@@ -282,7 +235,7 @@ class GrantAccountRole(pulumi.CustomResource):
282
235
  @pulumi.getter(name="parentRoleName")
283
236
  def parent_role_name(self) -> pulumi.Output[Optional[str]]:
284
237
  """
285
- The fully qualified name of the parent role which will create a parent-child relationship between the roles.
238
+ The fully qualified name of the parent role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
286
239
  """
287
240
  return pulumi.get(self, "parent_role_name")
288
241
 
@@ -290,7 +243,7 @@ class GrantAccountRole(pulumi.CustomResource):
290
243
  @pulumi.getter(name="roleName")
291
244
  def role_name(self) -> pulumi.Output[str]:
292
245
  """
293
- The fully qualified name of the role which will be granted to the user or parent role.
246
+ The fully qualified name of the role which will be granted to the user or parent role. For more information about this resource, see docs.
294
247
  """
295
248
  return pulumi.get(self, "role_name")
296
249
 
@@ -298,7 +251,7 @@ class GrantAccountRole(pulumi.CustomResource):
298
251
  @pulumi.getter(name="userName")
299
252
  def user_name(self) -> pulumi.Output[Optional[str]]:
300
253
  """
301
- The fully qualified name of the user on which specified role will be granted.
254
+ The fully qualified name of the user on which specified role will be granted. For more information about this resource, see docs.
302
255
  """
303
256
  return pulumi.get(self, "user_name")
304
257
 
@@ -0,0 +1,257 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+
17
+ __all__ = ['GrantApplicationRoleArgs', 'GrantApplicationRole']
18
+
19
+ @pulumi.input_type
20
+ class GrantApplicationRoleArgs:
21
+ def __init__(__self__, *,
22
+ application_role_name: pulumi.Input[str],
23
+ application_name: Optional[pulumi.Input[str]] = None,
24
+ parent_account_role_name: Optional[pulumi.Input[str]] = None):
25
+ """
26
+ The set of arguments for constructing a GrantApplicationRole resource.
27
+ :param pulumi.Input[str] application_role_name: Specifies the identifier for the application role to grant.
28
+ :param pulumi.Input[str] application_name: The fully qualified name of the application on which application role will be granted.
29
+ :param pulumi.Input[str] parent_account_role_name: The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
30
+ """
31
+ pulumi.set(__self__, "application_role_name", application_role_name)
32
+ if application_name is not None:
33
+ pulumi.set(__self__, "application_name", application_name)
34
+ if parent_account_role_name is not None:
35
+ pulumi.set(__self__, "parent_account_role_name", parent_account_role_name)
36
+
37
+ @property
38
+ @pulumi.getter(name="applicationRoleName")
39
+ def application_role_name(self) -> pulumi.Input[str]:
40
+ """
41
+ Specifies the identifier for the application role to grant.
42
+ """
43
+ return pulumi.get(self, "application_role_name")
44
+
45
+ @application_role_name.setter
46
+ def application_role_name(self, value: pulumi.Input[str]):
47
+ pulumi.set(self, "application_role_name", value)
48
+
49
+ @property
50
+ @pulumi.getter(name="applicationName")
51
+ def application_name(self) -> Optional[pulumi.Input[str]]:
52
+ """
53
+ The fully qualified name of the application on which application role will be granted.
54
+ """
55
+ return pulumi.get(self, "application_name")
56
+
57
+ @application_name.setter
58
+ def application_name(self, value: Optional[pulumi.Input[str]]):
59
+ pulumi.set(self, "application_name", value)
60
+
61
+ @property
62
+ @pulumi.getter(name="parentAccountRoleName")
63
+ def parent_account_role_name(self) -> Optional[pulumi.Input[str]]:
64
+ """
65
+ The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
66
+ """
67
+ return pulumi.get(self, "parent_account_role_name")
68
+
69
+ @parent_account_role_name.setter
70
+ def parent_account_role_name(self, value: Optional[pulumi.Input[str]]):
71
+ pulumi.set(self, "parent_account_role_name", value)
72
+
73
+
74
+ @pulumi.input_type
75
+ class _GrantApplicationRoleState:
76
+ def __init__(__self__, *,
77
+ application_name: Optional[pulumi.Input[str]] = None,
78
+ application_role_name: Optional[pulumi.Input[str]] = None,
79
+ parent_account_role_name: Optional[pulumi.Input[str]] = None):
80
+ """
81
+ Input properties used for looking up and filtering GrantApplicationRole resources.
82
+ :param pulumi.Input[str] application_name: The fully qualified name of the application on which application role will be granted.
83
+ :param pulumi.Input[str] application_role_name: Specifies the identifier for the application role to grant.
84
+ :param pulumi.Input[str] parent_account_role_name: The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
85
+ """
86
+ if application_name is not None:
87
+ pulumi.set(__self__, "application_name", application_name)
88
+ if application_role_name is not None:
89
+ pulumi.set(__self__, "application_role_name", application_role_name)
90
+ if parent_account_role_name is not None:
91
+ pulumi.set(__self__, "parent_account_role_name", parent_account_role_name)
92
+
93
+ @property
94
+ @pulumi.getter(name="applicationName")
95
+ def application_name(self) -> Optional[pulumi.Input[str]]:
96
+ """
97
+ The fully qualified name of the application on which application role will be granted.
98
+ """
99
+ return pulumi.get(self, "application_name")
100
+
101
+ @application_name.setter
102
+ def application_name(self, value: Optional[pulumi.Input[str]]):
103
+ pulumi.set(self, "application_name", value)
104
+
105
+ @property
106
+ @pulumi.getter(name="applicationRoleName")
107
+ def application_role_name(self) -> Optional[pulumi.Input[str]]:
108
+ """
109
+ Specifies the identifier for the application role to grant.
110
+ """
111
+ return pulumi.get(self, "application_role_name")
112
+
113
+ @application_role_name.setter
114
+ def application_role_name(self, value: Optional[pulumi.Input[str]]):
115
+ pulumi.set(self, "application_role_name", value)
116
+
117
+ @property
118
+ @pulumi.getter(name="parentAccountRoleName")
119
+ def parent_account_role_name(self) -> Optional[pulumi.Input[str]]:
120
+ """
121
+ The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
122
+ """
123
+ return pulumi.get(self, "parent_account_role_name")
124
+
125
+ @parent_account_role_name.setter
126
+ def parent_account_role_name(self, value: Optional[pulumi.Input[str]]):
127
+ pulumi.set(self, "parent_account_role_name", value)
128
+
129
+
130
+ class GrantApplicationRole(pulumi.CustomResource):
131
+ @overload
132
+ def __init__(__self__,
133
+ resource_name: str,
134
+ opts: Optional[pulumi.ResourceOptions] = None,
135
+ application_name: Optional[pulumi.Input[str]] = None,
136
+ application_role_name: Optional[pulumi.Input[str]] = None,
137
+ parent_account_role_name: Optional[pulumi.Input[str]] = None,
138
+ __props__=None):
139
+ """
140
+ ## Import
141
+
142
+ format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string)
143
+
144
+ ```sh
145
+ $ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole example '"my_application"."app_role_1"|ACCOUNT_ROLE|"my_role"'
146
+ ```
147
+
148
+ :param str resource_name: The name of the resource.
149
+ :param pulumi.ResourceOptions opts: Options for the resource.
150
+ :param pulumi.Input[str] application_name: The fully qualified name of the application on which application role will be granted.
151
+ :param pulumi.Input[str] application_role_name: Specifies the identifier for the application role to grant.
152
+ :param pulumi.Input[str] parent_account_role_name: The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
153
+ """
154
+ ...
155
+ @overload
156
+ def __init__(__self__,
157
+ resource_name: str,
158
+ args: GrantApplicationRoleArgs,
159
+ opts: Optional[pulumi.ResourceOptions] = None):
160
+ """
161
+ ## Import
162
+
163
+ format is application_role_name (string) | object_type (ACCOUNT_ROLE|APPLICATION) | grantee_name (string)
164
+
165
+ ```sh
166
+ $ pulumi import snowflake:index/grantApplicationRole:GrantApplicationRole example '"my_application"."app_role_1"|ACCOUNT_ROLE|"my_role"'
167
+ ```
168
+
169
+ :param str resource_name: The name of the resource.
170
+ :param GrantApplicationRoleArgs args: The arguments to use to populate this resource's properties.
171
+ :param pulumi.ResourceOptions opts: Options for the resource.
172
+ """
173
+ ...
174
+ def __init__(__self__, resource_name: str, *args, **kwargs):
175
+ resource_args, opts = _utilities.get_resource_args_opts(GrantApplicationRoleArgs, pulumi.ResourceOptions, *args, **kwargs)
176
+ if resource_args is not None:
177
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
178
+ else:
179
+ __self__._internal_init(resource_name, *args, **kwargs)
180
+
181
+ def _internal_init(__self__,
182
+ resource_name: str,
183
+ opts: Optional[pulumi.ResourceOptions] = None,
184
+ application_name: Optional[pulumi.Input[str]] = None,
185
+ application_role_name: Optional[pulumi.Input[str]] = None,
186
+ parent_account_role_name: Optional[pulumi.Input[str]] = None,
187
+ __props__=None):
188
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
189
+ if not isinstance(opts, pulumi.ResourceOptions):
190
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
191
+ if opts.id is None:
192
+ if __props__ is not None:
193
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
194
+ __props__ = GrantApplicationRoleArgs.__new__(GrantApplicationRoleArgs)
195
+
196
+ __props__.__dict__["application_name"] = application_name
197
+ if application_role_name is None and not opts.urn:
198
+ raise TypeError("Missing required property 'application_role_name'")
199
+ __props__.__dict__["application_role_name"] = application_role_name
200
+ __props__.__dict__["parent_account_role_name"] = parent_account_role_name
201
+ super(GrantApplicationRole, __self__).__init__(
202
+ 'snowflake:index/grantApplicationRole:GrantApplicationRole',
203
+ resource_name,
204
+ __props__,
205
+ opts)
206
+
207
+ @staticmethod
208
+ def get(resource_name: str,
209
+ id: pulumi.Input[str],
210
+ opts: Optional[pulumi.ResourceOptions] = None,
211
+ application_name: Optional[pulumi.Input[str]] = None,
212
+ application_role_name: Optional[pulumi.Input[str]] = None,
213
+ parent_account_role_name: Optional[pulumi.Input[str]] = None) -> 'GrantApplicationRole':
214
+ """
215
+ Get an existing GrantApplicationRole resource's state with the given name, id, and optional extra
216
+ properties used to qualify the lookup.
217
+
218
+ :param str resource_name: The unique name of the resulting resource.
219
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
220
+ :param pulumi.ResourceOptions opts: Options for the resource.
221
+ :param pulumi.Input[str] application_name: The fully qualified name of the application on which application role will be granted.
222
+ :param pulumi.Input[str] application_role_name: Specifies the identifier for the application role to grant.
223
+ :param pulumi.Input[str] parent_account_role_name: The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
224
+ """
225
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
226
+
227
+ __props__ = _GrantApplicationRoleState.__new__(_GrantApplicationRoleState)
228
+
229
+ __props__.__dict__["application_name"] = application_name
230
+ __props__.__dict__["application_role_name"] = application_role_name
231
+ __props__.__dict__["parent_account_role_name"] = parent_account_role_name
232
+ return GrantApplicationRole(resource_name, opts=opts, __props__=__props__)
233
+
234
+ @property
235
+ @pulumi.getter(name="applicationName")
236
+ def application_name(self) -> pulumi.Output[Optional[str]]:
237
+ """
238
+ The fully qualified name of the application on which application role will be granted.
239
+ """
240
+ return pulumi.get(self, "application_name")
241
+
242
+ @property
243
+ @pulumi.getter(name="applicationRoleName")
244
+ def application_role_name(self) -> pulumi.Output[str]:
245
+ """
246
+ Specifies the identifier for the application role to grant.
247
+ """
248
+ return pulumi.get(self, "application_role_name")
249
+
250
+ @property
251
+ @pulumi.getter(name="parentAccountRoleName")
252
+ def parent_account_role_name(self) -> pulumi.Output[Optional[str]]:
253
+ """
254
+ The fully qualified name of the account role on which application role will be granted. For more information about this resource, see docs.
255
+ """
256
+ return pulumi.get(self, "parent_account_role_name")
257
+