pulumi-snowflake 0.56.0a1721327760__py3-none-any.whl → 0.57.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 (74) hide show
  1. pulumi_snowflake/__init__.py +78 -209
  2. pulumi_snowflake/_inputs.py +12188 -1362
  3. pulumi_snowflake/_utilities.py +2 -0
  4. pulumi_snowflake/account_role.py +226 -0
  5. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +692 -0
  6. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +645 -0
  7. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +680 -0
  8. pulumi_snowflake/cortex_search_service.py +563 -0
  9. pulumi_snowflake/database.py +854 -232
  10. pulumi_snowflake/database_old.py +556 -0
  11. pulumi_snowflake/external_oauth_integration.py +562 -534
  12. pulumi_snowflake/failover_group.py +2 -2
  13. pulumi_snowflake/get_cortex_search_services.py +197 -0
  14. pulumi_snowflake/get_databases.py +71 -62
  15. pulumi_snowflake/get_network_policies.py +122 -0
  16. pulumi_snowflake/get_roles.py +37 -31
  17. pulumi_snowflake/get_schemas.py +115 -38
  18. pulumi_snowflake/get_security_integrations.py +122 -0
  19. pulumi_snowflake/get_streamlits.py +159 -0
  20. pulumi_snowflake/get_warehouses.py +66 -18
  21. pulumi_snowflake/grant_privileges_to_database_role.py +0 -4
  22. pulumi_snowflake/managed_account.py +7 -7
  23. pulumi_snowflake/network_policy.py +103 -19
  24. pulumi_snowflake/oauth_integration.py +4 -0
  25. pulumi_snowflake/oauth_integration_for_custom_clients.py +940 -0
  26. pulumi_snowflake/oauth_integration_for_partner_applications.py +584 -0
  27. pulumi_snowflake/outputs.py +16178 -2927
  28. pulumi_snowflake/pulumi-plugin.json +1 -1
  29. pulumi_snowflake/role.py +44 -72
  30. pulumi_snowflake/saml2_integration.py +975 -0
  31. pulumi_snowflake/saml_integration.py +4 -0
  32. pulumi_snowflake/schema.py +905 -151
  33. pulumi_snowflake/scim_integration.py +257 -103
  34. pulumi_snowflake/secondary_database.py +1059 -0
  35. pulumi_snowflake/sequence.py +6 -6
  36. pulumi_snowflake/shared_database.py +914 -0
  37. pulumi_snowflake/streamlit.py +650 -0
  38. pulumi_snowflake/table.py +0 -120
  39. pulumi_snowflake/table_constraint.py +2 -2
  40. pulumi_snowflake/tag_association.py +38 -38
  41. pulumi_snowflake/unsafe_execute.py +8 -8
  42. pulumi_snowflake/user_password_policy_attachment.py +32 -0
  43. pulumi_snowflake/warehouse.py +143 -120
  44. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/METADATA +1 -1
  45. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/RECORD +47 -58
  46. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/WHEEL +1 -1
  47. pulumi_snowflake/account_grant.py +0 -319
  48. pulumi_snowflake/database_grant.py +0 -471
  49. pulumi_snowflake/external_table_grant.py +0 -666
  50. pulumi_snowflake/failover_group_grant.py +0 -368
  51. pulumi_snowflake/file_format_grant.py +0 -611
  52. pulumi_snowflake/function_grant.py +0 -721
  53. pulumi_snowflake/grant_privileges_to_role.py +0 -821
  54. pulumi_snowflake/integration_grant.py +0 -416
  55. pulumi_snowflake/masking_policy_grant.py +0 -518
  56. pulumi_snowflake/materialized_view_grant.py +0 -665
  57. pulumi_snowflake/pipe_grant.py +0 -563
  58. pulumi_snowflake/procedure_grant.py +0 -721
  59. pulumi_snowflake/resource_monitor_grant.py +0 -363
  60. pulumi_snowflake/role_grants.py +0 -340
  61. pulumi_snowflake/role_ownership_grant.py +0 -329
  62. pulumi_snowflake/row_access_policy_grant.py +0 -516
  63. pulumi_snowflake/schema_grant.py +0 -603
  64. pulumi_snowflake/sequence_grant.py +0 -611
  65. pulumi_snowflake/stage_grant.py +0 -611
  66. pulumi_snowflake/stream_grant.py +0 -611
  67. pulumi_snowflake/table_grant.py +0 -653
  68. pulumi_snowflake/tag_grant.py +0 -508
  69. pulumi_snowflake/task_grant.py +0 -611
  70. pulumi_snowflake/user_grant.py +0 -370
  71. pulumi_snowflake/user_ownership_grant.py +0 -275
  72. pulumi_snowflake/view_grant.py +0 -685
  73. pulumi_snowflake/warehouse_grant.py +0 -416
  74. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/top_level.txt +0 -0
@@ -365,7 +365,7 @@ class FailoverGroup(pulumi.CustomResource):
365
365
  from_replica=snowflake.FailoverGroupFromReplicaArgs(
366
366
  organization_name="...",
367
367
  source_account_name="...",
368
- name=fg["name"],
368
+ name=source_failover_group.name,
369
369
  ))
370
370
  ```
371
371
 
@@ -426,7 +426,7 @@ class FailoverGroup(pulumi.CustomResource):
426
426
  from_replica=snowflake.FailoverGroupFromReplicaArgs(
427
427
  organization_name="...",
428
428
  source_account_name="...",
429
- name=fg["name"],
429
+ name=source_failover_group.name,
430
430
  ))
431
431
  ```
432
432
 
@@ -0,0 +1,197 @@
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 pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from . import _utilities
11
+ from . import outputs
12
+ from ._inputs import *
13
+
14
+ __all__ = [
15
+ 'GetCortexSearchServicesResult',
16
+ 'AwaitableGetCortexSearchServicesResult',
17
+ 'get_cortex_search_services',
18
+ 'get_cortex_search_services_output',
19
+ ]
20
+
21
+ @pulumi.output_type
22
+ class GetCortexSearchServicesResult:
23
+ """
24
+ A collection of values returned by getCortexSearchServices.
25
+ """
26
+ def __init__(__self__, cortex_search_services=None, id=None, in_=None, like=None, limit=None, starts_with=None):
27
+ if cortex_search_services and not isinstance(cortex_search_services, list):
28
+ raise TypeError("Expected argument 'cortex_search_services' to be a list")
29
+ pulumi.set(__self__, "cortex_search_services", cortex_search_services)
30
+ if id and not isinstance(id, str):
31
+ raise TypeError("Expected argument 'id' to be a str")
32
+ pulumi.set(__self__, "id", id)
33
+ if in_ and not isinstance(in_, dict):
34
+ raise TypeError("Expected argument 'in_' to be a dict")
35
+ pulumi.set(__self__, "in_", in_)
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
+ if starts_with and not isinstance(starts_with, str):
43
+ raise TypeError("Expected argument 'starts_with' to be a str")
44
+ pulumi.set(__self__, "starts_with", starts_with)
45
+
46
+ @property
47
+ @pulumi.getter(name="cortexSearchServices")
48
+ def cortex_search_services(self) -> Sequence['outputs.GetCortexSearchServicesCortexSearchServiceResult']:
49
+ """
50
+ Holds the output of SHOW CORTEX SEARCH SERVICES.
51
+ """
52
+ return pulumi.get(self, "cortex_search_services")
53
+
54
+ @property
55
+ @pulumi.getter
56
+ def id(self) -> str:
57
+ """
58
+ The provider-assigned unique ID for this managed resource.
59
+ """
60
+ return pulumi.get(self, "id")
61
+
62
+ @property
63
+ @pulumi.getter(name="in")
64
+ def in_(self) -> Optional['outputs.GetCortexSearchServicesInResult']:
65
+ """
66
+ IN clause to filter the list of cortex search services.
67
+ """
68
+ return pulumi.get(self, "in_")
69
+
70
+ @property
71
+ @pulumi.getter
72
+ def like(self) -> Optional[str]:
73
+ """
74
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
75
+ """
76
+ return pulumi.get(self, "like")
77
+
78
+ @property
79
+ @pulumi.getter
80
+ def limit(self) -> Optional['outputs.GetCortexSearchServicesLimitResult']:
81
+ """
82
+ 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`.
83
+ """
84
+ return pulumi.get(self, "limit")
85
+
86
+ @property
87
+ @pulumi.getter(name="startsWith")
88
+ def starts_with(self) -> Optional[str]:
89
+ """
90
+ Filters the output with **case-sensitive** characters indicating the beginning of the object name.
91
+ """
92
+ return pulumi.get(self, "starts_with")
93
+
94
+
95
+ class AwaitableGetCortexSearchServicesResult(GetCortexSearchServicesResult):
96
+ # pylint: disable=using-constant-test
97
+ def __await__(self):
98
+ if False:
99
+ yield self
100
+ return GetCortexSearchServicesResult(
101
+ cortex_search_services=self.cortex_search_services,
102
+ id=self.id,
103
+ in_=self.in_,
104
+ like=self.like,
105
+ limit=self.limit,
106
+ starts_with=self.starts_with)
107
+
108
+
109
+ def get_cortex_search_services(in_: Optional[pulumi.InputType['GetCortexSearchServicesInArgs']] = None,
110
+ like: Optional[str] = None,
111
+ limit: Optional[pulumi.InputType['GetCortexSearchServicesLimitArgs']] = None,
112
+ starts_with: Optional[str] = None,
113
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCortexSearchServicesResult:
114
+ """
115
+ ## Example Usage
116
+
117
+ ```python
118
+ import pulumi
119
+ import pulumi_snowflake as snowflake
120
+
121
+ # Simple usage
122
+ simple = snowflake.get_cortex_search_services()
123
+ pulumi.export("simpleOutput", simple.cortex_search_services)
124
+ # Filtering (like)
125
+ like = snowflake.get_cortex_search_services(like="some-name")
126
+ pulumi.export("likeOutput", like.cortex_search_services)
127
+ # Filtering (starts_with)
128
+ starts_with = snowflake.get_cortex_search_services(starts_with="prefix-")
129
+ pulumi.export("startsWithOutput", starts_with.cortex_search_services)
130
+ # Filtering (limit)
131
+ limit = snowflake.get_cortex_search_services(limit=snowflake.GetCortexSearchServicesLimitArgs(
132
+ rows=10,
133
+ from_="prefix-",
134
+ ))
135
+ pulumi.export("limitOutput", limit.cortex_search_services)
136
+ ```
137
+
138
+
139
+ :param pulumi.InputType['GetCortexSearchServicesInArgs'] in_: IN clause to filter the list of cortex search services.
140
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
141
+ :param pulumi.InputType['GetCortexSearchServicesLimitArgs'] 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`.
142
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
143
+ """
144
+ __args__ = dict()
145
+ __args__['in'] = in_
146
+ __args__['like'] = like
147
+ __args__['limit'] = limit
148
+ __args__['startsWith'] = starts_with
149
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
150
+ __ret__ = pulumi.runtime.invoke('snowflake:index/getCortexSearchServices:getCortexSearchServices', __args__, opts=opts, typ=GetCortexSearchServicesResult).value
151
+
152
+ return AwaitableGetCortexSearchServicesResult(
153
+ cortex_search_services=pulumi.get(__ret__, 'cortex_search_services'),
154
+ id=pulumi.get(__ret__, 'id'),
155
+ in_=pulumi.get(__ret__, 'in_'),
156
+ like=pulumi.get(__ret__, 'like'),
157
+ limit=pulumi.get(__ret__, 'limit'),
158
+ starts_with=pulumi.get(__ret__, 'starts_with'))
159
+
160
+
161
+ @_utilities.lift_output_func(get_cortex_search_services)
162
+ def get_cortex_search_services_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetCortexSearchServicesInArgs']]]] = None,
163
+ like: Optional[pulumi.Input[Optional[str]]] = None,
164
+ limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetCortexSearchServicesLimitArgs']]]] = None,
165
+ starts_with: Optional[pulumi.Input[Optional[str]]] = None,
166
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCortexSearchServicesResult]:
167
+ """
168
+ ## Example Usage
169
+
170
+ ```python
171
+ import pulumi
172
+ import pulumi_snowflake as snowflake
173
+
174
+ # Simple usage
175
+ simple = snowflake.get_cortex_search_services()
176
+ pulumi.export("simpleOutput", simple.cortex_search_services)
177
+ # Filtering (like)
178
+ like = snowflake.get_cortex_search_services(like="some-name")
179
+ pulumi.export("likeOutput", like.cortex_search_services)
180
+ # Filtering (starts_with)
181
+ starts_with = snowflake.get_cortex_search_services(starts_with="prefix-")
182
+ pulumi.export("startsWithOutput", starts_with.cortex_search_services)
183
+ # Filtering (limit)
184
+ limit = snowflake.get_cortex_search_services(limit=snowflake.GetCortexSearchServicesLimitArgs(
185
+ rows=10,
186
+ from_="prefix-",
187
+ ))
188
+ pulumi.export("limitOutput", limit.cortex_search_services)
189
+ ```
190
+
191
+
192
+ :param pulumi.InputType['GetCortexSearchServicesInArgs'] in_: IN clause to filter the list of cortex search services.
193
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
194
+ :param pulumi.InputType['GetCortexSearchServicesLimitArgs'] 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`.
195
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
196
+ """
197
+ ...
@@ -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
  'GetDatabasesResult',
@@ -22,73 +23,84 @@ class GetDatabasesResult:
22
23
  """
23
24
  A collection of values returned by getDatabases.
24
25
  """
25
- def __init__(__self__, databases=None, history=None, id=None, pattern=None, starts_with=None, terse=None):
26
+ def __init__(__self__, databases=None, id=None, like=None, limit=None, starts_with=None, with_describe=None, with_parameters=None):
26
27
  if databases and not isinstance(databases, list):
27
28
  raise TypeError("Expected argument 'databases' to be a list")
28
29
  pulumi.set(__self__, "databases", databases)
29
- if history and not isinstance(history, bool):
30
- raise TypeError("Expected argument 'history' to be a bool")
31
- pulumi.set(__self__, "history", history)
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
- if pattern and not isinstance(pattern, str):
36
- raise TypeError("Expected argument 'pattern' to be a str")
37
- pulumi.set(__self__, "pattern", pattern)
33
+ if like and not isinstance(like, str):
34
+ raise TypeError("Expected argument 'like' to be a str")
35
+ pulumi.set(__self__, "like", like)
36
+ if limit and not isinstance(limit, dict):
37
+ raise TypeError("Expected argument 'limit' to be a dict")
38
+ pulumi.set(__self__, "limit", limit)
38
39
  if starts_with and not isinstance(starts_with, str):
39
40
  raise TypeError("Expected argument 'starts_with' to be a str")
40
41
  pulumi.set(__self__, "starts_with", starts_with)
41
- if terse and not isinstance(terse, bool):
42
- raise TypeError("Expected argument 'terse' to be a bool")
43
- pulumi.set(__self__, "terse", terse)
42
+ if with_describe and not isinstance(with_describe, bool):
43
+ raise TypeError("Expected argument 'with_describe' to be a bool")
44
+ pulumi.set(__self__, "with_describe", with_describe)
45
+ if with_parameters and not isinstance(with_parameters, bool):
46
+ raise TypeError("Expected argument 'with_parameters' to be a bool")
47
+ pulumi.set(__self__, "with_parameters", with_parameters)
44
48
 
45
49
  @property
46
50
  @pulumi.getter
47
51
  def databases(self) -> Sequence['outputs.GetDatabasesDatabaseResult']:
48
52
  """
49
- Snowflake databases
53
+ Holds the aggregated output of all database details queries.
50
54
  """
51
55
  return pulumi.get(self, "databases")
52
56
 
53
57
  @property
54
58
  @pulumi.getter
55
- def history(self) -> Optional[bool]:
59
+ def id(self) -> str:
56
60
  """
57
- Optionally includes dropped databases that have not yet been purged The output also includes an additional `dropped_on` column
61
+ The provider-assigned unique ID for this managed resource.
58
62
  """
59
- return pulumi.get(self, "history")
63
+ return pulumi.get(self, "id")
60
64
 
61
65
  @property
62
66
  @pulumi.getter
63
- def id(self) -> str:
67
+ def like(self) -> Optional[str]:
64
68
  """
65
- The provider-assigned unique ID for this managed resource.
69
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
66
70
  """
67
- return pulumi.get(self, "id")
71
+ return pulumi.get(self, "like")
68
72
 
69
73
  @property
70
74
  @pulumi.getter
71
- def pattern(self) -> Optional[str]:
75
+ def limit(self) -> Optional['outputs.GetDatabasesLimitResult']:
72
76
  """
73
- Optionally filters the databases by a pattern
77
+ Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
74
78
  """
75
- return pulumi.get(self, "pattern")
79
+ return pulumi.get(self, "limit")
76
80
 
77
81
  @property
78
82
  @pulumi.getter(name="startsWith")
79
83
  def starts_with(self) -> Optional[str]:
80
84
  """
81
- Optionally filters the databases by a pattern
85
+ Filters the output with **case-sensitive** characters indicating the beginning of the object name.
82
86
  """
83
87
  return pulumi.get(self, "starts_with")
84
88
 
85
89
  @property
86
- @pulumi.getter
87
- def terse(self) -> Optional[bool]:
90
+ @pulumi.getter(name="withDescribe")
91
+ def with_describe(self) -> Optional[bool]:
88
92
  """
89
- Optionally returns only the columns `created_on` and `name` in the results
93
+ 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.
90
94
  """
91
- return pulumi.get(self, "terse")
95
+ return pulumi.get(self, "with_describe")
96
+
97
+ @property
98
+ @pulumi.getter(name="withParameters")
99
+ def with_parameters(self) -> Optional[bool]:
100
+ """
101
+ 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.
102
+ """
103
+ return pulumi.get(self, "with_parameters")
92
104
 
93
105
 
94
106
  class AwaitableGetDatabasesResult(GetDatabasesResult):
@@ -98,71 +110,68 @@ class AwaitableGetDatabasesResult(GetDatabasesResult):
98
110
  yield self
99
111
  return GetDatabasesResult(
100
112
  databases=self.databases,
101
- history=self.history,
102
113
  id=self.id,
103
- pattern=self.pattern,
114
+ like=self.like,
115
+ limit=self.limit,
104
116
  starts_with=self.starts_with,
105
- terse=self.terse)
117
+ with_describe=self.with_describe,
118
+ with_parameters=self.with_parameters)
106
119
 
107
120
 
108
- def get_databases(history: Optional[bool] = None,
109
- pattern: Optional[str] = None,
121
+ def get_databases(like: Optional[str] = None,
122
+ limit: Optional[pulumi.InputType['GetDatabasesLimitArgs']] = None,
110
123
  starts_with: Optional[str] = None,
111
- terse: Optional[bool] = None,
124
+ with_describe: Optional[bool] = None,
125
+ with_parameters: Optional[bool] = None,
112
126
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabasesResult:
113
127
  """
114
- ## Example Usage
115
-
116
- ```python
117
- import pulumi
118
- import pulumi_snowflake as snowflake
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.
119
129
 
120
- this = snowflake.get_databases()
121
- ```
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.
122
131
 
123
132
 
124
- :param bool history: Optionally includes dropped databases that have not yet been purged The output also includes an additional `dropped_on` column
125
- :param str pattern: Optionally filters the databases by a pattern
126
- :param str starts_with: Optionally filters the databases by a pattern
127
- :param bool terse: Optionally returns only the columns `created_on` and `name` in the results
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`.
135
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
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
+ :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.
128
138
  """
129
139
  __args__ = dict()
130
- __args__['history'] = history
131
- __args__['pattern'] = pattern
140
+ __args__['like'] = like
141
+ __args__['limit'] = limit
132
142
  __args__['startsWith'] = starts_with
133
- __args__['terse'] = terse
143
+ __args__['withDescribe'] = with_describe
144
+ __args__['withParameters'] = with_parameters
134
145
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
135
146
  __ret__ = pulumi.runtime.invoke('snowflake:index/getDatabases:getDatabases', __args__, opts=opts, typ=GetDatabasesResult).value
136
147
 
137
148
  return AwaitableGetDatabasesResult(
138
149
  databases=pulumi.get(__ret__, 'databases'),
139
- history=pulumi.get(__ret__, 'history'),
140
150
  id=pulumi.get(__ret__, 'id'),
141
- pattern=pulumi.get(__ret__, 'pattern'),
151
+ like=pulumi.get(__ret__, 'like'),
152
+ limit=pulumi.get(__ret__, 'limit'),
142
153
  starts_with=pulumi.get(__ret__, 'starts_with'),
143
- terse=pulumi.get(__ret__, 'terse'))
154
+ with_describe=pulumi.get(__ret__, 'with_describe'),
155
+ with_parameters=pulumi.get(__ret__, 'with_parameters'))
144
156
 
145
157
 
146
158
  @_utilities.lift_output_func(get_databases)
147
- def get_databases_output(history: Optional[pulumi.Input[Optional[bool]]] = None,
148
- pattern: Optional[pulumi.Input[Optional[str]]] = None,
159
+ def get_databases_output(like: Optional[pulumi.Input[Optional[str]]] = None,
160
+ limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetDatabasesLimitArgs']]]] = None,
149
161
  starts_with: Optional[pulumi.Input[Optional[str]]] = None,
150
- terse: Optional[pulumi.Input[Optional[bool]]] = None,
162
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
163
+ with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
151
164
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabasesResult]:
152
165
  """
153
- ## Example Usage
154
-
155
- ```python
156
- import pulumi
157
- import pulumi_snowflake as snowflake
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.
158
167
 
159
- this = snowflake.get_databases()
160
- ```
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.
161
169
 
162
170
 
163
- :param bool history: Optionally includes dropped databases that have not yet been purged The output also includes an additional `dropped_on` column
164
- :param str pattern: Optionally filters the databases by a pattern
165
- :param str starts_with: Optionally filters the databases by a pattern
166
- :param bool terse: Optionally returns only the columns `created_on` and `name` in the results
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`.
173
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
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
+ :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.
167
176
  """
168
177
  ...
@@ -0,0 +1,122 @@
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 pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from . import _utilities
11
+ from . import outputs
12
+
13
+ __all__ = [
14
+ 'GetNetworkPoliciesResult',
15
+ 'AwaitableGetNetworkPoliciesResult',
16
+ 'get_network_policies',
17
+ 'get_network_policies_output',
18
+ ]
19
+
20
+ @pulumi.output_type
21
+ class GetNetworkPoliciesResult:
22
+ """
23
+ A collection of values returned by getNetworkPolicies.
24
+ """
25
+ def __init__(__self__, id=None, like=None, network_policies=None, with_describe=None):
26
+ if id and not isinstance(id, str):
27
+ raise TypeError("Expected argument 'id' to be a str")
28
+ pulumi.set(__self__, "id", id)
29
+ if like and not isinstance(like, str):
30
+ raise TypeError("Expected argument 'like' to be a str")
31
+ pulumi.set(__self__, "like", like)
32
+ if network_policies and not isinstance(network_policies, list):
33
+ raise TypeError("Expected argument 'network_policies' to be a list")
34
+ pulumi.set(__self__, "network_policies", network_policies)
35
+ if with_describe and not isinstance(with_describe, bool):
36
+ raise TypeError("Expected argument 'with_describe' to be a bool")
37
+ pulumi.set(__self__, "with_describe", with_describe)
38
+
39
+ @property
40
+ @pulumi.getter
41
+ def id(self) -> str:
42
+ """
43
+ The provider-assigned unique ID for this managed resource.
44
+ """
45
+ return pulumi.get(self, "id")
46
+
47
+ @property
48
+ @pulumi.getter
49
+ def like(self) -> Optional[str]:
50
+ """
51
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
52
+ """
53
+ return pulumi.get(self, "like")
54
+
55
+ @property
56
+ @pulumi.getter(name="networkPolicies")
57
+ def network_policies(self) -> Sequence['outputs.GetNetworkPoliciesNetworkPolicyResult']:
58
+ """
59
+ Holds the aggregated output of all network policies details queries.
60
+ """
61
+ return pulumi.get(self, "network_policies")
62
+
63
+ @property
64
+ @pulumi.getter(name="withDescribe")
65
+ def with_describe(self) -> Optional[bool]:
66
+ """
67
+ Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
68
+ """
69
+ return pulumi.get(self, "with_describe")
70
+
71
+
72
+ class AwaitableGetNetworkPoliciesResult(GetNetworkPoliciesResult):
73
+ # pylint: disable=using-constant-test
74
+ def __await__(self):
75
+ if False:
76
+ yield self
77
+ return GetNetworkPoliciesResult(
78
+ id=self.id,
79
+ like=self.like,
80
+ network_policies=self.network_policies,
81
+ with_describe=self.with_describe)
82
+
83
+
84
+ def get_network_policies(like: Optional[str] = None,
85
+ with_describe: Optional[bool] = None,
86
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkPoliciesResult:
87
+ """
88
+ !> **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.
89
+
90
+ Datasource used to get details of filtered network policies. Filtering is aligned with the current possibilities for [SHOW NETWORK POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-network-policies) query (`like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection.
91
+
92
+
93
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
94
+ :param bool with_describe: Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
95
+ """
96
+ __args__ = dict()
97
+ __args__['like'] = like
98
+ __args__['withDescribe'] = with_describe
99
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
100
+ __ret__ = pulumi.runtime.invoke('snowflake:index/getNetworkPolicies:getNetworkPolicies', __args__, opts=opts, typ=GetNetworkPoliciesResult).value
101
+
102
+ return AwaitableGetNetworkPoliciesResult(
103
+ id=pulumi.get(__ret__, 'id'),
104
+ like=pulumi.get(__ret__, 'like'),
105
+ network_policies=pulumi.get(__ret__, 'network_policies'),
106
+ with_describe=pulumi.get(__ret__, 'with_describe'))
107
+
108
+
109
+ @_utilities.lift_output_func(get_network_policies)
110
+ def get_network_policies_output(like: Optional[pulumi.Input[Optional[str]]] = None,
111
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
112
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkPoliciesResult]:
113
+ """
114
+ !> **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.
115
+
116
+ Datasource used to get details of filtered network policies. Filtering is aligned with the current possibilities for [SHOW NETWORK POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-network-policies) query (`like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection.
117
+
118
+
119
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
120
+ :param bool with_describe: Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
121
+ """
122
+ ...