pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736849992__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 +224 -172
- pulumi_snowflake/_inputs.py +52857 -1665
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -218
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -48
- pulumi_snowflake/account_password_policy_attachment.py +7 -32
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -47
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
- pulumi_snowflake/api_integration.py +33 -52
- pulumi_snowflake/authentication_policy.py +622 -0
- pulumi_snowflake/config/__init__.pyi +76 -99
- pulumi_snowflake/config/outputs.py +5 -0
- pulumi_snowflake/config/vars.py +93 -124
- pulumi_snowflake/cortex_search_service.py +596 -0
- pulumi_snowflake/database.py +819 -213
- pulumi_snowflake/database_role.py +81 -44
- pulumi_snowflake/dynamic_table.py +42 -49
- pulumi_snowflake/email_notification_integration.py +33 -28
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
- pulumi_snowflake/external_function.py +54 -75
- pulumi_snowflake/external_oauth_integration.py +593 -542
- pulumi_snowflake/external_table.py +67 -90
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +57 -98
- pulumi_snowflake/file_format.py +33 -28
- pulumi_snowflake/function_java.py +1211 -0
- pulumi_snowflake/function_javascript.py +882 -0
- pulumi_snowflake/function_python.py +1212 -0
- pulumi_snowflake/function_scala.py +1212 -0
- pulumi_snowflake/function_sql.py +835 -0
- pulumi_snowflake/get_account_roles.py +129 -0
- pulumi_snowflake/get_accounts.py +53 -22
- pulumi_snowflake/get_alerts.py +22 -9
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -13
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -9
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -47
- pulumi_snowflake/get_databases.py +91 -73
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -9
- pulumi_snowflake/get_external_tables.py +28 -9
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -9
- pulumi_snowflake/get_functions.py +28 -9
- pulumi_snowflake/get_grants.py +207 -84
- pulumi_snowflake/get_masking_policies.py +91 -51
- pulumi_snowflake/get_materialized_views.py +28 -9
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -15
- pulumi_snowflake/get_pipes.py +28 -9
- pulumi_snowflake/get_procedures.py +28 -9
- pulumi_snowflake/get_resource_monitors.py +37 -24
- pulumi_snowflake/get_row_access_policies.py +91 -51
- pulumi_snowflake/get_schemas.py +145 -41
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -9
- pulumi_snowflake/get_shares.py +18 -9
- pulumi_snowflake/get_stages.py +28 -9
- pulumi_snowflake/get_storage_integrations.py +16 -9
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -54
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +120 -5
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -9
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -54
- pulumi_snowflake/get_users.py +116 -44
- pulumi_snowflake/get_views.py +114 -54
- pulumi_snowflake/get_warehouses.py +79 -26
- pulumi_snowflake/grant_account_role.py +28 -75
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -94
- pulumi_snowflake/grant_ownership.py +382 -0
- pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
- pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +40 -11
- pulumi_snowflake/masking_policy.py +213 -310
- pulumi_snowflake/materialized_view.py +62 -71
- pulumi_snowflake/network_policy.py +217 -61
- pulumi_snowflake/network_policy_attachment.py +5 -34
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +49 -84
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
- pulumi_snowflake/object_parameter.py +10 -101
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -4
- pulumi_snowflake/primary_connection.py +330 -0
- pulumi_snowflake/procedure_java.py +1273 -0
- pulumi_snowflake/procedure_javascript.py +895 -0
- pulumi_snowflake/procedure_python.py +1226 -0
- pulumi_snowflake/procedure_scala.py +1273 -0
- pulumi_snowflake/procedure_sql.py +895 -0
- pulumi_snowflake/provider.py +378 -613
- pulumi_snowflake/pulumi-plugin.json +2 -1
- pulumi_snowflake/resource_monitor.py +118 -327
- pulumi_snowflake/row_access_policy.py +200 -149
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
- pulumi_snowflake/schema.py +949 -178
- pulumi_snowflake/scim_integration.py +286 -109
- pulumi_snowflake/secondary_connection.py +339 -0
- pulumi_snowflake/secondary_database.py +1080 -0
- pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
- pulumi_snowflake/secret_with_basic_authentication.py +500 -0
- pulumi_snowflake/secret_with_client_credentials.py +511 -0
- pulumi_snowflake/secret_with_generic_string.py +452 -0
- pulumi_snowflake/sequence.py +9 -34
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +33 -28
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -84
- pulumi_snowflake/storage_integration.py +46 -4
- pulumi_snowflake/stream_on_directory_table.py +517 -0
- pulumi_snowflake/stream_on_external_table.py +632 -0
- pulumi_snowflake/stream_on_table.py +666 -0
- pulumi_snowflake/stream_on_view.py +666 -0
- pulumi_snowflake/streamlit.py +671 -0
- pulumi_snowflake/table.py +86 -97
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -172
- pulumi_snowflake/tag.py +142 -74
- pulumi_snowflake/tag_association.py +40 -215
- pulumi_snowflake/task.py +3048 -418
- pulumi_snowflake/user.py +3351 -384
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +5 -4
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -215
- pulumi_snowflake/warehouse.py +184 -168
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/METADATA +7 -6
- pulumi_snowflake-1.2.0a1736849992.dist-info/RECORD +148 -0
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -343
- pulumi_snowflake/database_grant.py +0 -495
- pulumi_snowflake/external_table_grant.py +0 -690
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -635
- pulumi_snowflake/function.py +0 -872
- pulumi_snowflake/function_grant.py +0 -745
- pulumi_snowflake/get_role.py +0 -121
- pulumi_snowflake/get_roles.py +0 -120
- pulumi_snowflake/grant_privileges_to_role.py +0 -825
- pulumi_snowflake/integration_grant.py +0 -440
- pulumi_snowflake/masking_policy_grant.py +0 -542
- pulumi_snowflake/materialized_view_grant.py +0 -689
- pulumi_snowflake/pipe_grant.py +0 -587
- pulumi_snowflake/procedure.py +0 -887
- pulumi_snowflake/procedure_grant.py +0 -745
- pulumi_snowflake/resource_monitor_grant.py +0 -387
- pulumi_snowflake/role.py +0 -273
- pulumi_snowflake/role_grants.py +0 -352
- pulumi_snowflake/role_ownership_grant.py +0 -338
- pulumi_snowflake/row_access_policy_grant.py +0 -540
- pulumi_snowflake/schema_grant.py +0 -647
- pulumi_snowflake/sequence_grant.py +0 -635
- pulumi_snowflake/session_parameter.py +0 -332
- pulumi_snowflake/stage_grant.py +0 -635
- pulumi_snowflake/stream.py +0 -614
- pulumi_snowflake/stream_grant.py +0 -635
- pulumi_snowflake/table_grant.py +0 -677
- pulumi_snowflake/tag_grant.py +0 -532
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -635
- pulumi_snowflake/user_grant.py +0 -394
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -705
- pulumi_snowflake/warehouse_grant.py +0 -440
- pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736849992.dist-info}/top_level.txt +0 -0
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -154,7 +159,57 @@ class AwaitableGetSystemGetPrivateLinkConfigResult(GetSystemGetPrivateLinkConfig
|
|
|
154
159
|
|
|
155
160
|
def get_system_get_private_link_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSystemGetPrivateLinkConfigResult:
|
|
156
161
|
"""
|
|
162
|
+
!> **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.
|
|
163
|
+
|
|
157
164
|
## Example Usage
|
|
165
|
+
|
|
166
|
+
```python
|
|
167
|
+
import pulumi
|
|
168
|
+
import pulumi_aws as aws
|
|
169
|
+
import pulumi_snowflake as snowflake
|
|
170
|
+
|
|
171
|
+
snowflake_private_link = snowflake.get_system_get_private_link_config()
|
|
172
|
+
snowflake_private_link_security_group = aws.index.SecurityGroup("snowflake_private_link",
|
|
173
|
+
vpc_id=vpc_id,
|
|
174
|
+
ingress=[
|
|
175
|
+
{
|
|
176
|
+
fromPort: 80,
|
|
177
|
+
toPort: 80,
|
|
178
|
+
cidrBlocks: vpc_cidr,
|
|
179
|
+
protocol: tcp,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
fromPort: 443,
|
|
183
|
+
toPort: 443,
|
|
184
|
+
cidrBlocks: vpc_cidr,
|
|
185
|
+
protocol: tcp,
|
|
186
|
+
},
|
|
187
|
+
])
|
|
188
|
+
snowflake_private_link_vpc_endpoint = aws.index.VpcEndpoint("snowflake_private_link",
|
|
189
|
+
vpc_id=vpc_id,
|
|
190
|
+
service_name=snowflake_private_link.aws_vpce_id,
|
|
191
|
+
vpc_endpoint_type=Interface,
|
|
192
|
+
security_group_ids=[snowflake_private_link_security_group.id],
|
|
193
|
+
subnet_ids=subnet_ids,
|
|
194
|
+
private_dns_enabled=False)
|
|
195
|
+
snowflake_private_link_route53_zone = aws.index.Route53Zone("snowflake_private_link",
|
|
196
|
+
name=privatelink.snowflakecomputing.com,
|
|
197
|
+
vpc=[{
|
|
198
|
+
vpcId: vpc_id,
|
|
199
|
+
}])
|
|
200
|
+
snowflake_private_link_url = aws.index.Route53Record("snowflake_private_link_url",
|
|
201
|
+
zone_id=snowflake_private_link_route53_zone.zone_id,
|
|
202
|
+
name=snowflake_private_link.account_url,
|
|
203
|
+
type=CNAME,
|
|
204
|
+
ttl=300,
|
|
205
|
+
records=[snowflake_private_link_vpc_endpoint.dns_entry[0].dns_name])
|
|
206
|
+
snowflake_private_link_ocsp_url = aws.index.Route53Record("snowflake_private_link_ocsp_url",
|
|
207
|
+
zone_id=snowflake_private_link_route53_zone.zone_id,
|
|
208
|
+
name=snowflake_private_link.ocsp_url,
|
|
209
|
+
type=CNAME,
|
|
210
|
+
ttl=300,
|
|
211
|
+
records=[snowflake_private_link_vpc_endpoint.dns_entry[0].dns_name])
|
|
212
|
+
```
|
|
158
213
|
"""
|
|
159
214
|
__args__ = dict()
|
|
160
215
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
@@ -171,11 +226,71 @@ def get_system_get_private_link_config(opts: Optional[pulumi.InvokeOptions] = No
|
|
|
171
226
|
regionless_account_url=pulumi.get(__ret__, 'regionless_account_url'),
|
|
172
227
|
regionless_snowsight_url=pulumi.get(__ret__, 'regionless_snowsight_url'),
|
|
173
228
|
snowsight_url=pulumi.get(__ret__, 'snowsight_url'))
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
@_utilities.lift_output_func(get_system_get_private_link_config)
|
|
177
|
-
def get_system_get_private_link_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSystemGetPrivateLinkConfigResult]:
|
|
229
|
+
def get_system_get_private_link_config_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSystemGetPrivateLinkConfigResult]:
|
|
178
230
|
"""
|
|
231
|
+
!> **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.
|
|
232
|
+
|
|
179
233
|
## Example Usage
|
|
234
|
+
|
|
235
|
+
```python
|
|
236
|
+
import pulumi
|
|
237
|
+
import pulumi_aws as aws
|
|
238
|
+
import pulumi_snowflake as snowflake
|
|
239
|
+
|
|
240
|
+
snowflake_private_link = snowflake.get_system_get_private_link_config()
|
|
241
|
+
snowflake_private_link_security_group = aws.index.SecurityGroup("snowflake_private_link",
|
|
242
|
+
vpc_id=vpc_id,
|
|
243
|
+
ingress=[
|
|
244
|
+
{
|
|
245
|
+
fromPort: 80,
|
|
246
|
+
toPort: 80,
|
|
247
|
+
cidrBlocks: vpc_cidr,
|
|
248
|
+
protocol: tcp,
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
fromPort: 443,
|
|
252
|
+
toPort: 443,
|
|
253
|
+
cidrBlocks: vpc_cidr,
|
|
254
|
+
protocol: tcp,
|
|
255
|
+
},
|
|
256
|
+
])
|
|
257
|
+
snowflake_private_link_vpc_endpoint = aws.index.VpcEndpoint("snowflake_private_link",
|
|
258
|
+
vpc_id=vpc_id,
|
|
259
|
+
service_name=snowflake_private_link.aws_vpce_id,
|
|
260
|
+
vpc_endpoint_type=Interface,
|
|
261
|
+
security_group_ids=[snowflake_private_link_security_group.id],
|
|
262
|
+
subnet_ids=subnet_ids,
|
|
263
|
+
private_dns_enabled=False)
|
|
264
|
+
snowflake_private_link_route53_zone = aws.index.Route53Zone("snowflake_private_link",
|
|
265
|
+
name=privatelink.snowflakecomputing.com,
|
|
266
|
+
vpc=[{
|
|
267
|
+
vpcId: vpc_id,
|
|
268
|
+
}])
|
|
269
|
+
snowflake_private_link_url = aws.index.Route53Record("snowflake_private_link_url",
|
|
270
|
+
zone_id=snowflake_private_link_route53_zone.zone_id,
|
|
271
|
+
name=snowflake_private_link.account_url,
|
|
272
|
+
type=CNAME,
|
|
273
|
+
ttl=300,
|
|
274
|
+
records=[snowflake_private_link_vpc_endpoint.dns_entry[0].dns_name])
|
|
275
|
+
snowflake_private_link_ocsp_url = aws.index.Route53Record("snowflake_private_link_ocsp_url",
|
|
276
|
+
zone_id=snowflake_private_link_route53_zone.zone_id,
|
|
277
|
+
name=snowflake_private_link.ocsp_url,
|
|
278
|
+
type=CNAME,
|
|
279
|
+
ttl=300,
|
|
280
|
+
records=[snowflake_private_link_vpc_endpoint.dns_entry[0].dns_name])
|
|
281
|
+
```
|
|
180
282
|
"""
|
|
181
|
-
|
|
283
|
+
__args__ = dict()
|
|
284
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
285
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getSystemGetPrivateLinkConfig:getSystemGetPrivateLinkConfig', __args__, opts=opts, typ=GetSystemGetPrivateLinkConfigResult)
|
|
286
|
+
return __ret__.apply(lambda __response__: GetSystemGetPrivateLinkConfigResult(
|
|
287
|
+
account_name=pulumi.get(__response__, 'account_name'),
|
|
288
|
+
account_url=pulumi.get(__response__, 'account_url'),
|
|
289
|
+
aws_vpce_id=pulumi.get(__response__, 'aws_vpce_id'),
|
|
290
|
+
azure_pls_id=pulumi.get(__response__, 'azure_pls_id'),
|
|
291
|
+
id=pulumi.get(__response__, 'id'),
|
|
292
|
+
internal_stage=pulumi.get(__response__, 'internal_stage'),
|
|
293
|
+
ocsp_url=pulumi.get(__response__, 'ocsp_url'),
|
|
294
|
+
regionless_account_url=pulumi.get(__response__, 'regionless_account_url'),
|
|
295
|
+
regionless_snowsight_url=pulumi.get(__response__, 'regionless_snowsight_url'),
|
|
296
|
+
snowsight_url=pulumi.get(__response__, 'snowsight_url')))
|
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = [
|
|
@@ -70,7 +75,7 @@ class AwaitableGetSystemGetSnowflakePlatformInfoResult(GetSystemGetSnowflakePlat
|
|
|
70
75
|
|
|
71
76
|
def get_system_get_snowflake_platform_info(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSystemGetSnowflakePlatformInfoResult:
|
|
72
77
|
"""
|
|
73
|
-
|
|
78
|
+
!> **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.
|
|
74
79
|
"""
|
|
75
80
|
__args__ = dict()
|
|
76
81
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
@@ -80,11 +85,14 @@ def get_system_get_snowflake_platform_info(opts: Optional[pulumi.InvokeOptions]
|
|
|
80
85
|
aws_vpc_ids=pulumi.get(__ret__, 'aws_vpc_ids'),
|
|
81
86
|
azure_vnet_subnet_ids=pulumi.get(__ret__, 'azure_vnet_subnet_ids'),
|
|
82
87
|
id=pulumi.get(__ret__, 'id'))
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
@_utilities.lift_output_func(get_system_get_snowflake_platform_info)
|
|
86
|
-
def get_system_get_snowflake_platform_info_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSystemGetSnowflakePlatformInfoResult]:
|
|
88
|
+
def get_system_get_snowflake_platform_info_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSystemGetSnowflakePlatformInfoResult]:
|
|
87
89
|
"""
|
|
88
|
-
|
|
90
|
+
!> **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.
|
|
89
91
|
"""
|
|
90
|
-
|
|
92
|
+
__args__ = dict()
|
|
93
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
94
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getSystemGetSnowflakePlatformInfo:getSystemGetSnowflakePlatformInfo', __args__, opts=opts, typ=GetSystemGetSnowflakePlatformInfoResult)
|
|
95
|
+
return __ret__.apply(lambda __response__: GetSystemGetSnowflakePlatformInfoResult(
|
|
96
|
+
aws_vpc_ids=pulumi.get(__response__, 'aws_vpc_ids'),
|
|
97
|
+
azure_vnet_subnet_ids=pulumi.get(__response__, 'azure_vnet_subnet_ids'),
|
|
98
|
+
id=pulumi.get(__response__, 'id')))
|
pulumi_snowflake/get_tables.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
@@ -85,9 +90,10 @@ def get_tables(database: Optional[str] = None,
|
|
|
85
90
|
schema: Optional[str] = None,
|
|
86
91
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTablesResult:
|
|
87
92
|
"""
|
|
93
|
+
!> **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.
|
|
94
|
+
|
|
88
95
|
## Example Usage
|
|
89
96
|
|
|
90
|
-
<!--Start PulumiCodeChooser -->
|
|
91
97
|
```python
|
|
92
98
|
import pulumi
|
|
93
99
|
import pulumi_snowflake as snowflake
|
|
@@ -95,7 +101,10 @@ def get_tables(database: Optional[str] = None,
|
|
|
95
101
|
current = snowflake.get_tables(database="MYDB",
|
|
96
102
|
schema="MYSCHEMA")
|
|
97
103
|
```
|
|
98
|
-
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param str database: The database from which to return the schemas from.
|
|
107
|
+
:param str schema: The schema from which to return the tables from.
|
|
99
108
|
"""
|
|
100
109
|
__args__ = dict()
|
|
101
110
|
__args__['database'] = database
|
|
@@ -108,16 +117,14 @@ def get_tables(database: Optional[str] = None,
|
|
|
108
117
|
id=pulumi.get(__ret__, 'id'),
|
|
109
118
|
schema=pulumi.get(__ret__, 'schema'),
|
|
110
119
|
tables=pulumi.get(__ret__, 'tables'))
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
@_utilities.lift_output_func(get_tables)
|
|
114
120
|
def get_tables_output(database: Optional[pulumi.Input[str]] = None,
|
|
115
121
|
schema: Optional[pulumi.Input[str]] = None,
|
|
116
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTablesResult]:
|
|
122
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTablesResult]:
|
|
117
123
|
"""
|
|
124
|
+
!> **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.
|
|
125
|
+
|
|
118
126
|
## Example Usage
|
|
119
127
|
|
|
120
|
-
<!--Start PulumiCodeChooser -->
|
|
121
128
|
```python
|
|
122
129
|
import pulumi
|
|
123
130
|
import pulumi_snowflake as snowflake
|
|
@@ -125,6 +132,18 @@ def get_tables_output(database: Optional[pulumi.Input[str]] = None,
|
|
|
125
132
|
current = snowflake.get_tables(database="MYDB",
|
|
126
133
|
schema="MYSCHEMA")
|
|
127
134
|
```
|
|
128
|
-
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
:param str database: The database from which to return the schemas from.
|
|
138
|
+
:param str schema: The schema from which to return the tables from.
|
|
129
139
|
"""
|
|
130
|
-
|
|
140
|
+
__args__ = dict()
|
|
141
|
+
__args__['database'] = database
|
|
142
|
+
__args__['schema'] = schema
|
|
143
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
144
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getTables:getTables', __args__, opts=opts, typ=GetTablesResult)
|
|
145
|
+
return __ret__.apply(lambda __response__: GetTablesResult(
|
|
146
|
+
database=pulumi.get(__response__, 'database'),
|
|
147
|
+
id=pulumi.get(__response__, 'id'),
|
|
148
|
+
schema=pulumi.get(__response__, 'schema'),
|
|
149
|
+
tables=pulumi.get(__response__, 'tables')))
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from . import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
'GetTagsResult',
|
|
21
|
+
'AwaitableGetTagsResult',
|
|
22
|
+
'get_tags',
|
|
23
|
+
'get_tags_output',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class GetTagsResult:
|
|
28
|
+
"""
|
|
29
|
+
A collection of values returned by getTags.
|
|
30
|
+
"""
|
|
31
|
+
def __init__(__self__, id=None, in_=None, like=None, tags=None):
|
|
32
|
+
if id and not isinstance(id, str):
|
|
33
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
34
|
+
pulumi.set(__self__, "id", id)
|
|
35
|
+
if in_ and not isinstance(in_, dict):
|
|
36
|
+
raise TypeError("Expected argument 'in_' to be a dict")
|
|
37
|
+
pulumi.set(__self__, "in_", in_)
|
|
38
|
+
if like and not isinstance(like, str):
|
|
39
|
+
raise TypeError("Expected argument 'like' to be a str")
|
|
40
|
+
pulumi.set(__self__, "like", like)
|
|
41
|
+
if tags and not isinstance(tags, list):
|
|
42
|
+
raise TypeError("Expected argument 'tags' to be a list")
|
|
43
|
+
pulumi.set(__self__, "tags", tags)
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
@pulumi.getter
|
|
47
|
+
def id(self) -> str:
|
|
48
|
+
"""
|
|
49
|
+
The provider-assigned unique ID for this managed resource.
|
|
50
|
+
"""
|
|
51
|
+
return pulumi.get(self, "id")
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter(name="in")
|
|
55
|
+
def in_(self) -> Optional['outputs.GetTagsInResult']:
|
|
56
|
+
"""
|
|
57
|
+
IN clause to filter the list of objects
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "in_")
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def like(self) -> Optional[str]:
|
|
64
|
+
"""
|
|
65
|
+
Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "like")
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
@pulumi.getter
|
|
71
|
+
def tags(self) -> Sequence['outputs.GetTagsTagResult']:
|
|
72
|
+
"""
|
|
73
|
+
Holds the aggregated output of all tags details queries.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "tags")
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
class AwaitableGetTagsResult(GetTagsResult):
|
|
79
|
+
# pylint: disable=using-constant-test
|
|
80
|
+
def __await__(self):
|
|
81
|
+
if False:
|
|
82
|
+
yield self
|
|
83
|
+
return GetTagsResult(
|
|
84
|
+
id=self.id,
|
|
85
|
+
in_=self.in_,
|
|
86
|
+
like=self.like,
|
|
87
|
+
tags=self.tags)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def get_tags(in_: Optional[Union['GetTagsInArgs', 'GetTagsInArgsDict']] = None,
|
|
91
|
+
like: Optional[str] = None,
|
|
92
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTagsResult:
|
|
93
|
+
"""
|
|
94
|
+
Data source used to get details of filtered tags. Filtering is aligned with the current possibilities for [SHOW TAGS](https://docs.snowflake.com/en/sql-reference/sql/show-tags) query. The results of SHOW are encapsulated in one output collection `tags`.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
:param Union['GetTagsInArgs', 'GetTagsInArgsDict'] in_: IN clause to filter the list of objects
|
|
98
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
99
|
+
"""
|
|
100
|
+
__args__ = dict()
|
|
101
|
+
__args__['in'] = in_
|
|
102
|
+
__args__['like'] = like
|
|
103
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
104
|
+
__ret__ = pulumi.runtime.invoke('snowflake:index/getTags:getTags', __args__, opts=opts, typ=GetTagsResult).value
|
|
105
|
+
|
|
106
|
+
return AwaitableGetTagsResult(
|
|
107
|
+
id=pulumi.get(__ret__, 'id'),
|
|
108
|
+
in_=pulumi.get(__ret__, 'in_'),
|
|
109
|
+
like=pulumi.get(__ret__, 'like'),
|
|
110
|
+
tags=pulumi.get(__ret__, 'tags'))
|
|
111
|
+
def get_tags_output(in_: Optional[pulumi.Input[Optional[Union['GetTagsInArgs', 'GetTagsInArgsDict']]]] = None,
|
|
112
|
+
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
113
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTagsResult]:
|
|
114
|
+
"""
|
|
115
|
+
Data source used to get details of filtered tags. Filtering is aligned with the current possibilities for [SHOW TAGS](https://docs.snowflake.com/en/sql-reference/sql/show-tags) query. The results of SHOW are encapsulated in one output collection `tags`.
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
:param Union['GetTagsInArgs', 'GetTagsInArgsDict'] in_: IN clause to filter the list of objects
|
|
119
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
120
|
+
"""
|
|
121
|
+
__args__ = dict()
|
|
122
|
+
__args__['in'] = in_
|
|
123
|
+
__args__['like'] = like
|
|
124
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
125
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getTags:getTags', __args__, opts=opts, typ=GetTagsResult)
|
|
126
|
+
return __ret__.apply(lambda __response__: GetTagsResult(
|
|
127
|
+
id=pulumi.get(__response__, 'id'),
|
|
128
|
+
in_=pulumi.get(__response__, 'in_'),
|
|
129
|
+
like=pulumi.get(__response__, 'like'),
|
|
130
|
+
tags=pulumi.get(__response__, 'tags')))
|
pulumi_snowflake/get_tasks.py
CHANGED
|
@@ -4,11 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
12
18
|
|
|
13
19
|
__all__ = [
|
|
14
20
|
'GetTasksResult',
|
|
@@ -22,52 +28,96 @@ class GetTasksResult:
|
|
|
22
28
|
"""
|
|
23
29
|
A collection of values returned by getTasks.
|
|
24
30
|
"""
|
|
25
|
-
def __init__(__self__,
|
|
26
|
-
if database and not isinstance(database, str):
|
|
27
|
-
raise TypeError("Expected argument 'database' to be a str")
|
|
28
|
-
pulumi.set(__self__, "database", database)
|
|
31
|
+
def __init__(__self__, id=None, in_=None, like=None, limit=None, root_only=None, starts_with=None, tasks=None, with_parameters=None):
|
|
29
32
|
if id and not isinstance(id, str):
|
|
30
33
|
raise TypeError("Expected argument 'id' to be a str")
|
|
31
34
|
pulumi.set(__self__, "id", id)
|
|
32
|
-
if
|
|
33
|
-
raise TypeError("Expected argument '
|
|
34
|
-
pulumi.set(__self__, "
|
|
35
|
+
if in_ and not isinstance(in_, dict):
|
|
36
|
+
raise TypeError("Expected argument 'in_' to be a dict")
|
|
37
|
+
pulumi.set(__self__, "in_", in_)
|
|
38
|
+
if like and not isinstance(like, str):
|
|
39
|
+
raise TypeError("Expected argument 'like' to be a str")
|
|
40
|
+
pulumi.set(__self__, "like", like)
|
|
41
|
+
if limit and not isinstance(limit, dict):
|
|
42
|
+
raise TypeError("Expected argument 'limit' to be a dict")
|
|
43
|
+
pulumi.set(__self__, "limit", limit)
|
|
44
|
+
if root_only and not isinstance(root_only, bool):
|
|
45
|
+
raise TypeError("Expected argument 'root_only' to be a bool")
|
|
46
|
+
pulumi.set(__self__, "root_only", root_only)
|
|
47
|
+
if starts_with and not isinstance(starts_with, str):
|
|
48
|
+
raise TypeError("Expected argument 'starts_with' to be a str")
|
|
49
|
+
pulumi.set(__self__, "starts_with", starts_with)
|
|
35
50
|
if tasks and not isinstance(tasks, list):
|
|
36
51
|
raise TypeError("Expected argument 'tasks' to be a list")
|
|
37
52
|
pulumi.set(__self__, "tasks", tasks)
|
|
53
|
+
if with_parameters and not isinstance(with_parameters, bool):
|
|
54
|
+
raise TypeError("Expected argument 'with_parameters' to be a bool")
|
|
55
|
+
pulumi.set(__self__, "with_parameters", with_parameters)
|
|
38
56
|
|
|
39
57
|
@property
|
|
40
58
|
@pulumi.getter
|
|
41
|
-
def
|
|
59
|
+
def id(self) -> str:
|
|
60
|
+
"""
|
|
61
|
+
The provider-assigned unique ID for this managed resource.
|
|
62
|
+
"""
|
|
63
|
+
return pulumi.get(self, "id")
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
@pulumi.getter(name="in")
|
|
67
|
+
def in_(self) -> Optional['outputs.GetTasksInResult']:
|
|
42
68
|
"""
|
|
43
|
-
|
|
69
|
+
IN clause to filter the list of objects
|
|
44
70
|
"""
|
|
45
|
-
return pulumi.get(self, "
|
|
71
|
+
return pulumi.get(self, "in_")
|
|
46
72
|
|
|
47
73
|
@property
|
|
48
74
|
@pulumi.getter
|
|
49
|
-
def
|
|
75
|
+
def like(self) -> Optional[str]:
|
|
50
76
|
"""
|
|
51
|
-
|
|
77
|
+
Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
52
78
|
"""
|
|
53
|
-
return pulumi.get(self, "
|
|
79
|
+
return pulumi.get(self, "like")
|
|
54
80
|
|
|
55
81
|
@property
|
|
56
82
|
@pulumi.getter
|
|
57
|
-
def
|
|
83
|
+
def limit(self) -> Optional['outputs.GetTasksLimitResult']:
|
|
84
|
+
"""
|
|
85
|
+
Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
|
|
86
|
+
"""
|
|
87
|
+
return pulumi.get(self, "limit")
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter(name="rootOnly")
|
|
91
|
+
def root_only(self) -> Optional[bool]:
|
|
58
92
|
"""
|
|
59
|
-
|
|
93
|
+
Filters the command output to return only root tasks (tasks with no predecessors).
|
|
60
94
|
"""
|
|
61
|
-
return pulumi.get(self, "
|
|
95
|
+
return pulumi.get(self, "root_only")
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
@pulumi.getter(name="startsWith")
|
|
99
|
+
def starts_with(self) -> Optional[str]:
|
|
100
|
+
"""
|
|
101
|
+
Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
102
|
+
"""
|
|
103
|
+
return pulumi.get(self, "starts_with")
|
|
62
104
|
|
|
63
105
|
@property
|
|
64
106
|
@pulumi.getter
|
|
65
107
|
def tasks(self) -> Sequence['outputs.GetTasksTaskResult']:
|
|
66
108
|
"""
|
|
67
|
-
|
|
109
|
+
Holds the aggregated output of all task details queries.
|
|
68
110
|
"""
|
|
69
111
|
return pulumi.get(self, "tasks")
|
|
70
112
|
|
|
113
|
+
@property
|
|
114
|
+
@pulumi.getter(name="withParameters")
|
|
115
|
+
def with_parameters(self) -> Optional[bool]:
|
|
116
|
+
"""
|
|
117
|
+
Runs SHOW PARAMETERS FOR TASK for each task returned by SHOW TASK and saves the output to the parameters field as a map. By default this value is set to true.
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "with_parameters")
|
|
120
|
+
|
|
71
121
|
|
|
72
122
|
class AwaitableGetTasksResult(GetTasksResult):
|
|
73
123
|
# pylint: disable=using-constant-test
|
|
@@ -75,56 +125,86 @@ class AwaitableGetTasksResult(GetTasksResult):
|
|
|
75
125
|
if False:
|
|
76
126
|
yield self
|
|
77
127
|
return GetTasksResult(
|
|
78
|
-
database=self.database,
|
|
79
128
|
id=self.id,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
129
|
+
in_=self.in_,
|
|
130
|
+
like=self.like,
|
|
131
|
+
limit=self.limit,
|
|
132
|
+
root_only=self.root_only,
|
|
133
|
+
starts_with=self.starts_with,
|
|
134
|
+
tasks=self.tasks,
|
|
135
|
+
with_parameters=self.with_parameters)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
def get_tasks(in_: Optional[Union['GetTasksInArgs', 'GetTasksInArgsDict']] = None,
|
|
139
|
+
like: Optional[str] = None,
|
|
140
|
+
limit: Optional[Union['GetTasksLimitArgs', 'GetTasksLimitArgsDict']] = None,
|
|
141
|
+
root_only: Optional[bool] = None,
|
|
142
|
+
starts_with: Optional[str] = None,
|
|
143
|
+
with_parameters: Optional[bool] = None,
|
|
86
144
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTasksResult:
|
|
87
145
|
"""
|
|
88
|
-
|
|
146
|
+
Data source used to get details of filtered tasks. Filtering is aligned with the current possibilities for [SHOW TASKS](https://docs.snowflake.com/en/sql-reference/sql/show-tasks) query. The results of SHOW and SHOW PARAMETERS IN are encapsulated in one output collection `tasks`.
|
|
89
147
|
|
|
90
|
-
<!--Start PulumiCodeChooser -->
|
|
91
|
-
```python
|
|
92
|
-
import pulumi
|
|
93
|
-
import pulumi_snowflake as snowflake
|
|
94
148
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
149
|
+
:param Union['GetTasksInArgs', 'GetTasksInArgsDict'] in_: IN clause to filter the list of objects
|
|
150
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
151
|
+
:param Union['GetTasksLimitArgs', 'GetTasksLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
|
|
152
|
+
:param bool root_only: Filters the command output to return only root tasks (tasks with no predecessors).
|
|
153
|
+
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
154
|
+
:param bool with_parameters: Runs SHOW PARAMETERS FOR TASK for each task returned by SHOW TASK and saves the output to the parameters field as a map. By default this value is set to true.
|
|
99
155
|
"""
|
|
100
156
|
__args__ = dict()
|
|
101
|
-
__args__['
|
|
102
|
-
__args__['
|
|
157
|
+
__args__['in'] = in_
|
|
158
|
+
__args__['like'] = like
|
|
159
|
+
__args__['limit'] = limit
|
|
160
|
+
__args__['rootOnly'] = root_only
|
|
161
|
+
__args__['startsWith'] = starts_with
|
|
162
|
+
__args__['withParameters'] = with_parameters
|
|
103
163
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
104
164
|
__ret__ = pulumi.runtime.invoke('snowflake:index/getTasks:getTasks', __args__, opts=opts, typ=GetTasksResult).value
|
|
105
165
|
|
|
106
166
|
return AwaitableGetTasksResult(
|
|
107
|
-
database=pulumi.get(__ret__, 'database'),
|
|
108
167
|
id=pulumi.get(__ret__, 'id'),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
168
|
+
in_=pulumi.get(__ret__, 'in_'),
|
|
169
|
+
like=pulumi.get(__ret__, 'like'),
|
|
170
|
+
limit=pulumi.get(__ret__, 'limit'),
|
|
171
|
+
root_only=pulumi.get(__ret__, 'root_only'),
|
|
172
|
+
starts_with=pulumi.get(__ret__, 'starts_with'),
|
|
173
|
+
tasks=pulumi.get(__ret__, 'tasks'),
|
|
174
|
+
with_parameters=pulumi.get(__ret__, 'with_parameters'))
|
|
175
|
+
def get_tasks_output(in_: Optional[pulumi.Input[Optional[Union['GetTasksInArgs', 'GetTasksInArgsDict']]]] = None,
|
|
176
|
+
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
177
|
+
limit: Optional[pulumi.Input[Optional[Union['GetTasksLimitArgs', 'GetTasksLimitArgsDict']]]] = None,
|
|
178
|
+
root_only: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
179
|
+
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
180
|
+
with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
181
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTasksResult]:
|
|
117
182
|
"""
|
|
118
|
-
|
|
183
|
+
Data source used to get details of filtered tasks. Filtering is aligned with the current possibilities for [SHOW TASKS](https://docs.snowflake.com/en/sql-reference/sql/show-tasks) query. The results of SHOW and SHOW PARAMETERS IN are encapsulated in one output collection `tasks`.
|
|
119
184
|
|
|
120
|
-
<!--Start PulumiCodeChooser -->
|
|
121
|
-
```python
|
|
122
|
-
import pulumi
|
|
123
|
-
import pulumi_snowflake as snowflake
|
|
124
185
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
186
|
+
:param Union['GetTasksInArgs', 'GetTasksInArgsDict'] in_: IN clause to filter the list of objects
|
|
187
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
188
|
+
:param Union['GetTasksLimitArgs', 'GetTasksLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
|
|
189
|
+
:param bool root_only: Filters the command output to return only root tasks (tasks with no predecessors).
|
|
190
|
+
:param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
|
|
191
|
+
:param bool with_parameters: Runs SHOW PARAMETERS FOR TASK for each task returned by SHOW TASK and saves the output to the parameters field as a map. By default this value is set to true.
|
|
129
192
|
"""
|
|
130
|
-
|
|
193
|
+
__args__ = dict()
|
|
194
|
+
__args__['in'] = in_
|
|
195
|
+
__args__['like'] = like
|
|
196
|
+
__args__['limit'] = limit
|
|
197
|
+
__args__['rootOnly'] = root_only
|
|
198
|
+
__args__['startsWith'] = starts_with
|
|
199
|
+
__args__['withParameters'] = with_parameters
|
|
200
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
201
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getTasks:getTasks', __args__, opts=opts, typ=GetTasksResult)
|
|
202
|
+
return __ret__.apply(lambda __response__: GetTasksResult(
|
|
203
|
+
id=pulumi.get(__response__, 'id'),
|
|
204
|
+
in_=pulumi.get(__response__, 'in_'),
|
|
205
|
+
like=pulumi.get(__response__, 'like'),
|
|
206
|
+
limit=pulumi.get(__response__, 'limit'),
|
|
207
|
+
root_only=pulumi.get(__response__, 'root_only'),
|
|
208
|
+
starts_with=pulumi.get(__response__, 'starts_with'),
|
|
209
|
+
tasks=pulumi.get(__response__, 'tasks'),
|
|
210
|
+
with_parameters=pulumi.get(__response__, 'with_parameters')))
|