pulumi-snowflake 0.58.0__py3-none-any.whl → 0.58.0a1722527984__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 (92) hide show
  1. pulumi_snowflake/_inputs.py +125 -5857
  2. pulumi_snowflake/account.py +50 -28
  3. pulumi_snowflake/account_parameter.py +28 -0
  4. pulumi_snowflake/account_password_policy_attachment.py +30 -2
  5. pulumi_snowflake/account_role.py +32 -51
  6. pulumi_snowflake/alert.py +45 -33
  7. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +19 -39
  8. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +19 -39
  9. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +19 -39
  10. pulumi_snowflake/api_integration.py +54 -28
  11. pulumi_snowflake/cortex_search_service.py +0 -28
  12. pulumi_snowflake/database.py +148 -97
  13. pulumi_snowflake/database_old.py +77 -5
  14. pulumi_snowflake/database_role.py +42 -76
  15. pulumi_snowflake/dynamic_table.py +43 -33
  16. pulumi_snowflake/email_notification_integration.py +26 -28
  17. pulumi_snowflake/external_function.py +62 -38
  18. pulumi_snowflake/external_oauth_integration.py +21 -41
  19. pulumi_snowflake/external_table.py +58 -38
  20. pulumi_snowflake/failover_group.py +82 -38
  21. pulumi_snowflake/file_format.py +26 -28
  22. pulumi_snowflake/function.py +9 -33
  23. pulumi_snowflake/get_cortex_search_services.py +16 -16
  24. pulumi_snowflake/get_database_roles.py +38 -61
  25. pulumi_snowflake/get_databases.py +6 -6
  26. pulumi_snowflake/get_dynamic_tables.py +12 -12
  27. pulumi_snowflake/get_grants.py +138 -138
  28. pulumi_snowflake/get_network_policies.py +2 -2
  29. pulumi_snowflake/get_roles.py +2 -2
  30. pulumi_snowflake/get_schemas.py +8 -12
  31. pulumi_snowflake/get_security_integrations.py +2 -2
  32. pulumi_snowflake/get_streamlits.py +10 -10
  33. pulumi_snowflake/get_users.py +33 -96
  34. pulumi_snowflake/get_views.py +53 -92
  35. pulumi_snowflake/get_warehouses.py +2 -2
  36. pulumi_snowflake/grant_account_role.py +4 -0
  37. pulumi_snowflake/grant_application_role.py +4 -0
  38. pulumi_snowflake/grant_database_role.py +4 -0
  39. pulumi_snowflake/grant_ownership.py +5 -5
  40. pulumi_snowflake/grant_privileges_to_account_role.py +15 -15
  41. pulumi_snowflake/grant_privileges_to_database_role.py +12 -16
  42. pulumi_snowflake/grant_privileges_to_share.py +0 -47
  43. pulumi_snowflake/managed_account.py +4 -28
  44. pulumi_snowflake/masking_policy.py +89 -33
  45. pulumi_snowflake/materialized_view.py +39 -33
  46. pulumi_snowflake/network_policy.py +49 -47
  47. pulumi_snowflake/network_policy_attachment.py +30 -0
  48. pulumi_snowflake/network_rule.py +66 -28
  49. pulumi_snowflake/notification_integration.py +34 -28
  50. pulumi_snowflake/oauth_integration.py +34 -0
  51. pulumi_snowflake/oauth_integration_for_custom_clients.py +105 -39
  52. pulumi_snowflake/oauth_integration_for_partner_applications.py +19 -39
  53. pulumi_snowflake/object_parameter.py +103 -5
  54. pulumi_snowflake/outputs.py +4207 -12013
  55. pulumi_snowflake/password_policy.py +28 -28
  56. pulumi_snowflake/pipe.py +4 -28
  57. pulumi_snowflake/procedure.py +9 -33
  58. pulumi_snowflake/provider.py +16 -16
  59. pulumi_snowflake/pulumi-plugin.json +1 -1
  60. pulumi_snowflake/resource_monitor.py +48 -28
  61. pulumi_snowflake/role.py +32 -51
  62. pulumi_snowflake/row_access_policy.py +34 -28
  63. pulumi_snowflake/saml2_integration.py +19 -39
  64. pulumi_snowflake/saml_integration.py +34 -0
  65. pulumi_snowflake/schema.py +28 -52
  66. pulumi_snowflake/scim_integration.py +19 -39
  67. pulumi_snowflake/secondary_database.py +19 -35
  68. pulumi_snowflake/sequence.py +36 -4
  69. pulumi_snowflake/session_parameter.py +32 -0
  70. pulumi_snowflake/share.py +28 -28
  71. pulumi_snowflake/shared_database.py +15 -35
  72. pulumi_snowflake/stage.py +33 -33
  73. pulumi_snowflake/storage_integration.py +4 -28
  74. pulumi_snowflake/stream.py +4 -28
  75. pulumi_snowflake/streamlit.py +19 -39
  76. pulumi_snowflake/table.py +47 -43
  77. pulumi_snowflake/table_column_masking_policy_application.py +14 -2
  78. pulumi_snowflake/table_constraint.py +157 -5
  79. pulumi_snowflake/tag.py +40 -28
  80. pulumi_snowflake/tag_association.py +125 -5
  81. pulumi_snowflake/tag_masking_policy_association.py +4 -0
  82. pulumi_snowflake/task.py +92 -28
  83. pulumi_snowflake/unsafe_execute.py +20 -2
  84. pulumi_snowflake/user.py +373 -3346
  85. pulumi_snowflake/user_password_policy_attachment.py +36 -0
  86. pulumi_snowflake/view.py +185 -465
  87. pulumi_snowflake/warehouse.py +43 -39
  88. {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/METADATA +1 -1
  89. pulumi_snowflake-0.58.0a1722527984.dist-info/RECORD +129 -0
  90. {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/WHEEL +1 -1
  91. pulumi_snowflake-0.58.0.dist-info/RECORD +0 -129
  92. {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/top_level.txt +0 -0
@@ -9,7 +9,6 @@ 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 *
13
12
 
14
13
  __all__ = [
15
14
  'GetDatabaseRolesResult',
@@ -23,62 +22,40 @@ class GetDatabaseRolesResult:
23
22
  """
24
23
  A collection of values returned by getDatabaseRoles.
25
24
  """
26
- def __init__(__self__, database_roles=None, id=None, in_database=None, like=None, limit=None):
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)
27
29
  if database_roles and not isinstance(database_roles, list):
28
30
  raise TypeError("Expected argument 'database_roles' to be a list")
29
31
  pulumi.set(__self__, "database_roles", database_roles)
30
32
  if id and not isinstance(id, str):
31
33
  raise TypeError("Expected argument 'id' to be a str")
32
34
  pulumi.set(__self__, "id", id)
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)
42
-
43
- @property
44
- @pulumi.getter(name="databaseRoles")
45
- def database_roles(self) -> Sequence['outputs.GetDatabaseRolesDatabaseRoleResult']:
46
- """
47
- Holds the aggregated output of all database role details queries.
48
- """
49
- return pulumi.get(self, "database_roles")
50
35
 
51
36
  @property
52
37
  @pulumi.getter
53
- def id(self) -> str:
54
- """
55
- The provider-assigned unique ID for this managed resource.
56
- """
57
- return pulumi.get(self, "id")
58
-
59
- @property
60
- @pulumi.getter(name="inDatabase")
61
- def in_database(self) -> str:
38
+ def database(self) -> str:
62
39
  """
63
40
  The database from which to return the database roles from.
64
41
  """
65
- return pulumi.get(self, "in_database")
42
+ return pulumi.get(self, "database")
66
43
 
67
44
  @property
68
- @pulumi.getter
69
- def like(self) -> Optional[str]:
45
+ @pulumi.getter(name="databaseRoles")
46
+ def database_roles(self) -> Sequence['outputs.GetDatabaseRolesDatabaseRoleResult']:
70
47
  """
71
- Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
48
+ Lists all the database roles in a specified database.
72
49
  """
73
- return pulumi.get(self, "like")
50
+ return pulumi.get(self, "database_roles")
74
51
 
75
52
  @property
76
53
  @pulumi.getter
77
- def limit(self) -> Optional['outputs.GetDatabaseRolesLimitResult']:
54
+ def id(self) -> str:
78
55
  """
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`.
56
+ The provider-assigned unique ID for this managed resource.
80
57
  """
81
- return pulumi.get(self, "limit")
58
+ return pulumi.get(self, "id")
82
59
 
83
60
 
84
61
  class AwaitableGetDatabaseRolesResult(GetDatabaseRolesResult):
@@ -87,51 +64,51 @@ class AwaitableGetDatabaseRolesResult(GetDatabaseRolesResult):
87
64
  if False:
88
65
  yield self
89
66
  return GetDatabaseRolesResult(
67
+ database=self.database,
90
68
  database_roles=self.database_roles,
91
- id=self.id,
92
- in_database=self.in_database,
93
- like=self.like,
94
- limit=self.limit)
69
+ id=self.id)
95
70
 
96
71
 
97
- def get_database_roles(in_database: Optional[str] = None,
98
- like: Optional[str] = None,
99
- limit: Optional[Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict']] = None,
72
+ def get_database_roles(database: Optional[str] = None,
100
73
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabaseRolesResult:
101
74
  """
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.
75
+ ## Example Usage
76
+
77
+ ```python
78
+ import pulumi
79
+ import pulumi_snowflake as snowflake
103
80
 
81
+ db_roles = snowflake.get_database_roles(database="MYDB")
82
+ ```
104
83
 
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`.
84
+
85
+ :param str database: The database from which to return the database roles from.
108
86
  """
109
87
  __args__ = dict()
110
- __args__['inDatabase'] = in_database
111
- __args__['like'] = like
112
- __args__['limit'] = limit
88
+ __args__['database'] = database
113
89
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
114
90
  __ret__ = pulumi.runtime.invoke('snowflake:index/getDatabaseRoles:getDatabaseRoles', __args__, opts=opts, typ=GetDatabaseRolesResult).value
115
91
 
116
92
  return AwaitableGetDatabaseRolesResult(
93
+ database=pulumi.get(__ret__, 'database'),
117
94
  database_roles=pulumi.get(__ret__, 'database_roles'),
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'))
95
+ id=pulumi.get(__ret__, 'id'))
122
96
 
123
97
 
124
98
  @_utilities.lift_output_func(get_database_roles)
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,
99
+ def get_database_roles_output(database: Optional[pulumi.Input[str]] = None,
128
100
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabaseRolesResult]:
129
101
  """
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.
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
+ ```
131
110
 
132
111
 
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`.
112
+ :param str database: The database from which to return the database roles from.
136
113
  """
137
114
  ...
@@ -119,19 +119,19 @@ class AwaitableGetDatabasesResult(GetDatabasesResult):
119
119
 
120
120
 
121
121
  def get_databases(like: Optional[str] = None,
122
- limit: Optional[Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict']] = None,
122
+ limit: Optional[pulumi.InputType['GetDatabasesLimitArgs']] = None,
123
123
  starts_with: Optional[str] = None,
124
124
  with_describe: Optional[bool] = None,
125
125
  with_parameters: Optional[bool] = None,
126
126
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabasesResult:
127
127
  """
128
- !> **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.
128
+ !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
129
129
 
130
130
  Datasource used to get details of filtered databases. Filtering is aligned with the current possibilities for [SHOW DATABASES](https://docs.snowflake.com/en/sql-reference/sql/show-databases) query (`like`, `starts_with`, and `limit` are all supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
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 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`.
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`.
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,19 +157,19 @@ 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[Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict']]]] = None,
160
+ limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetDatabasesLimitArgs']]]] = 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,
164
164
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabasesResult]:
165
165
  """
166
- !> **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.
166
+ !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
167
167
 
168
168
  Datasource used to get details of filtered databases. Filtering is aligned with the current possibilities for [SHOW DATABASES](https://docs.snowflake.com/en/sql-reference/sql/show-databases) query (`like`, `starts_with`, and `limit` are all supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
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 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`.
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`.
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[Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict']] = None,
110
- like: Optional[Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict']] = None,
111
- limit: Optional[Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict']] = None,
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,
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 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).
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).
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[Union['GetDynamicTablesInArgs', 'GetDynamic
137
137
 
138
138
 
139
139
  @_utilities.lift_output_func(get_dynamic_tables)
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,
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,
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 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).
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).
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[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,
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,
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[Union['GetGrantsFutureGrantsInArgs', '
135
135
  ### SHOW GRANTS ON ...
136
136
  ##################################
137
137
  # account
138
- example_on_account = snowflake.get_grants(grants_on={
139
- "account": True,
140
- })
138
+ example_on_account = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
139
+ account=True,
140
+ ))
141
141
  # account object (e.g. database)
142
- example_on_account_object = snowflake.get_grants(grants_on={
143
- "object_name": "some_database",
144
- "object_type": "DATABASE",
145
- })
142
+ example_on_account_object = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
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={
148
- "object_name": "\\"some_database\\".\\"some_schema\\"",
149
- "object_type": "SCHEMA",
150
- })
147
+ example_on_database_object = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
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={
153
- "object_name": "\\"some_database\\".\\"some_schema\\".\\"some_table\\"",
154
- "object_type": "TABLE",
155
- })
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
+ ))
156
156
  # application
157
- example_to_application = snowflake.get_grants(grants_to={
158
- "application": "some_application",
159
- })
157
+ example_to_application = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
158
+ application="some_application",
159
+ ))
160
160
  # application role
161
- example_to_application_role = snowflake.get_grants(grants_to={
162
- "application_role": "\\"some_application\\".\\"some_application_role\\"",
163
- })
161
+ example_to_application_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
162
+ application_role="\\"some_application\\".\\"some_application_role\\"",
163
+ ))
164
164
  # account role
165
- example_to_role = snowflake.get_grants(grants_to={
166
- "account_role": "some_role",
167
- })
165
+ example_to_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
166
+ account_role="some_role",
167
+ ))
168
168
  # database role
169
- example_to_database_role = snowflake.get_grants(grants_to={
170
- "database_role": "\\"some_database\\".\\"some_database_role\\"",
171
- })
169
+ example_to_database_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
170
+ database_role="\\"some_database\\".\\"some_database_role\\"",
171
+ ))
172
172
  # share
173
- example_to_share = snowflake.get_grants(grants_to={
174
- "share": {
175
- "share_name": "some_share",
176
- },
177
- })
173
+ example_to_share = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
174
+ share=snowflake.GetGrantsGrantsToShareArgs(
175
+ share_name="some_share",
176
+ ),
177
+ ))
178
178
  # user
179
- example_to_user = snowflake.get_grants(grants_to={
180
- "user": "some_user",
181
- })
179
+ example_to_user = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
180
+ user="some_user",
181
+ ))
182
182
  # application role
183
- example_of_application_role = snowflake.get_grants(grants_of={
184
- "application_role": "\\"some_application\\".\\"some_application_role\\"",
185
- })
183
+ example_of_application_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
184
+ application_role="\\"some_application\\".\\"some_application_role\\"",
185
+ ))
186
186
  # database role
187
- example_of_database_role = snowflake.get_grants(grants_of={
188
- "database_role": "\\"some_database\\".\\"some_database_role\\"",
189
- })
187
+ example_of_database_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
188
+ database_role="\\"some_database\\".\\"some_database_role\\"",
189
+ ))
190
190
  # account role
191
- example_of_role = snowflake.get_grants(grants_of={
192
- "account_role": "some_role",
193
- })
191
+ example_of_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
192
+ account_role="some_role",
193
+ ))
194
194
  # share
195
- example_of_share = snowflake.get_grants(grants_of={
196
- "share": "some_share",
197
- })
195
+ example_of_share = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
196
+ share="some_share",
197
+ ))
198
198
  # database
199
- example_future_in_database = snowflake.get_grants(future_grants_in={
200
- "database": "some_database",
201
- })
199
+ example_future_in_database = snowflake.get_grants(future_grants_in=snowflake.GetGrantsFutureGrantsInArgs(
200
+ database="some_database",
201
+ ))
202
202
  # schema
203
- example_future_in_schema = snowflake.get_grants(future_grants_in={
204
- "schema": "\\"some_database\\".\\"some_schema\\"",
205
- })
203
+ example_future_in_schema = snowflake.get_grants(future_grants_in=snowflake.GetGrantsFutureGrantsInArgs(
204
+ schema="\\"some_database\\".\\"some_schema\\"",
205
+ ))
206
206
  # account role
207
- example_future_to_role = snowflake.get_grants(future_grants_to={
208
- "account_role": "some_role",
209
- })
207
+ example_future_to_role = snowflake.get_grants(future_grants_to=snowflake.GetGrantsFutureGrantsToArgs(
208
+ account_role="some_role",
209
+ ))
210
210
  # database role
211
- example_future_to_database_role = snowflake.get_grants(future_grants_to={
212
- "database_role": "\\"some_database\\".\\"some_database_role\\"",
213
- })
211
+ example_future_to_database_role = snowflake.get_grants(future_grants_to=snowflake.GetGrantsFutureGrantsToArgs(
212
+ database_role="\\"some_database\\".\\"some_database_role\\"",
213
+ ))
214
214
  ```
215
215
 
216
216
 
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.
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.
222
222
  """
223
223
  __args__ = dict()
224
224
  __args__['futureGrantsIn'] = future_grants_in
@@ -240,11 +240,11 @@ def get_grants(future_grants_in: Optional[Union['GetGrantsFutureGrantsInArgs', '
240
240
 
241
241
 
242
242
  @_utilities.lift_output_func(get_grants)
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,
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,
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[Union['Ge
257
257
  ### SHOW GRANTS ON ...
258
258
  ##################################
259
259
  # account
260
- example_on_account = snowflake.get_grants(grants_on={
261
- "account": True,
262
- })
260
+ example_on_account = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
261
+ account=True,
262
+ ))
263
263
  # account object (e.g. database)
264
- example_on_account_object = snowflake.get_grants(grants_on={
265
- "object_name": "some_database",
266
- "object_type": "DATABASE",
267
- })
264
+ example_on_account_object = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
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={
270
- "object_name": "\\"some_database\\".\\"some_schema\\"",
271
- "object_type": "SCHEMA",
272
- })
269
+ example_on_database_object = snowflake.get_grants(grants_on=snowflake.GetGrantsGrantsOnArgs(
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={
275
- "object_name": "\\"some_database\\".\\"some_schema\\".\\"some_table\\"",
276
- "object_type": "TABLE",
277
- })
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
+ ))
278
278
  # application
279
- example_to_application = snowflake.get_grants(grants_to={
280
- "application": "some_application",
281
- })
279
+ example_to_application = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
280
+ application="some_application",
281
+ ))
282
282
  # application role
283
- example_to_application_role = snowflake.get_grants(grants_to={
284
- "application_role": "\\"some_application\\".\\"some_application_role\\"",
285
- })
283
+ example_to_application_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
284
+ application_role="\\"some_application\\".\\"some_application_role\\"",
285
+ ))
286
286
  # account role
287
- example_to_role = snowflake.get_grants(grants_to={
288
- "account_role": "some_role",
289
- })
287
+ example_to_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
288
+ account_role="some_role",
289
+ ))
290
290
  # database role
291
- example_to_database_role = snowflake.get_grants(grants_to={
292
- "database_role": "\\"some_database\\".\\"some_database_role\\"",
293
- })
291
+ example_to_database_role = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
292
+ database_role="\\"some_database\\".\\"some_database_role\\"",
293
+ ))
294
294
  # share
295
- example_to_share = snowflake.get_grants(grants_to={
296
- "share": {
297
- "share_name": "some_share",
298
- },
299
- })
295
+ example_to_share = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
296
+ share=snowflake.GetGrantsGrantsToShareArgs(
297
+ share_name="some_share",
298
+ ),
299
+ ))
300
300
  # user
301
- example_to_user = snowflake.get_grants(grants_to={
302
- "user": "some_user",
303
- })
301
+ example_to_user = snowflake.get_grants(grants_to=snowflake.GetGrantsGrantsToArgs(
302
+ user="some_user",
303
+ ))
304
304
  # application role
305
- example_of_application_role = snowflake.get_grants(grants_of={
306
- "application_role": "\\"some_application\\".\\"some_application_role\\"",
307
- })
305
+ example_of_application_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
306
+ application_role="\\"some_application\\".\\"some_application_role\\"",
307
+ ))
308
308
  # database role
309
- example_of_database_role = snowflake.get_grants(grants_of={
310
- "database_role": "\\"some_database\\".\\"some_database_role\\"",
311
- })
309
+ example_of_database_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
310
+ database_role="\\"some_database\\".\\"some_database_role\\"",
311
+ ))
312
312
  # account role
313
- example_of_role = snowflake.get_grants(grants_of={
314
- "account_role": "some_role",
315
- })
313
+ example_of_role = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
314
+ account_role="some_role",
315
+ ))
316
316
  # share
317
- example_of_share = snowflake.get_grants(grants_of={
318
- "share": "some_share",
319
- })
317
+ example_of_share = snowflake.get_grants(grants_of=snowflake.GetGrantsGrantsOfArgs(
318
+ share="some_share",
319
+ ))
320
320
  # database
321
- example_future_in_database = snowflake.get_grants(future_grants_in={
322
- "database": "some_database",
323
- })
321
+ example_future_in_database = snowflake.get_grants(future_grants_in=snowflake.GetGrantsFutureGrantsInArgs(
322
+ database="some_database",
323
+ ))
324
324
  # schema
325
- example_future_in_schema = snowflake.get_grants(future_grants_in={
326
- "schema": "\\"some_database\\".\\"some_schema\\"",
327
- })
325
+ example_future_in_schema = snowflake.get_grants(future_grants_in=snowflake.GetGrantsFutureGrantsInArgs(
326
+ schema="\\"some_database\\".\\"some_schema\\"",
327
+ ))
328
328
  # account role
329
- example_future_to_role = snowflake.get_grants(future_grants_to={
330
- "account_role": "some_role",
331
- })
329
+ example_future_to_role = snowflake.get_grants(future_grants_to=snowflake.GetGrantsFutureGrantsToArgs(
330
+ account_role="some_role",
331
+ ))
332
332
  # database role
333
- example_future_to_database_role = snowflake.get_grants(future_grants_to={
334
- "database_role": "\\"some_database\\".\\"some_database_role\\"",
335
- })
333
+ example_future_to_database_role = snowflake.get_grants(future_grants_to=snowflake.GetGrantsFutureGrantsToArgs(
334
+ database_role="\\"some_database\\".\\"some_database_role\\"",
335
+ ))
336
336
  ```
337
337
 
338
338
 
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.
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.
344
344
  """
345
345
  ...