pulumi-snowflake 2.0.1__py3-none-any.whl → 2.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +4 -2
- pulumi_snowflake/config/vars.py +4 -2
- 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 +16 -8
- 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.0.1.dist-info → pulumi_snowflake-2.1.0.dist-info}/METADATA +1 -1
- {pulumi_snowflake-2.0.1.dist-info → pulumi_snowflake-2.1.0.dist-info}/RECORD +40 -30
- {pulumi_snowflake-2.0.1.dist-info → pulumi_snowflake-2.1.0.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-2.0.1.dist-info → pulumi_snowflake-2.1.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,888 @@
|
|
|
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__ = ['ServiceArgs', 'Service']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class ServiceArgs:
|
|
24
|
+
def __init__(__self__, *,
|
|
25
|
+
compute_pool: pulumi.Input[builtins.str],
|
|
26
|
+
database: pulumi.Input[builtins.str],
|
|
27
|
+
schema: pulumi.Input[builtins.str],
|
|
28
|
+
auto_resume: Optional[pulumi.Input[builtins.str]] = None,
|
|
29
|
+
auto_suspend_secs: Optional[pulumi.Input[builtins.int]] = None,
|
|
30
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
31
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
32
|
+
from_specification: Optional[pulumi.Input['ServiceFromSpecificationArgs']] = None,
|
|
33
|
+
from_specification_template: Optional[pulumi.Input['ServiceFromSpecificationTemplateArgs']] = None,
|
|
34
|
+
max_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
35
|
+
min_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
36
|
+
min_ready_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
37
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
38
|
+
query_warehouse: Optional[pulumi.Input[builtins.str]] = None):
|
|
39
|
+
"""
|
|
40
|
+
The set of arguments for constructing a Service resource.
|
|
41
|
+
:param pulumi.Input[builtins.str] compute_pool: Specifies the name of the compute pool in your account on which to run the service. Identifiers with special or lower-case characters are not supported. This limitation in the provider follows the limitation in Snowflake (see [docs](https://docs.snowflake.com/en/sql-reference/sql/create-compute-pool)). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
42
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
43
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
44
|
+
:param pulumi.Input[builtins.str] auto_resume: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies whether to automatically resume a service. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
45
|
+
:param pulumi.Input[builtins.int] auto_suspend_secs: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`-1`)) Specifies the number of seconds of inactivity (service is idle) after which Snowflake automatically suspends the service.
|
|
46
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the service.
|
|
47
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] external_access_integrations: Specifies the names of the external access integrations that allow your service to access external sites.
|
|
48
|
+
:param pulumi.Input['ServiceFromSpecificationArgs'] from_specification: Specifies the service specification to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
49
|
+
:param pulumi.Input['ServiceFromSpecificationTemplateArgs'] from_specification_template: Specifies the service specification template to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
50
|
+
:param pulumi.Input[builtins.int] max_instances: Specifies the maximum number of service instances to run.
|
|
51
|
+
:param pulumi.Input[builtins.int] min_instances: Specifies the minimum number of service instances to run.
|
|
52
|
+
:param pulumi.Input[builtins.int] min_ready_instances: Indicates the minimum service instances that must be ready for Snowflake to consider the service is ready to process requests.
|
|
53
|
+
:param pulumi.Input[builtins.str] name: Specifies the identifier for the service; must be unique for the schema in which the service is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
54
|
+
:param pulumi.Input[builtins.str] query_warehouse: Warehouse to use if a service container connects to Snowflake to execute a query but does not explicitly specify a warehouse to use. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
55
|
+
"""
|
|
56
|
+
pulumi.set(__self__, "compute_pool", compute_pool)
|
|
57
|
+
pulumi.set(__self__, "database", database)
|
|
58
|
+
pulumi.set(__self__, "schema", schema)
|
|
59
|
+
if auto_resume is not None:
|
|
60
|
+
pulumi.set(__self__, "auto_resume", auto_resume)
|
|
61
|
+
if auto_suspend_secs is not None:
|
|
62
|
+
pulumi.set(__self__, "auto_suspend_secs", auto_suspend_secs)
|
|
63
|
+
if comment is not None:
|
|
64
|
+
pulumi.set(__self__, "comment", comment)
|
|
65
|
+
if external_access_integrations is not None:
|
|
66
|
+
pulumi.set(__self__, "external_access_integrations", external_access_integrations)
|
|
67
|
+
if from_specification is not None:
|
|
68
|
+
pulumi.set(__self__, "from_specification", from_specification)
|
|
69
|
+
if from_specification_template is not None:
|
|
70
|
+
pulumi.set(__self__, "from_specification_template", from_specification_template)
|
|
71
|
+
if max_instances is not None:
|
|
72
|
+
pulumi.set(__self__, "max_instances", max_instances)
|
|
73
|
+
if min_instances is not None:
|
|
74
|
+
pulumi.set(__self__, "min_instances", min_instances)
|
|
75
|
+
if min_ready_instances is not None:
|
|
76
|
+
pulumi.set(__self__, "min_ready_instances", min_ready_instances)
|
|
77
|
+
if name is not None:
|
|
78
|
+
pulumi.set(__self__, "name", name)
|
|
79
|
+
if query_warehouse is not None:
|
|
80
|
+
pulumi.set(__self__, "query_warehouse", query_warehouse)
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
@pulumi.getter(name="computePool")
|
|
84
|
+
def compute_pool(self) -> pulumi.Input[builtins.str]:
|
|
85
|
+
"""
|
|
86
|
+
Specifies the name of the compute pool in your account on which to run the service. Identifiers with special or lower-case characters are not supported. This limitation in the provider follows the limitation in Snowflake (see [docs](https://docs.snowflake.com/en/sql-reference/sql/create-compute-pool)). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
87
|
+
"""
|
|
88
|
+
return pulumi.get(self, "compute_pool")
|
|
89
|
+
|
|
90
|
+
@compute_pool.setter
|
|
91
|
+
def compute_pool(self, value: pulumi.Input[builtins.str]):
|
|
92
|
+
pulumi.set(self, "compute_pool", value)
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
@pulumi.getter
|
|
96
|
+
def database(self) -> pulumi.Input[builtins.str]:
|
|
97
|
+
"""
|
|
98
|
+
The database in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
99
|
+
"""
|
|
100
|
+
return pulumi.get(self, "database")
|
|
101
|
+
|
|
102
|
+
@database.setter
|
|
103
|
+
def database(self, value: pulumi.Input[builtins.str]):
|
|
104
|
+
pulumi.set(self, "database", value)
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
@pulumi.getter
|
|
108
|
+
def schema(self) -> pulumi.Input[builtins.str]:
|
|
109
|
+
"""
|
|
110
|
+
The schema in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
111
|
+
"""
|
|
112
|
+
return pulumi.get(self, "schema")
|
|
113
|
+
|
|
114
|
+
@schema.setter
|
|
115
|
+
def schema(self, value: pulumi.Input[builtins.str]):
|
|
116
|
+
pulumi.set(self, "schema", value)
|
|
117
|
+
|
|
118
|
+
@property
|
|
119
|
+
@pulumi.getter(name="autoResume")
|
|
120
|
+
def auto_resume(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
121
|
+
"""
|
|
122
|
+
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies whether to automatically resume a service. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
123
|
+
"""
|
|
124
|
+
return pulumi.get(self, "auto_resume")
|
|
125
|
+
|
|
126
|
+
@auto_resume.setter
|
|
127
|
+
def auto_resume(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
128
|
+
pulumi.set(self, "auto_resume", value)
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
@pulumi.getter(name="autoSuspendSecs")
|
|
132
|
+
def auto_suspend_secs(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
133
|
+
"""
|
|
134
|
+
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`-1`)) Specifies the number of seconds of inactivity (service is idle) after which Snowflake automatically suspends the service.
|
|
135
|
+
"""
|
|
136
|
+
return pulumi.get(self, "auto_suspend_secs")
|
|
137
|
+
|
|
138
|
+
@auto_suspend_secs.setter
|
|
139
|
+
def auto_suspend_secs(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
140
|
+
pulumi.set(self, "auto_suspend_secs", value)
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
@pulumi.getter
|
|
144
|
+
def comment(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
145
|
+
"""
|
|
146
|
+
Specifies a comment for the service.
|
|
147
|
+
"""
|
|
148
|
+
return pulumi.get(self, "comment")
|
|
149
|
+
|
|
150
|
+
@comment.setter
|
|
151
|
+
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
152
|
+
pulumi.set(self, "comment", value)
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
@pulumi.getter(name="externalAccessIntegrations")
|
|
156
|
+
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
157
|
+
"""
|
|
158
|
+
Specifies the names of the external access integrations that allow your service to access external sites.
|
|
159
|
+
"""
|
|
160
|
+
return pulumi.get(self, "external_access_integrations")
|
|
161
|
+
|
|
162
|
+
@external_access_integrations.setter
|
|
163
|
+
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
164
|
+
pulumi.set(self, "external_access_integrations", value)
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
@pulumi.getter(name="fromSpecification")
|
|
168
|
+
def from_specification(self) -> Optional[pulumi.Input['ServiceFromSpecificationArgs']]:
|
|
169
|
+
"""
|
|
170
|
+
Specifies the service specification to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
171
|
+
"""
|
|
172
|
+
return pulumi.get(self, "from_specification")
|
|
173
|
+
|
|
174
|
+
@from_specification.setter
|
|
175
|
+
def from_specification(self, value: Optional[pulumi.Input['ServiceFromSpecificationArgs']]):
|
|
176
|
+
pulumi.set(self, "from_specification", value)
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
@pulumi.getter(name="fromSpecificationTemplate")
|
|
180
|
+
def from_specification_template(self) -> Optional[pulumi.Input['ServiceFromSpecificationTemplateArgs']]:
|
|
181
|
+
"""
|
|
182
|
+
Specifies the service specification template to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
183
|
+
"""
|
|
184
|
+
return pulumi.get(self, "from_specification_template")
|
|
185
|
+
|
|
186
|
+
@from_specification_template.setter
|
|
187
|
+
def from_specification_template(self, value: Optional[pulumi.Input['ServiceFromSpecificationTemplateArgs']]):
|
|
188
|
+
pulumi.set(self, "from_specification_template", value)
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
@pulumi.getter(name="maxInstances")
|
|
192
|
+
def max_instances(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
193
|
+
"""
|
|
194
|
+
Specifies the maximum number of service instances to run.
|
|
195
|
+
"""
|
|
196
|
+
return pulumi.get(self, "max_instances")
|
|
197
|
+
|
|
198
|
+
@max_instances.setter
|
|
199
|
+
def max_instances(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
200
|
+
pulumi.set(self, "max_instances", value)
|
|
201
|
+
|
|
202
|
+
@property
|
|
203
|
+
@pulumi.getter(name="minInstances")
|
|
204
|
+
def min_instances(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
205
|
+
"""
|
|
206
|
+
Specifies the minimum number of service instances to run.
|
|
207
|
+
"""
|
|
208
|
+
return pulumi.get(self, "min_instances")
|
|
209
|
+
|
|
210
|
+
@min_instances.setter
|
|
211
|
+
def min_instances(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
212
|
+
pulumi.set(self, "min_instances", value)
|
|
213
|
+
|
|
214
|
+
@property
|
|
215
|
+
@pulumi.getter(name="minReadyInstances")
|
|
216
|
+
def min_ready_instances(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
217
|
+
"""
|
|
218
|
+
Indicates the minimum service instances that must be ready for Snowflake to consider the service is ready to process requests.
|
|
219
|
+
"""
|
|
220
|
+
return pulumi.get(self, "min_ready_instances")
|
|
221
|
+
|
|
222
|
+
@min_ready_instances.setter
|
|
223
|
+
def min_ready_instances(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
224
|
+
pulumi.set(self, "min_ready_instances", value)
|
|
225
|
+
|
|
226
|
+
@property
|
|
227
|
+
@pulumi.getter
|
|
228
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
229
|
+
"""
|
|
230
|
+
Specifies the identifier for the service; must be unique for the schema in which the service is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
231
|
+
"""
|
|
232
|
+
return pulumi.get(self, "name")
|
|
233
|
+
|
|
234
|
+
@name.setter
|
|
235
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
236
|
+
pulumi.set(self, "name", value)
|
|
237
|
+
|
|
238
|
+
@property
|
|
239
|
+
@pulumi.getter(name="queryWarehouse")
|
|
240
|
+
def query_warehouse(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
241
|
+
"""
|
|
242
|
+
Warehouse to use if a service container connects to Snowflake to execute a query but does not explicitly specify a warehouse to use. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
243
|
+
"""
|
|
244
|
+
return pulumi.get(self, "query_warehouse")
|
|
245
|
+
|
|
246
|
+
@query_warehouse.setter
|
|
247
|
+
def query_warehouse(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
248
|
+
pulumi.set(self, "query_warehouse", value)
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
@pulumi.input_type
|
|
252
|
+
class _ServiceState:
|
|
253
|
+
def __init__(__self__, *,
|
|
254
|
+
auto_resume: Optional[pulumi.Input[builtins.str]] = None,
|
|
255
|
+
auto_suspend_secs: Optional[pulumi.Input[builtins.int]] = None,
|
|
256
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
257
|
+
compute_pool: Optional[pulumi.Input[builtins.str]] = None,
|
|
258
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
259
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceDescribeOutputArgs']]]] = None,
|
|
260
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
261
|
+
from_specification: Optional[pulumi.Input['ServiceFromSpecificationArgs']] = None,
|
|
262
|
+
from_specification_template: Optional[pulumi.Input['ServiceFromSpecificationTemplateArgs']] = None,
|
|
263
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
264
|
+
max_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
265
|
+
min_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
266
|
+
min_ready_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
267
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
268
|
+
query_warehouse: Optional[pulumi.Input[builtins.str]] = None,
|
|
269
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
270
|
+
service_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
271
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceShowOutputArgs']]]] = None):
|
|
272
|
+
"""
|
|
273
|
+
Input properties used for looking up and filtering Service resources.
|
|
274
|
+
:param pulumi.Input[builtins.str] auto_resume: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies whether to automatically resume a service. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
275
|
+
:param pulumi.Input[builtins.int] auto_suspend_secs: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`-1`)) Specifies the number of seconds of inactivity (service is idle) after which Snowflake automatically suspends the service.
|
|
276
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the service.
|
|
277
|
+
:param pulumi.Input[builtins.str] compute_pool: Specifies the name of the compute pool in your account on which to run the service. Identifiers with special or lower-case characters are not supported. This limitation in the provider follows the limitation in Snowflake (see [docs](https://docs.snowflake.com/en/sql-reference/sql/create-compute-pool)). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
278
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
279
|
+
:param pulumi.Input[Sequence[pulumi.Input['ServiceDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE SERVICE` for the given service.
|
|
280
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] external_access_integrations: Specifies the names of the external access integrations that allow your service to access external sites.
|
|
281
|
+
:param pulumi.Input['ServiceFromSpecificationArgs'] from_specification: Specifies the service specification to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
282
|
+
:param pulumi.Input['ServiceFromSpecificationTemplateArgs'] from_specification_template: Specifies the service specification template to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
283
|
+
:param pulumi.Input[builtins.str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
284
|
+
:param pulumi.Input[builtins.int] max_instances: Specifies the maximum number of service instances to run.
|
|
285
|
+
:param pulumi.Input[builtins.int] min_instances: Specifies the minimum number of service instances to run.
|
|
286
|
+
:param pulumi.Input[builtins.int] min_ready_instances: Indicates the minimum service instances that must be ready for Snowflake to consider the service is ready to process requests.
|
|
287
|
+
:param pulumi.Input[builtins.str] name: Specifies the identifier for the service; must be unique for the schema in which the service is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
288
|
+
:param pulumi.Input[builtins.str] query_warehouse: Warehouse to use if a service container connects to Snowflake to execute a query but does not explicitly specify a warehouse to use. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
289
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
290
|
+
:param pulumi.Input[builtins.str] service_type: Specifies a type for the service. This field is used for checking external changes and recreating the resources if needed.
|
|
291
|
+
:param pulumi.Input[Sequence[pulumi.Input['ServiceShowOutputArgs']]] show_outputs: Outputs the result of `SHOW SERVICES` for the given service.
|
|
292
|
+
"""
|
|
293
|
+
if auto_resume is not None:
|
|
294
|
+
pulumi.set(__self__, "auto_resume", auto_resume)
|
|
295
|
+
if auto_suspend_secs is not None:
|
|
296
|
+
pulumi.set(__self__, "auto_suspend_secs", auto_suspend_secs)
|
|
297
|
+
if comment is not None:
|
|
298
|
+
pulumi.set(__self__, "comment", comment)
|
|
299
|
+
if compute_pool is not None:
|
|
300
|
+
pulumi.set(__self__, "compute_pool", compute_pool)
|
|
301
|
+
if database is not None:
|
|
302
|
+
pulumi.set(__self__, "database", database)
|
|
303
|
+
if describe_outputs is not None:
|
|
304
|
+
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
305
|
+
if external_access_integrations is not None:
|
|
306
|
+
pulumi.set(__self__, "external_access_integrations", external_access_integrations)
|
|
307
|
+
if from_specification is not None:
|
|
308
|
+
pulumi.set(__self__, "from_specification", from_specification)
|
|
309
|
+
if from_specification_template is not None:
|
|
310
|
+
pulumi.set(__self__, "from_specification_template", from_specification_template)
|
|
311
|
+
if fully_qualified_name is not None:
|
|
312
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
313
|
+
if max_instances is not None:
|
|
314
|
+
pulumi.set(__self__, "max_instances", max_instances)
|
|
315
|
+
if min_instances is not None:
|
|
316
|
+
pulumi.set(__self__, "min_instances", min_instances)
|
|
317
|
+
if min_ready_instances is not None:
|
|
318
|
+
pulumi.set(__self__, "min_ready_instances", min_ready_instances)
|
|
319
|
+
if name is not None:
|
|
320
|
+
pulumi.set(__self__, "name", name)
|
|
321
|
+
if query_warehouse is not None:
|
|
322
|
+
pulumi.set(__self__, "query_warehouse", query_warehouse)
|
|
323
|
+
if schema is not None:
|
|
324
|
+
pulumi.set(__self__, "schema", schema)
|
|
325
|
+
if service_type is not None:
|
|
326
|
+
pulumi.set(__self__, "service_type", service_type)
|
|
327
|
+
if show_outputs is not None:
|
|
328
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
329
|
+
|
|
330
|
+
@property
|
|
331
|
+
@pulumi.getter(name="autoResume")
|
|
332
|
+
def auto_resume(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
333
|
+
"""
|
|
334
|
+
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies whether to automatically resume a service. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
335
|
+
"""
|
|
336
|
+
return pulumi.get(self, "auto_resume")
|
|
337
|
+
|
|
338
|
+
@auto_resume.setter
|
|
339
|
+
def auto_resume(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
340
|
+
pulumi.set(self, "auto_resume", value)
|
|
341
|
+
|
|
342
|
+
@property
|
|
343
|
+
@pulumi.getter(name="autoSuspendSecs")
|
|
344
|
+
def auto_suspend_secs(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
345
|
+
"""
|
|
346
|
+
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`-1`)) Specifies the number of seconds of inactivity (service is idle) after which Snowflake automatically suspends the service.
|
|
347
|
+
"""
|
|
348
|
+
return pulumi.get(self, "auto_suspend_secs")
|
|
349
|
+
|
|
350
|
+
@auto_suspend_secs.setter
|
|
351
|
+
def auto_suspend_secs(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
352
|
+
pulumi.set(self, "auto_suspend_secs", value)
|
|
353
|
+
|
|
354
|
+
@property
|
|
355
|
+
@pulumi.getter
|
|
356
|
+
def comment(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
357
|
+
"""
|
|
358
|
+
Specifies a comment for the service.
|
|
359
|
+
"""
|
|
360
|
+
return pulumi.get(self, "comment")
|
|
361
|
+
|
|
362
|
+
@comment.setter
|
|
363
|
+
def comment(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
364
|
+
pulumi.set(self, "comment", value)
|
|
365
|
+
|
|
366
|
+
@property
|
|
367
|
+
@pulumi.getter(name="computePool")
|
|
368
|
+
def compute_pool(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
369
|
+
"""
|
|
370
|
+
Specifies the name of the compute pool in your account on which to run the service. Identifiers with special or lower-case characters are not supported. This limitation in the provider follows the limitation in Snowflake (see [docs](https://docs.snowflake.com/en/sql-reference/sql/create-compute-pool)). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
371
|
+
"""
|
|
372
|
+
return pulumi.get(self, "compute_pool")
|
|
373
|
+
|
|
374
|
+
@compute_pool.setter
|
|
375
|
+
def compute_pool(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
376
|
+
pulumi.set(self, "compute_pool", value)
|
|
377
|
+
|
|
378
|
+
@property
|
|
379
|
+
@pulumi.getter
|
|
380
|
+
def database(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
381
|
+
"""
|
|
382
|
+
The database in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
383
|
+
"""
|
|
384
|
+
return pulumi.get(self, "database")
|
|
385
|
+
|
|
386
|
+
@database.setter
|
|
387
|
+
def database(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
388
|
+
pulumi.set(self, "database", value)
|
|
389
|
+
|
|
390
|
+
@property
|
|
391
|
+
@pulumi.getter(name="describeOutputs")
|
|
392
|
+
def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServiceDescribeOutputArgs']]]]:
|
|
393
|
+
"""
|
|
394
|
+
Outputs the result of `DESCRIBE SERVICE` for the given service.
|
|
395
|
+
"""
|
|
396
|
+
return pulumi.get(self, "describe_outputs")
|
|
397
|
+
|
|
398
|
+
@describe_outputs.setter
|
|
399
|
+
def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceDescribeOutputArgs']]]]):
|
|
400
|
+
pulumi.set(self, "describe_outputs", value)
|
|
401
|
+
|
|
402
|
+
@property
|
|
403
|
+
@pulumi.getter(name="externalAccessIntegrations")
|
|
404
|
+
def external_access_integrations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
405
|
+
"""
|
|
406
|
+
Specifies the names of the external access integrations that allow your service to access external sites.
|
|
407
|
+
"""
|
|
408
|
+
return pulumi.get(self, "external_access_integrations")
|
|
409
|
+
|
|
410
|
+
@external_access_integrations.setter
|
|
411
|
+
def external_access_integrations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
412
|
+
pulumi.set(self, "external_access_integrations", value)
|
|
413
|
+
|
|
414
|
+
@property
|
|
415
|
+
@pulumi.getter(name="fromSpecification")
|
|
416
|
+
def from_specification(self) -> Optional[pulumi.Input['ServiceFromSpecificationArgs']]:
|
|
417
|
+
"""
|
|
418
|
+
Specifies the service specification to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
419
|
+
"""
|
|
420
|
+
return pulumi.get(self, "from_specification")
|
|
421
|
+
|
|
422
|
+
@from_specification.setter
|
|
423
|
+
def from_specification(self, value: Optional[pulumi.Input['ServiceFromSpecificationArgs']]):
|
|
424
|
+
pulumi.set(self, "from_specification", value)
|
|
425
|
+
|
|
426
|
+
@property
|
|
427
|
+
@pulumi.getter(name="fromSpecificationTemplate")
|
|
428
|
+
def from_specification_template(self) -> Optional[pulumi.Input['ServiceFromSpecificationTemplateArgs']]:
|
|
429
|
+
"""
|
|
430
|
+
Specifies the service specification template to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
431
|
+
"""
|
|
432
|
+
return pulumi.get(self, "from_specification_template")
|
|
433
|
+
|
|
434
|
+
@from_specification_template.setter
|
|
435
|
+
def from_specification_template(self, value: Optional[pulumi.Input['ServiceFromSpecificationTemplateArgs']]):
|
|
436
|
+
pulumi.set(self, "from_specification_template", value)
|
|
437
|
+
|
|
438
|
+
@property
|
|
439
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
440
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
441
|
+
"""
|
|
442
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
443
|
+
"""
|
|
444
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
445
|
+
|
|
446
|
+
@fully_qualified_name.setter
|
|
447
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
448
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
449
|
+
|
|
450
|
+
@property
|
|
451
|
+
@pulumi.getter(name="maxInstances")
|
|
452
|
+
def max_instances(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
453
|
+
"""
|
|
454
|
+
Specifies the maximum number of service instances to run.
|
|
455
|
+
"""
|
|
456
|
+
return pulumi.get(self, "max_instances")
|
|
457
|
+
|
|
458
|
+
@max_instances.setter
|
|
459
|
+
def max_instances(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
460
|
+
pulumi.set(self, "max_instances", value)
|
|
461
|
+
|
|
462
|
+
@property
|
|
463
|
+
@pulumi.getter(name="minInstances")
|
|
464
|
+
def min_instances(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
465
|
+
"""
|
|
466
|
+
Specifies the minimum number of service instances to run.
|
|
467
|
+
"""
|
|
468
|
+
return pulumi.get(self, "min_instances")
|
|
469
|
+
|
|
470
|
+
@min_instances.setter
|
|
471
|
+
def min_instances(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
472
|
+
pulumi.set(self, "min_instances", value)
|
|
473
|
+
|
|
474
|
+
@property
|
|
475
|
+
@pulumi.getter(name="minReadyInstances")
|
|
476
|
+
def min_ready_instances(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
477
|
+
"""
|
|
478
|
+
Indicates the minimum service instances that must be ready for Snowflake to consider the service is ready to process requests.
|
|
479
|
+
"""
|
|
480
|
+
return pulumi.get(self, "min_ready_instances")
|
|
481
|
+
|
|
482
|
+
@min_ready_instances.setter
|
|
483
|
+
def min_ready_instances(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
484
|
+
pulumi.set(self, "min_ready_instances", value)
|
|
485
|
+
|
|
486
|
+
@property
|
|
487
|
+
@pulumi.getter
|
|
488
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
489
|
+
"""
|
|
490
|
+
Specifies the identifier for the service; must be unique for the schema in which the service is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
491
|
+
"""
|
|
492
|
+
return pulumi.get(self, "name")
|
|
493
|
+
|
|
494
|
+
@name.setter
|
|
495
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
496
|
+
pulumi.set(self, "name", value)
|
|
497
|
+
|
|
498
|
+
@property
|
|
499
|
+
@pulumi.getter(name="queryWarehouse")
|
|
500
|
+
def query_warehouse(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
501
|
+
"""
|
|
502
|
+
Warehouse to use if a service container connects to Snowflake to execute a query but does not explicitly specify a warehouse to use. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
503
|
+
"""
|
|
504
|
+
return pulumi.get(self, "query_warehouse")
|
|
505
|
+
|
|
506
|
+
@query_warehouse.setter
|
|
507
|
+
def query_warehouse(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
508
|
+
pulumi.set(self, "query_warehouse", value)
|
|
509
|
+
|
|
510
|
+
@property
|
|
511
|
+
@pulumi.getter
|
|
512
|
+
def schema(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
513
|
+
"""
|
|
514
|
+
The schema in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
515
|
+
"""
|
|
516
|
+
return pulumi.get(self, "schema")
|
|
517
|
+
|
|
518
|
+
@schema.setter
|
|
519
|
+
def schema(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
520
|
+
pulumi.set(self, "schema", value)
|
|
521
|
+
|
|
522
|
+
@property
|
|
523
|
+
@pulumi.getter(name="serviceType")
|
|
524
|
+
def service_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
525
|
+
"""
|
|
526
|
+
Specifies a type for the service. This field is used for checking external changes and recreating the resources if needed.
|
|
527
|
+
"""
|
|
528
|
+
return pulumi.get(self, "service_type")
|
|
529
|
+
|
|
530
|
+
@service_type.setter
|
|
531
|
+
def service_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
532
|
+
pulumi.set(self, "service_type", value)
|
|
533
|
+
|
|
534
|
+
@property
|
|
535
|
+
@pulumi.getter(name="showOutputs")
|
|
536
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServiceShowOutputArgs']]]]:
|
|
537
|
+
"""
|
|
538
|
+
Outputs the result of `SHOW SERVICES` for the given service.
|
|
539
|
+
"""
|
|
540
|
+
return pulumi.get(self, "show_outputs")
|
|
541
|
+
|
|
542
|
+
@show_outputs.setter
|
|
543
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServiceShowOutputArgs']]]]):
|
|
544
|
+
pulumi.set(self, "show_outputs", value)
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
@pulumi.type_token("snowflake:index/service:Service")
|
|
548
|
+
class Service(pulumi.CustomResource):
|
|
549
|
+
@overload
|
|
550
|
+
def __init__(__self__,
|
|
551
|
+
resource_name: str,
|
|
552
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
553
|
+
auto_resume: Optional[pulumi.Input[builtins.str]] = None,
|
|
554
|
+
auto_suspend_secs: Optional[pulumi.Input[builtins.int]] = None,
|
|
555
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
556
|
+
compute_pool: Optional[pulumi.Input[builtins.str]] = None,
|
|
557
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
558
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
559
|
+
from_specification: Optional[pulumi.Input[Union['ServiceFromSpecificationArgs', 'ServiceFromSpecificationArgsDict']]] = None,
|
|
560
|
+
from_specification_template: Optional[pulumi.Input[Union['ServiceFromSpecificationTemplateArgs', 'ServiceFromSpecificationTemplateArgsDict']]] = None,
|
|
561
|
+
max_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
562
|
+
min_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
563
|
+
min_ready_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
564
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
565
|
+
query_warehouse: Optional[pulumi.Input[builtins.str]] = None,
|
|
566
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
567
|
+
__props__=None):
|
|
568
|
+
"""
|
|
569
|
+
## Import
|
|
570
|
+
|
|
571
|
+
```sh
|
|
572
|
+
$ pulumi import snowflake:index/service:Service example '"<database_name>"."<schema_name>"."<service_name>"'
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
:param str resource_name: The name of the resource.
|
|
576
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
577
|
+
:param pulumi.Input[builtins.str] auto_resume: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies whether to automatically resume a service. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
578
|
+
:param pulumi.Input[builtins.int] auto_suspend_secs: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`-1`)) Specifies the number of seconds of inactivity (service is idle) after which Snowflake automatically suspends the service.
|
|
579
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the service.
|
|
580
|
+
:param pulumi.Input[builtins.str] compute_pool: Specifies the name of the compute pool in your account on which to run the service. Identifiers with special or lower-case characters are not supported. This limitation in the provider follows the limitation in Snowflake (see [docs](https://docs.snowflake.com/en/sql-reference/sql/create-compute-pool)). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
581
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
582
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] external_access_integrations: Specifies the names of the external access integrations that allow your service to access external sites.
|
|
583
|
+
:param pulumi.Input[Union['ServiceFromSpecificationArgs', 'ServiceFromSpecificationArgsDict']] from_specification: Specifies the service specification to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
584
|
+
:param pulumi.Input[Union['ServiceFromSpecificationTemplateArgs', 'ServiceFromSpecificationTemplateArgsDict']] from_specification_template: Specifies the service specification template to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
585
|
+
:param pulumi.Input[builtins.int] max_instances: Specifies the maximum number of service instances to run.
|
|
586
|
+
:param pulumi.Input[builtins.int] min_instances: Specifies the minimum number of service instances to run.
|
|
587
|
+
:param pulumi.Input[builtins.int] min_ready_instances: Indicates the minimum service instances that must be ready for Snowflake to consider the service is ready to process requests.
|
|
588
|
+
:param pulumi.Input[builtins.str] name: Specifies the identifier for the service; must be unique for the schema in which the service is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
589
|
+
:param pulumi.Input[builtins.str] query_warehouse: Warehouse to use if a service container connects to Snowflake to execute a query but does not explicitly specify a warehouse to use. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
590
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
591
|
+
"""
|
|
592
|
+
...
|
|
593
|
+
@overload
|
|
594
|
+
def __init__(__self__,
|
|
595
|
+
resource_name: str,
|
|
596
|
+
args: ServiceArgs,
|
|
597
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
598
|
+
"""
|
|
599
|
+
## Import
|
|
600
|
+
|
|
601
|
+
```sh
|
|
602
|
+
$ pulumi import snowflake:index/service:Service example '"<database_name>"."<schema_name>"."<service_name>"'
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
:param str resource_name: The name of the resource.
|
|
606
|
+
:param ServiceArgs args: The arguments to use to populate this resource's properties.
|
|
607
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
608
|
+
"""
|
|
609
|
+
...
|
|
610
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
611
|
+
resource_args, opts = _utilities.get_resource_args_opts(ServiceArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
612
|
+
if resource_args is not None:
|
|
613
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
614
|
+
else:
|
|
615
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
616
|
+
|
|
617
|
+
def _internal_init(__self__,
|
|
618
|
+
resource_name: str,
|
|
619
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
620
|
+
auto_resume: Optional[pulumi.Input[builtins.str]] = None,
|
|
621
|
+
auto_suspend_secs: Optional[pulumi.Input[builtins.int]] = None,
|
|
622
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
623
|
+
compute_pool: Optional[pulumi.Input[builtins.str]] = None,
|
|
624
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
625
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
626
|
+
from_specification: Optional[pulumi.Input[Union['ServiceFromSpecificationArgs', 'ServiceFromSpecificationArgsDict']]] = None,
|
|
627
|
+
from_specification_template: Optional[pulumi.Input[Union['ServiceFromSpecificationTemplateArgs', 'ServiceFromSpecificationTemplateArgsDict']]] = None,
|
|
628
|
+
max_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
629
|
+
min_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
630
|
+
min_ready_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
631
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
632
|
+
query_warehouse: Optional[pulumi.Input[builtins.str]] = None,
|
|
633
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
634
|
+
__props__=None):
|
|
635
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
636
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
637
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
638
|
+
if opts.id is None:
|
|
639
|
+
if __props__ is not None:
|
|
640
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
641
|
+
__props__ = ServiceArgs.__new__(ServiceArgs)
|
|
642
|
+
|
|
643
|
+
__props__.__dict__["auto_resume"] = auto_resume
|
|
644
|
+
__props__.__dict__["auto_suspend_secs"] = auto_suspend_secs
|
|
645
|
+
__props__.__dict__["comment"] = comment
|
|
646
|
+
if compute_pool is None and not opts.urn:
|
|
647
|
+
raise TypeError("Missing required property 'compute_pool'")
|
|
648
|
+
__props__.__dict__["compute_pool"] = compute_pool
|
|
649
|
+
if database is None and not opts.urn:
|
|
650
|
+
raise TypeError("Missing required property 'database'")
|
|
651
|
+
__props__.__dict__["database"] = database
|
|
652
|
+
__props__.__dict__["external_access_integrations"] = external_access_integrations
|
|
653
|
+
__props__.__dict__["from_specification"] = from_specification
|
|
654
|
+
__props__.__dict__["from_specification_template"] = from_specification_template
|
|
655
|
+
__props__.__dict__["max_instances"] = max_instances
|
|
656
|
+
__props__.__dict__["min_instances"] = min_instances
|
|
657
|
+
__props__.__dict__["min_ready_instances"] = min_ready_instances
|
|
658
|
+
__props__.__dict__["name"] = name
|
|
659
|
+
__props__.__dict__["query_warehouse"] = query_warehouse
|
|
660
|
+
if schema is None and not opts.urn:
|
|
661
|
+
raise TypeError("Missing required property 'schema'")
|
|
662
|
+
__props__.__dict__["schema"] = schema
|
|
663
|
+
__props__.__dict__["describe_outputs"] = None
|
|
664
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
665
|
+
__props__.__dict__["service_type"] = None
|
|
666
|
+
__props__.__dict__["show_outputs"] = None
|
|
667
|
+
super(Service, __self__).__init__(
|
|
668
|
+
'snowflake:index/service:Service',
|
|
669
|
+
resource_name,
|
|
670
|
+
__props__,
|
|
671
|
+
opts)
|
|
672
|
+
|
|
673
|
+
@staticmethod
|
|
674
|
+
def get(resource_name: str,
|
|
675
|
+
id: pulumi.Input[str],
|
|
676
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
677
|
+
auto_resume: Optional[pulumi.Input[builtins.str]] = None,
|
|
678
|
+
auto_suspend_secs: Optional[pulumi.Input[builtins.int]] = None,
|
|
679
|
+
comment: Optional[pulumi.Input[builtins.str]] = None,
|
|
680
|
+
compute_pool: Optional[pulumi.Input[builtins.str]] = None,
|
|
681
|
+
database: Optional[pulumi.Input[builtins.str]] = None,
|
|
682
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServiceDescribeOutputArgs', 'ServiceDescribeOutputArgsDict']]]]] = None,
|
|
683
|
+
external_access_integrations: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
684
|
+
from_specification: Optional[pulumi.Input[Union['ServiceFromSpecificationArgs', 'ServiceFromSpecificationArgsDict']]] = None,
|
|
685
|
+
from_specification_template: Optional[pulumi.Input[Union['ServiceFromSpecificationTemplateArgs', 'ServiceFromSpecificationTemplateArgsDict']]] = None,
|
|
686
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
687
|
+
max_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
688
|
+
min_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
689
|
+
min_ready_instances: Optional[pulumi.Input[builtins.int]] = None,
|
|
690
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
691
|
+
query_warehouse: Optional[pulumi.Input[builtins.str]] = None,
|
|
692
|
+
schema: Optional[pulumi.Input[builtins.str]] = None,
|
|
693
|
+
service_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
694
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServiceShowOutputArgs', 'ServiceShowOutputArgsDict']]]]] = None) -> 'Service':
|
|
695
|
+
"""
|
|
696
|
+
Get an existing Service resource's state with the given name, id, and optional extra
|
|
697
|
+
properties used to qualify the lookup.
|
|
698
|
+
|
|
699
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
700
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
701
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
702
|
+
:param pulumi.Input[builtins.str] auto_resume: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies whether to automatically resume a service. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
703
|
+
:param pulumi.Input[builtins.int] auto_suspend_secs: (Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`-1`)) Specifies the number of seconds of inactivity (service is idle) after which Snowflake automatically suspends the service.
|
|
704
|
+
:param pulumi.Input[builtins.str] comment: Specifies a comment for the service.
|
|
705
|
+
:param pulumi.Input[builtins.str] compute_pool: Specifies the name of the compute pool in your account on which to run the service. Identifiers with special or lower-case characters are not supported. This limitation in the provider follows the limitation in Snowflake (see [docs](https://docs.snowflake.com/en/sql-reference/sql/create-compute-pool)). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
706
|
+
:param pulumi.Input[builtins.str] database: The database in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
707
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ServiceDescribeOutputArgs', 'ServiceDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE SERVICE` for the given service.
|
|
708
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] external_access_integrations: Specifies the names of the external access integrations that allow your service to access external sites.
|
|
709
|
+
:param pulumi.Input[Union['ServiceFromSpecificationArgs', 'ServiceFromSpecificationArgsDict']] from_specification: Specifies the service specification to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
710
|
+
:param pulumi.Input[Union['ServiceFromSpecificationTemplateArgs', 'ServiceFromSpecificationTemplateArgsDict']] from_specification_template: Specifies the service specification template to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
711
|
+
:param pulumi.Input[builtins.str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
712
|
+
:param pulumi.Input[builtins.int] max_instances: Specifies the maximum number of service instances to run.
|
|
713
|
+
:param pulumi.Input[builtins.int] min_instances: Specifies the minimum number of service instances to run.
|
|
714
|
+
:param pulumi.Input[builtins.int] min_ready_instances: Indicates the minimum service instances that must be ready for Snowflake to consider the service is ready to process requests.
|
|
715
|
+
:param pulumi.Input[builtins.str] name: Specifies the identifier for the service; must be unique for the schema in which the service is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
716
|
+
:param pulumi.Input[builtins.str] query_warehouse: Warehouse to use if a service container connects to Snowflake to execute a query but does not explicitly specify a warehouse to use. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
717
|
+
:param pulumi.Input[builtins.str] schema: The schema in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
718
|
+
:param pulumi.Input[builtins.str] service_type: Specifies a type for the service. This field is used for checking external changes and recreating the resources if needed.
|
|
719
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ServiceShowOutputArgs', 'ServiceShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW SERVICES` for the given service.
|
|
720
|
+
"""
|
|
721
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
722
|
+
|
|
723
|
+
__props__ = _ServiceState.__new__(_ServiceState)
|
|
724
|
+
|
|
725
|
+
__props__.__dict__["auto_resume"] = auto_resume
|
|
726
|
+
__props__.__dict__["auto_suspend_secs"] = auto_suspend_secs
|
|
727
|
+
__props__.__dict__["comment"] = comment
|
|
728
|
+
__props__.__dict__["compute_pool"] = compute_pool
|
|
729
|
+
__props__.__dict__["database"] = database
|
|
730
|
+
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
731
|
+
__props__.__dict__["external_access_integrations"] = external_access_integrations
|
|
732
|
+
__props__.__dict__["from_specification"] = from_specification
|
|
733
|
+
__props__.__dict__["from_specification_template"] = from_specification_template
|
|
734
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
735
|
+
__props__.__dict__["max_instances"] = max_instances
|
|
736
|
+
__props__.__dict__["min_instances"] = min_instances
|
|
737
|
+
__props__.__dict__["min_ready_instances"] = min_ready_instances
|
|
738
|
+
__props__.__dict__["name"] = name
|
|
739
|
+
__props__.__dict__["query_warehouse"] = query_warehouse
|
|
740
|
+
__props__.__dict__["schema"] = schema
|
|
741
|
+
__props__.__dict__["service_type"] = service_type
|
|
742
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
743
|
+
return Service(resource_name, opts=opts, __props__=__props__)
|
|
744
|
+
|
|
745
|
+
@property
|
|
746
|
+
@pulumi.getter(name="autoResume")
|
|
747
|
+
def auto_resume(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
748
|
+
"""
|
|
749
|
+
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`default`)) Specifies whether to automatically resume a service. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
750
|
+
"""
|
|
751
|
+
return pulumi.get(self, "auto_resume")
|
|
752
|
+
|
|
753
|
+
@property
|
|
754
|
+
@pulumi.getter(name="autoSuspendSecs")
|
|
755
|
+
def auto_suspend_secs(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
756
|
+
"""
|
|
757
|
+
(Default: fallback to Snowflake default - uses special value that cannot be set in the configuration manually (`-1`)) Specifies the number of seconds of inactivity (service is idle) after which Snowflake automatically suspends the service.
|
|
758
|
+
"""
|
|
759
|
+
return pulumi.get(self, "auto_suspend_secs")
|
|
760
|
+
|
|
761
|
+
@property
|
|
762
|
+
@pulumi.getter
|
|
763
|
+
def comment(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
764
|
+
"""
|
|
765
|
+
Specifies a comment for the service.
|
|
766
|
+
"""
|
|
767
|
+
return pulumi.get(self, "comment")
|
|
768
|
+
|
|
769
|
+
@property
|
|
770
|
+
@pulumi.getter(name="computePool")
|
|
771
|
+
def compute_pool(self) -> pulumi.Output[builtins.str]:
|
|
772
|
+
"""
|
|
773
|
+
Specifies the name of the compute pool in your account on which to run the service. Identifiers with special or lower-case characters are not supported. This limitation in the provider follows the limitation in Snowflake (see [docs](https://docs.snowflake.com/en/sql-reference/sql/create-compute-pool)). Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
774
|
+
"""
|
|
775
|
+
return pulumi.get(self, "compute_pool")
|
|
776
|
+
|
|
777
|
+
@property
|
|
778
|
+
@pulumi.getter
|
|
779
|
+
def database(self) -> pulumi.Output[builtins.str]:
|
|
780
|
+
"""
|
|
781
|
+
The database in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
782
|
+
"""
|
|
783
|
+
return pulumi.get(self, "database")
|
|
784
|
+
|
|
785
|
+
@property
|
|
786
|
+
@pulumi.getter(name="describeOutputs")
|
|
787
|
+
def describe_outputs(self) -> pulumi.Output[Sequence['outputs.ServiceDescribeOutput']]:
|
|
788
|
+
"""
|
|
789
|
+
Outputs the result of `DESCRIBE SERVICE` for the given service.
|
|
790
|
+
"""
|
|
791
|
+
return pulumi.get(self, "describe_outputs")
|
|
792
|
+
|
|
793
|
+
@property
|
|
794
|
+
@pulumi.getter(name="externalAccessIntegrations")
|
|
795
|
+
def external_access_integrations(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
|
796
|
+
"""
|
|
797
|
+
Specifies the names of the external access integrations that allow your service to access external sites.
|
|
798
|
+
"""
|
|
799
|
+
return pulumi.get(self, "external_access_integrations")
|
|
800
|
+
|
|
801
|
+
@property
|
|
802
|
+
@pulumi.getter(name="fromSpecification")
|
|
803
|
+
def from_specification(self) -> pulumi.Output[Optional['outputs.ServiceFromSpecification']]:
|
|
804
|
+
"""
|
|
805
|
+
Specifies the service specification to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
806
|
+
"""
|
|
807
|
+
return pulumi.get(self, "from_specification")
|
|
808
|
+
|
|
809
|
+
@property
|
|
810
|
+
@pulumi.getter(name="fromSpecificationTemplate")
|
|
811
|
+
def from_specification_template(self) -> pulumi.Output[Optional['outputs.ServiceFromSpecificationTemplate']]:
|
|
812
|
+
"""
|
|
813
|
+
Specifies the service specification template to use for the service. Note that external changes on this field and nested fields are not detected. Use correctly formatted YAML files. Watch out for the space/tabs indentation. See [service specification](https://docs.snowflake.com/en/developer-guide/snowpark-container-services/specification-reference#general-guidelines) for more information.
|
|
814
|
+
"""
|
|
815
|
+
return pulumi.get(self, "from_specification_template")
|
|
816
|
+
|
|
817
|
+
@property
|
|
818
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
819
|
+
def fully_qualified_name(self) -> pulumi.Output[builtins.str]:
|
|
820
|
+
"""
|
|
821
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
822
|
+
"""
|
|
823
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
824
|
+
|
|
825
|
+
@property
|
|
826
|
+
@pulumi.getter(name="maxInstances")
|
|
827
|
+
def max_instances(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
828
|
+
"""
|
|
829
|
+
Specifies the maximum number of service instances to run.
|
|
830
|
+
"""
|
|
831
|
+
return pulumi.get(self, "max_instances")
|
|
832
|
+
|
|
833
|
+
@property
|
|
834
|
+
@pulumi.getter(name="minInstances")
|
|
835
|
+
def min_instances(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
836
|
+
"""
|
|
837
|
+
Specifies the minimum number of service instances to run.
|
|
838
|
+
"""
|
|
839
|
+
return pulumi.get(self, "min_instances")
|
|
840
|
+
|
|
841
|
+
@property
|
|
842
|
+
@pulumi.getter(name="minReadyInstances")
|
|
843
|
+
def min_ready_instances(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
844
|
+
"""
|
|
845
|
+
Indicates the minimum service instances that must be ready for Snowflake to consider the service is ready to process requests.
|
|
846
|
+
"""
|
|
847
|
+
return pulumi.get(self, "min_ready_instances")
|
|
848
|
+
|
|
849
|
+
@property
|
|
850
|
+
@pulumi.getter
|
|
851
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
|
852
|
+
"""
|
|
853
|
+
Specifies the identifier for the service; must be unique for the schema in which the service is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
854
|
+
"""
|
|
855
|
+
return pulumi.get(self, "name")
|
|
856
|
+
|
|
857
|
+
@property
|
|
858
|
+
@pulumi.getter(name="queryWarehouse")
|
|
859
|
+
def query_warehouse(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
860
|
+
"""
|
|
861
|
+
Warehouse to use if a service container connects to Snowflake to execute a query but does not explicitly specify a warehouse to use. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
862
|
+
"""
|
|
863
|
+
return pulumi.get(self, "query_warehouse")
|
|
864
|
+
|
|
865
|
+
@property
|
|
866
|
+
@pulumi.getter
|
|
867
|
+
def schema(self) -> pulumi.Output[builtins.str]:
|
|
868
|
+
"""
|
|
869
|
+
The schema in which to create the service. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
870
|
+
"""
|
|
871
|
+
return pulumi.get(self, "schema")
|
|
872
|
+
|
|
873
|
+
@property
|
|
874
|
+
@pulumi.getter(name="serviceType")
|
|
875
|
+
def service_type(self) -> pulumi.Output[builtins.str]:
|
|
876
|
+
"""
|
|
877
|
+
Specifies a type for the service. This field is used for checking external changes and recreating the resources if needed.
|
|
878
|
+
"""
|
|
879
|
+
return pulumi.get(self, "service_type")
|
|
880
|
+
|
|
881
|
+
@property
|
|
882
|
+
@pulumi.getter(name="showOutputs")
|
|
883
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.ServiceShowOutput']]:
|
|
884
|
+
"""
|
|
885
|
+
Outputs the result of `SHOW SERVICES` for the given service.
|
|
886
|
+
"""
|
|
887
|
+
return pulumi.get(self, "show_outputs")
|
|
888
|
+
|