pulumi-snowflake 0.50.2a1709892015__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 +52854 -1662
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -214
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -44
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -28
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -43
  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 +35 -50
  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 -209
  20. pulumi_snowflake/database_role.py +81 -40
  21. pulumi_snowflake/dynamic_table.py +44 -47
  22. pulumi_snowflake/email_notification_integration.py +35 -26
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -139
  24. pulumi_snowflake/external_function.py +54 -71
  25. pulumi_snowflake/external_oauth_integration.py +593 -538
  26. pulumi_snowflake/external_table.py +67 -86
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +59 -96
  29. pulumi_snowflake/file_format.py +33 -24
  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 -5
  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 -9
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -5
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -43
  45. pulumi_snowflake/get_databases.py +91 -69
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -5
  48. pulumi_snowflake/get_external_tables.py +28 -5
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -5
  51. pulumi_snowflake/get_functions.py +28 -5
  52. pulumi_snowflake/get_grants.py +207 -80
  53. pulumi_snowflake/get_masking_policies.py +91 -47
  54. pulumi_snowflake/get_materialized_views.py +28 -5
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -11
  57. pulumi_snowflake/get_pipes.py +28 -5
  58. pulumi_snowflake/get_procedures.py +28 -5
  59. pulumi_snowflake/get_resource_monitors.py +37 -20
  60. pulumi_snowflake/get_row_access_policies.py +91 -47
  61. pulumi_snowflake/get_schemas.py +145 -37
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -5
  65. pulumi_snowflake/get_shares.py +18 -5
  66. pulumi_snowflake/get_stages.py +28 -5
  67. pulumi_snowflake/get_storage_integrations.py +16 -5
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -50
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -5
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +121 -6
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -5
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -50
  77. pulumi_snowflake/get_users.py +116 -40
  78. pulumi_snowflake/get_views.py +114 -50
  79. pulumi_snowflake/get_warehouses.py +79 -22
  80. pulumi_snowflake/grant_account_role.py +28 -61
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -108
  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 -223
  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 +42 -9
  89. pulumi_snowflake/masking_policy.py +213 -306
  90. pulumi_snowflake/materialized_view.py +62 -67
  91. pulumi_snowflake/network_policy.py +217 -57
  92. pulumi_snowflake/network_policy_attachment.py +7 -32
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +51 -82
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -188
  97. pulumi_snowflake/object_parameter.py +12 -99
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -0
  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 -323
  110. pulumi_snowflake/row_access_policy.py +200 -145
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -295
  112. pulumi_snowflake/schema.py +949 -174
  113. pulumi_snowflake/scim_integration.py +286 -105
  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 -30
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +35 -26
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -80
  125. pulumi_snowflake/storage_integration.py +48 -2
  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 -93
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -168
  134. pulumi_snowflake/tag.py +142 -70
  135. pulumi_snowflake/tag_association.py +40 -211
  136. pulumi_snowflake/task.py +3048 -414
  137. pulumi_snowflake/user.py +3351 -380
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +7 -6
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -211
  142. pulumi_snowflake/warehouse.py +184 -164
  143. {pulumi_snowflake-0.50.2a1709892015.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.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -339
  147. pulumi_snowflake/database_grant.py +0 -491
  148. pulumi_snowflake/external_table_grant.py +0 -686
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -631
  151. pulumi_snowflake/function.py +0 -868
  152. pulumi_snowflake/function_grant.py +0 -741
  153. pulumi_snowflake/get_role.py +0 -117
  154. pulumi_snowflake/get_roles.py +0 -116
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -667
  156. pulumi_snowflake/integration_grant.py +0 -436
  157. pulumi_snowflake/masking_policy_grant.py +0 -538
  158. pulumi_snowflake/materialized_view_grant.py +0 -685
  159. pulumi_snowflake/pipe_grant.py +0 -583
  160. pulumi_snowflake/procedure.py +0 -883
  161. pulumi_snowflake/procedure_grant.py +0 -741
  162. pulumi_snowflake/resource_monitor_grant.py +0 -383
  163. pulumi_snowflake/role.py +0 -269
  164. pulumi_snowflake/role_grants.py +0 -348
  165. pulumi_snowflake/role_ownership_grant.py +0 -334
  166. pulumi_snowflake/row_access_policy_grant.py +0 -536
  167. pulumi_snowflake/schema_grant.py +0 -643
  168. pulumi_snowflake/sequence_grant.py +0 -631
  169. pulumi_snowflake/session_parameter.py +0 -328
  170. pulumi_snowflake/stage_grant.py +0 -631
  171. pulumi_snowflake/stream.py +0 -610
  172. pulumi_snowflake/stream_grant.py +0 -631
  173. pulumi_snowflake/table_grant.py +0 -673
  174. pulumi_snowflake/tag_grant.py +0 -528
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -631
  177. pulumi_snowflake/user_grant.py +0 -390
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -701
  180. pulumi_snowflake/warehouse_grant.py +0 -436
  181. pulumi_snowflake-0.50.2a1709892015.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
@@ -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
+
@@ -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__ = ['GrantDatabaseRoleArgs', 'GrantDatabaseRole']
@@ -20,10 +25,10 @@ class GrantDatabaseRoleArgs:
20
25
  share_name: Optional[pulumi.Input[str]] = None):
21
26
  """
22
27
  The set of arguments for constructing a GrantDatabaseRole resource.
23
- :param pulumi.Input[str] database_role_name: The fully qualified name of the database role which will be granted to share or parent role.
24
- :param pulumi.Input[str] parent_database_role_name: The fully qualified name of the parent database role which will create a parent-child relationship between the roles.
25
- :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent account role which will create a parent-child relationship between the roles.
26
- :param pulumi.Input[str] share_name: The fully qualified name of the share on which privileges will be granted.
28
+ :param pulumi.Input[str] database_role_name: The fully qualified name of the database role which will be granted to share or parent role. For more information about this resource, see docs.
29
+ :param pulumi.Input[str] parent_database_role_name: The fully qualified name of the parent database role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
30
+ :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent account role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
31
+ :param pulumi.Input[str] share_name: The fully qualified name of the share on which privileges will be granted. For more information about this resource, see docs.
27
32
  """
28
33
  pulumi.set(__self__, "database_role_name", database_role_name)
29
34
  if parent_database_role_name is not None:
@@ -37,7 +42,7 @@ class GrantDatabaseRoleArgs:
37
42
  @pulumi.getter(name="databaseRoleName")
38
43
  def database_role_name(self) -> pulumi.Input[str]:
39
44
  """
40
- The fully qualified name of the database role which will be granted to share or parent role.
45
+ The fully qualified name of the database role which will be granted to share or parent role. For more information about this resource, see docs.
41
46
  """
42
47
  return pulumi.get(self, "database_role_name")
43
48
 
@@ -49,7 +54,7 @@ class GrantDatabaseRoleArgs:
49
54
  @pulumi.getter(name="parentDatabaseRoleName")
50
55
  def parent_database_role_name(self) -> Optional[pulumi.Input[str]]:
51
56
  """
52
- The fully qualified name of the parent database role which will create a parent-child relationship between the roles.
57
+ The fully qualified name of the parent database role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
53
58
  """
54
59
  return pulumi.get(self, "parent_database_role_name")
55
60
 
@@ -61,7 +66,7 @@ class GrantDatabaseRoleArgs:
61
66
  @pulumi.getter(name="parentRoleName")
62
67
  def parent_role_name(self) -> Optional[pulumi.Input[str]]:
63
68
  """
64
- The fully qualified name of the parent account role which will create a parent-child relationship between the roles.
69
+ The fully qualified name of the parent account role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
65
70
  """
66
71
  return pulumi.get(self, "parent_role_name")
67
72
 
@@ -73,7 +78,7 @@ class GrantDatabaseRoleArgs:
73
78
  @pulumi.getter(name="shareName")
74
79
  def share_name(self) -> Optional[pulumi.Input[str]]:
75
80
  """
76
- The fully qualified name of the share on which privileges will be granted.
81
+ The fully qualified name of the share on which privileges will be granted. For more information about this resource, see docs.
77
82
  """
78
83
  return pulumi.get(self, "share_name")
79
84
 
@@ -91,10 +96,10 @@ class _GrantDatabaseRoleState:
91
96
  share_name: Optional[pulumi.Input[str]] = None):
92
97
  """
93
98
  Input properties used for looking up and filtering GrantDatabaseRole resources.
94
- :param pulumi.Input[str] database_role_name: The fully qualified name of the database role which will be granted to share or parent role.
95
- :param pulumi.Input[str] parent_database_role_name: The fully qualified name of the parent database role which will create a parent-child relationship between the roles.
96
- :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent account role which will create a parent-child relationship between the roles.
97
- :param pulumi.Input[str] share_name: The fully qualified name of the share on which privileges will be granted.
99
+ :param pulumi.Input[str] database_role_name: The fully qualified name of the database role which will be granted to share or parent role. For more information about this resource, see docs.
100
+ :param pulumi.Input[str] parent_database_role_name: The fully qualified name of the parent database role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
101
+ :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent account role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
102
+ :param pulumi.Input[str] share_name: The fully qualified name of the share on which privileges will be granted. For more information about this resource, see docs.
98
103
  """
99
104
  if database_role_name is not None:
100
105
  pulumi.set(__self__, "database_role_name", database_role_name)
@@ -109,7 +114,7 @@ class _GrantDatabaseRoleState:
109
114
  @pulumi.getter(name="databaseRoleName")
110
115
  def database_role_name(self) -> Optional[pulumi.Input[str]]:
111
116
  """
112
- The fully qualified name of the database role which will be granted to share or parent role.
117
+ The fully qualified name of the database role which will be granted to share or parent role. For more information about this resource, see docs.
113
118
  """
114
119
  return pulumi.get(self, "database_role_name")
115
120
 
@@ -121,7 +126,7 @@ class _GrantDatabaseRoleState:
121
126
  @pulumi.getter(name="parentDatabaseRoleName")
122
127
  def parent_database_role_name(self) -> Optional[pulumi.Input[str]]:
123
128
  """
124
- The fully qualified name of the parent database role which will create a parent-child relationship between the roles.
129
+ The fully qualified name of the parent database role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
125
130
  """
126
131
  return pulumi.get(self, "parent_database_role_name")
127
132
 
@@ -133,7 +138,7 @@ class _GrantDatabaseRoleState:
133
138
  @pulumi.getter(name="parentRoleName")
134
139
  def parent_role_name(self) -> Optional[pulumi.Input[str]]:
135
140
  """
136
- The fully qualified name of the parent account role which will create a parent-child relationship between the roles.
141
+ The fully qualified name of the parent account role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
137
142
  """
138
143
  return pulumi.get(self, "parent_role_name")
139
144
 
@@ -145,7 +150,7 @@ class _GrantDatabaseRoleState:
145
150
  @pulumi.getter(name="shareName")
146
151
  def share_name(self) -> Optional[pulumi.Input[str]]:
147
152
  """
148
- The fully qualified name of the share on which privileges will be granted.
153
+ The fully qualified name of the share on which privileges will be granted. For more information about this resource, see docs.
149
154
  """
150
155
  return pulumi.get(self, "share_name")
151
156
 
@@ -165,59 +170,20 @@ class GrantDatabaseRole(pulumi.CustomResource):
165
170
  share_name: Optional[pulumi.Input[str]] = None,
166
171
  __props__=None):
167
172
  """
168
- ## Example Usage
169
- ### grant database role to account role
170
- ##################################
171
-
172
- resource "snowflake_database_role" "database_role" {
173
- database = var.database
174
- name = var.database_role_name
175
- }
176
-
177
- resource "snowflake_role" "parent_role" {
178
- name = var.parent_role_name
179
- }
180
-
181
- resource "snowflake_grant_database_role" "g" {
182
- database_role_name = "\\"${var.database}\\".\\"${snowflake_database_role.database_role.name}\\""
183
- parent_role_name = snowflake_role.parent_role.name
184
- }
185
-
186
- ##################################
187
- ### grant database role to database role
188
- ##################################
189
-
190
- resource "snowflake_database_role" "database_role" {
191
- database = var.database
192
- name = var.database_role_name
193
- }
194
-
195
- resource "snowflake_database_role" "parent_database_role" {
196
- database = var.database
197
- name = var.parent_database_role_name
198
- }
199
-
200
- resource "snowflake_grant_database_role" "g" {
201
- database_role_name = "\\"${var.database}\\".\\"${snowflake_database_role.database_role.name}\\""
202
- parent_database_role_name = "\\"${var.database}\\".\\"${snowflake_database_role.parent_database_role.name}\\""
203
- }
204
-
205
- ##################################
206
-
207
173
  ## Import
208
174
 
209
175
  format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
210
176
 
211
177
  ```sh
212
- $ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole \\"test_db_role\\"|ROLE|\\"test_parent_role\\""
178
+ $ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole example '"ABC"."test_db_role"|ROLE|"test_parent_role"'
213
179
  ```
214
180
 
215
181
  :param str resource_name: The name of the resource.
216
182
  :param pulumi.ResourceOptions opts: Options for the resource.
217
- :param pulumi.Input[str] database_role_name: The fully qualified name of the database role which will be granted to share or parent role.
218
- :param pulumi.Input[str] parent_database_role_name: The fully qualified name of the parent database role which will create a parent-child relationship between the roles.
219
- :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent account role which will create a parent-child relationship between the roles.
220
- :param pulumi.Input[str] share_name: The fully qualified name of the share on which privileges will be granted.
183
+ :param pulumi.Input[str] database_role_name: The fully qualified name of the database role which will be granted to share or parent role. For more information about this resource, see docs.
184
+ :param pulumi.Input[str] parent_database_role_name: The fully qualified name of the parent database role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
185
+ :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent account role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
186
+ :param pulumi.Input[str] share_name: The fully qualified name of the share on which privileges will be granted. For more information about this resource, see docs.
221
187
  """
222
188
  ...
223
189
  @overload
@@ -226,51 +192,12 @@ class GrantDatabaseRole(pulumi.CustomResource):
226
192
  args: GrantDatabaseRoleArgs,
227
193
  opts: Optional[pulumi.ResourceOptions] = None):
228
194
  """
229
- ## Example Usage
230
- ### grant database role to account role
231
- ##################################
232
-
233
- resource "snowflake_database_role" "database_role" {
234
- database = var.database
235
- name = var.database_role_name
236
- }
237
-
238
- resource "snowflake_role" "parent_role" {
239
- name = var.parent_role_name
240
- }
241
-
242
- resource "snowflake_grant_database_role" "g" {
243
- database_role_name = "\\"${var.database}\\".\\"${snowflake_database_role.database_role.name}\\""
244
- parent_role_name = snowflake_role.parent_role.name
245
- }
246
-
247
- ##################################
248
- ### grant database role to database role
249
- ##################################
250
-
251
- resource "snowflake_database_role" "database_role" {
252
- database = var.database
253
- name = var.database_role_name
254
- }
255
-
256
- resource "snowflake_database_role" "parent_database_role" {
257
- database = var.database
258
- name = var.parent_database_role_name
259
- }
260
-
261
- resource "snowflake_grant_database_role" "g" {
262
- database_role_name = "\\"${var.database}\\".\\"${snowflake_database_role.database_role.name}\\""
263
- parent_database_role_name = "\\"${var.database}\\".\\"${snowflake_database_role.parent_database_role.name}\\""
264
- }
265
-
266
- ##################################
267
-
268
195
  ## Import
269
196
 
270
197
  format is database_role_name (string) | object_type (ROLE|DATABASE ROLE|SHARE) | grantee_name (string)
271
198
 
272
199
  ```sh
273
- $ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole \\"test_db_role\\"|ROLE|\\"test_parent_role\\""
200
+ $ pulumi import snowflake:index/grantDatabaseRole:GrantDatabaseRole example '"ABC"."test_db_role"|ROLE|"test_parent_role"'
274
201
  ```
275
202
 
276
203
  :param str resource_name: The name of the resource.
@@ -328,10 +255,10 @@ class GrantDatabaseRole(pulumi.CustomResource):
328
255
  :param str resource_name: The unique name of the resulting resource.
329
256
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
330
257
  :param pulumi.ResourceOptions opts: Options for the resource.
331
- :param pulumi.Input[str] database_role_name: The fully qualified name of the database role which will be granted to share or parent role.
332
- :param pulumi.Input[str] parent_database_role_name: The fully qualified name of the parent database role which will create a parent-child relationship between the roles.
333
- :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent account role which will create a parent-child relationship between the roles.
334
- :param pulumi.Input[str] share_name: The fully qualified name of the share on which privileges will be granted.
258
+ :param pulumi.Input[str] database_role_name: The fully qualified name of the database role which will be granted to share or parent role. For more information about this resource, see docs.
259
+ :param pulumi.Input[str] parent_database_role_name: The fully qualified name of the parent database role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
260
+ :param pulumi.Input[str] parent_role_name: The fully qualified name of the parent account role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
261
+ :param pulumi.Input[str] share_name: The fully qualified name of the share on which privileges will be granted. For more information about this resource, see docs.
335
262
  """
336
263
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
337
264
 
@@ -347,7 +274,7 @@ class GrantDatabaseRole(pulumi.CustomResource):
347
274
  @pulumi.getter(name="databaseRoleName")
348
275
  def database_role_name(self) -> pulumi.Output[str]:
349
276
  """
350
- The fully qualified name of the database role which will be granted to share or parent role.
277
+ The fully qualified name of the database role which will be granted to share or parent role. For more information about this resource, see docs.
351
278
  """
352
279
  return pulumi.get(self, "database_role_name")
353
280
 
@@ -355,7 +282,7 @@ class GrantDatabaseRole(pulumi.CustomResource):
355
282
  @pulumi.getter(name="parentDatabaseRoleName")
356
283
  def parent_database_role_name(self) -> pulumi.Output[Optional[str]]:
357
284
  """
358
- The fully qualified name of the parent database role which will create a parent-child relationship between the roles.
285
+ The fully qualified name of the parent database role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
359
286
  """
360
287
  return pulumi.get(self, "parent_database_role_name")
361
288
 
@@ -363,7 +290,7 @@ class GrantDatabaseRole(pulumi.CustomResource):
363
290
  @pulumi.getter(name="parentRoleName")
364
291
  def parent_role_name(self) -> pulumi.Output[Optional[str]]:
365
292
  """
366
- The fully qualified name of the parent account role which will create a parent-child relationship between the roles.
293
+ The fully qualified name of the parent account role which will create a parent-child relationship between the roles. For more information about this resource, see docs.
367
294
  """
368
295
  return pulumi.get(self, "parent_role_name")
369
296
 
@@ -371,7 +298,7 @@ class GrantDatabaseRole(pulumi.CustomResource):
371
298
  @pulumi.getter(name="shareName")
372
299
  def share_name(self) -> pulumi.Output[Optional[str]]:
373
300
  """
374
- The fully qualified name of the share on which privileges will be granted.
301
+ The fully qualified name of the share on which privileges will be granted. For more information about this resource, see docs.
375
302
  """
376
303
  return pulumi.get(self, "share_name")
377
304