pulumi-snowflake 0.56.0a1721200104__py3-none-any.whl → 0.56.0a1721667766__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.
- pulumi_snowflake/__init__.py +66 -217
- pulumi_snowflake/_inputs.py +10145 -1557
- pulumi_snowflake/_utilities.py +3 -4
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +688 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +641 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +676 -0
- pulumi_snowflake/cortex_search_service.py +563 -0
- pulumi_snowflake/database.py +854 -232
- pulumi_snowflake/database_old.py +556 -0
- pulumi_snowflake/external_oauth_integration.py +562 -534
- pulumi_snowflake/failover_group.py +2 -2
- pulumi_snowflake/get_cortex_search_services.py +197 -0
- pulumi_snowflake/get_databases.py +71 -62
- pulumi_snowflake/get_security_integrations.py +122 -0
- pulumi_snowflake/get_warehouses.py +66 -18
- pulumi_snowflake/grant_privileges_to_database_role.py +0 -4
- pulumi_snowflake/managed_account.py +7 -7
- pulumi_snowflake/oauth_integration.py +4 -0
- pulumi_snowflake/oauth_integration_for_custom_clients.py +936 -0
- pulumi_snowflake/oauth_integration_for_partner_applications.py +580 -0
- pulumi_snowflake/outputs.py +12987 -2857
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/saml2_integration.py +971 -0
- pulumi_snowflake/saml_integration.py +4 -0
- pulumi_snowflake/scim_integration.py +255 -105
- pulumi_snowflake/secondary_database.py +1059 -0
- pulumi_snowflake/sequence.py +6 -6
- pulumi_snowflake/shared_database.py +914 -0
- pulumi_snowflake/tag_association.py +38 -38
- pulumi_snowflake/user_password_policy_attachment.py +32 -0
- pulumi_snowflake/warehouse.py +143 -120
- {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/METADATA +1 -1
- {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/RECORD +35 -50
- {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -319
- pulumi_snowflake/database_grant.py +0 -471
- pulumi_snowflake/external_table_grant.py +0 -666
- pulumi_snowflake/failover_group_grant.py +0 -368
- pulumi_snowflake/file_format_grant.py +0 -611
- pulumi_snowflake/function_grant.py +0 -721
- pulumi_snowflake/grant_privileges_to_role.py +0 -821
- pulumi_snowflake/integration_grant.py +0 -416
- pulumi_snowflake/masking_policy_grant.py +0 -518
- pulumi_snowflake/materialized_view_grant.py +0 -665
- pulumi_snowflake/pipe_grant.py +0 -563
- pulumi_snowflake/procedure_grant.py +0 -721
- pulumi_snowflake/resource_monitor_grant.py +0 -363
- pulumi_snowflake/role_grants.py +0 -340
- pulumi_snowflake/role_ownership_grant.py +0 -329
- pulumi_snowflake/row_access_policy_grant.py +0 -516
- pulumi_snowflake/schema_grant.py +0 -603
- pulumi_snowflake/sequence_grant.py +0 -611
- pulumi_snowflake/stage_grant.py +0 -611
- pulumi_snowflake/stream_grant.py +0 -611
- pulumi_snowflake/table_grant.py +0 -653
- pulumi_snowflake/tag_grant.py +0 -508
- pulumi_snowflake/task_grant.py +0 -611
- pulumi_snowflake/user_grant.py +0 -370
- pulumi_snowflake/user_ownership_grant.py +0 -275
- pulumi_snowflake/view_grant.py +0 -685
- pulumi_snowflake/warehouse_grant.py +0 -416
- {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.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=
|
|
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=
|
|
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,
|
|
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
|
|
36
|
-
raise TypeError("Expected argument '
|
|
37
|
-
pulumi.set(__self__, "
|
|
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
|
|
42
|
-
raise TypeError("Expected argument '
|
|
43
|
-
pulumi.set(__self__, "
|
|
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
|
-
|
|
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
|
|
59
|
+
def id(self) -> str:
|
|
56
60
|
"""
|
|
57
|
-
|
|
61
|
+
The provider-assigned unique ID for this managed resource.
|
|
58
62
|
"""
|
|
59
|
-
return pulumi.get(self, "
|
|
63
|
+
return pulumi.get(self, "id")
|
|
60
64
|
|
|
61
65
|
@property
|
|
62
66
|
@pulumi.getter
|
|
63
|
-
def
|
|
67
|
+
def like(self) -> Optional[str]:
|
|
64
68
|
"""
|
|
65
|
-
|
|
69
|
+
Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
66
70
|
"""
|
|
67
|
-
return pulumi.get(self, "
|
|
71
|
+
return pulumi.get(self, "like")
|
|
68
72
|
|
|
69
73
|
@property
|
|
70
74
|
@pulumi.getter
|
|
71
|
-
def
|
|
75
|
+
def limit(self) -> Optional['outputs.GetDatabasesLimitResult']:
|
|
72
76
|
"""
|
|
73
|
-
|
|
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, "
|
|
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
|
-
|
|
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
|
|
90
|
+
@pulumi.getter(name="withDescribe")
|
|
91
|
+
def with_describe(self) -> Optional[bool]:
|
|
88
92
|
"""
|
|
89
|
-
|
|
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, "
|
|
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
|
-
|
|
114
|
+
like=self.like,
|
|
115
|
+
limit=self.limit,
|
|
104
116
|
starts_with=self.starts_with,
|
|
105
|
-
|
|
117
|
+
with_describe=self.with_describe,
|
|
118
|
+
with_parameters=self.with_parameters)
|
|
106
119
|
|
|
107
120
|
|
|
108
|
-
def get_databases(
|
|
109
|
-
|
|
121
|
+
def get_databases(like: Optional[str] = None,
|
|
122
|
+
limit: Optional[pulumi.InputType['GetDatabasesLimitArgs']] = None,
|
|
110
123
|
starts_with: Optional[str] = None,
|
|
111
|
-
|
|
124
|
+
with_describe: Optional[bool] = None,
|
|
125
|
+
with_parameters: Optional[bool] = None,
|
|
112
126
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDatabasesResult:
|
|
113
127
|
"""
|
|
114
|
-
|
|
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
|
-
|
|
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
|
|
125
|
-
:param
|
|
126
|
-
:param str starts_with:
|
|
127
|
-
:param bool
|
|
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__['
|
|
131
|
-
__args__['
|
|
140
|
+
__args__['like'] = like
|
|
141
|
+
__args__['limit'] = limit
|
|
132
142
|
__args__['startsWith'] = starts_with
|
|
133
|
-
__args__['
|
|
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
|
-
|
|
151
|
+
like=pulumi.get(__ret__, 'like'),
|
|
152
|
+
limit=pulumi.get(__ret__, 'limit'),
|
|
142
153
|
starts_with=pulumi.get(__ret__, 'starts_with'),
|
|
143
|
-
|
|
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(
|
|
148
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
164
|
-
:param
|
|
165
|
-
:param str starts_with:
|
|
166
|
-
:param bool
|
|
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
|
+
'GetSecurityIntegrationsResult',
|
|
15
|
+
'AwaitableGetSecurityIntegrationsResult',
|
|
16
|
+
'get_security_integrations',
|
|
17
|
+
'get_security_integrations_output',
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
@pulumi.output_type
|
|
21
|
+
class GetSecurityIntegrationsResult:
|
|
22
|
+
"""
|
|
23
|
+
A collection of values returned by getSecurityIntegrations.
|
|
24
|
+
"""
|
|
25
|
+
def __init__(__self__, id=None, like=None, security_integrations=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 security_integrations and not isinstance(security_integrations, list):
|
|
33
|
+
raise TypeError("Expected argument 'security_integrations' to be a list")
|
|
34
|
+
pulumi.set(__self__, "security_integrations", security_integrations)
|
|
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="securityIntegrations")
|
|
57
|
+
def security_integrations(self) -> Sequence['outputs.GetSecurityIntegrationsSecurityIntegrationResult']:
|
|
58
|
+
"""
|
|
59
|
+
Holds the aggregated output of all security integrations details queries.
|
|
60
|
+
"""
|
|
61
|
+
return pulumi.get(self, "security_integrations")
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
@pulumi.getter(name="withDescribe")
|
|
65
|
+
def with_describe(self) -> Optional[bool]:
|
|
66
|
+
"""
|
|
67
|
+
Runs DESC SECURITY INTEGRATION for each security integration returned by SHOW SECURITY INTEGRATIONS. 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 AwaitableGetSecurityIntegrationsResult(GetSecurityIntegrationsResult):
|
|
73
|
+
# pylint: disable=using-constant-test
|
|
74
|
+
def __await__(self):
|
|
75
|
+
if False:
|
|
76
|
+
yield self
|
|
77
|
+
return GetSecurityIntegrationsResult(
|
|
78
|
+
id=self.id,
|
|
79
|
+
like=self.like,
|
|
80
|
+
security_integrations=self.security_integrations,
|
|
81
|
+
with_describe=self.with_describe)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def get_security_integrations(like: Optional[str] = None,
|
|
85
|
+
with_describe: Optional[bool] = None,
|
|
86
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecurityIntegrationsResult:
|
|
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 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
|
+
|
|
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 SECURITY INTEGRATION for each security integration returned by SHOW SECURITY INTEGRATIONS. 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/getSecurityIntegrations:getSecurityIntegrations', __args__, opts=opts, typ=GetSecurityIntegrationsResult).value
|
|
101
|
+
|
|
102
|
+
return AwaitableGetSecurityIntegrationsResult(
|
|
103
|
+
id=pulumi.get(__ret__, 'id'),
|
|
104
|
+
like=pulumi.get(__ret__, 'like'),
|
|
105
|
+
security_integrations=pulumi.get(__ret__, 'security_integrations'),
|
|
106
|
+
with_describe=pulumi.get(__ret__, 'with_describe'))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@_utilities.lift_output_func(get_security_integrations)
|
|
110
|
+
def get_security_integrations_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[GetSecurityIntegrationsResult]:
|
|
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 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
|
+
|
|
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 SECURITY INTEGRATION for each security integration returned by SHOW SECURITY INTEGRATIONS. The output of describe is saved to the description field. By default this value is set to true.
|
|
121
|
+
"""
|
|
122
|
+
...
|