pulumi-snowflake 0.57.0a1722063098__py3-none-any.whl → 0.57.1__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 (34) hide show
  1. pulumi_snowflake/__init__.py +20 -0
  2. pulumi_snowflake/_inputs.py +2475 -237
  3. pulumi_snowflake/account_role.py +226 -0
  4. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +4 -0
  5. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +4 -0
  6. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +4 -0
  7. pulumi_snowflake/database.py +63 -63
  8. pulumi_snowflake/external_oauth_integration.py +2 -2
  9. pulumi_snowflake/get_databases.py +2 -2
  10. pulumi_snowflake/get_network_policies.py +122 -0
  11. pulumi_snowflake/get_roles.py +37 -31
  12. pulumi_snowflake/get_schemas.py +117 -36
  13. pulumi_snowflake/get_security_integrations.py +2 -2
  14. pulumi_snowflake/get_streamlits.py +159 -0
  15. pulumi_snowflake/get_warehouses.py +2 -2
  16. pulumi_snowflake/network_policy.py +103 -19
  17. pulumi_snowflake/oauth_integration_for_custom_clients.py +18 -14
  18. pulumi_snowflake/oauth_integration_for_partner_applications.py +18 -14
  19. pulumi_snowflake/outputs.py +5849 -2728
  20. pulumi_snowflake/pulumi-plugin.json +1 -1
  21. pulumi_snowflake/role.py +44 -72
  22. pulumi_snowflake/saml2_integration.py +32 -28
  23. pulumi_snowflake/schema.py +914 -156
  24. pulumi_snowflake/scim_integration.py +25 -21
  25. pulumi_snowflake/secondary_database.py +63 -63
  26. pulumi_snowflake/shared_database.py +63 -63
  27. pulumi_snowflake/streamlit.py +650 -0
  28. pulumi_snowflake/table.py +0 -120
  29. pulumi_snowflake/table_constraint.py +2 -2
  30. pulumi_snowflake/unsafe_execute.py +8 -8
  31. {pulumi_snowflake-0.57.0a1722063098.dist-info → pulumi_snowflake-0.57.1.dist-info}/METADATA +1 -1
  32. {pulumi_snowflake-0.57.0a1722063098.dist-info → pulumi_snowflake-0.57.1.dist-info}/RECORD +34 -30
  33. {pulumi_snowflake-0.57.0a1722063098.dist-info → pulumi_snowflake-0.57.1.dist-info}/WHEEL +1 -1
  34. {pulumi_snowflake-0.57.0a1722063098.dist-info → pulumi_snowflake-0.57.1.dist-info}/top_level.txt +0 -0
@@ -22,13 +22,16 @@ class GetRolesResult:
22
22
  """
23
23
  A collection of values returned by getRoles.
24
24
  """
25
- def __init__(__self__, id=None, pattern=None, roles=None):
25
+ def __init__(__self__, id=None, in_class=None, like=None, roles=None):
26
26
  if id and not isinstance(id, str):
27
27
  raise TypeError("Expected argument 'id' to be a str")
28
28
  pulumi.set(__self__, "id", id)
29
- if pattern and not isinstance(pattern, str):
30
- raise TypeError("Expected argument 'pattern' to be a str")
31
- pulumi.set(__self__, "pattern", pattern)
29
+ if in_class and not isinstance(in_class, str):
30
+ raise TypeError("Expected argument 'in_class' to be a str")
31
+ pulumi.set(__self__, "in_class", in_class)
32
+ if like and not isinstance(like, str):
33
+ raise TypeError("Expected argument 'like' to be a str")
34
+ pulumi.set(__self__, "like", like)
32
35
  if roles and not isinstance(roles, list):
33
36
  raise TypeError("Expected argument 'roles' to be a list")
34
37
  pulumi.set(__self__, "roles", roles)
@@ -41,19 +44,27 @@ class GetRolesResult:
41
44
  """
42
45
  return pulumi.get(self, "id")
43
46
 
47
+ @property
48
+ @pulumi.getter(name="inClass")
49
+ def in_class(self) -> Optional[str]:
50
+ """
51
+ Filters the SHOW GRANTS output by class name.
52
+ """
53
+ return pulumi.get(self, "in_class")
54
+
44
55
  @property
45
56
  @pulumi.getter
46
- def pattern(self) -> Optional[str]:
57
+ def like(self) -> Optional[str]:
47
58
  """
48
- Filters the command output by object name.
59
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
49
60
  """
50
- return pulumi.get(self, "pattern")
61
+ return pulumi.get(self, "like")
51
62
 
52
63
  @property
53
64
  @pulumi.getter
54
65
  def roles(self) -> Sequence['outputs.GetRolesRoleResult']:
55
66
  """
56
- List of all the roles which you can view across your entire account, including the system-defined roles and any custom roles that exist.
67
+ Holds the aggregated output of all role details queries.
57
68
  """
58
69
  return pulumi.get(self, "roles")
59
70
 
@@ -65,52 +76,47 @@ class AwaitableGetRolesResult(GetRolesResult):
65
76
  yield self
66
77
  return GetRolesResult(
67
78
  id=self.id,
68
- pattern=self.pattern,
79
+ in_class=self.in_class,
80
+ like=self.like,
69
81
  roles=self.roles)
70
82
 
71
83
 
72
- def get_roles(pattern: Optional[str] = None,
84
+ def get_roles(in_class: Optional[str] = None,
85
+ like: Optional[str] = None,
73
86
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRolesResult:
74
87
  """
75
- ## Example Usage
76
-
77
- ```python
78
- import pulumi
79
- import pulumi_snowflake as snowflake
88
+ !> **V1 release candidate** This datasource 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
89
 
81
- this = snowflake.get_roles()
82
- ad = snowflake.get_roles(pattern="SYSADMIN")
83
- ```
90
+ Datasource used to get details of filtered roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `in_class` are all supported). The results of SHOW are encapsulated in one output collection.
84
91
 
85
92
 
86
- :param str pattern: Filters the command output by object name.
93
+ :param str in_class: Filters the SHOW GRANTS output by class name.
94
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
87
95
  """
88
96
  __args__ = dict()
89
- __args__['pattern'] = pattern
97
+ __args__['inClass'] = in_class
98
+ __args__['like'] = like
90
99
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
91
100
  __ret__ = pulumi.runtime.invoke('snowflake:index/getRoles:getRoles', __args__, opts=opts, typ=GetRolesResult).value
92
101
 
93
102
  return AwaitableGetRolesResult(
94
103
  id=pulumi.get(__ret__, 'id'),
95
- pattern=pulumi.get(__ret__, 'pattern'),
104
+ in_class=pulumi.get(__ret__, 'in_class'),
105
+ like=pulumi.get(__ret__, 'like'),
96
106
  roles=pulumi.get(__ret__, 'roles'))
97
107
 
98
108
 
99
109
  @_utilities.lift_output_func(get_roles)
100
- def get_roles_output(pattern: Optional[pulumi.Input[Optional[str]]] = None,
110
+ def get_roles_output(in_class: Optional[pulumi.Input[Optional[str]]] = None,
111
+ like: Optional[pulumi.Input[Optional[str]]] = None,
101
112
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRolesResult]:
102
113
  """
103
- ## Example Usage
104
-
105
- ```python
106
- import pulumi
107
- import pulumi_snowflake as snowflake
114
+ !> **V1 release candidate** This datasource 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.
108
115
 
109
- this = snowflake.get_roles()
110
- ad = snowflake.get_roles(pattern="SYSADMIN")
111
- ```
116
+ Datasource used to get details of filtered roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `in_class` are all supported). The results of SHOW are encapsulated in one output collection.
112
117
 
113
118
 
114
- :param str pattern: Filters the command output by object name.
119
+ :param str in_class: Filters the SHOW GRANTS output by class name.
120
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
115
121
  """
116
122
  ...
@@ -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
  'GetSchemasResult',
@@ -22,41 +23,96 @@ class GetSchemasResult:
22
23
  """
23
24
  A collection of values returned by getSchemas.
24
25
  """
25
- def __init__(__self__, database=None, id=None, schemas=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__, id=None, in_=None, like=None, limit=None, schemas=None, starts_with=None, with_describe=None, with_parameters=None):
29
27
  if id and not isinstance(id, str):
30
28
  raise TypeError("Expected argument 'id' to be a str")
31
29
  pulumi.set(__self__, "id", id)
30
+ if in_ and not isinstance(in_, dict):
31
+ raise TypeError("Expected argument 'in_' to be a dict")
32
+ pulumi.set(__self__, "in_", in_)
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)
32
39
  if schemas and not isinstance(schemas, list):
33
40
  raise TypeError("Expected argument 'schemas' to be a list")
34
41
  pulumi.set(__self__, "schemas", schemas)
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
+ if with_describe and not isinstance(with_describe, bool):
46
+ raise TypeError("Expected argument 'with_describe' to be a bool")
47
+ pulumi.set(__self__, "with_describe", with_describe)
48
+ if with_parameters and not isinstance(with_parameters, bool):
49
+ raise TypeError("Expected argument 'with_parameters' to be a bool")
50
+ pulumi.set(__self__, "with_parameters", with_parameters)
35
51
 
36
52
  @property
37
53
  @pulumi.getter
38
- def database(self) -> str:
54
+ def id(self) -> str:
55
+ """
56
+ The provider-assigned unique ID for this managed resource.
57
+ """
58
+ return pulumi.get(self, "id")
59
+
60
+ @property
61
+ @pulumi.getter(name="in")
62
+ def in_(self) -> Optional['outputs.GetSchemasInResult']:
39
63
  """
40
- The database from which to return the schemas from.
64
+ IN clause to filter the list of streamlits
41
65
  """
42
- return pulumi.get(self, "database")
66
+ return pulumi.get(self, "in_")
43
67
 
44
68
  @property
45
69
  @pulumi.getter
46
- def id(self) -> str:
70
+ def like(self) -> Optional[str]:
47
71
  """
48
- The provider-assigned unique ID for this managed resource.
72
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
49
73
  """
50
- return pulumi.get(self, "id")
74
+ return pulumi.get(self, "like")
75
+
76
+ @property
77
+ @pulumi.getter
78
+ def limit(self) -> Optional['outputs.GetSchemasLimitResult']:
79
+ """
80
+ 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`.
81
+ """
82
+ return pulumi.get(self, "limit")
51
83
 
52
84
  @property
53
85
  @pulumi.getter
54
86
  def schemas(self) -> Sequence['outputs.GetSchemasSchemaResult']:
55
87
  """
56
- The schemas in the database
88
+ Holds the aggregated output of all SCHEMA details queries.
57
89
  """
58
90
  return pulumi.get(self, "schemas")
59
91
 
92
+ @property
93
+ @pulumi.getter(name="startsWith")
94
+ def starts_with(self) -> Optional[str]:
95
+ """
96
+ Filters the output with **case-sensitive** characters indicating the beginning of the object name.
97
+ """
98
+ return pulumi.get(self, "starts_with")
99
+
100
+ @property
101
+ @pulumi.getter(name="withDescribe")
102
+ def with_describe(self) -> Optional[bool]:
103
+ """
104
+ Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
105
+ """
106
+ return pulumi.get(self, "with_describe")
107
+
108
+ @property
109
+ @pulumi.getter(name="withParameters")
110
+ def with_parameters(self) -> Optional[bool]:
111
+ """
112
+ Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
113
+ """
114
+ return pulumi.get(self, "with_parameters")
115
+
60
116
 
61
117
  class AwaitableGetSchemasResult(GetSchemasResult):
62
118
  # pylint: disable=using-constant-test
@@ -64,51 +120,76 @@ class AwaitableGetSchemasResult(GetSchemasResult):
64
120
  if False:
65
121
  yield self
66
122
  return GetSchemasResult(
67
- database=self.database,
68
123
  id=self.id,
69
- schemas=self.schemas)
70
-
71
-
72
- def get_schemas(database: Optional[str] = None,
124
+ in_=self.in_,
125
+ like=self.like,
126
+ limit=self.limit,
127
+ schemas=self.schemas,
128
+ starts_with=self.starts_with,
129
+ with_describe=self.with_describe,
130
+ with_parameters=self.with_parameters)
131
+
132
+
133
+ def get_schemas(in_: Optional[pulumi.InputType['GetSchemasInArgs']] = None,
134
+ like: Optional[str] = None,
135
+ limit: Optional[pulumi.InputType['GetSchemasLimitArgs']] = None,
136
+ starts_with: Optional[str] = None,
137
+ with_describe: Optional[bool] = None,
138
+ with_parameters: Optional[bool] = None,
73
139
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchemasResult:
74
140
  """
75
- ## Example Usage
76
-
77
- ```python
78
- import pulumi
79
- import pulumi_snowflake as snowflake
141
+ !> **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
142
 
81
- current = snowflake.get_schemas(database="MYDB")
82
- ```
143
+ Datasource used to get details of filtered schemas. Filtering is aligned with the current possibilities for [SHOW SCHEMAS](https://docs.snowflake.com/en/sql-reference/sql/show-schemas) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
83
144
 
84
145
 
85
- :param str database: The database from which to return the schemas from.
146
+ :param pulumi.InputType['GetSchemasInArgs'] in_: IN clause to filter the list of streamlits
147
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
148
+ :param pulumi.InputType['GetSchemasLimitArgs'] 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`.
149
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
150
+ :param bool with_describe: Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
151
+ :param bool with_parameters: Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
86
152
  """
87
153
  __args__ = dict()
88
- __args__['database'] = database
154
+ __args__['in'] = in_
155
+ __args__['like'] = like
156
+ __args__['limit'] = limit
157
+ __args__['startsWith'] = starts_with
158
+ __args__['withDescribe'] = with_describe
159
+ __args__['withParameters'] = with_parameters
89
160
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
90
161
  __ret__ = pulumi.runtime.invoke('snowflake:index/getSchemas:getSchemas', __args__, opts=opts, typ=GetSchemasResult).value
91
162
 
92
163
  return AwaitableGetSchemasResult(
93
- database=pulumi.get(__ret__, 'database'),
94
164
  id=pulumi.get(__ret__, 'id'),
95
- schemas=pulumi.get(__ret__, 'schemas'))
165
+ in_=pulumi.get(__ret__, 'in_'),
166
+ like=pulumi.get(__ret__, 'like'),
167
+ limit=pulumi.get(__ret__, 'limit'),
168
+ schemas=pulumi.get(__ret__, 'schemas'),
169
+ starts_with=pulumi.get(__ret__, 'starts_with'),
170
+ with_describe=pulumi.get(__ret__, 'with_describe'),
171
+ with_parameters=pulumi.get(__ret__, 'with_parameters'))
96
172
 
97
173
 
98
174
  @_utilities.lift_output_func(get_schemas)
99
- def get_schemas_output(database: Optional[pulumi.Input[str]] = None,
175
+ def get_schemas_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetSchemasInArgs']]]] = None,
176
+ like: Optional[pulumi.Input[Optional[str]]] = None,
177
+ limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetSchemasLimitArgs']]]] = None,
178
+ starts_with: Optional[pulumi.Input[Optional[str]]] = None,
179
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
180
+ with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
100
181
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSchemasResult]:
101
182
  """
102
- ## Example Usage
103
-
104
- ```python
105
- import pulumi
106
- import pulumi_snowflake as snowflake
183
+ !> **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.
107
184
 
108
- current = snowflake.get_schemas(database="MYDB")
109
- ```
185
+ Datasource used to get details of filtered schemas. Filtering is aligned with the current possibilities for [SHOW SCHEMAS](https://docs.snowflake.com/en/sql-reference/sql/show-schemas) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
110
186
 
111
187
 
112
- :param str database: The database from which to return the schemas from.
188
+ :param pulumi.InputType['GetSchemasInArgs'] in_: IN clause to filter the list of streamlits
189
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
190
+ :param pulumi.InputType['GetSchemasLimitArgs'] 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`.
191
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
192
+ :param bool with_describe: Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
193
+ :param bool with_parameters: Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
113
194
  """
114
195
  ...
@@ -85,7 +85,7 @@ def get_security_integrations(like: Optional[str] = None,
85
85
  with_describe: Optional[bool] = None,
86
86
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecurityIntegrationsResult:
87
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.
88
+ !> **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.
89
89
 
90
90
  Datasource used to get details of filtered security integrations. Filtering is aligned with the current possibilities for [SHOW SECURITY INTEGRATIONS](https://docs.snowflake.com/en/sql-reference/sql/show-integrations) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `security_integrations`.
91
91
 
@@ -111,7 +111,7 @@ def get_security_integrations_output(like: Optional[pulumi.Input[Optional[str]]]
111
111
  with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
112
112
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecurityIntegrationsResult]:
113
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.
114
+ !> **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.
115
115
 
116
116
  Datasource used to get details of filtered security integrations. Filtering is aligned with the current possibilities for [SHOW SECURITY INTEGRATIONS](https://docs.snowflake.com/en/sql-reference/sql/show-integrations) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `security_integrations`.
117
117
 
@@ -0,0 +1,159 @@
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
+ 'GetStreamlitsResult',
16
+ 'AwaitableGetStreamlitsResult',
17
+ 'get_streamlits',
18
+ 'get_streamlits_output',
19
+ ]
20
+
21
+ @pulumi.output_type
22
+ class GetStreamlitsResult:
23
+ """
24
+ A collection of values returned by getStreamlits.
25
+ """
26
+ def __init__(__self__, id=None, in_=None, like=None, limit=None, streamlits=None, with_describe=None):
27
+ if id and not isinstance(id, str):
28
+ raise TypeError("Expected argument 'id' to be a str")
29
+ pulumi.set(__self__, "id", id)
30
+ if in_ and not isinstance(in_, dict):
31
+ raise TypeError("Expected argument 'in_' to be a dict")
32
+ pulumi.set(__self__, "in_", in_)
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)
39
+ if streamlits and not isinstance(streamlits, list):
40
+ raise TypeError("Expected argument 'streamlits' to be a list")
41
+ pulumi.set(__self__, "streamlits", streamlits)
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
+
46
+ @property
47
+ @pulumi.getter
48
+ def id(self) -> str:
49
+ """
50
+ The provider-assigned unique ID for this managed resource.
51
+ """
52
+ return pulumi.get(self, "id")
53
+
54
+ @property
55
+ @pulumi.getter(name="in")
56
+ def in_(self) -> Optional['outputs.GetStreamlitsInResult']:
57
+ """
58
+ IN clause to filter the list of streamlits
59
+ """
60
+ return pulumi.get(self, "in_")
61
+
62
+ @property
63
+ @pulumi.getter
64
+ def like(self) -> Optional[str]:
65
+ """
66
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
67
+ """
68
+ return pulumi.get(self, "like")
69
+
70
+ @property
71
+ @pulumi.getter
72
+ def limit(self) -> Optional['outputs.GetStreamlitsLimitResult']:
73
+ """
74
+ 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`.
75
+ """
76
+ return pulumi.get(self, "limit")
77
+
78
+ @property
79
+ @pulumi.getter
80
+ def streamlits(self) -> Sequence['outputs.GetStreamlitsStreamlitResult']:
81
+ """
82
+ Holds the aggregated output of all streamlits details queries.
83
+ """
84
+ return pulumi.get(self, "streamlits")
85
+
86
+ @property
87
+ @pulumi.getter(name="withDescribe")
88
+ def with_describe(self) -> Optional[bool]:
89
+ """
90
+ Runs DESC STREAMLIT for each streamlit returned by SHOW STREAMLITS. The output of describe is saved to the description field. By default this value is set to true.
91
+ """
92
+ return pulumi.get(self, "with_describe")
93
+
94
+
95
+ class AwaitableGetStreamlitsResult(GetStreamlitsResult):
96
+ # pylint: disable=using-constant-test
97
+ def __await__(self):
98
+ if False:
99
+ yield self
100
+ return GetStreamlitsResult(
101
+ id=self.id,
102
+ in_=self.in_,
103
+ like=self.like,
104
+ limit=self.limit,
105
+ streamlits=self.streamlits,
106
+ with_describe=self.with_describe)
107
+
108
+
109
+ def get_streamlits(in_: Optional[pulumi.InputType['GetStreamlitsInArgs']] = None,
110
+ like: Optional[str] = None,
111
+ limit: Optional[pulumi.InputType['GetStreamlitsLimitArgs']] = None,
112
+ with_describe: Optional[bool] = None,
113
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetStreamlitsResult:
114
+ """
115
+ !> **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.
116
+
117
+ Datasource used to get details of filtered streamlits. Filtering is aligned with the current possibilities for [SHOW STREAMLITS](https://docs.snowflake.com/en/sql-reference/sql/show-streamlits) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `streamlits`.
118
+
119
+
120
+ :param pulumi.InputType['GetStreamlitsInArgs'] in_: IN clause to filter the list of streamlits
121
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
122
+ :param pulumi.InputType['GetStreamlitsLimitArgs'] 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`.
123
+ :param bool with_describe: Runs DESC STREAMLIT for each streamlit returned by SHOW STREAMLITS. The output of describe is saved to the description field. By default this value is set to true.
124
+ """
125
+ __args__ = dict()
126
+ __args__['in'] = in_
127
+ __args__['like'] = like
128
+ __args__['limit'] = limit
129
+ __args__['withDescribe'] = with_describe
130
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
131
+ __ret__ = pulumi.runtime.invoke('snowflake:index/getStreamlits:getStreamlits', __args__, opts=opts, typ=GetStreamlitsResult).value
132
+
133
+ return AwaitableGetStreamlitsResult(
134
+ id=pulumi.get(__ret__, 'id'),
135
+ in_=pulumi.get(__ret__, 'in_'),
136
+ like=pulumi.get(__ret__, 'like'),
137
+ limit=pulumi.get(__ret__, 'limit'),
138
+ streamlits=pulumi.get(__ret__, 'streamlits'),
139
+ with_describe=pulumi.get(__ret__, 'with_describe'))
140
+
141
+
142
+ @_utilities.lift_output_func(get_streamlits)
143
+ def get_streamlits_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetStreamlitsInArgs']]]] = None,
144
+ like: Optional[pulumi.Input[Optional[str]]] = None,
145
+ limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetStreamlitsLimitArgs']]]] = None,
146
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
147
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetStreamlitsResult]:
148
+ """
149
+ !> **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.
150
+
151
+ Datasource used to get details of filtered streamlits. Filtering is aligned with the current possibilities for [SHOW STREAMLITS](https://docs.snowflake.com/en/sql-reference/sql/show-streamlits) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `streamlits`.
152
+
153
+
154
+ :param pulumi.InputType['GetStreamlitsInArgs'] in_: IN clause to filter the list of streamlits
155
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
156
+ :param pulumi.InputType['GetStreamlitsLimitArgs'] 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`.
157
+ :param bool with_describe: Runs DESC STREAMLIT for each streamlit returned by SHOW STREAMLITS. The output of describe is saved to the description field. By default this value is set to true.
158
+ """
159
+ ...
@@ -98,7 +98,7 @@ def get_warehouses(like: Optional[str] = None,
98
98
  with_parameters: Optional[bool] = None,
99
99
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWarehousesResult:
100
100
  """
101
- !> **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.
101
+ !> **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
102
 
103
103
  Datasource used to get details of filtered warehouses. Filtering is aligned with the current possibilities for [SHOW WAREHOUSES](https://docs.snowflake.com/en/sql-reference/sql/show-warehouses) query (only `like` is supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
104
104
 
@@ -128,7 +128,7 @@ def get_warehouses_output(like: Optional[pulumi.Input[Optional[str]]] = None,
128
128
  with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
129
129
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetWarehousesResult]:
130
130
  """
131
- !> **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.
131
+ !> **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.
132
132
 
133
133
  Datasource used to get details of filtered warehouses. Filtering is aligned with the current possibilities for [SHOW WAREHOUSES](https://docs.snowflake.com/en/sql-reference/sql/show-warehouses) query (only `like` is supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
134
134