pulumi-snowflake 0.56.0a1721327760__py3-none-any.whl → 0.57.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.
Files changed (74) hide show
  1. pulumi_snowflake/__init__.py +78 -209
  2. pulumi_snowflake/_inputs.py +12188 -1362
  3. pulumi_snowflake/_utilities.py +2 -0
  4. pulumi_snowflake/account_role.py +226 -0
  5. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +692 -0
  6. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +645 -0
  7. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +680 -0
  8. pulumi_snowflake/cortex_search_service.py +563 -0
  9. pulumi_snowflake/database.py +854 -232
  10. pulumi_snowflake/database_old.py +556 -0
  11. pulumi_snowflake/external_oauth_integration.py +562 -534
  12. pulumi_snowflake/failover_group.py +2 -2
  13. pulumi_snowflake/get_cortex_search_services.py +197 -0
  14. pulumi_snowflake/get_databases.py +71 -62
  15. pulumi_snowflake/get_network_policies.py +122 -0
  16. pulumi_snowflake/get_roles.py +37 -31
  17. pulumi_snowflake/get_schemas.py +115 -38
  18. pulumi_snowflake/get_security_integrations.py +122 -0
  19. pulumi_snowflake/get_streamlits.py +159 -0
  20. pulumi_snowflake/get_warehouses.py +66 -18
  21. pulumi_snowflake/grant_privileges_to_database_role.py +0 -4
  22. pulumi_snowflake/managed_account.py +7 -7
  23. pulumi_snowflake/network_policy.py +103 -19
  24. pulumi_snowflake/oauth_integration.py +4 -0
  25. pulumi_snowflake/oauth_integration_for_custom_clients.py +940 -0
  26. pulumi_snowflake/oauth_integration_for_partner_applications.py +584 -0
  27. pulumi_snowflake/outputs.py +16178 -2927
  28. pulumi_snowflake/pulumi-plugin.json +1 -1
  29. pulumi_snowflake/role.py +44 -72
  30. pulumi_snowflake/saml2_integration.py +975 -0
  31. pulumi_snowflake/saml_integration.py +4 -0
  32. pulumi_snowflake/schema.py +905 -151
  33. pulumi_snowflake/scim_integration.py +257 -103
  34. pulumi_snowflake/secondary_database.py +1059 -0
  35. pulumi_snowflake/sequence.py +6 -6
  36. pulumi_snowflake/shared_database.py +914 -0
  37. pulumi_snowflake/streamlit.py +650 -0
  38. pulumi_snowflake/table.py +0 -120
  39. pulumi_snowflake/table_constraint.py +2 -2
  40. pulumi_snowflake/tag_association.py +38 -38
  41. pulumi_snowflake/unsafe_execute.py +8 -8
  42. pulumi_snowflake/user_password_policy_attachment.py +32 -0
  43. pulumi_snowflake/warehouse.py +143 -120
  44. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/METADATA +1 -1
  45. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/RECORD +47 -58
  46. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/WHEEL +1 -1
  47. pulumi_snowflake/account_grant.py +0 -319
  48. pulumi_snowflake/database_grant.py +0 -471
  49. pulumi_snowflake/external_table_grant.py +0 -666
  50. pulumi_snowflake/failover_group_grant.py +0 -368
  51. pulumi_snowflake/file_format_grant.py +0 -611
  52. pulumi_snowflake/function_grant.py +0 -721
  53. pulumi_snowflake/grant_privileges_to_role.py +0 -821
  54. pulumi_snowflake/integration_grant.py +0 -416
  55. pulumi_snowflake/masking_policy_grant.py +0 -518
  56. pulumi_snowflake/materialized_view_grant.py +0 -665
  57. pulumi_snowflake/pipe_grant.py +0 -563
  58. pulumi_snowflake/procedure_grant.py +0 -721
  59. pulumi_snowflake/resource_monitor_grant.py +0 -363
  60. pulumi_snowflake/role_grants.py +0 -340
  61. pulumi_snowflake/role_ownership_grant.py +0 -329
  62. pulumi_snowflake/row_access_policy_grant.py +0 -516
  63. pulumi_snowflake/schema_grant.py +0 -603
  64. pulumi_snowflake/sequence_grant.py +0 -611
  65. pulumi_snowflake/stage_grant.py +0 -611
  66. pulumi_snowflake/stream_grant.py +0 -611
  67. pulumi_snowflake/table_grant.py +0 -653
  68. pulumi_snowflake/tag_grant.py +0 -508
  69. pulumi_snowflake/task_grant.py +0 -611
  70. pulumi_snowflake/user_grant.py +0 -370
  71. pulumi_snowflake/user_ownership_grant.py +0 -275
  72. pulumi_snowflake/view_grant.py +0 -685
  73. pulumi_snowflake/warehouse_grant.py +0 -416
  74. {pulumi_snowflake-0.56.0a1721327760.dist-info → pulumi_snowflake-0.57.0.dist-info}/top_level.txt +0 -0
@@ -22,13 +22,16 @@ class GetRolesResult:
22
22
  """
23
23
  A collection of values returned by getRoles.
24
24
  """
25
- def __init__(__self__, id=None, pattern=None, roles=None):
25
+ def __init__(__self__, id=None, in_class=None, like=None, roles=None):
26
26
  if id and not isinstance(id, str):
27
27
  raise TypeError("Expected argument 'id' to be a str")
28
28
  pulumi.set(__self__, "id", id)
29
- if pattern and not isinstance(pattern, str):
30
- raise TypeError("Expected argument 'pattern' to be a str")
31
- pulumi.set(__self__, "pattern", pattern)
29
+ if in_class and not isinstance(in_class, str):
30
+ raise TypeError("Expected argument 'in_class' to be a str")
31
+ pulumi.set(__self__, "in_class", in_class)
32
+ if like and not isinstance(like, str):
33
+ raise TypeError("Expected argument 'like' to be a str")
34
+ pulumi.set(__self__, "like", like)
32
35
  if roles and not isinstance(roles, list):
33
36
  raise TypeError("Expected argument 'roles' to be a list")
34
37
  pulumi.set(__self__, "roles", roles)
@@ -41,19 +44,27 @@ class GetRolesResult:
41
44
  """
42
45
  return pulumi.get(self, "id")
43
46
 
47
+ @property
48
+ @pulumi.getter(name="inClass")
49
+ def in_class(self) -> Optional[str]:
50
+ """
51
+ Filters the SHOW GRANTS output by class name.
52
+ """
53
+ return pulumi.get(self, "in_class")
54
+
44
55
  @property
45
56
  @pulumi.getter
46
- def pattern(self) -> Optional[str]:
57
+ def like(self) -> Optional[str]:
47
58
  """
48
- Filters the command output by object name.
59
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
49
60
  """
50
- return pulumi.get(self, "pattern")
61
+ return pulumi.get(self, "like")
51
62
 
52
63
  @property
53
64
  @pulumi.getter
54
65
  def roles(self) -> Sequence['outputs.GetRolesRoleResult']:
55
66
  """
56
- List of all the roles which you can view across your entire account, including the system-defined roles and any custom roles that exist.
67
+ Holds the aggregated output of all role details queries.
57
68
  """
58
69
  return pulumi.get(self, "roles")
59
70
 
@@ -65,52 +76,47 @@ class AwaitableGetRolesResult(GetRolesResult):
65
76
  yield self
66
77
  return GetRolesResult(
67
78
  id=self.id,
68
- pattern=self.pattern,
79
+ in_class=self.in_class,
80
+ like=self.like,
69
81
  roles=self.roles)
70
82
 
71
83
 
72
- def get_roles(pattern: Optional[str] = None,
84
+ def get_roles(in_class: Optional[str] = None,
85
+ like: Optional[str] = None,
73
86
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRolesResult:
74
87
  """
75
- ## Example Usage
76
-
77
- ```python
78
- import pulumi
79
- import pulumi_snowflake as snowflake
88
+ !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
80
89
 
81
- this = snowflake.get_roles()
82
- ad = snowflake.get_roles(pattern="SYSADMIN")
83
- ```
90
+ Datasource used to get details of filtered roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `in_class` are all supported). The results of SHOW are encapsulated in one output collection.
84
91
 
85
92
 
86
- :param str pattern: Filters the command output by object name.
93
+ :param str in_class: Filters the SHOW GRANTS output by class name.
94
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
87
95
  """
88
96
  __args__ = dict()
89
- __args__['pattern'] = pattern
97
+ __args__['inClass'] = in_class
98
+ __args__['like'] = like
90
99
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
91
100
  __ret__ = pulumi.runtime.invoke('snowflake:index/getRoles:getRoles', __args__, opts=opts, typ=GetRolesResult).value
92
101
 
93
102
  return AwaitableGetRolesResult(
94
103
  id=pulumi.get(__ret__, 'id'),
95
- pattern=pulumi.get(__ret__, 'pattern'),
104
+ in_class=pulumi.get(__ret__, 'in_class'),
105
+ like=pulumi.get(__ret__, 'like'),
96
106
  roles=pulumi.get(__ret__, 'roles'))
97
107
 
98
108
 
99
109
  @_utilities.lift_output_func(get_roles)
100
- def get_roles_output(pattern: Optional[pulumi.Input[Optional[str]]] = None,
110
+ def get_roles_output(in_class: Optional[pulumi.Input[Optional[str]]] = None,
111
+ like: Optional[pulumi.Input[Optional[str]]] = None,
101
112
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRolesResult]:
102
113
  """
103
- ## Example Usage
104
-
105
- ```python
106
- import pulumi
107
- import pulumi_snowflake as snowflake
114
+ !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
108
115
 
109
- this = snowflake.get_roles()
110
- ad = snowflake.get_roles(pattern="SYSADMIN")
111
- ```
116
+ Datasource used to get details of filtered roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `in_class` are all supported). The results of SHOW are encapsulated in one output collection.
112
117
 
113
118
 
114
- :param str pattern: Filters the command output by object name.
119
+ :param str in_class: Filters the SHOW GRANTS output by class name.
120
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
115
121
  """
116
122
  ...
@@ -9,6 +9,7 @@ import pulumi.runtime
9
9
  from typing import Any, Mapping, Optional, Sequence, Union, overload
10
10
  from . import _utilities
11
11
  from . import outputs
12
+ from ._inputs import *
12
13
 
13
14
  __all__ = [
14
15
  'GetSchemasResult',
@@ -22,41 +23,96 @@ class GetSchemasResult:
22
23
  """
23
24
  A collection of values returned by getSchemas.
24
25
  """
25
- def __init__(__self__, database=None, id=None, schemas=None):
26
- if database and not isinstance(database, str):
27
- raise TypeError("Expected argument 'database' to be a str")
28
- pulumi.set(__self__, "database", database)
26
+ def __init__(__self__, id=None, in_=None, like=None, limit=None, schemas=None, starts_with=None, with_describe=None, with_parameters=None):
29
27
  if id and not isinstance(id, str):
30
28
  raise TypeError("Expected argument 'id' to be a str")
31
29
  pulumi.set(__self__, "id", id)
30
+ if in_ and not isinstance(in_, dict):
31
+ raise TypeError("Expected argument 'in_' to be a dict")
32
+ pulumi.set(__self__, "in_", in_)
33
+ if like and not isinstance(like, str):
34
+ raise TypeError("Expected argument 'like' to be a str")
35
+ pulumi.set(__self__, "like", like)
36
+ if limit and not isinstance(limit, dict):
37
+ raise TypeError("Expected argument 'limit' to be a dict")
38
+ pulumi.set(__self__, "limit", limit)
32
39
  if schemas and not isinstance(schemas, list):
33
40
  raise TypeError("Expected argument 'schemas' to be a list")
34
41
  pulumi.set(__self__, "schemas", schemas)
42
+ if starts_with and not isinstance(starts_with, str):
43
+ raise TypeError("Expected argument 'starts_with' to be a str")
44
+ pulumi.set(__self__, "starts_with", starts_with)
45
+ if with_describe and not isinstance(with_describe, bool):
46
+ raise TypeError("Expected argument 'with_describe' to be a bool")
47
+ pulumi.set(__self__, "with_describe", with_describe)
48
+ if with_parameters and not isinstance(with_parameters, bool):
49
+ raise TypeError("Expected argument 'with_parameters' to be a bool")
50
+ pulumi.set(__self__, "with_parameters", with_parameters)
35
51
 
36
52
  @property
37
53
  @pulumi.getter
38
- def database(self) -> str:
54
+ def id(self) -> str:
39
55
  """
40
- The database from which to return the schemas from.
56
+ The provider-assigned unique ID for this managed resource.
41
57
  """
42
- return pulumi.get(self, "database")
58
+ return pulumi.get(self, "id")
59
+
60
+ @property
61
+ @pulumi.getter(name="in")
62
+ def in_(self) -> Optional['outputs.GetSchemasInResult']:
63
+ """
64
+ IN clause to filter the list of streamlits
65
+ """
66
+ return pulumi.get(self, "in_")
43
67
 
44
68
  @property
45
69
  @pulumi.getter
46
- def id(self) -> str:
70
+ def like(self) -> Optional[str]:
47
71
  """
48
- The provider-assigned unique ID for this managed resource.
72
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
49
73
  """
50
- return pulumi.get(self, "id")
74
+ return pulumi.get(self, "like")
75
+
76
+ @property
77
+ @pulumi.getter
78
+ def limit(self) -> Optional['outputs.GetSchemasLimitResult']:
79
+ """
80
+ Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
81
+ """
82
+ return pulumi.get(self, "limit")
51
83
 
52
84
  @property
53
85
  @pulumi.getter
54
86
  def schemas(self) -> Sequence['outputs.GetSchemasSchemaResult']:
55
87
  """
56
- The schemas in the database
88
+ Holds the aggregated output of all SCHEMA details queries.
57
89
  """
58
90
  return pulumi.get(self, "schemas")
59
91
 
92
+ @property
93
+ @pulumi.getter(name="startsWith")
94
+ def starts_with(self) -> Optional[str]:
95
+ """
96
+ Filters the output with **case-sensitive** characters indicating the beginning of the object name.
97
+ """
98
+ return pulumi.get(self, "starts_with")
99
+
100
+ @property
101
+ @pulumi.getter(name="withDescribe")
102
+ def with_describe(self) -> Optional[bool]:
103
+ """
104
+ Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
105
+ """
106
+ return pulumi.get(self, "with_describe")
107
+
108
+ @property
109
+ @pulumi.getter(name="withParameters")
110
+ def with_parameters(self) -> Optional[bool]:
111
+ """
112
+ Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
113
+ """
114
+ return pulumi.get(self, "with_parameters")
115
+
60
116
 
61
117
  class AwaitableGetSchemasResult(GetSchemasResult):
62
118
  # pylint: disable=using-constant-test
@@ -64,51 +120,72 @@ class AwaitableGetSchemasResult(GetSchemasResult):
64
120
  if False:
65
121
  yield self
66
122
  return GetSchemasResult(
67
- database=self.database,
68
123
  id=self.id,
69
- schemas=self.schemas)
70
-
71
-
72
- def get_schemas(database: Optional[str] = None,
124
+ in_=self.in_,
125
+ like=self.like,
126
+ limit=self.limit,
127
+ schemas=self.schemas,
128
+ starts_with=self.starts_with,
129
+ with_describe=self.with_describe,
130
+ with_parameters=self.with_parameters)
131
+
132
+
133
+ def get_schemas(in_: Optional[pulumi.InputType['GetSchemasInArgs']] = None,
134
+ like: Optional[str] = None,
135
+ limit: Optional[pulumi.InputType['GetSchemasLimitArgs']] = None,
136
+ starts_with: Optional[str] = None,
137
+ with_describe: Optional[bool] = None,
138
+ with_parameters: Optional[bool] = None,
73
139
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSchemasResult:
74
140
  """
75
- ## Example Usage
141
+ Datasource used to get details of filtered schemas. Filtering is aligned with the current possibilities for [SHOW SCHEMAS](https://docs.snowflake.com/en/sql-reference/sql/show-schemas) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
76
142
 
77
- ```python
78
- import pulumi
79
- import pulumi_snowflake as snowflake
80
143
 
81
- current = snowflake.get_schemas(database="MYDB")
82
- ```
83
-
84
-
85
- :param str database: The database from which to return the schemas from.
144
+ :param pulumi.InputType['GetSchemasInArgs'] in_: IN clause to filter the list of streamlits
145
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
146
+ :param pulumi.InputType['GetSchemasLimitArgs'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
147
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
148
+ :param bool with_describe: Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
149
+ :param bool with_parameters: Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
86
150
  """
87
151
  __args__ = dict()
88
- __args__['database'] = database
152
+ __args__['in'] = in_
153
+ __args__['like'] = like
154
+ __args__['limit'] = limit
155
+ __args__['startsWith'] = starts_with
156
+ __args__['withDescribe'] = with_describe
157
+ __args__['withParameters'] = with_parameters
89
158
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
90
159
  __ret__ = pulumi.runtime.invoke('snowflake:index/getSchemas:getSchemas', __args__, opts=opts, typ=GetSchemasResult).value
91
160
 
92
161
  return AwaitableGetSchemasResult(
93
- database=pulumi.get(__ret__, 'database'),
94
162
  id=pulumi.get(__ret__, 'id'),
95
- schemas=pulumi.get(__ret__, 'schemas'))
163
+ in_=pulumi.get(__ret__, 'in_'),
164
+ like=pulumi.get(__ret__, 'like'),
165
+ limit=pulumi.get(__ret__, 'limit'),
166
+ schemas=pulumi.get(__ret__, 'schemas'),
167
+ starts_with=pulumi.get(__ret__, 'starts_with'),
168
+ with_describe=pulumi.get(__ret__, 'with_describe'),
169
+ with_parameters=pulumi.get(__ret__, 'with_parameters'))
96
170
 
97
171
 
98
172
  @_utilities.lift_output_func(get_schemas)
99
- def get_schemas_output(database: Optional[pulumi.Input[str]] = None,
173
+ def get_schemas_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetSchemasInArgs']]]] = None,
174
+ like: Optional[pulumi.Input[Optional[str]]] = None,
175
+ limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetSchemasLimitArgs']]]] = None,
176
+ starts_with: Optional[pulumi.Input[Optional[str]]] = None,
177
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
178
+ with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
100
179
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSchemasResult]:
101
180
  """
102
- ## Example Usage
103
-
104
- ```python
105
- import pulumi
106
- import pulumi_snowflake as snowflake
107
-
108
- current = snowflake.get_schemas(database="MYDB")
109
- ```
181
+ Datasource used to get details of filtered schemas. Filtering is aligned with the current possibilities for [SHOW SCHEMAS](https://docs.snowflake.com/en/sql-reference/sql/show-schemas) query. The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
110
182
 
111
183
 
112
- :param str database: The database from which to return the schemas from.
184
+ :param pulumi.InputType['GetSchemasInArgs'] in_: IN clause to filter the list of streamlits
185
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
186
+ :param pulumi.InputType['GetSchemasLimitArgs'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
187
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
188
+ :param bool with_describe: Runs DESC SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the description field. By default this value is set to true.
189
+ :param bool with_parameters: Runs SHOW PARAMETERS FOR SCHEMA for each schema returned by SHOW SCHEMAS. The output of describe is saved to the parameters field as a map. By default this value is set to true.
113
190
  """
114
191
  ...
@@ -0,0 +1,122 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from . import _utilities
11
+ from . import outputs
12
+
13
+ __all__ = [
14
+ 'GetSecurityIntegrationsResult',
15
+ 'AwaitableGetSecurityIntegrationsResult',
16
+ 'get_security_integrations',
17
+ 'get_security_integrations_output',
18
+ ]
19
+
20
+ @pulumi.output_type
21
+ class GetSecurityIntegrationsResult:
22
+ """
23
+ A collection of values returned by getSecurityIntegrations.
24
+ """
25
+ def __init__(__self__, id=None, like=None, security_integrations=None, with_describe=None):
26
+ if id and not isinstance(id, str):
27
+ raise TypeError("Expected argument 'id' to be a str")
28
+ pulumi.set(__self__, "id", id)
29
+ if like and not isinstance(like, str):
30
+ raise TypeError("Expected argument 'like' to be a str")
31
+ pulumi.set(__self__, "like", like)
32
+ if security_integrations and not isinstance(security_integrations, list):
33
+ raise TypeError("Expected argument 'security_integrations' to be a list")
34
+ pulumi.set(__self__, "security_integrations", security_integrations)
35
+ if with_describe and not isinstance(with_describe, bool):
36
+ raise TypeError("Expected argument 'with_describe' to be a bool")
37
+ pulumi.set(__self__, "with_describe", with_describe)
38
+
39
+ @property
40
+ @pulumi.getter
41
+ def id(self) -> str:
42
+ """
43
+ The provider-assigned unique ID for this managed resource.
44
+ """
45
+ return pulumi.get(self, "id")
46
+
47
+ @property
48
+ @pulumi.getter
49
+ def like(self) -> Optional[str]:
50
+ """
51
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
52
+ """
53
+ return pulumi.get(self, "like")
54
+
55
+ @property
56
+ @pulumi.getter(name="securityIntegrations")
57
+ def security_integrations(self) -> Sequence['outputs.GetSecurityIntegrationsSecurityIntegrationResult']:
58
+ """
59
+ Holds the aggregated output of all security integrations details queries.
60
+ """
61
+ return pulumi.get(self, "security_integrations")
62
+
63
+ @property
64
+ @pulumi.getter(name="withDescribe")
65
+ def with_describe(self) -> Optional[bool]:
66
+ """
67
+ Runs DESC SECURITY INTEGRATION for each security integration returned by SHOW SECURITY INTEGRATIONS. The output of describe is saved to the description field. By default this value is set to true.
68
+ """
69
+ return pulumi.get(self, "with_describe")
70
+
71
+
72
+ class AwaitableGetSecurityIntegrationsResult(GetSecurityIntegrationsResult):
73
+ # pylint: disable=using-constant-test
74
+ def __await__(self):
75
+ if False:
76
+ yield self
77
+ return GetSecurityIntegrationsResult(
78
+ id=self.id,
79
+ like=self.like,
80
+ security_integrations=self.security_integrations,
81
+ with_describe=self.with_describe)
82
+
83
+
84
+ def get_security_integrations(like: Optional[str] = None,
85
+ with_describe: Optional[bool] = None,
86
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSecurityIntegrationsResult:
87
+ """
88
+ !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
89
+
90
+ Datasource used to get details of filtered security integrations. Filtering is aligned with the current possibilities for [SHOW SECURITY INTEGRATIONS](https://docs.snowflake.com/en/sql-reference/sql/show-integrations) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `security_integrations`.
91
+
92
+
93
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
94
+ :param bool with_describe: Runs DESC SECURITY INTEGRATION for each security integration returned by SHOW SECURITY INTEGRATIONS. The output of describe is saved to the description field. By default this value is set to true.
95
+ """
96
+ __args__ = dict()
97
+ __args__['like'] = like
98
+ __args__['withDescribe'] = with_describe
99
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
100
+ __ret__ = pulumi.runtime.invoke('snowflake:index/getSecurityIntegrations:getSecurityIntegrations', __args__, opts=opts, typ=GetSecurityIntegrationsResult).value
101
+
102
+ return AwaitableGetSecurityIntegrationsResult(
103
+ id=pulumi.get(__ret__, 'id'),
104
+ like=pulumi.get(__ret__, 'like'),
105
+ security_integrations=pulumi.get(__ret__, 'security_integrations'),
106
+ with_describe=pulumi.get(__ret__, 'with_describe'))
107
+
108
+
109
+ @_utilities.lift_output_func(get_security_integrations)
110
+ def get_security_integrations_output(like: Optional[pulumi.Input[Optional[str]]] = None,
111
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
112
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSecurityIntegrationsResult]:
113
+ """
114
+ !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
115
+
116
+ Datasource used to get details of filtered security integrations. Filtering is aligned with the current possibilities for [SHOW SECURITY INTEGRATIONS](https://docs.snowflake.com/en/sql-reference/sql/show-integrations) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `security_integrations`.
117
+
118
+
119
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
120
+ :param bool with_describe: Runs DESC SECURITY INTEGRATION for each security integration returned by SHOW SECURITY INTEGRATIONS. The output of describe is saved to the description field. By default this value is set to true.
121
+ """
122
+ ...
@@ -0,0 +1,159 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import pulumi
8
+ import pulumi.runtime
9
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
10
+ from . import _utilities
11
+ from . import outputs
12
+ from ._inputs import *
13
+
14
+ __all__ = [
15
+ 'GetStreamlitsResult',
16
+ 'AwaitableGetStreamlitsResult',
17
+ 'get_streamlits',
18
+ 'get_streamlits_output',
19
+ ]
20
+
21
+ @pulumi.output_type
22
+ class GetStreamlitsResult:
23
+ """
24
+ A collection of values returned by getStreamlits.
25
+ """
26
+ def __init__(__self__, id=None, in_=None, like=None, limit=None, streamlits=None, with_describe=None):
27
+ if id and not isinstance(id, str):
28
+ raise TypeError("Expected argument 'id' to be a str")
29
+ pulumi.set(__self__, "id", id)
30
+ if in_ and not isinstance(in_, dict):
31
+ raise TypeError("Expected argument 'in_' to be a dict")
32
+ pulumi.set(__self__, "in_", in_)
33
+ if like and not isinstance(like, str):
34
+ raise TypeError("Expected argument 'like' to be a str")
35
+ pulumi.set(__self__, "like", like)
36
+ if limit and not isinstance(limit, dict):
37
+ raise TypeError("Expected argument 'limit' to be a dict")
38
+ pulumi.set(__self__, "limit", limit)
39
+ if streamlits and not isinstance(streamlits, list):
40
+ raise TypeError("Expected argument 'streamlits' to be a list")
41
+ pulumi.set(__self__, "streamlits", streamlits)
42
+ if with_describe and not isinstance(with_describe, bool):
43
+ raise TypeError("Expected argument 'with_describe' to be a bool")
44
+ pulumi.set(__self__, "with_describe", with_describe)
45
+
46
+ @property
47
+ @pulumi.getter
48
+ def id(self) -> str:
49
+ """
50
+ The provider-assigned unique ID for this managed resource.
51
+ """
52
+ return pulumi.get(self, "id")
53
+
54
+ @property
55
+ @pulumi.getter(name="in")
56
+ def in_(self) -> Optional['outputs.GetStreamlitsInResult']:
57
+ """
58
+ IN clause to filter the list of streamlits
59
+ """
60
+ return pulumi.get(self, "in_")
61
+
62
+ @property
63
+ @pulumi.getter
64
+ def like(self) -> Optional[str]:
65
+ """
66
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
67
+ """
68
+ return pulumi.get(self, "like")
69
+
70
+ @property
71
+ @pulumi.getter
72
+ def limit(self) -> Optional['outputs.GetStreamlitsLimitResult']:
73
+ """
74
+ Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
75
+ """
76
+ return pulumi.get(self, "limit")
77
+
78
+ @property
79
+ @pulumi.getter
80
+ def streamlits(self) -> Sequence['outputs.GetStreamlitsStreamlitResult']:
81
+ """
82
+ Holds the aggregated output of all streamlits details queries.
83
+ """
84
+ return pulumi.get(self, "streamlits")
85
+
86
+ @property
87
+ @pulumi.getter(name="withDescribe")
88
+ def with_describe(self) -> Optional[bool]:
89
+ """
90
+ Runs DESC STREAMLIT for each streamlit returned by SHOW STREAMLITS. The output of describe is saved to the description field. By default this value is set to true.
91
+ """
92
+ return pulumi.get(self, "with_describe")
93
+
94
+
95
+ class AwaitableGetStreamlitsResult(GetStreamlitsResult):
96
+ # pylint: disable=using-constant-test
97
+ def __await__(self):
98
+ if False:
99
+ yield self
100
+ return GetStreamlitsResult(
101
+ id=self.id,
102
+ in_=self.in_,
103
+ like=self.like,
104
+ limit=self.limit,
105
+ streamlits=self.streamlits,
106
+ with_describe=self.with_describe)
107
+
108
+
109
+ def get_streamlits(in_: Optional[pulumi.InputType['GetStreamlitsInArgs']] = None,
110
+ like: Optional[str] = None,
111
+ limit: Optional[pulumi.InputType['GetStreamlitsLimitArgs']] = None,
112
+ with_describe: Optional[bool] = None,
113
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetStreamlitsResult:
114
+ """
115
+ !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
116
+
117
+ Datasource used to get details of filtered streamlits. Filtering is aligned with the current possibilities for [SHOW STREAMLITS](https://docs.snowflake.com/en/sql-reference/sql/show-streamlits) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `streamlits`.
118
+
119
+
120
+ :param pulumi.InputType['GetStreamlitsInArgs'] in_: IN clause to filter the list of streamlits
121
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
122
+ :param pulumi.InputType['GetStreamlitsLimitArgs'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
123
+ :param bool with_describe: Runs DESC STREAMLIT for each streamlit returned by SHOW STREAMLITS. The output of describe is saved to the description field. By default this value is set to true.
124
+ """
125
+ __args__ = dict()
126
+ __args__['in'] = in_
127
+ __args__['like'] = like
128
+ __args__['limit'] = limit
129
+ __args__['withDescribe'] = with_describe
130
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
131
+ __ret__ = pulumi.runtime.invoke('snowflake:index/getStreamlits:getStreamlits', __args__, opts=opts, typ=GetStreamlitsResult).value
132
+
133
+ return AwaitableGetStreamlitsResult(
134
+ id=pulumi.get(__ret__, 'id'),
135
+ in_=pulumi.get(__ret__, 'in_'),
136
+ like=pulumi.get(__ret__, 'like'),
137
+ limit=pulumi.get(__ret__, 'limit'),
138
+ streamlits=pulumi.get(__ret__, 'streamlits'),
139
+ with_describe=pulumi.get(__ret__, 'with_describe'))
140
+
141
+
142
+ @_utilities.lift_output_func(get_streamlits)
143
+ def get_streamlits_output(in_: Optional[pulumi.Input[Optional[pulumi.InputType['GetStreamlitsInArgs']]]] = None,
144
+ like: Optional[pulumi.Input[Optional[str]]] = None,
145
+ limit: Optional[pulumi.Input[Optional[pulumi.InputType['GetStreamlitsLimitArgs']]]] = None,
146
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
147
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetStreamlitsResult]:
148
+ """
149
+ !> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
150
+
151
+ Datasource used to get details of filtered streamlits. Filtering is aligned with the current possibilities for [SHOW STREAMLITS](https://docs.snowflake.com/en/sql-reference/sql/show-streamlits) query (only `like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection `streamlits`.
152
+
153
+
154
+ :param pulumi.InputType['GetStreamlitsInArgs'] in_: IN clause to filter the list of streamlits
155
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
156
+ :param pulumi.InputType['GetStreamlitsLimitArgs'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
157
+ :param bool with_describe: Runs DESC STREAMLIT for each streamlit returned by SHOW STREAMLITS. The output of describe is saved to the description field. By default this value is set to true.
158
+ """
159
+ ...