pulumi-snowflake 0.57.1a1722856643__py3-none-any.whl → 0.58.0__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.
Files changed (88) 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 +51 -32
  6. pulumi_snowflake/alert.py +33 -45
  7. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +39 -19
  8. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +39 -19
  9. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +39 -19
  10. pulumi_snowflake/api_integration.py +28 -54
  11. pulumi_snowflake/cortex_search_service.py +28 -0
  12. pulumi_snowflake/database.py +97 -148
  13. pulumi_snowflake/database_old.py +5 -77
  14. pulumi_snowflake/database_role.py +76 -42
  15. pulumi_snowflake/dynamic_table.py +33 -43
  16. pulumi_snowflake/email_notification_integration.py +28 -26
  17. pulumi_snowflake/external_function.py +38 -62
  18. pulumi_snowflake/external_oauth_integration.py +41 -21
  19. pulumi_snowflake/external_table.py +38 -58
  20. pulumi_snowflake/failover_group.py +38 -82
  21. pulumi_snowflake/file_format.py +28 -26
  22. pulumi_snowflake/function.py +33 -9
  23. pulumi_snowflake/get_cortex_search_services.py +16 -16
  24. pulumi_snowflake/get_database_roles.py +61 -38
  25. pulumi_snowflake/get_databases.py +4 -4
  26. pulumi_snowflake/get_dynamic_tables.py +12 -12
  27. pulumi_snowflake/get_grants.py +138 -138
  28. pulumi_snowflake/get_schemas.py +8 -8
  29. pulumi_snowflake/get_streamlits.py +8 -8
  30. pulumi_snowflake/get_users.py +96 -33
  31. pulumi_snowflake/get_views.py +92 -53
  32. pulumi_snowflake/grant_account_role.py +0 -4
  33. pulumi_snowflake/grant_application_role.py +0 -4
  34. pulumi_snowflake/grant_database_role.py +0 -4
  35. pulumi_snowflake/grant_ownership.py +5 -5
  36. pulumi_snowflake/grant_privileges_to_account_role.py +15 -15
  37. pulumi_snowflake/grant_privileges_to_database_role.py +16 -12
  38. pulumi_snowflake/grant_privileges_to_share.py +47 -0
  39. pulumi_snowflake/managed_account.py +28 -4
  40. pulumi_snowflake/masking_policy.py +33 -89
  41. pulumi_snowflake/materialized_view.py +33 -39
  42. pulumi_snowflake/network_policy.py +47 -49
  43. pulumi_snowflake/network_policy_attachment.py +0 -30
  44. pulumi_snowflake/network_rule.py +28 -66
  45. pulumi_snowflake/notification_integration.py +28 -34
  46. pulumi_snowflake/oauth_integration.py +0 -34
  47. pulumi_snowflake/oauth_integration_for_custom_clients.py +39 -105
  48. pulumi_snowflake/oauth_integration_for_partner_applications.py +39 -19
  49. pulumi_snowflake/object_parameter.py +5 -103
  50. pulumi_snowflake/outputs.py +11648 -3842
  51. pulumi_snowflake/password_policy.py +28 -28
  52. pulumi_snowflake/pipe.py +28 -4
  53. pulumi_snowflake/procedure.py +33 -9
  54. pulumi_snowflake/provider.py +16 -16
  55. pulumi_snowflake/pulumi-plugin.json +1 -1
  56. pulumi_snowflake/resource_monitor.py +28 -48
  57. pulumi_snowflake/role.py +51 -32
  58. pulumi_snowflake/row_access_policy.py +28 -34
  59. pulumi_snowflake/saml2_integration.py +39 -19
  60. pulumi_snowflake/saml_integration.py +0 -34
  61. pulumi_snowflake/schema.py +45 -25
  62. pulumi_snowflake/scim_integration.py +39 -19
  63. pulumi_snowflake/secondary_database.py +35 -19
  64. pulumi_snowflake/sequence.py +4 -36
  65. pulumi_snowflake/session_parameter.py +0 -32
  66. pulumi_snowflake/share.py +28 -28
  67. pulumi_snowflake/shared_database.py +35 -15
  68. pulumi_snowflake/stage.py +33 -33
  69. pulumi_snowflake/storage_integration.py +28 -4
  70. pulumi_snowflake/stream.py +28 -4
  71. pulumi_snowflake/streamlit.py +39 -19
  72. pulumi_snowflake/table.py +43 -47
  73. pulumi_snowflake/table_column_masking_policy_application.py +2 -14
  74. pulumi_snowflake/table_constraint.py +5 -157
  75. pulumi_snowflake/tag.py +28 -40
  76. pulumi_snowflake/tag_association.py +5 -125
  77. pulumi_snowflake/tag_masking_policy_association.py +0 -4
  78. pulumi_snowflake/task.py +28 -92
  79. pulumi_snowflake/unsafe_execute.py +2 -20
  80. pulumi_snowflake/user.py +3341 -368
  81. pulumi_snowflake/user_password_policy_attachment.py +0 -36
  82. pulumi_snowflake/view.py +465 -185
  83. pulumi_snowflake/warehouse.py +39 -43
  84. {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/METADATA +1 -1
  85. pulumi_snowflake-0.58.0.dist-info/RECORD +129 -0
  86. {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/WHEEL +1 -1
  87. pulumi_snowflake-0.57.1a1722856643.dist-info/RECORD +0 -129
  88. {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.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
  'GetDatabaseRolesResult',
@@ -22,30 +23,28 @@ class GetDatabaseRolesResult:
22
23
  """
23
24
  A collection of values returned by getDatabaseRoles.
24
25
  """
25
- def __init__(__self__, database=None, database_roles=None, id=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__, database_roles=None, id=None, in_database=None, like=None, limit=None):
29
27
  if database_roles and not isinstance(database_roles, list):
30
28
  raise TypeError("Expected argument 'database_roles' to be a list")
31
29
  pulumi.set(__self__, "database_roles", database_roles)
32
30
  if id and not isinstance(id, str):
33
31
  raise TypeError("Expected argument 'id' to be a str")
34
32
  pulumi.set(__self__, "id", id)
35
-
36
- @property
37
- @pulumi.getter
38
- def database(self) -> str:
39
- """
40
- The database from which to return the database roles from.
41
- """
42
- return pulumi.get(self, "database")
33
+ if in_database and not isinstance(in_database, str):
34
+ raise TypeError("Expected argument 'in_database' to be a str")
35
+ pulumi.set(__self__, "in_database", in_database)
36
+ if like and not isinstance(like, str):
37
+ raise TypeError("Expected argument 'like' to be a str")
38
+ pulumi.set(__self__, "like", like)
39
+ if limit and not isinstance(limit, dict):
40
+ raise TypeError("Expected argument 'limit' to be a dict")
41
+ pulumi.set(__self__, "limit", limit)
43
42
 
44
43
  @property
45
44
  @pulumi.getter(name="databaseRoles")
46
45
  def database_roles(self) -> Sequence['outputs.GetDatabaseRolesDatabaseRoleResult']:
47
46
  """
48
- Lists all the database roles in a specified database.
47
+ Holds the aggregated output of all database role details queries.
49
48
  """
50
49
  return pulumi.get(self, "database_roles")
51
50
 
@@ -57,6 +56,30 @@ class GetDatabaseRolesResult:
57
56
  """
58
57
  return pulumi.get(self, "id")
59
58
 
59
+ @property
60
+ @pulumi.getter(name="inDatabase")
61
+ def in_database(self) -> str:
62
+ """
63
+ The database from which to return the database roles from.
64
+ """
65
+ return pulumi.get(self, "in_database")
66
+
67
+ @property
68
+ @pulumi.getter
69
+ def like(self) -> Optional[str]:
70
+ """
71
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
72
+ """
73
+ return pulumi.get(self, "like")
74
+
75
+ @property
76
+ @pulumi.getter
77
+ def limit(self) -> Optional['outputs.GetDatabaseRolesLimitResult']:
78
+ """
79
+ 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`.
80
+ """
81
+ return pulumi.get(self, "limit")
82
+
60
83
 
61
84
  class AwaitableGetDatabaseRolesResult(GetDatabaseRolesResult):
62
85
  # pylint: disable=using-constant-test
@@ -64,51 +87,51 @@ class AwaitableGetDatabaseRolesResult(GetDatabaseRolesResult):
64
87
  if False:
65
88
  yield self
66
89
  return GetDatabaseRolesResult(
67
- database=self.database,
68
90
  database_roles=self.database_roles,
69
- id=self.id)
91
+ id=self.id,
92
+ in_database=self.in_database,
93
+ like=self.like,
94
+ limit=self.limit)
70
95
 
71
96
 
72
- def get_database_roles(database: Optional[str] = None,
97
+ def get_database_roles(in_database: Optional[str] = None,
98
+ like: Optional[str] = None,
99
+ limit: Optional[Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict']] = None,
73
100
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseRolesResult:
74
101
  """
75
- ## Example Usage
76
-
77
- ```python
78
- import pulumi
79
- import pulumi_snowflake as snowflake
102
+ !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
80
103
 
81
- db_roles = snowflake.get_database_roles(database="MYDB")
82
- ```
83
104
 
84
-
85
- :param str database: The database from which to return the database roles from.
105
+ :param str in_database: The database from which to return the database roles from.
106
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
107
+ :param Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict'] 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`.
86
108
  """
87
109
  __args__ = dict()
88
- __args__['database'] = database
110
+ __args__['inDatabase'] = in_database
111
+ __args__['like'] = like
112
+ __args__['limit'] = limit
89
113
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
90
114
  __ret__ = pulumi.runtime.invoke('snowflake:index/getDatabaseRoles:getDatabaseRoles', __args__, opts=opts, typ=GetDatabaseRolesResult).value
91
115
 
92
116
  return AwaitableGetDatabaseRolesResult(
93
- database=pulumi.get(__ret__, 'database'),
94
117
  database_roles=pulumi.get(__ret__, 'database_roles'),
95
- id=pulumi.get(__ret__, 'id'))
118
+ id=pulumi.get(__ret__, 'id'),
119
+ in_database=pulumi.get(__ret__, 'in_database'),
120
+ like=pulumi.get(__ret__, 'like'),
121
+ limit=pulumi.get(__ret__, 'limit'))
96
122
 
97
123
 
98
124
  @_utilities.lift_output_func(get_database_roles)
99
- def get_database_roles_output(database: Optional[pulumi.Input[str]] = None,
125
+ def get_database_roles_output(in_database: Optional[pulumi.Input[str]] = None,
126
+ like: Optional[pulumi.Input[Optional[str]]] = None,
127
+ limit: Optional[pulumi.Input[Optional[Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict']]]] = None,
100
128
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabaseRolesResult]:
101
129
  """
102
- ## Example Usage
103
-
104
- ```python
105
- import pulumi
106
- import pulumi_snowflake as snowflake
107
-
108
- db_roles = snowflake.get_database_roles(database="MYDB")
109
- ```
130
+ !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
110
131
 
111
132
 
112
- :param str database: The database from which to return the database roles from.
133
+ :param str in_database: The database from which to return the database roles from.
134
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
135
+ :param Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict'] 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`.
113
136
  """
114
137
  ...
@@ -119,7 +119,7 @@ class AwaitableGetDatabasesResult(GetDatabasesResult):
119
119
 
120
120
 
121
121
  def get_databases(like: Optional[str] = None,
122
- limit: Optional[pulumi.InputType['GetDatabasesLimitArgs']] = None,
122
+ limit: Optional[Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict']] = None,
123
123
  starts_with: Optional[str] = None,
124
124
  with_describe: Optional[bool] = None,
125
125
  with_parameters: Optional[bool] = None,
@@ -131,7 +131,7 @@ def get_databases(like: Optional[str] = None,
131
131
 
132
132
 
133
133
  :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
134
- :param pulumi.InputType['GetDatabasesLimitArgs'] 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 Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict'] 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`.
135
135
  :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
136
136
  :param bool with_describe: Runs DESC DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the description field. By default this value is set to true.
137
137
  :param bool with_parameters: Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
@@ -157,7 +157,7 @@ def get_databases(like: Optional[str] = None,
157
157
 
158
158
  @_utilities.lift_output_func(get_databases)
159
159
  def get_databases_output(like: Optional[pulumi.Input[Optional[str]]] = None,
160
- limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetDatabasesLimitArgs']]]] = None,
160
+ limit: Optional[pulumi.Input[Optional[Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict']]]] = None,
161
161
  starts_with: Optional[pulumi.Input[Optional[str]]] = None,
162
162
  with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
163
163
  with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
@@ -169,7 +169,7 @@ def get_databases_output(like: Optional[pulumi.Input[Optional[str]]] = None,
169
169
 
170
170
 
171
171
  :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
172
- :param pulumi.InputType['GetDatabasesLimitArgs'] 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`.
172
+ :param Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict'] 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`.
173
173
  :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
174
174
  :param bool with_describe: Runs DESC DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the description field. By default this value is set to true.
175
175
  :param bool with_parameters: Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
@@ -106,17 +106,17 @@ class AwaitableGetDynamicTablesResult(GetDynamicTablesResult):
106
106
  starts_with=self.starts_with)
107
107
 
108
108
 
109
- def get_dynamic_tables(in_: Optional[pulumi.InputType['GetDynamicTablesInArgs']] = None,
110
- like: Optional[pulumi.InputType['GetDynamicTablesLikeArgs']] = None,
111
- limit: Optional[pulumi.InputType['GetDynamicTablesLimitArgs']] = None,
109
+ def get_dynamic_tables(in_: Optional[Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict']] = None,
110
+ like: Optional[Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict']] = None,
111
+ limit: Optional[Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict']] = None,
112
112
  starts_with: Optional[str] = None,
113
113
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDynamicTablesResult:
114
114
  """
115
115
  Use this data source to access information about an existing resource.
116
116
 
117
- :param pulumi.InputType['GetDynamicTablesInArgs'] in_: IN clause to filter the list of dynamic tables.
118
- :param pulumi.InputType['GetDynamicTablesLikeArgs'] like: LIKE clause to filter the list of dynamic tables.
119
- :param pulumi.InputType['GetDynamicTablesLimitArgs'] limit: Optionally limits the maximum number of rows returned, while also enabling “pagination” of the results. Note that the actual number of rows returned might be less than the specified limit (e.g. the number of existing objects is less than the specified limit).
117
+ :param Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict'] in_: IN clause to filter the list of dynamic tables.
118
+ :param Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict'] like: LIKE clause to filter the list of dynamic tables.
119
+ :param Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict'] limit: Optionally limits the maximum number of rows returned, while also enabling “pagination” of the results. Note that the actual number of rows returned might be less than the specified limit (e.g. the number of existing objects is less than the specified limit).
120
120
  :param str starts_with: Optionally filters the command output based on the characters that appear at the beginning of the object name. The string is case-sensitive.
121
121
  """
122
122
  __args__ = dict()
@@ -137,17 +137,17 @@ def get_dynamic_tables(in_: Optional[pulumi.InputType['GetDynamicTablesInArgs']]
137
137
 
138
138
 
139
139
  @_utilities.lift_output_func(get_dynamic_tables)
140
- def get_dynamic_tables_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetDynamicTablesInArgs']]]] = None,
141
- like: Optional[pulumi.Input[Optional[pulumi.InputType['GetDynamicTablesLikeArgs']]]] = None,
142
- limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetDynamicTablesLimitArgs']]]] = None,
140
+ def get_dynamic_tables_output(in_: Optional[pulumi.Input[Optional[Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict']]]] = None,
141
+ like: Optional[pulumi.Input[Optional[Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict']]]] = None,
142
+ limit: Optional[pulumi.Input[Optional[Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict']]]] = None,
143
143
  starts_with: Optional[pulumi.Input[Optional[str]]] = None,
144
144
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDynamicTablesResult]:
145
145
  """
146
146
  Use this data source to access information about an existing resource.
147
147
 
148
- :param pulumi.InputType['GetDynamicTablesInArgs'] in_: IN clause to filter the list of dynamic tables.
149
- :param pulumi.InputType['GetDynamicTablesLikeArgs'] like: LIKE clause to filter the list of dynamic tables.
150
- :param pulumi.InputType['GetDynamicTablesLimitArgs'] limit: Optionally limits the maximum number of rows returned, while also enabling “pagination” of the results. Note that the actual number of rows returned might be less than the specified limit (e.g. the number of existing objects is less than the specified limit).
148
+ :param Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict'] in_: IN clause to filter the list of dynamic tables.
149
+ :param Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict'] like: LIKE clause to filter the list of dynamic tables.
150
+ :param Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict'] limit: Optionally limits the maximum number of rows returned, while also enabling “pagination” of the results. Note that the actual number of rows returned might be less than the specified limit (e.g. the number of existing objects is less than the specified limit).
151
151
  :param str starts_with: Optionally filters the command output based on the characters that appear at the beginning of the object name. The string is case-sensitive.
152
152
  """
153
153
  ...
@@ -118,11 +118,11 @@ class AwaitableGetGrantsResult(GetGrantsResult):
118
118
  id=self.id)
119
119
 
120
120
 
121
- def get_grants(future_grants_in: Optional[pulumi.InputType['GetGrantsFutureGrantsInArgs']] = None,
122
- future_grants_to: Optional[pulumi.InputType['GetGrantsFutureGrantsToArgs']] = None,
123
- grants_of: Optional[pulumi.InputType['GetGrantsGrantsOfArgs']] = None,
124
- grants_on: Optional[pulumi.InputType['GetGrantsGrantsOnArgs']] = None,
125
- grants_to: Optional[pulumi.InputType['GetGrantsGrantsToArgs']] = None,
121
+ def get_grants(future_grants_in: Optional[Union['GetGrantsFutureGrantsInArgs', 'GetGrantsFutureGrantsInArgsDict']] = None,
122
+ future_grants_to: Optional[Union['GetGrantsFutureGrantsToArgs', 'GetGrantsFutureGrantsToArgsDict']] = None,
123
+ grants_of: Optional[Union['GetGrantsGrantsOfArgs', 'GetGrantsGrantsOfArgsDict']] = None,
124
+ grants_on: Optional[Union['GetGrantsGrantsOnArgs', 'GetGrantsGrantsOnArgsDict']] = None,
125
+ grants_to: Optional[Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict']] = None,
126
126
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGrantsResult:
127
127
  """
128
128
  ## Example Usage
@@ -135,90 +135,90 @@ def get_grants(future_grants_in: Optional[pulumi.InputType['GetGrantsFutureGrant
135
135
  ### SHOW GRANTS ON ...
136
136
  ##################################
137
137
  # account
138
- example_on_account = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
139
- account=True,
140
- ))
138
+ example_on_account = snowflake.get_grants(grants_on={
139
+ "account": True,
140
+ })
141
141
  # account object (e.g. database)
142
- example_on_account_object = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
143
- object_name="some_database",
144
- object_type="DATABASE",
145
- ))
142
+ example_on_account_object = snowflake.get_grants(grants_on={
143
+ "object_name": "some_database",
144
+ "object_type": "DATABASE",
145
+ })
146
146
  # database object (e.g. schema)
147
- example_on_database_object = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
148
- object_name="\\"some_database\\".\\"some_schema\\"",
149
- object_type="SCHEMA",
150
- ))
147
+ example_on_database_object = snowflake.get_grants(grants_on={
148
+ "object_name": "\\"some_database\\".\\"some_schema\\"",
149
+ "object_type": "SCHEMA",
150
+ })
151
151
  # schema object (e.g. table)
152
- example_on_schema_object = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
153
- object_name="\\"some_database\\".\\"some_schema\\".\\"some_table\\"",
154
- object_type="TABLE",
155
- ))
152
+ example_on_schema_object = snowflake.get_grants(grants_on={
153
+ "object_name": "\\"some_database\\".\\"some_schema\\".\\"some_table\\"",
154
+ "object_type": "TABLE",
155
+ })
156
156
  # application
157
- example_to_application = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
158
- application="some_application",
159
- ))
157
+ example_to_application = snowflake.get_grants(grants_to={
158
+ "application": "some_application",
159
+ })
160
160
  # application role
161
- example_to_application_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
162
- application_role="\\"some_application\\".\\"some_application_role\\"",
163
- ))
161
+ example_to_application_role = snowflake.get_grants(grants_to={
162
+ "application_role": "\\"some_application\\".\\"some_application_role\\"",
163
+ })
164
164
  # account role
165
- example_to_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
166
- account_role="some_role",
167
- ))
165
+ example_to_role = snowflake.get_grants(grants_to={
166
+ "account_role": "some_role",
167
+ })
168
168
  # database role
169
- example_to_database_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
170
- database_role="\\"some_database\\".\\"some_database_role\\"",
171
- ))
169
+ example_to_database_role = snowflake.get_grants(grants_to={
170
+ "database_role": "\\"some_database\\".\\"some_database_role\\"",
171
+ })
172
172
  # share
173
- example_to_share = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
174
- share=snowflake.GetGrantsGrantsToShareArgs(
175
- share_name="some_share",
176
- ),
177
- ))
173
+ example_to_share = snowflake.get_grants(grants_to={
174
+ "share": {
175
+ "share_name": "some_share",
176
+ },
177
+ })
178
178
  # user
179
- example_to_user = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
180
- user="some_user",
181
- ))
179
+ example_to_user = snowflake.get_grants(grants_to={
180
+ "user": "some_user",
181
+ })
182
182
  # application role
183
- example_of_application_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
184
- application_role="\\"some_application\\".\\"some_application_role\\"",
185
- ))
183
+ example_of_application_role = snowflake.get_grants(grants_of={
184
+ "application_role": "\\"some_application\\".\\"some_application_role\\"",
185
+ })
186
186
  # database role
187
- example_of_database_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
188
- database_role="\\"some_database\\".\\"some_database_role\\"",
189
- ))
187
+ example_of_database_role = snowflake.get_grants(grants_of={
188
+ "database_role": "\\"some_database\\".\\"some_database_role\\"",
189
+ })
190
190
  # account role
191
- example_of_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
192
- account_role="some_role",
193
- ))
191
+ example_of_role = snowflake.get_grants(grants_of={
192
+ "account_role": "some_role",
193
+ })
194
194
  # share
195
- example_of_share = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
196
- share="some_share",
197
- ))
195
+ example_of_share = snowflake.get_grants(grants_of={
196
+ "share": "some_share",
197
+ })
198
198
  # database
199
- example_future_in_database = snowflake.get_grants(future_grants_in=snowflake.GetGrantsFutureGrantsInArgs(
200
- database="some_database",
201
- ))
199
+ example_future_in_database = snowflake.get_grants(future_grants_in={
200
+ "database": "some_database",
201
+ })
202
202
  # schema
203
- example_future_in_schema = snowflake.get_grants(future_grants_in=snowflake.GetGrantsFutureGrantsInArgs(
204
- schema="\\"some_database\\".\\"some_schema\\"",
205
- ))
203
+ example_future_in_schema = snowflake.get_grants(future_grants_in={
204
+ "schema": "\\"some_database\\".\\"some_schema\\"",
205
+ })
206
206
  # account role
207
- example_future_to_role = snowflake.get_grants(future_grants_to=snowflake.GetGrantsFutureGrantsToArgs(
208
- account_role="some_role",
209
- ))
207
+ example_future_to_role = snowflake.get_grants(future_grants_to={
208
+ "account_role": "some_role",
209
+ })
210
210
  # database role
211
- example_future_to_database_role = snowflake.get_grants(future_grants_to=snowflake.GetGrantsFutureGrantsToArgs(
212
- database_role="\\"some_database\\".\\"some_database_role\\"",
213
- ))
211
+ example_future_to_database_role = snowflake.get_grants(future_grants_to={
212
+ "database_role": "\\"some_database\\".\\"some_database_role\\"",
213
+ })
214
214
  ```
215
215
 
216
216
 
217
- :param pulumi.InputType['GetGrantsFutureGrantsInArgs'] future_grants_in: Lists all privileges on new (i.e. future) objects.
218
- :param pulumi.InputType['GetGrantsFutureGrantsToArgs'] future_grants_to: Lists all privileges granted to the object on new (i.e. future) objects.
219
- :param pulumi.InputType['GetGrantsGrantsOfArgs'] grants_of: Lists all objects to which the given object has been granted.
220
- :param pulumi.InputType['GetGrantsGrantsOnArgs'] grants_on: Lists all privileges that have been granted on an object or on an account.
221
- :param pulumi.InputType['GetGrantsGrantsToArgs'] grants_to: Lists all privileges granted to the object.
217
+ :param Union['GetGrantsFutureGrantsInArgs', 'GetGrantsFutureGrantsInArgsDict'] future_grants_in: Lists all privileges on new (i.e. future) objects.
218
+ :param Union['GetGrantsFutureGrantsToArgs', 'GetGrantsFutureGrantsToArgsDict'] future_grants_to: Lists all privileges granted to the object on new (i.e. future) objects.
219
+ :param Union['GetGrantsGrantsOfArgs', 'GetGrantsGrantsOfArgsDict'] grants_of: Lists all objects to which the given object has been granted.
220
+ :param Union['GetGrantsGrantsOnArgs', 'GetGrantsGrantsOnArgsDict'] grants_on: Lists all privileges that have been granted on an object or on an account.
221
+ :param Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict'] grants_to: Lists all privileges granted to the object.
222
222
  """
223
223
  __args__ = dict()
224
224
  __args__['futureGrantsIn'] = future_grants_in
@@ -240,11 +240,11 @@ def get_grants(future_grants_in: Optional[pulumi.InputType['GetGrantsFutureGrant
240
240
 
241
241
 
242
242
  @_utilities.lift_output_func(get_grants)
243
- def get_grants_output(future_grants_in: Optional[pulumi.Input[Optional[pulumi.InputType['GetGrantsFutureGrantsInArgs']]]] = None,
244
- future_grants_to: Optional[pulumi.Input[Optional[pulumi.InputType['GetGrantsFutureGrantsToArgs']]]] = None,
245
- grants_of: Optional[pulumi.Input[Optional[pulumi.InputType['GetGrantsGrantsOfArgs']]]] = None,
246
- grants_on: Optional[pulumi.Input[Optional[pulumi.InputType['GetGrantsGrantsOnArgs']]]] = None,
247
- grants_to: Optional[pulumi.Input[Optional[pulumi.InputType['GetGrantsGrantsToArgs']]]] = None,
243
+ def get_grants_output(future_grants_in: Optional[pulumi.Input[Optional[Union['GetGrantsFutureGrantsInArgs', 'GetGrantsFutureGrantsInArgsDict']]]] = None,
244
+ future_grants_to: Optional[pulumi.Input[Optional[Union['GetGrantsFutureGrantsToArgs', 'GetGrantsFutureGrantsToArgsDict']]]] = None,
245
+ grants_of: Optional[pulumi.Input[Optional[Union['GetGrantsGrantsOfArgs', 'GetGrantsGrantsOfArgsDict']]]] = None,
246
+ grants_on: Optional[pulumi.Input[Optional[Union['GetGrantsGrantsOnArgs', 'GetGrantsGrantsOnArgsDict']]]] = None,
247
+ grants_to: Optional[pulumi.Input[Optional[Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict']]]] = None,
248
248
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGrantsResult]:
249
249
  """
250
250
  ## Example Usage
@@ -257,89 +257,89 @@ def get_grants_output(future_grants_in: Optional[pulumi.Input[Optional[pulumi.In
257
257
  ### SHOW GRANTS ON ...
258
258
  ##################################
259
259
  # account
260
- example_on_account = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
261
- account=True,
262
- ))
260
+ example_on_account = snowflake.get_grants(grants_on={
261
+ "account": True,
262
+ })
263
263
  # account object (e.g. database)
264
- example_on_account_object = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
265
- object_name="some_database",
266
- object_type="DATABASE",
267
- ))
264
+ example_on_account_object = snowflake.get_grants(grants_on={
265
+ "object_name": "some_database",
266
+ "object_type": "DATABASE",
267
+ })
268
268
  # database object (e.g. schema)
269
- example_on_database_object = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
270
- object_name="\\"some_database\\".\\"some_schema\\"",
271
- object_type="SCHEMA",
272
- ))
269
+ example_on_database_object = snowflake.get_grants(grants_on={
270
+ "object_name": "\\"some_database\\".\\"some_schema\\"",
271
+ "object_type": "SCHEMA",
272
+ })
273
273
  # schema object (e.g. table)
274
- example_on_schema_object = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
275
- object_name="\\"some_database\\".\\"some_schema\\".\\"some_table\\"",
276
- object_type="TABLE",
277
- ))
274
+ example_on_schema_object = snowflake.get_grants(grants_on={
275
+ "object_name": "\\"some_database\\".\\"some_schema\\".\\"some_table\\"",
276
+ "object_type": "TABLE",
277
+ })
278
278
  # application
279
- example_to_application = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
280
- application="some_application",
281
- ))
279
+ example_to_application = snowflake.get_grants(grants_to={
280
+ "application": "some_application",
281
+ })
282
282
  # application role
283
- example_to_application_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
284
- application_role="\\"some_application\\".\\"some_application_role\\"",
285
- ))
283
+ example_to_application_role = snowflake.get_grants(grants_to={
284
+ "application_role": "\\"some_application\\".\\"some_application_role\\"",
285
+ })
286
286
  # account role
287
- example_to_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
288
- account_role="some_role",
289
- ))
287
+ example_to_role = snowflake.get_grants(grants_to={
288
+ "account_role": "some_role",
289
+ })
290
290
  # database role
291
- example_to_database_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
292
- database_role="\\"some_database\\".\\"some_database_role\\"",
293
- ))
291
+ example_to_database_role = snowflake.get_grants(grants_to={
292
+ "database_role": "\\"some_database\\".\\"some_database_role\\"",
293
+ })
294
294
  # share
295
- example_to_share = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
296
- share=snowflake.GetGrantsGrantsToShareArgs(
297
- share_name="some_share",
298
- ),
299
- ))
295
+ example_to_share = snowflake.get_grants(grants_to={
296
+ "share": {
297
+ "share_name": "some_share",
298
+ },
299
+ })
300
300
  # user
301
- example_to_user = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
302
- user="some_user",
303
- ))
301
+ example_to_user = snowflake.get_grants(grants_to={
302
+ "user": "some_user",
303
+ })
304
304
  # application role
305
- example_of_application_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
306
- application_role="\\"some_application\\".\\"some_application_role\\"",
307
- ))
305
+ example_of_application_role = snowflake.get_grants(grants_of={
306
+ "application_role": "\\"some_application\\".\\"some_application_role\\"",
307
+ })
308
308
  # database role
309
- example_of_database_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
310
- database_role="\\"some_database\\".\\"some_database_role\\"",
311
- ))
309
+ example_of_database_role = snowflake.get_grants(grants_of={
310
+ "database_role": "\\"some_database\\".\\"some_database_role\\"",
311
+ })
312
312
  # account role
313
- example_of_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
314
- account_role="some_role",
315
- ))
313
+ example_of_role = snowflake.get_grants(grants_of={
314
+ "account_role": "some_role",
315
+ })
316
316
  # share
317
- example_of_share = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
318
- share="some_share",
319
- ))
317
+ example_of_share = snowflake.get_grants(grants_of={
318
+ "share": "some_share",
319
+ })
320
320
  # database
321
- example_future_in_database = snowflake.get_grants(future_grants_in=snowflake.GetGrantsFutureGrantsInArgs(
322
- database="some_database",
323
- ))
321
+ example_future_in_database = snowflake.get_grants(future_grants_in={
322
+ "database": "some_database",
323
+ })
324
324
  # schema
325
- example_future_in_schema = snowflake.get_grants(future_grants_in=snowflake.GetGrantsFutureGrantsInArgs(
326
- schema="\\"some_database\\".\\"some_schema\\"",
327
- ))
325
+ example_future_in_schema = snowflake.get_grants(future_grants_in={
326
+ "schema": "\\"some_database\\".\\"some_schema\\"",
327
+ })
328
328
  # account role
329
- example_future_to_role = snowflake.get_grants(future_grants_to=snowflake.GetGrantsFutureGrantsToArgs(
330
- account_role="some_role",
331
- ))
329
+ example_future_to_role = snowflake.get_grants(future_grants_to={
330
+ "account_role": "some_role",
331
+ })
332
332
  # database role
333
- example_future_to_database_role = snowflake.get_grants(future_grants_to=snowflake.GetGrantsFutureGrantsToArgs(
334
- database_role="\\"some_database\\".\\"some_database_role\\"",
335
- ))
333
+ example_future_to_database_role = snowflake.get_grants(future_grants_to={
334
+ "database_role": "\\"some_database\\".\\"some_database_role\\"",
335
+ })
336
336
  ```
337
337
 
338
338
 
339
- :param pulumi.InputType['GetGrantsFutureGrantsInArgs'] future_grants_in: Lists all privileges on new (i.e. future) objects.
340
- :param pulumi.InputType['GetGrantsFutureGrantsToArgs'] future_grants_to: Lists all privileges granted to the object on new (i.e. future) objects.
341
- :param pulumi.InputType['GetGrantsGrantsOfArgs'] grants_of: Lists all objects to which the given object has been granted.
342
- :param pulumi.InputType['GetGrantsGrantsOnArgs'] grants_on: Lists all privileges that have been granted on an object or on an account.
343
- :param pulumi.InputType['GetGrantsGrantsToArgs'] grants_to: Lists all privileges granted to the object.
339
+ :param Union['GetGrantsFutureGrantsInArgs', 'GetGrantsFutureGrantsInArgsDict'] future_grants_in: Lists all privileges on new (i.e. future) objects.
340
+ :param Union['GetGrantsFutureGrantsToArgs', 'GetGrantsFutureGrantsToArgsDict'] future_grants_to: Lists all privileges granted to the object on new (i.e. future) objects.
341
+ :param Union['GetGrantsGrantsOfArgs', 'GetGrantsGrantsOfArgsDict'] grants_of: Lists all objects to which the given object has been granted.
342
+ :param Union['GetGrantsGrantsOnArgs', 'GetGrantsGrantsOnArgsDict'] grants_on: Lists all privileges that have been granted on an object or on an account.
343
+ :param Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict'] grants_to: Lists all privileges granted to the object.
344
344
  """
345
345
  ...