pulumi-snowflake 2.1.0a1750230214__py3-none-any.whl → 2.2.0a1751946295__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 +58 -0
- pulumi_snowflake/_inputs.py +4790 -958
- pulumi_snowflake/account.py +47 -0
- pulumi_snowflake/compute_pool.py +625 -0
- pulumi_snowflake/config/__init__.pyi +6 -3
- pulumi_snowflake/config/vars.py +6 -3
- pulumi_snowflake/cortex_search_service.py +77 -0
- pulumi_snowflake/current_account.py +5885 -0
- pulumi_snowflake/database.py +7 -7
- pulumi_snowflake/get_compute_pools.py +175 -0
- pulumi_snowflake/get_cortex_search_services.py +3 -3
- pulumi_snowflake/get_database_roles.py +3 -3
- pulumi_snowflake/get_databases.py +3 -3
- pulumi_snowflake/get_git_repositories.py +175 -0
- pulumi_snowflake/get_image_repositories.py +135 -0
- pulumi_snowflake/get_masking_policies.py +3 -3
- pulumi_snowflake/get_row_access_policies.py +3 -3
- pulumi_snowflake/get_schemas.py +3 -3
- pulumi_snowflake/get_services.py +215 -0
- pulumi_snowflake/get_streamlits.py +3 -3
- pulumi_snowflake/get_streams.py +3 -3
- pulumi_snowflake/get_tables.py +103 -62
- pulumi_snowflake/get_tasks.py +3 -3
- pulumi_snowflake/get_users.py +3 -3
- pulumi_snowflake/get_views.py +3 -3
- pulumi_snowflake/git_repository.py +532 -0
- pulumi_snowflake/image_repository.py +361 -0
- pulumi_snowflake/job_service.py +653 -0
- pulumi_snowflake/outputs.py +4220 -136
- pulumi_snowflake/provider.py +24 -12
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/schema.py +7 -7
- pulumi_snowflake/secondary_database.py +7 -7
- pulumi_snowflake/service.py +888 -0
- pulumi_snowflake/shared_database.py +7 -7
- pulumi_snowflake/tag_association.py +7 -7
- {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/METADATA +1 -1
- {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/RECORD +40 -30
- {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-2.1.0a1750230214.dist-info → pulumi_snowflake-2.2.0a1751946295.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins
|
|
6
|
+
import copy
|
|
7
|
+
import warnings
|
|
8
|
+
import sys
|
|
9
|
+
import pulumi
|
|
10
|
+
import pulumi.runtime
|
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
12
|
+
if sys.version_info >= (3, 11):
|
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
14
|
+
else:
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
|
+
from . import _utilities
|
|
17
|
+
from . import outputs
|
|
18
|
+
from ._inputs import *
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
'GetImageRepositoriesResult',
|
|
22
|
+
'AwaitableGetImageRepositoriesResult',
|
|
23
|
+
'get_image_repositories',
|
|
24
|
+
'get_image_repositories_output',
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
@pulumi.output_type
|
|
28
|
+
class GetImageRepositoriesResult:
|
|
29
|
+
"""
|
|
30
|
+
A collection of values returned by getImageRepositories.
|
|
31
|
+
"""
|
|
32
|
+
def __init__(__self__, id=None, image_repositories=None, in_=None, like=None):
|
|
33
|
+
if id and not isinstance(id, str):
|
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
35
|
+
pulumi.set(__self__, "id", id)
|
|
36
|
+
if image_repositories and not isinstance(image_repositories, list):
|
|
37
|
+
raise TypeError("Expected argument 'image_repositories' to be a list")
|
|
38
|
+
pulumi.set(__self__, "image_repositories", image_repositories)
|
|
39
|
+
if in_ and not isinstance(in_, dict):
|
|
40
|
+
raise TypeError("Expected argument 'in_' to be a dict")
|
|
41
|
+
pulumi.set(__self__, "in_", in_)
|
|
42
|
+
if like and not isinstance(like, str):
|
|
43
|
+
raise TypeError("Expected argument 'like' to be a str")
|
|
44
|
+
pulumi.set(__self__, "like", like)
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
@pulumi.getter
|
|
48
|
+
def id(self) -> builtins.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="imageRepositories")
|
|
56
|
+
def image_repositories(self) -> Sequence['outputs.GetImageRepositoriesImageRepositoryResult']:
|
|
57
|
+
"""
|
|
58
|
+
Holds the aggregated output of all image repositories details queries.
|
|
59
|
+
"""
|
|
60
|
+
return pulumi.get(self, "image_repositories")
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter(name="in")
|
|
64
|
+
def in_(self) -> Optional['outputs.GetImageRepositoriesInResult']:
|
|
65
|
+
"""
|
|
66
|
+
IN clause to filter the list of objects
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "in_")
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
@pulumi.getter
|
|
72
|
+
def like(self) -> Optional[builtins.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
|
+
|
|
79
|
+
class AwaitableGetImageRepositoriesResult(GetImageRepositoriesResult):
|
|
80
|
+
# pylint: disable=using-constant-test
|
|
81
|
+
def __await__(self):
|
|
82
|
+
if False:
|
|
83
|
+
yield self
|
|
84
|
+
return GetImageRepositoriesResult(
|
|
85
|
+
id=self.id,
|
|
86
|
+
image_repositories=self.image_repositories,
|
|
87
|
+
in_=self.in_,
|
|
88
|
+
like=self.like)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def get_image_repositories(in_: Optional[Union['GetImageRepositoriesInArgs', 'GetImageRepositoriesInArgsDict']] = None,
|
|
92
|
+
like: Optional[builtins.str] = None,
|
|
93
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetImageRepositoriesResult:
|
|
94
|
+
"""
|
|
95
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
96
|
+
|
|
97
|
+
Data source used to get details of filtered image repositories. Filtering is aligned with the current possibilities for [SHOW IMAGE REPOSITORIES](https://docs.snowflake.com/en/sql-reference/sql/show-image-repositories) query. The results of SHOW are encapsulated in one output collection `image_repositories`.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:param Union['GetImageRepositoriesInArgs', 'GetImageRepositoriesInArgsDict'] in_: IN clause to filter the list of objects
|
|
101
|
+
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
102
|
+
"""
|
|
103
|
+
__args__ = dict()
|
|
104
|
+
__args__['in'] = in_
|
|
105
|
+
__args__['like'] = like
|
|
106
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
107
|
+
__ret__ = pulumi.runtime.invoke('snowflake:index/getImageRepositories:getImageRepositories', __args__, opts=opts, typ=GetImageRepositoriesResult).value
|
|
108
|
+
|
|
109
|
+
return AwaitableGetImageRepositoriesResult(
|
|
110
|
+
id=pulumi.get(__ret__, 'id'),
|
|
111
|
+
image_repositories=pulumi.get(__ret__, 'image_repositories'),
|
|
112
|
+
in_=pulumi.get(__ret__, 'in_'),
|
|
113
|
+
like=pulumi.get(__ret__, 'like'))
|
|
114
|
+
def get_image_repositories_output(in_: Optional[pulumi.Input[Optional[Union['GetImageRepositoriesInArgs', 'GetImageRepositoriesInArgsDict']]]] = None,
|
|
115
|
+
like: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
116
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetImageRepositoriesResult]:
|
|
117
|
+
"""
|
|
118
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
119
|
+
|
|
120
|
+
Data source used to get details of filtered image repositories. Filtering is aligned with the current possibilities for [SHOW IMAGE REPOSITORIES](https://docs.snowflake.com/en/sql-reference/sql/show-image-repositories) query. The results of SHOW are encapsulated in one output collection `image_repositories`.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:param Union['GetImageRepositoriesInArgs', 'GetImageRepositoriesInArgsDict'] in_: IN clause to filter the list of objects
|
|
124
|
+
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
125
|
+
"""
|
|
126
|
+
__args__ = dict()
|
|
127
|
+
__args__['in'] = in_
|
|
128
|
+
__args__['like'] = like
|
|
129
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
130
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getImageRepositories:getImageRepositories', __args__, opts=opts, typ=GetImageRepositoriesResult)
|
|
131
|
+
return __ret__.apply(lambda __response__: GetImageRepositoriesResult(
|
|
132
|
+
id=pulumi.get(__response__, 'id'),
|
|
133
|
+
image_repositories=pulumi.get(__response__, 'image_repositories'),
|
|
134
|
+
in_=pulumi.get(__response__, 'in_'),
|
|
135
|
+
like=pulumi.get(__response__, 'like')))
|
|
@@ -77,7 +77,7 @@ class GetMaskingPoliciesResult:
|
|
|
77
77
|
@pulumi.getter
|
|
78
78
|
def limit(self) -> Optional['outputs.GetMaskingPoliciesLimitResult']:
|
|
79
79
|
"""
|
|
80
|
-
Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
80
|
+
Limits the number of rows returned. If the `limit.from` is set, then the limit will 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
81
|
"""
|
|
82
82
|
return pulumi.get(self, "limit")
|
|
83
83
|
|
|
@@ -125,7 +125,7 @@ def get_masking_policies(in_: Optional[Union['GetMaskingPoliciesInArgs', 'GetMas
|
|
|
125
125
|
|
|
126
126
|
:param Union['GetMaskingPoliciesInArgs', 'GetMaskingPoliciesInArgsDict'] in_: IN clause to filter the list of masking policies
|
|
127
127
|
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
128
|
-
:param Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
128
|
+
:param Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
129
129
|
:param builtins.bool with_describe: (Default: `true`) Runs DESC MASKING POLICY for each masking policy returned by SHOW MASKING POLICIES. The output of describe is saved to the description field. By default this value is set to true.
|
|
130
130
|
"""
|
|
131
131
|
__args__ = dict()
|
|
@@ -156,7 +156,7 @@ def get_masking_policies_output(in_: Optional[pulumi.Input[Optional[Union['GetMa
|
|
|
156
156
|
|
|
157
157
|
:param Union['GetMaskingPoliciesInArgs', 'GetMaskingPoliciesInArgsDict'] in_: IN clause to filter the list of masking policies
|
|
158
158
|
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
159
|
-
:param Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
159
|
+
:param Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
160
160
|
:param builtins.bool with_describe: (Default: `true`) Runs DESC MASKING POLICY for each masking policy returned by SHOW MASKING POLICIES. The output of describe is saved to the description field. By default this value is set to true.
|
|
161
161
|
"""
|
|
162
162
|
__args__ = dict()
|
|
@@ -77,7 +77,7 @@ class GetRowAccessPoliciesResult:
|
|
|
77
77
|
@pulumi.getter
|
|
78
78
|
def limit(self) -> Optional['outputs.GetRowAccessPoliciesLimitResult']:
|
|
79
79
|
"""
|
|
80
|
-
Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
80
|
+
Limits the number of rows returned. If the `limit.from` is set, then the limit will 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
81
|
"""
|
|
82
82
|
return pulumi.get(self, "limit")
|
|
83
83
|
|
|
@@ -125,7 +125,7 @@ def get_row_access_policies(in_: Optional[Union['GetRowAccessPoliciesInArgs', 'G
|
|
|
125
125
|
|
|
126
126
|
:param Union['GetRowAccessPoliciesInArgs', 'GetRowAccessPoliciesInArgsDict'] in_: IN clause to filter the list of row access policies
|
|
127
127
|
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
128
|
-
:param Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
128
|
+
:param Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
129
129
|
:param builtins.bool with_describe: (Default: `true`) Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
|
|
130
130
|
"""
|
|
131
131
|
__args__ = dict()
|
|
@@ -156,7 +156,7 @@ def get_row_access_policies_output(in_: Optional[pulumi.Input[Optional[Union['Ge
|
|
|
156
156
|
|
|
157
157
|
:param Union['GetRowAccessPoliciesInArgs', 'GetRowAccessPoliciesInArgsDict'] in_: IN clause to filter the list of row access policies
|
|
158
158
|
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
159
|
-
:param Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
159
|
+
:param Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
160
160
|
:param builtins.bool with_describe: (Default: `true`) Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
|
|
161
161
|
"""
|
|
162
162
|
__args__ = dict()
|
pulumi_snowflake/get_schemas.py
CHANGED
|
@@ -83,7 +83,7 @@ class GetSchemasResult:
|
|
|
83
83
|
@pulumi.getter
|
|
84
84
|
def limit(self) -> Optional['outputs.GetSchemasLimitResult']:
|
|
85
85
|
"""
|
|
86
|
-
Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
86
|
+
Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
87
87
|
"""
|
|
88
88
|
return pulumi.get(self, "limit")
|
|
89
89
|
|
|
@@ -152,7 +152,7 @@ def get_schemas(in_: Optional[Union['GetSchemasInArgs', 'GetSchemasInArgsDict']]
|
|
|
152
152
|
|
|
153
153
|
:param Union['GetSchemasInArgs', 'GetSchemasInArgsDict'] in_: IN clause to filter the list of streamlits
|
|
154
154
|
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
155
|
-
:param Union['GetSchemasLimitArgs', 'GetSchemasLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
155
|
+
:param Union['GetSchemasLimitArgs', 'GetSchemasLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
156
156
|
:param builtins.str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
157
157
|
:param builtins.bool with_describe: (Default: `true`) 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.
|
|
158
158
|
:param builtins.bool with_parameters: (Default: `true`) 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.
|
|
@@ -192,7 +192,7 @@ def get_schemas_output(in_: Optional[pulumi.Input[Optional[Union['GetSchemasInAr
|
|
|
192
192
|
|
|
193
193
|
:param Union['GetSchemasInArgs', 'GetSchemasInArgsDict'] in_: IN clause to filter the list of streamlits
|
|
194
194
|
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
195
|
-
:param Union['GetSchemasLimitArgs', 'GetSchemasLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
195
|
+
:param Union['GetSchemasLimitArgs', 'GetSchemasLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
196
196
|
:param builtins.str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
197
197
|
:param builtins.bool with_describe: (Default: `true`) 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.
|
|
198
198
|
:param builtins.bool with_parameters: (Default: `true`) 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.
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins
|
|
6
|
+
import copy
|
|
7
|
+
import warnings
|
|
8
|
+
import sys
|
|
9
|
+
import pulumi
|
|
10
|
+
import pulumi.runtime
|
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
12
|
+
if sys.version_info >= (3, 11):
|
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
14
|
+
else:
|
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
16
|
+
from . import _utilities
|
|
17
|
+
from . import outputs
|
|
18
|
+
from ._inputs import *
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
'GetServicesResult',
|
|
22
|
+
'AwaitableGetServicesResult',
|
|
23
|
+
'get_services',
|
|
24
|
+
'get_services_output',
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
@pulumi.output_type
|
|
28
|
+
class GetServicesResult:
|
|
29
|
+
"""
|
|
30
|
+
A collection of values returned by getServices.
|
|
31
|
+
"""
|
|
32
|
+
def __init__(__self__, id=None, in_=None, like=None, limit=None, service_type=None, services=None, starts_with=None, with_describe=None):
|
|
33
|
+
if id and not isinstance(id, str):
|
|
34
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
35
|
+
pulumi.set(__self__, "id", id)
|
|
36
|
+
if in_ and not isinstance(in_, dict):
|
|
37
|
+
raise TypeError("Expected argument 'in_' to be a dict")
|
|
38
|
+
pulumi.set(__self__, "in_", in_)
|
|
39
|
+
if like and not isinstance(like, str):
|
|
40
|
+
raise TypeError("Expected argument 'like' to be a str")
|
|
41
|
+
pulumi.set(__self__, "like", like)
|
|
42
|
+
if limit and not isinstance(limit, dict):
|
|
43
|
+
raise TypeError("Expected argument 'limit' to be a dict")
|
|
44
|
+
pulumi.set(__self__, "limit", limit)
|
|
45
|
+
if service_type and not isinstance(service_type, str):
|
|
46
|
+
raise TypeError("Expected argument 'service_type' to be a str")
|
|
47
|
+
pulumi.set(__self__, "service_type", service_type)
|
|
48
|
+
if services and not isinstance(services, list):
|
|
49
|
+
raise TypeError("Expected argument 'services' to be a list")
|
|
50
|
+
pulumi.set(__self__, "services", services)
|
|
51
|
+
if starts_with and not isinstance(starts_with, str):
|
|
52
|
+
raise TypeError("Expected argument 'starts_with' to be a str")
|
|
53
|
+
pulumi.set(__self__, "starts_with", starts_with)
|
|
54
|
+
if with_describe and not isinstance(with_describe, bool):
|
|
55
|
+
raise TypeError("Expected argument 'with_describe' to be a bool")
|
|
56
|
+
pulumi.set(__self__, "with_describe", with_describe)
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
@pulumi.getter
|
|
60
|
+
def id(self) -> builtins.str:
|
|
61
|
+
"""
|
|
62
|
+
The provider-assigned unique ID for this managed resource.
|
|
63
|
+
"""
|
|
64
|
+
return pulumi.get(self, "id")
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter(name="in")
|
|
68
|
+
def in_(self) -> Optional['outputs.GetServicesInResult']:
|
|
69
|
+
"""
|
|
70
|
+
IN clause to filter the list of objects
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "in_")
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
@pulumi.getter
|
|
76
|
+
def like(self) -> Optional[builtins.str]:
|
|
77
|
+
"""
|
|
78
|
+
Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
79
|
+
"""
|
|
80
|
+
return pulumi.get(self, "like")
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
@pulumi.getter
|
|
84
|
+
def limit(self) -> Optional['outputs.GetServicesLimitResult']:
|
|
85
|
+
"""
|
|
86
|
+
Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
87
|
+
"""
|
|
88
|
+
return pulumi.get(self, "limit")
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
@pulumi.getter(name="serviceType")
|
|
92
|
+
def service_type(self) -> Optional[builtins.str]:
|
|
93
|
+
"""
|
|
94
|
+
(Default: `ALL`) The type filtering of `SHOW SERVICES` results. `ALL` returns both services and job services. `JOBS_ONLY` returns only job services (`JOB` option in SQL). `SERVICES_ONLY` returns only services (`EXCLUDE_JOBS` option in SQL).
|
|
95
|
+
"""
|
|
96
|
+
return pulumi.get(self, "service_type")
|
|
97
|
+
|
|
98
|
+
@property
|
|
99
|
+
@pulumi.getter
|
|
100
|
+
def services(self) -> Sequence['outputs.GetServicesServiceResult']:
|
|
101
|
+
"""
|
|
102
|
+
Holds the aggregated output of all services details queries.
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "services")
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
@pulumi.getter(name="startsWith")
|
|
108
|
+
def starts_with(self) -> Optional[builtins.str]:
|
|
109
|
+
"""
|
|
110
|
+
Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
111
|
+
"""
|
|
112
|
+
return pulumi.get(self, "starts_with")
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
@pulumi.getter(name="withDescribe")
|
|
116
|
+
def with_describe(self) -> Optional[builtins.bool]:
|
|
117
|
+
"""
|
|
118
|
+
(Default: `true`) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
|
|
119
|
+
"""
|
|
120
|
+
return pulumi.get(self, "with_describe")
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
class AwaitableGetServicesResult(GetServicesResult):
|
|
124
|
+
# pylint: disable=using-constant-test
|
|
125
|
+
def __await__(self):
|
|
126
|
+
if False:
|
|
127
|
+
yield self
|
|
128
|
+
return GetServicesResult(
|
|
129
|
+
id=self.id,
|
|
130
|
+
in_=self.in_,
|
|
131
|
+
like=self.like,
|
|
132
|
+
limit=self.limit,
|
|
133
|
+
service_type=self.service_type,
|
|
134
|
+
services=self.services,
|
|
135
|
+
starts_with=self.starts_with,
|
|
136
|
+
with_describe=self.with_describe)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
def get_services(in_: Optional[Union['GetServicesInArgs', 'GetServicesInArgsDict']] = None,
|
|
140
|
+
like: Optional[builtins.str] = None,
|
|
141
|
+
limit: Optional[Union['GetServicesLimitArgs', 'GetServicesLimitArgsDict']] = None,
|
|
142
|
+
service_type: Optional[builtins.str] = None,
|
|
143
|
+
starts_with: Optional[builtins.str] = None,
|
|
144
|
+
with_describe: Optional[builtins.bool] = None,
|
|
145
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetServicesResult:
|
|
146
|
+
"""
|
|
147
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
148
|
+
|
|
149
|
+
Data source used to get details of filtered services. Filtering is aligned with the current possibilities for [SHOW SERVICES](https://docs.snowflake.com/en/sql-reference/sql/show-services) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `services`. By default, the results includes both services and job services. If you want to filter only services or job service, set `service_type` with a relevant option.
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
:param Union['GetServicesInArgs', 'GetServicesInArgsDict'] in_: IN clause to filter the list of objects
|
|
153
|
+
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
154
|
+
:param Union['GetServicesLimitArgs', 'GetServicesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
155
|
+
:param builtins.str service_type: (Default: `ALL`) The type filtering of `SHOW SERVICES` results. `ALL` returns both services and job services. `JOBS_ONLY` returns only job services (`JOB` option in SQL). `SERVICES_ONLY` returns only services (`EXCLUDE_JOBS` option in SQL).
|
|
156
|
+
:param builtins.str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
157
|
+
:param builtins.bool with_describe: (Default: `true`) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
|
|
158
|
+
"""
|
|
159
|
+
__args__ = dict()
|
|
160
|
+
__args__['in'] = in_
|
|
161
|
+
__args__['like'] = like
|
|
162
|
+
__args__['limit'] = limit
|
|
163
|
+
__args__['serviceType'] = service_type
|
|
164
|
+
__args__['startsWith'] = starts_with
|
|
165
|
+
__args__['withDescribe'] = with_describe
|
|
166
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
167
|
+
__ret__ = pulumi.runtime.invoke('snowflake:index/getServices:getServices', __args__, opts=opts, typ=GetServicesResult).value
|
|
168
|
+
|
|
169
|
+
return AwaitableGetServicesResult(
|
|
170
|
+
id=pulumi.get(__ret__, 'id'),
|
|
171
|
+
in_=pulumi.get(__ret__, 'in_'),
|
|
172
|
+
like=pulumi.get(__ret__, 'like'),
|
|
173
|
+
limit=pulumi.get(__ret__, 'limit'),
|
|
174
|
+
service_type=pulumi.get(__ret__, 'service_type'),
|
|
175
|
+
services=pulumi.get(__ret__, 'services'),
|
|
176
|
+
starts_with=pulumi.get(__ret__, 'starts_with'),
|
|
177
|
+
with_describe=pulumi.get(__ret__, 'with_describe'))
|
|
178
|
+
def get_services_output(in_: Optional[pulumi.Input[Optional[Union['GetServicesInArgs', 'GetServicesInArgsDict']]]] = None,
|
|
179
|
+
like: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
180
|
+
limit: Optional[pulumi.Input[Optional[Union['GetServicesLimitArgs', 'GetServicesLimitArgsDict']]]] = None,
|
|
181
|
+
service_type: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
182
|
+
starts_with: Optional[pulumi.Input[Optional[builtins.str]]] = None,
|
|
183
|
+
with_describe: Optional[pulumi.Input[Optional[builtins.bool]]] = None,
|
|
184
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetServicesResult]:
|
|
185
|
+
"""
|
|
186
|
+
!> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled` field in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
|
|
187
|
+
|
|
188
|
+
Data source used to get details of filtered services. Filtering is aligned with the current possibilities for [SHOW SERVICES](https://docs.snowflake.com/en/sql-reference/sql/show-services) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `services`. By default, the results includes both services and job services. If you want to filter only services or job service, set `service_type` with a relevant option.
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
:param Union['GetServicesInArgs', 'GetServicesInArgsDict'] in_: IN clause to filter the list of objects
|
|
192
|
+
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
193
|
+
:param Union['GetServicesLimitArgs', 'GetServicesLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
194
|
+
:param builtins.str service_type: (Default: `ALL`) The type filtering of `SHOW SERVICES` results. `ALL` returns both services and job services. `JOBS_ONLY` returns only job services (`JOB` option in SQL). `SERVICES_ONLY` returns only services (`EXCLUDE_JOBS` option in SQL).
|
|
195
|
+
:param builtins.str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
196
|
+
:param builtins.bool with_describe: (Default: `true`) Runs DESC SERVICE for each service returned by SHOW SERVICES. The output of describe is saved to the description field. By default this value is set to true.
|
|
197
|
+
"""
|
|
198
|
+
__args__ = dict()
|
|
199
|
+
__args__['in'] = in_
|
|
200
|
+
__args__['like'] = like
|
|
201
|
+
__args__['limit'] = limit
|
|
202
|
+
__args__['serviceType'] = service_type
|
|
203
|
+
__args__['startsWith'] = starts_with
|
|
204
|
+
__args__['withDescribe'] = with_describe
|
|
205
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
206
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getServices:getServices', __args__, opts=opts, typ=GetServicesResult)
|
|
207
|
+
return __ret__.apply(lambda __response__: GetServicesResult(
|
|
208
|
+
id=pulumi.get(__response__, 'id'),
|
|
209
|
+
in_=pulumi.get(__response__, 'in_'),
|
|
210
|
+
like=pulumi.get(__response__, 'like'),
|
|
211
|
+
limit=pulumi.get(__response__, 'limit'),
|
|
212
|
+
service_type=pulumi.get(__response__, 'service_type'),
|
|
213
|
+
services=pulumi.get(__response__, 'services'),
|
|
214
|
+
starts_with=pulumi.get(__response__, 'starts_with'),
|
|
215
|
+
with_describe=pulumi.get(__response__, 'with_describe')))
|
|
@@ -77,7 +77,7 @@ class GetStreamlitsResult:
|
|
|
77
77
|
@pulumi.getter
|
|
78
78
|
def limit(self) -> Optional['outputs.GetStreamlitsLimitResult']:
|
|
79
79
|
"""
|
|
80
|
-
Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
80
|
+
Limits the number of rows returned. If the `limit.from` is set, then the limit will 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
81
|
"""
|
|
82
82
|
return pulumi.get(self, "limit")
|
|
83
83
|
|
|
@@ -123,7 +123,7 @@ def get_streamlits(in_: Optional[Union['GetStreamlitsInArgs', 'GetStreamlitsInAr
|
|
|
123
123
|
|
|
124
124
|
:param Union['GetStreamlitsInArgs', 'GetStreamlitsInArgsDict'] in_: IN clause to filter the list of streamlits
|
|
125
125
|
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
126
|
-
:param Union['GetStreamlitsLimitArgs', 'GetStreamlitsLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
126
|
+
:param Union['GetStreamlitsLimitArgs', 'GetStreamlitsLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
127
127
|
:param builtins.bool with_describe: (Default: `true`) 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.
|
|
128
128
|
"""
|
|
129
129
|
__args__ = dict()
|
|
@@ -152,7 +152,7 @@ def get_streamlits_output(in_: Optional[pulumi.Input[Optional[Union['GetStreamli
|
|
|
152
152
|
|
|
153
153
|
:param Union['GetStreamlitsInArgs', 'GetStreamlitsInArgsDict'] in_: IN clause to filter the list of streamlits
|
|
154
154
|
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
155
|
-
:param Union['GetStreamlitsLimitArgs', 'GetStreamlitsLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
155
|
+
:param Union['GetStreamlitsLimitArgs', 'GetStreamlitsLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
156
156
|
:param builtins.bool with_describe: (Default: `true`) 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.
|
|
157
157
|
"""
|
|
158
158
|
__args__ = dict()
|
pulumi_snowflake/get_streams.py
CHANGED
|
@@ -80,7 +80,7 @@ class GetStreamsResult:
|
|
|
80
80
|
@pulumi.getter
|
|
81
81
|
def limit(self) -> Optional['outputs.GetStreamsLimitResult']:
|
|
82
82
|
"""
|
|
83
|
-
Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
83
|
+
Limits the number of rows returned. If the `limit.from` is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
|
|
84
84
|
"""
|
|
85
85
|
return pulumi.get(self, "limit")
|
|
86
86
|
|
|
@@ -136,7 +136,7 @@ def get_streams(in_: Optional[Union['GetStreamsInArgs', 'GetStreamsInArgsDict']]
|
|
|
136
136
|
|
|
137
137
|
:param Union['GetStreamsInArgs', 'GetStreamsInArgsDict'] in_: IN clause to filter the list of objects
|
|
138
138
|
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
139
|
-
:param Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
139
|
+
:param Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will 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`.
|
|
140
140
|
:param builtins.str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
141
141
|
:param builtins.bool with_describe: (Default: `true`) Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
|
|
142
142
|
"""
|
|
@@ -169,7 +169,7 @@ def get_streams_output(in_: Optional[pulumi.Input[Optional[Union['GetStreamsInAr
|
|
|
169
169
|
|
|
170
170
|
:param Union['GetStreamsInArgs', 'GetStreamsInArgsDict'] in_: IN clause to filter the list of objects
|
|
171
171
|
:param builtins.str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
172
|
-
:param Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit
|
|
172
|
+
:param Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit will start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
|
|
173
173
|
:param builtins.str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
174
174
|
:param builtins.bool with_describe: (Default: `true`) Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
|
|
175
175
|
"""
|