pulumi-snowflake 1.2.0a1743489585__py3-none-any.whl → 1.2.0a1744183688__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 +1 -0
- pulumi_snowflake/_inputs.py +12288 -12287
- pulumi_snowflake/account.py +186 -185
- pulumi_snowflake/account_authentication_policy_attachment.py +15 -14
- pulumi_snowflake/account_parameter.py +29 -28
- pulumi_snowflake/account_password_policy_attachment.py +15 -14
- pulumi_snowflake/account_role.py +32 -31
- pulumi_snowflake/alert.py +120 -119
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +158 -157
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +144 -143
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +154 -153
- pulumi_snowflake/api_integration.py +203 -202
- pulumi_snowflake/authentication_policy.py +134 -133
- pulumi_snowflake/config/__init__.py +1 -0
- pulumi_snowflake/config/__init__.pyi +1 -0
- pulumi_snowflake/config/outputs.py +16 -15
- pulumi_snowflake/config/vars.py +1 -0
- pulumi_snowflake/cortex_search_service.py +141 -140
- pulumi_snowflake/database.py +288 -287
- pulumi_snowflake/database_role.py +50 -49
- pulumi_snowflake/dynamic_table.py +218 -217
- pulumi_snowflake/email_notification_integration.py +56 -55
- pulumi_snowflake/execute.py +50 -49
- pulumi_snowflake/external_function.py +225 -224
- pulumi_snowflake/external_oauth_integration.py +232 -231
- pulumi_snowflake/external_table.py +197 -196
- pulumi_snowflake/external_volume.py +50 -49
- pulumi_snowflake/failover_group.py +106 -105
- pulumi_snowflake/file_format.py +512 -511
- pulumi_snowflake/function_java.py +249 -248
- pulumi_snowflake/function_javascript.py +193 -192
- pulumi_snowflake/function_python.py +263 -262
- pulumi_snowflake/function_scala.py +249 -248
- pulumi_snowflake/function_sql.py +179 -178
- pulumi_snowflake/get_account_roles.py +12 -11
- pulumi_snowflake/get_accounts.py +12 -11
- pulumi_snowflake/get_alerts.py +17 -16
- pulumi_snowflake/get_connections.py +7 -6
- pulumi_snowflake/get_cortex_search_services.py +12 -11
- pulumi_snowflake/get_current_account.py +5 -4
- pulumi_snowflake/get_current_role.py +3 -2
- pulumi_snowflake/get_database.py +15 -14
- pulumi_snowflake/get_database_role.py +14 -13
- pulumi_snowflake/get_database_roles.py +12 -11
- pulumi_snowflake/get_databases.py +22 -21
- pulumi_snowflake/get_dynamic_tables.py +7 -6
- pulumi_snowflake/get_external_functions.py +12 -11
- pulumi_snowflake/get_external_tables.py +12 -11
- pulumi_snowflake/get_failover_groups.py +7 -6
- pulumi_snowflake/get_file_formats.py +12 -11
- pulumi_snowflake/get_functions.py +12 -11
- pulumi_snowflake/get_grants.py +2 -1
- pulumi_snowflake/get_masking_policies.py +12 -11
- pulumi_snowflake/get_materialized_views.py +12 -11
- pulumi_snowflake/get_network_policies.py +12 -11
- pulumi_snowflake/get_parameters.py +27 -26
- pulumi_snowflake/get_pipes.py +12 -11
- pulumi_snowflake/get_procedures.py +12 -11
- pulumi_snowflake/get_resource_monitors.py +7 -6
- pulumi_snowflake/get_row_access_policies.py +12 -11
- pulumi_snowflake/get_schemas.py +22 -21
- pulumi_snowflake/get_secrets.py +12 -11
- pulumi_snowflake/get_security_integrations.py +12 -11
- pulumi_snowflake/get_sequences.py +12 -11
- pulumi_snowflake/get_shares.py +7 -6
- pulumi_snowflake/get_stages.py +12 -11
- pulumi_snowflake/get_storage_integrations.py +2 -1
- pulumi_snowflake/get_streamlits.py +12 -11
- pulumi_snowflake/get_streams.py +17 -16
- pulumi_snowflake/get_system_generate_scim_access_token.py +8 -7
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +8 -7
- pulumi_snowflake/get_system_get_private_link_config.py +11 -10
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +4 -3
- pulumi_snowflake/get_tables.py +12 -11
- pulumi_snowflake/get_tags.py +7 -6
- pulumi_snowflake/get_tasks.py +22 -21
- pulumi_snowflake/get_users.py +22 -21
- pulumi_snowflake/get_views.py +17 -16
- pulumi_snowflake/get_warehouses.py +17 -16
- pulumi_snowflake/grant_account_role.py +43 -42
- pulumi_snowflake/grant_application_role.py +43 -42
- pulumi_snowflake/grant_database_role.py +57 -56
- pulumi_snowflake/grant_ownership.py +43 -42
- pulumi_snowflake/grant_privileges_to_account_role.py +95 -94
- pulumi_snowflake/grant_privileges_to_database_role.py +95 -94
- pulumi_snowflake/grant_privileges_to_share.py +127 -126
- pulumi_snowflake/legacy_service_user.py +1039 -1038
- pulumi_snowflake/managed_account.py +113 -112
- pulumi_snowflake/masking_policy.py +106 -105
- pulumi_snowflake/materialized_view.py +120 -119
- pulumi_snowflake/network_policy.py +92 -91
- pulumi_snowflake/network_policy_attachment.py +43 -42
- pulumi_snowflake/network_rule.py +106 -105
- pulumi_snowflake/notification_integration.py +238 -237
- pulumi_snowflake/oauth_integration_for_custom_clients.py +210 -209
- pulumi_snowflake/oauth_integration_for_partner_applications.py +134 -133
- pulumi_snowflake/object_parameter.py +57 -56
- pulumi_snowflake/outputs.py +9273 -9272
- pulumi_snowflake/password_policy.py +246 -245
- pulumi_snowflake/pipe.py +148 -147
- pulumi_snowflake/primary_connection.py +55 -54
- pulumi_snowflake/procedure_java.py +267 -266
- pulumi_snowflake/procedure_javascript.py +197 -196
- pulumi_snowflake/procedure_python.py +267 -266
- pulumi_snowflake/procedure_scala.py +267 -266
- pulumi_snowflake/procedure_sql.py +197 -196
- pulumi_snowflake/provider.py +303 -302
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +134 -133
- pulumi_snowflake/row_access_policy.py +78 -77
- pulumi_snowflake/saml2_integration.py +246 -245
- pulumi_snowflake/schema.py +316 -315
- pulumi_snowflake/scim_integration.py +106 -105
- pulumi_snowflake/secondary_connection.py +57 -56
- pulumi_snowflake/secondary_database.py +288 -287
- pulumi_snowflake/secret_with_authorization_code_grant.py +109 -108
- pulumi_snowflake/secret_with_basic_authentication.py +95 -94
- pulumi_snowflake/secret_with_client_credentials.py +99 -98
- pulumi_snowflake/secret_with_generic_string.py +81 -80
- pulumi_snowflake/sequence.py +99 -98
- pulumi_snowflake/service_user.py +1015 -1014
- pulumi_snowflake/share.py +50 -49
- pulumi_snowflake/shared_database.py +246 -245
- pulumi_snowflake/stage.py +190 -189
- pulumi_snowflake/storage_integration.py +166 -165
- pulumi_snowflake/stream_on_directory_table.py +100 -99
- pulumi_snowflake/stream_on_external_table.py +114 -113
- pulumi_snowflake/stream_on_table.py +124 -123
- pulumi_snowflake/stream_on_view.py +124 -123
- pulumi_snowflake/streamlit.py +148 -147
- pulumi_snowflake/table.py +113 -112
- pulumi_snowflake/table_column_masking_policy_application.py +43 -42
- pulumi_snowflake/table_constraint.py +155 -154
- pulumi_snowflake/tag.py +92 -91
- pulumi_snowflake/tag_association.py +71 -70
- pulumi_snowflake/task.py +1002 -1001
- pulumi_snowflake/user.py +1101 -1100
- pulumi_snowflake/user_authentication_policy_attachment.py +29 -28
- pulumi_snowflake/user_password_policy_attachment.py +29 -28
- pulumi_snowflake/user_public_keys.py +43 -42
- pulumi_snowflake/view.py +136 -135
- pulumi_snowflake/warehouse.py +232 -231
- {pulumi_snowflake-1.2.0a1743489585.dist-info → pulumi_snowflake-1.2.0a1744183688.dist-info}/METADATA +1 -1
- pulumi_snowflake-1.2.0a1744183688.dist-info/RECORD +148 -0
- pulumi_snowflake-1.2.0a1743489585.dist-info/RECORD +0 -148
- {pulumi_snowflake-1.2.0a1743489585.dist-info → pulumi_snowflake-1.2.0a1744183688.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-1.2.0a1743489585.dist-info → pulumi_snowflake-1.2.0a1744183688.dist-info}/top_level.txt +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
+
import builtins
|
|
5
6
|
import copy
|
|
6
7
|
import warnings
|
|
7
8
|
import sys
|
|
@@ -21,26 +22,26 @@ __all__ = ['ResourceMonitorArgs', 'ResourceMonitor']
|
|
|
21
22
|
@pulumi.input_type
|
|
22
23
|
class ResourceMonitorArgs:
|
|
23
24
|
def __init__(__self__, *,
|
|
24
|
-
credit_quota: Optional[pulumi.Input[int]] = None,
|
|
25
|
-
end_timestamp: Optional[pulumi.Input[str]] = None,
|
|
26
|
-
frequency: Optional[pulumi.Input[str]] = None,
|
|
27
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
28
|
-
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
29
|
-
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
30
|
-
start_timestamp: Optional[pulumi.Input[str]] = None,
|
|
31
|
-
suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
|
|
32
|
-
suspend_trigger: Optional[pulumi.Input[int]] = None):
|
|
25
|
+
credit_quota: Optional[pulumi.Input[builtins.int]] = None,
|
|
26
|
+
end_timestamp: Optional[pulumi.Input[builtins.str]] = None,
|
|
27
|
+
frequency: Optional[pulumi.Input[builtins.str]] = None,
|
|
28
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
29
|
+
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.int]]]] = None,
|
|
30
|
+
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
31
|
+
start_timestamp: Optional[pulumi.Input[builtins.str]] = None,
|
|
32
|
+
suspend_immediate_trigger: Optional[pulumi.Input[builtins.int]] = None,
|
|
33
|
+
suspend_trigger: Optional[pulumi.Input[builtins.int]] = None):
|
|
33
34
|
"""
|
|
34
35
|
The set of arguments for constructing a ResourceMonitor resource.
|
|
35
|
-
:param pulumi.Input[int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
36
|
-
:param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
37
|
-
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
38
|
-
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
39
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
40
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
41
|
-
:param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
42
|
-
:param pulumi.Input[int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
43
|
-
:param pulumi.Input[int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
36
|
+
:param pulumi.Input[builtins.int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
37
|
+
:param pulumi.Input[builtins.str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
38
|
+
:param pulumi.Input[builtins.str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
39
|
+
:param pulumi.Input[builtins.str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
40
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
41
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
42
|
+
:param pulumi.Input[builtins.str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
43
|
+
:param pulumi.Input[builtins.int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
44
|
+
:param pulumi.Input[builtins.int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
44
45
|
"""
|
|
45
46
|
if credit_quota is not None:
|
|
46
47
|
pulumi.set(__self__, "credit_quota", credit_quota)
|
|
@@ -63,140 +64,140 @@ class ResourceMonitorArgs:
|
|
|
63
64
|
|
|
64
65
|
@property
|
|
65
66
|
@pulumi.getter(name="creditQuota")
|
|
66
|
-
def credit_quota(self) -> Optional[pulumi.Input[int]]:
|
|
67
|
+
def credit_quota(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
67
68
|
"""
|
|
68
69
|
The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
69
70
|
"""
|
|
70
71
|
return pulumi.get(self, "credit_quota")
|
|
71
72
|
|
|
72
73
|
@credit_quota.setter
|
|
73
|
-
def credit_quota(self, value: Optional[pulumi.Input[int]]):
|
|
74
|
+
def credit_quota(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
74
75
|
pulumi.set(self, "credit_quota", value)
|
|
75
76
|
|
|
76
77
|
@property
|
|
77
78
|
@pulumi.getter(name="endTimestamp")
|
|
78
|
-
def end_timestamp(self) -> Optional[pulumi.Input[str]]:
|
|
79
|
+
def end_timestamp(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
79
80
|
"""
|
|
80
81
|
The date and time when the resource monitor suspends the assigned warehouses.
|
|
81
82
|
"""
|
|
82
83
|
return pulumi.get(self, "end_timestamp")
|
|
83
84
|
|
|
84
85
|
@end_timestamp.setter
|
|
85
|
-
def end_timestamp(self, value: Optional[pulumi.Input[str]]):
|
|
86
|
+
def end_timestamp(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
86
87
|
pulumi.set(self, "end_timestamp", value)
|
|
87
88
|
|
|
88
89
|
@property
|
|
89
90
|
@pulumi.getter
|
|
90
|
-
def frequency(self) -> Optional[pulumi.Input[str]]:
|
|
91
|
+
def frequency(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
91
92
|
"""
|
|
92
93
|
The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
93
94
|
"""
|
|
94
95
|
return pulumi.get(self, "frequency")
|
|
95
96
|
|
|
96
97
|
@frequency.setter
|
|
97
|
-
def frequency(self, value: Optional[pulumi.Input[str]]):
|
|
98
|
+
def frequency(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
98
99
|
pulumi.set(self, "frequency", value)
|
|
99
100
|
|
|
100
101
|
@property
|
|
101
102
|
@pulumi.getter
|
|
102
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
103
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
103
104
|
"""
|
|
104
105
|
Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
105
106
|
"""
|
|
106
107
|
return pulumi.get(self, "name")
|
|
107
108
|
|
|
108
109
|
@name.setter
|
|
109
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
110
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
110
111
|
pulumi.set(self, "name", value)
|
|
111
112
|
|
|
112
113
|
@property
|
|
113
114
|
@pulumi.getter(name="notifyTriggers")
|
|
114
|
-
def notify_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
115
|
+
def notify_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.int]]]]:
|
|
115
116
|
"""
|
|
116
117
|
Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
117
118
|
"""
|
|
118
119
|
return pulumi.get(self, "notify_triggers")
|
|
119
120
|
|
|
120
121
|
@notify_triggers.setter
|
|
121
|
-
def notify_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
122
|
+
def notify_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.int]]]]):
|
|
122
123
|
pulumi.set(self, "notify_triggers", value)
|
|
123
124
|
|
|
124
125
|
@property
|
|
125
126
|
@pulumi.getter(name="notifyUsers")
|
|
126
|
-
def notify_users(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
127
|
+
def notify_users(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
127
128
|
"""
|
|
128
129
|
Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
129
130
|
"""
|
|
130
131
|
return pulumi.get(self, "notify_users")
|
|
131
132
|
|
|
132
133
|
@notify_users.setter
|
|
133
|
-
def notify_users(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
134
|
+
def notify_users(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
134
135
|
pulumi.set(self, "notify_users", value)
|
|
135
136
|
|
|
136
137
|
@property
|
|
137
138
|
@pulumi.getter(name="startTimestamp")
|
|
138
|
-
def start_timestamp(self) -> Optional[pulumi.Input[str]]:
|
|
139
|
+
def start_timestamp(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
139
140
|
"""
|
|
140
141
|
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
141
142
|
"""
|
|
142
143
|
return pulumi.get(self, "start_timestamp")
|
|
143
144
|
|
|
144
145
|
@start_timestamp.setter
|
|
145
|
-
def start_timestamp(self, value: Optional[pulumi.Input[str]]):
|
|
146
|
+
def start_timestamp(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
146
147
|
pulumi.set(self, "start_timestamp", value)
|
|
147
148
|
|
|
148
149
|
@property
|
|
149
150
|
@pulumi.getter(name="suspendImmediateTrigger")
|
|
150
|
-
def suspend_immediate_trigger(self) -> Optional[pulumi.Input[int]]:
|
|
151
|
+
def suspend_immediate_trigger(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
151
152
|
"""
|
|
152
153
|
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
153
154
|
"""
|
|
154
155
|
return pulumi.get(self, "suspend_immediate_trigger")
|
|
155
156
|
|
|
156
157
|
@suspend_immediate_trigger.setter
|
|
157
|
-
def suspend_immediate_trigger(self, value: Optional[pulumi.Input[int]]):
|
|
158
|
+
def suspend_immediate_trigger(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
158
159
|
pulumi.set(self, "suspend_immediate_trigger", value)
|
|
159
160
|
|
|
160
161
|
@property
|
|
161
162
|
@pulumi.getter(name="suspendTrigger")
|
|
162
|
-
def suspend_trigger(self) -> Optional[pulumi.Input[int]]:
|
|
163
|
+
def suspend_trigger(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
163
164
|
"""
|
|
164
165
|
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
165
166
|
"""
|
|
166
167
|
return pulumi.get(self, "suspend_trigger")
|
|
167
168
|
|
|
168
169
|
@suspend_trigger.setter
|
|
169
|
-
def suspend_trigger(self, value: Optional[pulumi.Input[int]]):
|
|
170
|
+
def suspend_trigger(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
170
171
|
pulumi.set(self, "suspend_trigger", value)
|
|
171
172
|
|
|
172
173
|
|
|
173
174
|
@pulumi.input_type
|
|
174
175
|
class _ResourceMonitorState:
|
|
175
176
|
def __init__(__self__, *,
|
|
176
|
-
credit_quota: Optional[pulumi.Input[int]] = None,
|
|
177
|
-
end_timestamp: Optional[pulumi.Input[str]] = None,
|
|
178
|
-
frequency: Optional[pulumi.Input[str]] = None,
|
|
179
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
180
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
181
|
-
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
182
|
-
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
177
|
+
credit_quota: Optional[pulumi.Input[builtins.int]] = None,
|
|
178
|
+
end_timestamp: Optional[pulumi.Input[builtins.str]] = None,
|
|
179
|
+
frequency: Optional[pulumi.Input[builtins.str]] = None,
|
|
180
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
181
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
182
|
+
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.int]]]] = None,
|
|
183
|
+
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
183
184
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceMonitorShowOutputArgs']]]] = None,
|
|
184
|
-
start_timestamp: Optional[pulumi.Input[str]] = None,
|
|
185
|
-
suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
|
|
186
|
-
suspend_trigger: Optional[pulumi.Input[int]] = None):
|
|
185
|
+
start_timestamp: Optional[pulumi.Input[builtins.str]] = None,
|
|
186
|
+
suspend_immediate_trigger: Optional[pulumi.Input[builtins.int]] = None,
|
|
187
|
+
suspend_trigger: Optional[pulumi.Input[builtins.int]] = None):
|
|
187
188
|
"""
|
|
188
189
|
Input properties used for looking up and filtering ResourceMonitor resources.
|
|
189
|
-
:param pulumi.Input[int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
190
|
-
:param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
191
|
-
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
192
|
-
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
193
|
-
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
194
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
195
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
190
|
+
:param pulumi.Input[builtins.int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
191
|
+
:param pulumi.Input[builtins.str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
192
|
+
:param pulumi.Input[builtins.str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
193
|
+
:param pulumi.Input[builtins.str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
194
|
+
:param pulumi.Input[builtins.str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
195
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
196
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
196
197
|
:param pulumi.Input[Sequence[pulumi.Input['ResourceMonitorShowOutputArgs']]] show_outputs: Outputs the result of `SHOW RESOURCE MONITORS` for the given resource monitor.
|
|
197
|
-
:param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
198
|
-
:param pulumi.Input[int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
199
|
-
:param pulumi.Input[int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
198
|
+
:param pulumi.Input[builtins.str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
199
|
+
:param pulumi.Input[builtins.int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
200
|
+
:param pulumi.Input[builtins.int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
200
201
|
"""
|
|
201
202
|
if credit_quota is not None:
|
|
202
203
|
pulumi.set(__self__, "credit_quota", credit_quota)
|
|
@@ -223,86 +224,86 @@ class _ResourceMonitorState:
|
|
|
223
224
|
|
|
224
225
|
@property
|
|
225
226
|
@pulumi.getter(name="creditQuota")
|
|
226
|
-
def credit_quota(self) -> Optional[pulumi.Input[int]]:
|
|
227
|
+
def credit_quota(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
227
228
|
"""
|
|
228
229
|
The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
229
230
|
"""
|
|
230
231
|
return pulumi.get(self, "credit_quota")
|
|
231
232
|
|
|
232
233
|
@credit_quota.setter
|
|
233
|
-
def credit_quota(self, value: Optional[pulumi.Input[int]]):
|
|
234
|
+
def credit_quota(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
234
235
|
pulumi.set(self, "credit_quota", value)
|
|
235
236
|
|
|
236
237
|
@property
|
|
237
238
|
@pulumi.getter(name="endTimestamp")
|
|
238
|
-
def end_timestamp(self) -> Optional[pulumi.Input[str]]:
|
|
239
|
+
def end_timestamp(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
239
240
|
"""
|
|
240
241
|
The date and time when the resource monitor suspends the assigned warehouses.
|
|
241
242
|
"""
|
|
242
243
|
return pulumi.get(self, "end_timestamp")
|
|
243
244
|
|
|
244
245
|
@end_timestamp.setter
|
|
245
|
-
def end_timestamp(self, value: Optional[pulumi.Input[str]]):
|
|
246
|
+
def end_timestamp(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
246
247
|
pulumi.set(self, "end_timestamp", value)
|
|
247
248
|
|
|
248
249
|
@property
|
|
249
250
|
@pulumi.getter
|
|
250
|
-
def frequency(self) -> Optional[pulumi.Input[str]]:
|
|
251
|
+
def frequency(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
251
252
|
"""
|
|
252
253
|
The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
253
254
|
"""
|
|
254
255
|
return pulumi.get(self, "frequency")
|
|
255
256
|
|
|
256
257
|
@frequency.setter
|
|
257
|
-
def frequency(self, value: Optional[pulumi.Input[str]]):
|
|
258
|
+
def frequency(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
258
259
|
pulumi.set(self, "frequency", value)
|
|
259
260
|
|
|
260
261
|
@property
|
|
261
262
|
@pulumi.getter(name="fullyQualifiedName")
|
|
262
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
263
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
263
264
|
"""
|
|
264
265
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
265
266
|
"""
|
|
266
267
|
return pulumi.get(self, "fully_qualified_name")
|
|
267
268
|
|
|
268
269
|
@fully_qualified_name.setter
|
|
269
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
270
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
270
271
|
pulumi.set(self, "fully_qualified_name", value)
|
|
271
272
|
|
|
272
273
|
@property
|
|
273
274
|
@pulumi.getter
|
|
274
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
275
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
275
276
|
"""
|
|
276
277
|
Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
277
278
|
"""
|
|
278
279
|
return pulumi.get(self, "name")
|
|
279
280
|
|
|
280
281
|
@name.setter
|
|
281
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
282
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
282
283
|
pulumi.set(self, "name", value)
|
|
283
284
|
|
|
284
285
|
@property
|
|
285
286
|
@pulumi.getter(name="notifyTriggers")
|
|
286
|
-
def notify_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
287
|
+
def notify_triggers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.int]]]]:
|
|
287
288
|
"""
|
|
288
289
|
Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
289
290
|
"""
|
|
290
291
|
return pulumi.get(self, "notify_triggers")
|
|
291
292
|
|
|
292
293
|
@notify_triggers.setter
|
|
293
|
-
def notify_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
294
|
+
def notify_triggers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.int]]]]):
|
|
294
295
|
pulumi.set(self, "notify_triggers", value)
|
|
295
296
|
|
|
296
297
|
@property
|
|
297
298
|
@pulumi.getter(name="notifyUsers")
|
|
298
|
-
def notify_users(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
299
|
+
def notify_users(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
|
299
300
|
"""
|
|
300
301
|
Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
301
302
|
"""
|
|
302
303
|
return pulumi.get(self, "notify_users")
|
|
303
304
|
|
|
304
305
|
@notify_users.setter
|
|
305
|
-
def notify_users(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
306
|
+
def notify_users(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
|
306
307
|
pulumi.set(self, "notify_users", value)
|
|
307
308
|
|
|
308
309
|
@property
|
|
@@ -319,38 +320,38 @@ class _ResourceMonitorState:
|
|
|
319
320
|
|
|
320
321
|
@property
|
|
321
322
|
@pulumi.getter(name="startTimestamp")
|
|
322
|
-
def start_timestamp(self) -> Optional[pulumi.Input[str]]:
|
|
323
|
+
def start_timestamp(self) -> Optional[pulumi.Input[builtins.str]]:
|
|
323
324
|
"""
|
|
324
325
|
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
325
326
|
"""
|
|
326
327
|
return pulumi.get(self, "start_timestamp")
|
|
327
328
|
|
|
328
329
|
@start_timestamp.setter
|
|
329
|
-
def start_timestamp(self, value: Optional[pulumi.Input[str]]):
|
|
330
|
+
def start_timestamp(self, value: Optional[pulumi.Input[builtins.str]]):
|
|
330
331
|
pulumi.set(self, "start_timestamp", value)
|
|
331
332
|
|
|
332
333
|
@property
|
|
333
334
|
@pulumi.getter(name="suspendImmediateTrigger")
|
|
334
|
-
def suspend_immediate_trigger(self) -> Optional[pulumi.Input[int]]:
|
|
335
|
+
def suspend_immediate_trigger(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
335
336
|
"""
|
|
336
337
|
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
337
338
|
"""
|
|
338
339
|
return pulumi.get(self, "suspend_immediate_trigger")
|
|
339
340
|
|
|
340
341
|
@suspend_immediate_trigger.setter
|
|
341
|
-
def suspend_immediate_trigger(self, value: Optional[pulumi.Input[int]]):
|
|
342
|
+
def suspend_immediate_trigger(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
342
343
|
pulumi.set(self, "suspend_immediate_trigger", value)
|
|
343
344
|
|
|
344
345
|
@property
|
|
345
346
|
@pulumi.getter(name="suspendTrigger")
|
|
346
|
-
def suspend_trigger(self) -> Optional[pulumi.Input[int]]:
|
|
347
|
+
def suspend_trigger(self) -> Optional[pulumi.Input[builtins.int]]:
|
|
347
348
|
"""
|
|
348
349
|
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
349
350
|
"""
|
|
350
351
|
return pulumi.get(self, "suspend_trigger")
|
|
351
352
|
|
|
352
353
|
@suspend_trigger.setter
|
|
353
|
-
def suspend_trigger(self, value: Optional[pulumi.Input[int]]):
|
|
354
|
+
def suspend_trigger(self, value: Optional[pulumi.Input[builtins.int]]):
|
|
354
355
|
pulumi.set(self, "suspend_trigger", value)
|
|
355
356
|
|
|
356
357
|
|
|
@@ -359,15 +360,15 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
359
360
|
def __init__(__self__,
|
|
360
361
|
resource_name: str,
|
|
361
362
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
362
|
-
credit_quota: Optional[pulumi.Input[int]] = None,
|
|
363
|
-
end_timestamp: Optional[pulumi.Input[str]] = None,
|
|
364
|
-
frequency: Optional[pulumi.Input[str]] = None,
|
|
365
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
366
|
-
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
367
|
-
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
368
|
-
start_timestamp: Optional[pulumi.Input[str]] = None,
|
|
369
|
-
suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
|
|
370
|
-
suspend_trigger: Optional[pulumi.Input[int]] = None,
|
|
363
|
+
credit_quota: Optional[pulumi.Input[builtins.int]] = None,
|
|
364
|
+
end_timestamp: Optional[pulumi.Input[builtins.str]] = None,
|
|
365
|
+
frequency: Optional[pulumi.Input[builtins.str]] = None,
|
|
366
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
367
|
+
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.int]]]] = None,
|
|
368
|
+
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
369
|
+
start_timestamp: Optional[pulumi.Input[builtins.str]] = None,
|
|
370
|
+
suspend_immediate_trigger: Optional[pulumi.Input[builtins.int]] = None,
|
|
371
|
+
suspend_trigger: Optional[pulumi.Input[builtins.int]] = None,
|
|
371
372
|
__props__=None):
|
|
372
373
|
"""
|
|
373
374
|
## Import
|
|
@@ -378,15 +379,15 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
378
379
|
|
|
379
380
|
:param str resource_name: The name of the resource.
|
|
380
381
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
381
|
-
:param pulumi.Input[int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
382
|
-
:param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
383
|
-
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
384
|
-
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
385
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
386
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
387
|
-
:param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
388
|
-
:param pulumi.Input[int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
389
|
-
:param pulumi.Input[int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
382
|
+
:param pulumi.Input[builtins.int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
383
|
+
:param pulumi.Input[builtins.str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
384
|
+
:param pulumi.Input[builtins.str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
385
|
+
:param pulumi.Input[builtins.str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
386
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
387
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
388
|
+
:param pulumi.Input[builtins.str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
389
|
+
:param pulumi.Input[builtins.int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
390
|
+
:param pulumi.Input[builtins.int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
390
391
|
"""
|
|
391
392
|
...
|
|
392
393
|
@overload
|
|
@@ -416,15 +417,15 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
416
417
|
def _internal_init(__self__,
|
|
417
418
|
resource_name: str,
|
|
418
419
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
419
|
-
credit_quota: Optional[pulumi.Input[int]] = None,
|
|
420
|
-
end_timestamp: Optional[pulumi.Input[str]] = None,
|
|
421
|
-
frequency: Optional[pulumi.Input[str]] = None,
|
|
422
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
423
|
-
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
424
|
-
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
425
|
-
start_timestamp: Optional[pulumi.Input[str]] = None,
|
|
426
|
-
suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
|
|
427
|
-
suspend_trigger: Optional[pulumi.Input[int]] = None,
|
|
420
|
+
credit_quota: Optional[pulumi.Input[builtins.int]] = None,
|
|
421
|
+
end_timestamp: Optional[pulumi.Input[builtins.str]] = None,
|
|
422
|
+
frequency: Optional[pulumi.Input[builtins.str]] = None,
|
|
423
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
424
|
+
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.int]]]] = None,
|
|
425
|
+
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
426
|
+
start_timestamp: Optional[pulumi.Input[builtins.str]] = None,
|
|
427
|
+
suspend_immediate_trigger: Optional[pulumi.Input[builtins.int]] = None,
|
|
428
|
+
suspend_trigger: Optional[pulumi.Input[builtins.int]] = None,
|
|
428
429
|
__props__=None):
|
|
429
430
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
430
431
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -455,17 +456,17 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
455
456
|
def get(resource_name: str,
|
|
456
457
|
id: pulumi.Input[str],
|
|
457
458
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
458
|
-
credit_quota: Optional[pulumi.Input[int]] = None,
|
|
459
|
-
end_timestamp: Optional[pulumi.Input[str]] = None,
|
|
460
|
-
frequency: Optional[pulumi.Input[str]] = None,
|
|
461
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
462
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
463
|
-
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
464
|
-
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
459
|
+
credit_quota: Optional[pulumi.Input[builtins.int]] = None,
|
|
460
|
+
end_timestamp: Optional[pulumi.Input[builtins.str]] = None,
|
|
461
|
+
frequency: Optional[pulumi.Input[builtins.str]] = None,
|
|
462
|
+
fully_qualified_name: Optional[pulumi.Input[builtins.str]] = None,
|
|
463
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
|
464
|
+
notify_triggers: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.int]]]] = None,
|
|
465
|
+
notify_users: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
|
465
466
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ResourceMonitorShowOutputArgs', 'ResourceMonitorShowOutputArgsDict']]]]] = None,
|
|
466
|
-
start_timestamp: Optional[pulumi.Input[str]] = None,
|
|
467
|
-
suspend_immediate_trigger: Optional[pulumi.Input[int]] = None,
|
|
468
|
-
suspend_trigger: Optional[pulumi.Input[int]] = None) -> 'ResourceMonitor':
|
|
467
|
+
start_timestamp: Optional[pulumi.Input[builtins.str]] = None,
|
|
468
|
+
suspend_immediate_trigger: Optional[pulumi.Input[builtins.int]] = None,
|
|
469
|
+
suspend_trigger: Optional[pulumi.Input[builtins.int]] = None) -> 'ResourceMonitor':
|
|
469
470
|
"""
|
|
470
471
|
Get an existing ResourceMonitor resource's state with the given name, id, and optional extra
|
|
471
472
|
properties used to qualify the lookup.
|
|
@@ -473,17 +474,17 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
473
474
|
:param str resource_name: The unique name of the resulting resource.
|
|
474
475
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
475
476
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
476
|
-
:param pulumi.Input[int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
477
|
-
:param pulumi.Input[str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
478
|
-
:param pulumi.Input[str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
479
|
-
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
480
|
-
:param pulumi.Input[str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
481
|
-
:param pulumi.Input[Sequence[pulumi.Input[int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
482
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
477
|
+
:param pulumi.Input[builtins.int] credit_quota: The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
478
|
+
:param pulumi.Input[builtins.str] end_timestamp: The date and time when the resource monitor suspends the assigned warehouses.
|
|
479
|
+
:param pulumi.Input[builtins.str] frequency: The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
480
|
+
:param pulumi.Input[builtins.str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
481
|
+
:param pulumi.Input[builtins.str] name: Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
482
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.int]]] notify_triggers: Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
483
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] notify_users: Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
483
484
|
:param pulumi.Input[Sequence[pulumi.Input[Union['ResourceMonitorShowOutputArgs', 'ResourceMonitorShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW RESOURCE MONITORS` for the given resource monitor.
|
|
484
|
-
:param pulumi.Input[str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
485
|
-
:param pulumi.Input[int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
486
|
-
:param pulumi.Input[int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
485
|
+
:param pulumi.Input[builtins.str] start_timestamp: The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
486
|
+
:param pulumi.Input[builtins.int] suspend_immediate_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
487
|
+
:param pulumi.Input[builtins.int] suspend_trigger: Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
487
488
|
"""
|
|
488
489
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
489
490
|
|
|
@@ -504,7 +505,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
504
505
|
|
|
505
506
|
@property
|
|
506
507
|
@pulumi.getter(name="creditQuota")
|
|
507
|
-
def credit_quota(self) -> pulumi.Output[Optional[int]]:
|
|
508
|
+
def credit_quota(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
508
509
|
"""
|
|
509
510
|
The number of credits allocated to the resource monitor per frequency interval. When total usage for all warehouses assigned to the monitor reaches this number for the current frequency interval, the resource monitor is considered to be at 100% of quota.
|
|
510
511
|
"""
|
|
@@ -512,7 +513,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
512
513
|
|
|
513
514
|
@property
|
|
514
515
|
@pulumi.getter(name="endTimestamp")
|
|
515
|
-
def end_timestamp(self) -> pulumi.Output[Optional[str]]:
|
|
516
|
+
def end_timestamp(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
516
517
|
"""
|
|
517
518
|
The date and time when the resource monitor suspends the assigned warehouses.
|
|
518
519
|
"""
|
|
@@ -520,7 +521,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
520
521
|
|
|
521
522
|
@property
|
|
522
523
|
@pulumi.getter
|
|
523
|
-
def frequency(self) -> pulumi.Output[Optional[str]]:
|
|
524
|
+
def frequency(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
524
525
|
"""
|
|
525
526
|
The frequency interval at which the credit usage resets to 0. Valid values are (case-insensitive): `MONTHLY` | `DAILY` | `WEEKLY` | `YEARLY` | `NEVER`. If you set a `frequency` for a resource monitor, you must also set `start_timestamp`. If you specify `NEVER` for the frequency, the credit usage for the warehouse does not reset. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
526
527
|
"""
|
|
@@ -528,7 +529,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
528
529
|
|
|
529
530
|
@property
|
|
530
531
|
@pulumi.getter(name="fullyQualifiedName")
|
|
531
|
-
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
532
|
+
def fully_qualified_name(self) -> pulumi.Output[builtins.str]:
|
|
532
533
|
"""
|
|
533
534
|
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
534
535
|
"""
|
|
@@ -536,7 +537,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
536
537
|
|
|
537
538
|
@property
|
|
538
539
|
@pulumi.getter
|
|
539
|
-
def name(self) -> pulumi.Output[str]:
|
|
540
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
|
540
541
|
"""
|
|
541
542
|
Identifier for the resource monitor; must be unique for your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
542
543
|
"""
|
|
@@ -544,7 +545,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
544
545
|
|
|
545
546
|
@property
|
|
546
547
|
@pulumi.getter(name="notifyTriggers")
|
|
547
|
-
def notify_triggers(self) -> pulumi.Output[Optional[Sequence[int]]]:
|
|
548
|
+
def notify_triggers(self) -> pulumi.Output[Optional[Sequence[builtins.int]]]:
|
|
548
549
|
"""
|
|
549
550
|
Specifies a list of percentages of the credit quota. After reaching any of the values the users passed in the notify_users field will be notified (to receive the notification they should have notifications enabled). Values over 100 are supported.
|
|
550
551
|
"""
|
|
@@ -552,7 +553,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
552
553
|
|
|
553
554
|
@property
|
|
554
555
|
@pulumi.getter(name="notifyUsers")
|
|
555
|
-
def notify_users(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
556
|
+
def notify_users(self) -> pulumi.Output[Optional[Sequence[builtins.str]]]:
|
|
556
557
|
"""
|
|
557
558
|
Specifies the list of users (their identifiers) to receive email notifications on resource monitors. For more information about this resource, see docs.
|
|
558
559
|
"""
|
|
@@ -568,7 +569,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
568
569
|
|
|
569
570
|
@property
|
|
570
571
|
@pulumi.getter(name="startTimestamp")
|
|
571
|
-
def start_timestamp(self) -> pulumi.Output[Optional[str]]:
|
|
572
|
+
def start_timestamp(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
572
573
|
"""
|
|
573
574
|
The date and time when the resource monitor starts monitoring credit usage for the assigned warehouses. If you set a `start_timestamp` for a resource monitor, you must also set `frequency`. After removing this field from the config, the previously set value will be preserved on the Snowflake side, not the default value. That's due to Snowflake limitation and the lack of unset functionality for this parameter.
|
|
574
575
|
"""
|
|
@@ -576,7 +577,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
576
577
|
|
|
577
578
|
@property
|
|
578
579
|
@pulumi.getter(name="suspendImmediateTrigger")
|
|
579
|
-
def suspend_immediate_trigger(self) -> pulumi.Output[Optional[int]]:
|
|
580
|
+
def suspend_immediate_trigger(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
580
581
|
"""
|
|
581
582
|
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses immediately cancel any currently running queries or statements. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
582
583
|
"""
|
|
@@ -584,7 +585,7 @@ class ResourceMonitor(pulumi.CustomResource):
|
|
|
584
585
|
|
|
585
586
|
@property
|
|
586
587
|
@pulumi.getter(name="suspendTrigger")
|
|
587
|
-
def suspend_trigger(self) -> pulumi.Output[Optional[int]]:
|
|
588
|
+
def suspend_trigger(self) -> pulumi.Output[Optional[builtins.int]]:
|
|
588
589
|
"""
|
|
589
590
|
Represents a numeric value specified as a percentage of the credit quota. Values over 100 are supported. After reaching this value, all assigned warehouses while allowing currently running queries to complete will be suspended. No new queries can be executed by the warehouses until the credit quota for the resource monitor is increased. In addition, this action sends a notification to all users who have enabled notifications for themselves.
|
|
590
591
|
"""
|