pulumi-snowflake 0.56.0a1721200104__py3-none-any.whl → 0.56.0a1721667766__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. pulumi_snowflake/__init__.py +66 -217
  2. pulumi_snowflake/_inputs.py +10145 -1557
  3. pulumi_snowflake/_utilities.py +3 -4
  4. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +688 -0
  5. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +641 -0
  6. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +676 -0
  7. pulumi_snowflake/cortex_search_service.py +563 -0
  8. pulumi_snowflake/database.py +854 -232
  9. pulumi_snowflake/database_old.py +556 -0
  10. pulumi_snowflake/external_oauth_integration.py +562 -534
  11. pulumi_snowflake/failover_group.py +2 -2
  12. pulumi_snowflake/get_cortex_search_services.py +197 -0
  13. pulumi_snowflake/get_databases.py +71 -62
  14. pulumi_snowflake/get_security_integrations.py +122 -0
  15. pulumi_snowflake/get_warehouses.py +66 -18
  16. pulumi_snowflake/grant_privileges_to_database_role.py +0 -4
  17. pulumi_snowflake/managed_account.py +7 -7
  18. pulumi_snowflake/oauth_integration.py +4 -0
  19. pulumi_snowflake/oauth_integration_for_custom_clients.py +936 -0
  20. pulumi_snowflake/oauth_integration_for_partner_applications.py +580 -0
  21. pulumi_snowflake/outputs.py +12987 -2857
  22. pulumi_snowflake/pulumi-plugin.json +1 -1
  23. pulumi_snowflake/saml2_integration.py +971 -0
  24. pulumi_snowflake/saml_integration.py +4 -0
  25. pulumi_snowflake/scim_integration.py +255 -105
  26. pulumi_snowflake/secondary_database.py +1059 -0
  27. pulumi_snowflake/sequence.py +6 -6
  28. pulumi_snowflake/shared_database.py +914 -0
  29. pulumi_snowflake/tag_association.py +38 -38
  30. pulumi_snowflake/user_password_policy_attachment.py +32 -0
  31. pulumi_snowflake/warehouse.py +143 -120
  32. {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/METADATA +1 -1
  33. {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/RECORD +35 -50
  34. {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/WHEEL +1 -1
  35. pulumi_snowflake/account_grant.py +0 -319
  36. pulumi_snowflake/database_grant.py +0 -471
  37. pulumi_snowflake/external_table_grant.py +0 -666
  38. pulumi_snowflake/failover_group_grant.py +0 -368
  39. pulumi_snowflake/file_format_grant.py +0 -611
  40. pulumi_snowflake/function_grant.py +0 -721
  41. pulumi_snowflake/grant_privileges_to_role.py +0 -821
  42. pulumi_snowflake/integration_grant.py +0 -416
  43. pulumi_snowflake/masking_policy_grant.py +0 -518
  44. pulumi_snowflake/materialized_view_grant.py +0 -665
  45. pulumi_snowflake/pipe_grant.py +0 -563
  46. pulumi_snowflake/procedure_grant.py +0 -721
  47. pulumi_snowflake/resource_monitor_grant.py +0 -363
  48. pulumi_snowflake/role_grants.py +0 -340
  49. pulumi_snowflake/role_ownership_grant.py +0 -329
  50. pulumi_snowflake/row_access_policy_grant.py +0 -516
  51. pulumi_snowflake/schema_grant.py +0 -603
  52. pulumi_snowflake/sequence_grant.py +0 -611
  53. pulumi_snowflake/stage_grant.py +0 -611
  54. pulumi_snowflake/stream_grant.py +0 -611
  55. pulumi_snowflake/table_grant.py +0 -653
  56. pulumi_snowflake/tag_grant.py +0 -508
  57. pulumi_snowflake/task_grant.py +0 -611
  58. pulumi_snowflake/user_grant.py +0 -370
  59. pulumi_snowflake/user_ownership_grant.py +0 -275
  60. pulumi_snowflake/view_grant.py +0 -685
  61. pulumi_snowflake/warehouse_grant.py +0 -416
  62. {pulumi_snowflake-0.56.0a1721200104.dist-info → pulumi_snowflake-0.56.0a1721667766.dist-info}/top_level.txt +0 -0
@@ -22,13 +22,22 @@ class GetWarehousesResult:
22
22
  """
23
23
  A collection of values returned by getWarehouses.
24
24
  """
25
- def __init__(__self__, id=None, warehouses=None):
25
+ def __init__(__self__, id=None, like=None, warehouses=None, with_describe=None, with_parameters=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 like and not isinstance(like, str):
30
+ raise TypeError("Expected argument 'like' to be a str")
31
+ pulumi.set(__self__, "like", like)
29
32
  if warehouses and not isinstance(warehouses, list):
30
33
  raise TypeError("Expected argument 'warehouses' to be a list")
31
34
  pulumi.set(__self__, "warehouses", warehouses)
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
+ if with_parameters and not isinstance(with_parameters, bool):
39
+ raise TypeError("Expected argument 'with_parameters' to be a bool")
40
+ pulumi.set(__self__, "with_parameters", with_parameters)
32
41
 
33
42
  @property
34
43
  @pulumi.getter
@@ -38,14 +47,38 @@ class GetWarehousesResult:
38
47
  """
39
48
  return pulumi.get(self, "id")
40
49
 
50
+ @property
51
+ @pulumi.getter
52
+ def like(self) -> Optional[str]:
53
+ """
54
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
55
+ """
56
+ return pulumi.get(self, "like")
57
+
41
58
  @property
42
59
  @pulumi.getter
43
60
  def warehouses(self) -> Sequence['outputs.GetWarehousesWarehouseResult']:
44
61
  """
45
- The warehouses in the database
62
+ Holds the aggregated output of all warehouse details queries.
46
63
  """
47
64
  return pulumi.get(self, "warehouses")
48
65
 
66
+ @property
67
+ @pulumi.getter(name="withDescribe")
68
+ def with_describe(self) -> Optional[bool]:
69
+ """
70
+ Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true.
71
+ """
72
+ return pulumi.get(self, "with_describe")
73
+
74
+ @property
75
+ @pulumi.getter(name="withParameters")
76
+ def with_parameters(self) -> Optional[bool]:
77
+ """
78
+ Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
79
+ """
80
+ return pulumi.get(self, "with_parameters")
81
+
49
82
 
50
83
  class AwaitableGetWarehousesResult(GetWarehousesResult):
51
84
  # pylint: disable=using-constant-test
@@ -54,39 +87,54 @@ class AwaitableGetWarehousesResult(GetWarehousesResult):
54
87
  yield self
55
88
  return GetWarehousesResult(
56
89
  id=self.id,
57
- warehouses=self.warehouses)
90
+ like=self.like,
91
+ warehouses=self.warehouses,
92
+ with_describe=self.with_describe,
93
+ with_parameters=self.with_parameters)
58
94
 
59
95
 
60
- def get_warehouses(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWarehousesResult:
96
+ def get_warehouses(like: Optional[str] = None,
97
+ with_describe: Optional[bool] = None,
98
+ with_parameters: Optional[bool] = None,
99
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWarehousesResult:
61
100
  """
62
- ## Example Usage
101
+ !> **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.
102
+
103
+ Datasource used to get details of filtered warehouses. Filtering is aligned with the current possibilities for [SHOW WAREHOUSES](https://docs.snowflake.com/en/sql-reference/sql/show-warehouses) query (only `like` is supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
63
104
 
64
- ```python
65
- import pulumi
66
- import pulumi_snowflake as snowflake
67
105
 
68
- current = snowflake.get_warehouses()
69
- ```
106
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
107
+ :param bool with_describe: Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true.
108
+ :param bool with_parameters: Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
70
109
  """
71
110
  __args__ = dict()
111
+ __args__['like'] = like
112
+ __args__['withDescribe'] = with_describe
113
+ __args__['withParameters'] = with_parameters
72
114
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
73
115
  __ret__ = pulumi.runtime.invoke('snowflake:index/getWarehouses:getWarehouses', __args__, opts=opts, typ=GetWarehousesResult).value
74
116
 
75
117
  return AwaitableGetWarehousesResult(
76
118
  id=pulumi.get(__ret__, 'id'),
77
- warehouses=pulumi.get(__ret__, 'warehouses'))
119
+ like=pulumi.get(__ret__, 'like'),
120
+ warehouses=pulumi.get(__ret__, 'warehouses'),
121
+ with_describe=pulumi.get(__ret__, 'with_describe'),
122
+ with_parameters=pulumi.get(__ret__, 'with_parameters'))
78
123
 
79
124
 
80
125
  @_utilities.lift_output_func(get_warehouses)
81
- def get_warehouses_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetWarehousesResult]:
126
+ def get_warehouses_output(like: Optional[pulumi.Input[Optional[str]]] = None,
127
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
128
+ with_parameters: Optional[pulumi.Input[Optional[bool]]] = None,
129
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetWarehousesResult]:
82
130
  """
83
- ## Example Usage
131
+ !> **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.
132
+
133
+ Datasource used to get details of filtered warehouses. Filtering is aligned with the current possibilities for [SHOW WAREHOUSES](https://docs.snowflake.com/en/sql-reference/sql/show-warehouses) query (only `like` is supported). The results of SHOW, DESCRIBE, and SHOW PARAMETERS IN are encapsulated in one output collection.
84
134
 
85
- ```python
86
- import pulumi
87
- import pulumi_snowflake as snowflake
88
135
 
89
- current = snowflake.get_warehouses()
90
- ```
136
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
137
+ :param bool with_describe: Runs DESC WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the description field. By default this value is set to true.
138
+ :param bool with_parameters: Runs SHOW PARAMETERS FOR WAREHOUSE for each warehouse returned by SHOW WAREHOUSES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
91
139
  """
92
140
  ...
@@ -324,8 +324,6 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
324
324
  with_grant_option: Optional[pulumi.Input[bool]] = None,
325
325
  __props__=None):
326
326
  """
327
- > **Note** This is a preview resource. It's ready for general use. In case of any errors, please file an issue in our GitHub repository.
328
-
329
327
  !> **Warning** Be careful when using `always_apply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
330
328
 
331
329
  #### Grant all privileges OnDatabase
@@ -370,8 +368,6 @@ class GrantPrivilegesToDatabaseRole(pulumi.CustomResource):
370
368
  args: GrantPrivilegesToDatabaseRoleArgs,
371
369
  opts: Optional[pulumi.ResourceOptions] = None):
372
370
  """
373
- > **Note** This is a preview resource. It's ready for general use. In case of any errors, please file an issue in our GitHub repository.
374
-
375
371
  !> **Warning** Be careful when using `always_apply` field. It will always produce a plan (even when no changes were made) and can be harmful in some setups. For more details why we decided to introduce it to go our document explaining those design decisions (coming soon).
376
372
 
377
373
  #### Grant all privileges OnDatabase
@@ -22,7 +22,7 @@ class ManagedAccountArgs:
22
22
  """
23
23
  The set of arguments for constructing a ManagedAccount resource.
24
24
  :param pulumi.Input[str] admin_name: Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
25
- :param pulumi.Input[str] admin_password: Password for the initial user in the managed account.
25
+ :param pulumi.Input[str] admin_password: Password for the initial user in the managed account. Check [Snowflake-provided password policy](https://docs.snowflake.com/en/user-guide/admin-user-management#snowflake-provided-password-policy).
26
26
  :param pulumi.Input[str] comment: Specifies a comment for the managed account.
27
27
  :param pulumi.Input[str] name: Identifier for the managed account; must be unique for your account.
28
28
  :param pulumi.Input[str] type: Specifies the type of managed account.
@@ -52,7 +52,7 @@ class ManagedAccountArgs:
52
52
  @pulumi.getter(name="adminPassword")
53
53
  def admin_password(self) -> pulumi.Input[str]:
54
54
  """
55
- Password for the initial user in the managed account.
55
+ Password for the initial user in the managed account. Check [Snowflake-provided password policy](https://docs.snowflake.com/en/user-guide/admin-user-management#snowflake-provided-password-policy).
56
56
  """
57
57
  return pulumi.get(self, "admin_password")
58
58
 
@@ -113,7 +113,7 @@ class _ManagedAccountState:
113
113
  """
114
114
  Input properties used for looking up and filtering ManagedAccount resources.
115
115
  :param pulumi.Input[str] admin_name: Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
116
- :param pulumi.Input[str] admin_password: Password for the initial user in the managed account.
116
+ :param pulumi.Input[str] admin_password: Password for the initial user in the managed account. Check [Snowflake-provided password policy](https://docs.snowflake.com/en/user-guide/admin-user-management#snowflake-provided-password-policy).
117
117
  :param pulumi.Input[str] cloud: Cloud in which the managed account is located.
118
118
  :param pulumi.Input[str] comment: Specifies a comment for the managed account.
119
119
  :param pulumi.Input[str] created_on: Date and time when the managed account was created.
@@ -160,7 +160,7 @@ class _ManagedAccountState:
160
160
  @pulumi.getter(name="adminPassword")
161
161
  def admin_password(self) -> Optional[pulumi.Input[str]]:
162
162
  """
163
- Password for the initial user in the managed account.
163
+ Password for the initial user in the managed account. Check [Snowflake-provided password policy](https://docs.snowflake.com/en/user-guide/admin-user-management#snowflake-provided-password-policy).
164
164
  """
165
165
  return pulumi.get(self, "admin_password")
166
166
 
@@ -288,7 +288,7 @@ class ManagedAccount(pulumi.CustomResource):
288
288
  :param str resource_name: The name of the resource.
289
289
  :param pulumi.ResourceOptions opts: Options for the resource.
290
290
  :param pulumi.Input[str] admin_name: Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
291
- :param pulumi.Input[str] admin_password: Password for the initial user in the managed account.
291
+ :param pulumi.Input[str] admin_password: Password for the initial user in the managed account. Check [Snowflake-provided password policy](https://docs.snowflake.com/en/user-guide/admin-user-management#snowflake-provided-password-policy).
292
292
  :param pulumi.Input[str] comment: Specifies a comment for the managed account.
293
293
  :param pulumi.Input[str] name: Identifier for the managed account; must be unique for your account.
294
294
  :param pulumi.Input[str] type: Specifies the type of managed account.
@@ -381,7 +381,7 @@ class ManagedAccount(pulumi.CustomResource):
381
381
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
382
382
  :param pulumi.ResourceOptions opts: Options for the resource.
383
383
  :param pulumi.Input[str] admin_name: Identifier, as well as login name, for the initial user in the managed account. This user serves as the account administrator for the account.
384
- :param pulumi.Input[str] admin_password: Password for the initial user in the managed account.
384
+ :param pulumi.Input[str] admin_password: Password for the initial user in the managed account. Check [Snowflake-provided password policy](https://docs.snowflake.com/en/user-guide/admin-user-management#snowflake-provided-password-policy).
385
385
  :param pulumi.Input[str] cloud: Cloud in which the managed account is located.
386
386
  :param pulumi.Input[str] comment: Specifies a comment for the managed account.
387
387
  :param pulumi.Input[str] created_on: Date and time when the managed account was created.
@@ -419,7 +419,7 @@ class ManagedAccount(pulumi.CustomResource):
419
419
  @pulumi.getter(name="adminPassword")
420
420
  def admin_password(self) -> pulumi.Output[str]:
421
421
  """
422
- Password for the initial user in the managed account.
422
+ Password for the initial user in the managed account. Check [Snowflake-provided password policy](https://docs.snowflake.com/en/user-guide/admin-user-management#snowflake-provided-password-policy).
423
423
  """
424
424
  return pulumi.get(self, "admin_password")
425
425
 
@@ -379,6 +379,8 @@ class OauthIntegration(pulumi.CustomResource):
379
379
  oauth_use_secondary_roles: Optional[pulumi.Input[str]] = None,
380
380
  __props__=None):
381
381
  """
382
+ > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use OauthIntegrationForCustomClients or OauthIntegrationForPartnerApplications instead. <deprecation>
383
+
382
384
  ## Example Usage
383
385
 
384
386
  ```python
@@ -420,6 +422,8 @@ class OauthIntegration(pulumi.CustomResource):
420
422
  args: OauthIntegrationArgs,
421
423
  opts: Optional[pulumi.ResourceOptions] = None):
422
424
  """
425
+ > **Deprecation** This resource is deprecated and will be removed in a future major version release. Please use OauthIntegrationForCustomClients or OauthIntegrationForPartnerApplications instead. <deprecation>
426
+
423
427
  ## Example Usage
424
428
 
425
429
  ```python