pulumi-snowflake 0.57.0a1721977458__py3-none-any.whl → 0.57.0a1722246300__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +20 -0
- pulumi_snowflake/_inputs.py +2475 -237
- pulumi_snowflake/account_role.py +226 -0
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +4 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +4 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +4 -0
- pulumi_snowflake/database.py +63 -63
- pulumi_snowflake/external_oauth_integration.py +2 -2
- pulumi_snowflake/get_network_policies.py +122 -0
- pulumi_snowflake/get_roles.py +37 -31
- pulumi_snowflake/get_schemas.py +115 -38
- pulumi_snowflake/get_streamlits.py +159 -0
- pulumi_snowflake/network_policy.py +103 -19
- pulumi_snowflake/oauth_integration_for_custom_clients.py +18 -14
- pulumi_snowflake/oauth_integration_for_partner_applications.py +18 -14
- pulumi_snowflake/outputs.py +5849 -2728
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/role.py +44 -72
- pulumi_snowflake/saml2_integration.py +32 -28
- pulumi_snowflake/schema.py +905 -151
- pulumi_snowflake/scim_integration.py +25 -21
- pulumi_snowflake/secondary_database.py +63 -63
- pulumi_snowflake/shared_database.py +63 -63
- pulumi_snowflake/streamlit.py +650 -0
- pulumi_snowflake/table.py +0 -120
- pulumi_snowflake/table_constraint.py +2 -2
- pulumi_snowflake/unsafe_execute.py +8 -8
- {pulumi_snowflake-0.57.0a1721977458.dist-info → pulumi_snowflake-0.57.0a1722246300.dist-info}/METADATA +1 -1
- {pulumi_snowflake-0.57.0a1721977458.dist-info → pulumi_snowflake-0.57.0a1722246300.dist-info}/RECORD +31 -27
- {pulumi_snowflake-0.57.0a1721977458.dist-info → pulumi_snowflake-0.57.0a1722246300.dist-info}/WHEEL +1 -1
- {pulumi_snowflake-0.57.0a1721977458.dist-info → pulumi_snowflake-0.57.0a1722246300.dist-info}/top_level.txt +0 -0
pulumi_snowflake/get_roles.py
CHANGED
|
@@ -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,
|
|
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
|
|
30
|
-
raise TypeError("Expected argument '
|
|
31
|
-
pulumi.set(__self__, "
|
|
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
|
|
57
|
+
def like(self) -> Optional[str]:
|
|
47
58
|
"""
|
|
48
|
-
Filters the
|
|
59
|
+
Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
49
60
|
"""
|
|
50
|
-
return pulumi.get(self, "
|
|
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
|
-
|
|
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
|
-
|
|
79
|
+
in_class=self.in_class,
|
|
80
|
+
like=self.like,
|
|
69
81
|
roles=self.roles)
|
|
70
82
|
|
|
71
83
|
|
|
72
|
-
def get_roles(
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
```python
|
|
78
|
-
import pulumi
|
|
79
|
-
import pulumi_snowflake as snowflake
|
|
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.
|
|
80
89
|
|
|
81
|
-
|
|
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
|
|
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__['
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
```python
|
|
106
|
-
import pulumi
|
|
107
|
-
import pulumi_snowflake as snowflake
|
|
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.
|
|
108
115
|
|
|
109
|
-
|
|
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
|
|
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
|
...
|
pulumi_snowflake/get_schemas.py
CHANGED
|
@@ -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__,
|
|
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
|
|
54
|
+
def id(self) -> str:
|
|
39
55
|
"""
|
|
40
|
-
The
|
|
56
|
+
The provider-assigned unique ID for this managed resource.
|
|
41
57
|
"""
|
|
42
|
-
return pulumi.get(self, "
|
|
58
|
+
return pulumi.get(self, "id")
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
@pulumi.getter(name="in")
|
|
62
|
+
def in_(self) -> Optional['outputs.GetSchemasInResult']:
|
|
63
|
+
"""
|
|
64
|
+
IN clause to filter the list of streamlits
|
|
65
|
+
"""
|
|
66
|
+
return pulumi.get(self, "in_")
|
|
43
67
|
|
|
44
68
|
@property
|
|
45
69
|
@pulumi.getter
|
|
46
|
-
def
|
|
70
|
+
def like(self) -> Optional[str]:
|
|
47
71
|
"""
|
|
48
|
-
|
|
72
|
+
Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
49
73
|
"""
|
|
50
|
-
return pulumi.get(self, "
|
|
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
|
-
|
|
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,72 @@ 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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
141
|
+
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.
|
|
76
142
|
|
|
77
|
-
```python
|
|
78
|
-
import pulumi
|
|
79
|
-
import pulumi_snowflake as snowflake
|
|
80
143
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
:param
|
|
144
|
+
:param pulumi.InputType['GetSchemasInArgs'] in_: IN clause to filter the list of streamlits
|
|
145
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
146
|
+
: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`.
|
|
147
|
+
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
148
|
+
: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.
|
|
149
|
+
: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
150
|
"""
|
|
87
151
|
__args__ = dict()
|
|
88
|
-
__args__['
|
|
152
|
+
__args__['in'] = in_
|
|
153
|
+
__args__['like'] = like
|
|
154
|
+
__args__['limit'] = limit
|
|
155
|
+
__args__['startsWith'] = starts_with
|
|
156
|
+
__args__['withDescribe'] = with_describe
|
|
157
|
+
__args__['withParameters'] = with_parameters
|
|
89
158
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
90
159
|
__ret__ = pulumi.runtime.invoke('snowflake:index/getSchemas:getSchemas', __args__, opts=opts, typ=GetSchemasResult).value
|
|
91
160
|
|
|
92
161
|
return AwaitableGetSchemasResult(
|
|
93
|
-
database=pulumi.get(__ret__, 'database'),
|
|
94
162
|
id=pulumi.get(__ret__, 'id'),
|
|
95
|
-
|
|
163
|
+
in_=pulumi.get(__ret__, 'in_'),
|
|
164
|
+
like=pulumi.get(__ret__, 'like'),
|
|
165
|
+
limit=pulumi.get(__ret__, 'limit'),
|
|
166
|
+
schemas=pulumi.get(__ret__, 'schemas'),
|
|
167
|
+
starts_with=pulumi.get(__ret__, 'starts_with'),
|
|
168
|
+
with_describe=pulumi.get(__ret__, 'with_describe'),
|
|
169
|
+
with_parameters=pulumi.get(__ret__, 'with_parameters'))
|
|
96
170
|
|
|
97
171
|
|
|
98
172
|
@_utilities.lift_output_func(get_schemas)
|
|
99
|
-
def get_schemas_output(
|
|
173
|
+
def get_schemas_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetSchemasInArgs']]]] = None,
|
|
174
|
+
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
175
|
+
limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetSchemasLimitArgs']]]] = None,
|
|
176
|
+
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
177
|
+
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
178
|
+
with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
100
179
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSchemasResult]:
|
|
101
180
|
"""
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
```python
|
|
105
|
-
import pulumi
|
|
106
|
-
import pulumi_snowflake as snowflake
|
|
107
|
-
|
|
108
|
-
current = snowflake.get_schemas(database="MYDB")
|
|
109
|
-
```
|
|
181
|
+
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
182
|
|
|
111
183
|
|
|
112
|
-
:param
|
|
184
|
+
:param pulumi.InputType['GetSchemasInArgs'] in_: IN clause to filter the list of streamlits
|
|
185
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
186
|
+
: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`.
|
|
187
|
+
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
188
|
+
: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.
|
|
189
|
+
: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
190
|
"""
|
|
114
191
|
...
|
|
@@ -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 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.
|
|
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 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.
|
|
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
|
+
...
|