pulumi-ns1 3.7.0a1757053192__tar.gz → 3.7.0a1757128834__tar.gz

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 (43) hide show
  1. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/PKG-INFO +1 -1
  2. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/_inputs.py +34 -0
  3. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/alert.py +75 -6
  4. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/outputs.py +37 -0
  5. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/pulumi-plugin.json +1 -1
  6. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/record.py +21 -14
  7. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/redirect.py +24 -0
  8. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/user.py +10 -1
  9. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1.egg-info/PKG-INFO +1 -1
  10. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pyproject.toml +1 -1
  11. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/README.md +0 -0
  12. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/__init__.py +0 -0
  13. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/_utilities.py +0 -0
  14. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/account_whitelist.py +0 -0
  15. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/api_key.py +0 -0
  16. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/application.py +0 -0
  17. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/config/__init__.py +0 -0
  18. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/config/__init__.pyi +0 -0
  19. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/config/vars.py +0 -0
  20. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/data_feed.py +0 -0
  21. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/data_source.py +0 -0
  22. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/dataset.py +0 -0
  23. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/dnsview.py +0 -0
  24. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/get_billing_usage.py +0 -0
  25. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/get_dns_sec.py +0 -0
  26. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/get_monitoring_regions.py +0 -0
  27. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/get_networks.py +0 -0
  28. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/get_record.py +0 -0
  29. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/get_zone.py +0 -0
  30. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/monitoring_job.py +0 -0
  31. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/notify_list.py +0 -0
  32. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/provider.py +0 -0
  33. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/pulsar_job.py +0 -0
  34. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/py.typed +0 -0
  35. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/redirect_certificate.py +0 -0
  36. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/team.py +0 -0
  37. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/tsigkey.py +0 -0
  38. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1/zone.py +0 -0
  39. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1.egg-info/SOURCES.txt +0 -0
  40. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1.egg-info/dependency_links.txt +0 -0
  41. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1.egg-info/requires.txt +0 -0
  42. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/pulumi_ns1.egg-info/top_level.txt +0 -0
  43. {pulumi_ns1-3.7.0a1757053192 → pulumi_ns1-3.7.0a1757128834}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi_ns1
3
- Version: 3.7.0a1757053192
3
+ Version: 3.7.0a1757128834
4
4
  Summary: A Pulumi package for creating and managing ns1 cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -19,6 +19,8 @@ __all__ = [
19
19
  'APIKeyDnsRecordsAllowArgsDict',
20
20
  'APIKeyDnsRecordsDenyArgs',
21
21
  'APIKeyDnsRecordsDenyArgsDict',
22
+ 'AlertDataArgs',
23
+ 'AlertDataArgsDict',
22
24
  'ApplicationDefaultConfigArgs',
23
25
  'ApplicationDefaultConfigArgsDict',
24
26
  'DatasetDatatypeArgs',
@@ -179,6 +181,38 @@ class APIKeyDnsRecordsDenyArgs:
179
181
  pulumi.set(self, "zone", value)
180
182
 
181
183
 
184
+ if not MYPY:
185
+ class AlertDataArgsDict(TypedDict):
186
+ alert_at_percent: NotRequired[pulumi.Input[_builtins.int]]
187
+ """
188
+ required by the account/usage alerts, with a value between 1 and 100
189
+ """
190
+ elif False:
191
+ AlertDataArgsDict: TypeAlias = Mapping[str, Any]
192
+
193
+ @pulumi.input_type
194
+ class AlertDataArgs:
195
+ def __init__(__self__, *,
196
+ alert_at_percent: Optional[pulumi.Input[_builtins.int]] = None):
197
+ """
198
+ :param pulumi.Input[_builtins.int] alert_at_percent: required by the account/usage alerts, with a value between 1 and 100
199
+ """
200
+ if alert_at_percent is not None:
201
+ pulumi.set(__self__, "alert_at_percent", alert_at_percent)
202
+
203
+ @_builtins.property
204
+ @pulumi.getter(name="alertAtPercent")
205
+ def alert_at_percent(self) -> Optional[pulumi.Input[_builtins.int]]:
206
+ """
207
+ required by the account/usage alerts, with a value between 1 and 100
208
+ """
209
+ return pulumi.get(self, "alert_at_percent")
210
+
211
+ @alert_at_percent.setter
212
+ def alert_at_percent(self, value: Optional[pulumi.Input[_builtins.int]]):
213
+ pulumi.set(self, "alert_at_percent", value)
214
+
215
+
182
216
  if not MYPY:
183
217
  class ApplicationDefaultConfigArgsDict(TypedDict):
184
218
  http: pulumi.Input[_builtins.bool]
@@ -13,6 +13,8 @@ if sys.version_info >= (3, 11):
13
13
  else:
14
14
  from typing_extensions import NotRequired, TypedDict, TypeAlias
15
15
  from . import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
16
18
 
17
19
  __all__ = ['AlertArgs', 'Alert']
18
20
 
@@ -21,6 +23,7 @@ class AlertArgs:
21
23
  def __init__(__self__, *,
22
24
  subtype: pulumi.Input[_builtins.str],
23
25
  type: pulumi.Input[_builtins.str],
26
+ datas: Optional[pulumi.Input[Sequence[pulumi.Input['AlertDataArgs']]]] = None,
24
27
  name: Optional[pulumi.Input[_builtins.str]] = None,
25
28
  notification_lists: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
26
29
  record_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
@@ -29,6 +32,7 @@ class AlertArgs:
29
32
  The set of arguments for constructing a Alert resource.
30
33
  :param pulumi.Input[_builtins.str] subtype: The type of the alert.
31
34
  :param pulumi.Input[_builtins.str] type: The type of the alert.
35
+ :param pulumi.Input[Sequence[pulumi.Input['AlertDataArgs']]] datas: A resource block with additional settings: the name and type of them vary based on the alert type.
32
36
  :param pulumi.Input[_builtins.str] name: The free-form display name for the alert.
33
37
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] notification_lists: A list of id's for notification lists whose notifiers will be triggered by the alert.
34
38
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] record_ids: A list of record id's this alert applies to.
@@ -36,6 +40,8 @@ class AlertArgs:
36
40
  """
37
41
  pulumi.set(__self__, "subtype", subtype)
38
42
  pulumi.set(__self__, "type", type)
43
+ if datas is not None:
44
+ pulumi.set(__self__, "datas", datas)
39
45
  if name is not None:
40
46
  pulumi.set(__self__, "name", name)
41
47
  if notification_lists is not None:
@@ -69,6 +75,18 @@ class AlertArgs:
69
75
  def type(self, value: pulumi.Input[_builtins.str]):
70
76
  pulumi.set(self, "type", value)
71
77
 
78
+ @_builtins.property
79
+ @pulumi.getter
80
+ def datas(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlertDataArgs']]]]:
81
+ """
82
+ A resource block with additional settings: the name and type of them vary based on the alert type.
83
+ """
84
+ return pulumi.get(self, "datas")
85
+
86
+ @datas.setter
87
+ def datas(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AlertDataArgs']]]]):
88
+ pulumi.set(self, "datas", value)
89
+
72
90
  @_builtins.property
73
91
  @pulumi.getter
74
92
  def name(self) -> Optional[pulumi.Input[_builtins.str]]:
@@ -123,6 +141,7 @@ class _AlertState:
123
141
  def __init__(__self__, *,
124
142
  created_at: Optional[pulumi.Input[_builtins.int]] = None,
125
143
  created_by: Optional[pulumi.Input[_builtins.str]] = None,
144
+ datas: Optional[pulumi.Input[Sequence[pulumi.Input['AlertDataArgs']]]] = None,
126
145
  name: Optional[pulumi.Input[_builtins.str]] = None,
127
146
  notification_lists: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
128
147
  record_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
@@ -135,6 +154,7 @@ class _AlertState:
135
154
  Input properties used for looking up and filtering Alert resources.
136
155
  :param pulumi.Input[_builtins.int] created_at: (Read Only) The Unix timestamp representing when the alert configuration was created.
137
156
  :param pulumi.Input[_builtins.str] created_by: (Read Only) The user or apikey that created this alert.
157
+ :param pulumi.Input[Sequence[pulumi.Input['AlertDataArgs']]] datas: A resource block with additional settings: the name and type of them vary based on the alert type.
138
158
  :param pulumi.Input[_builtins.str] name: The free-form display name for the alert.
139
159
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] notification_lists: A list of id's for notification lists whose notifiers will be triggered by the alert.
140
160
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] record_ids: A list of record id's this alert applies to.
@@ -148,6 +168,8 @@ class _AlertState:
148
168
  pulumi.set(__self__, "created_at", created_at)
149
169
  if created_by is not None:
150
170
  pulumi.set(__self__, "created_by", created_by)
171
+ if datas is not None:
172
+ pulumi.set(__self__, "datas", datas)
151
173
  if name is not None:
152
174
  pulumi.set(__self__, "name", name)
153
175
  if notification_lists is not None:
@@ -189,6 +211,18 @@ class _AlertState:
189
211
  def created_by(self, value: Optional[pulumi.Input[_builtins.str]]):
190
212
  pulumi.set(self, "created_by", value)
191
213
 
214
+ @_builtins.property
215
+ @pulumi.getter
216
+ def datas(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AlertDataArgs']]]]:
217
+ """
218
+ A resource block with additional settings: the name and type of them vary based on the alert type.
219
+ """
220
+ return pulumi.get(self, "datas")
221
+
222
+ @datas.setter
223
+ def datas(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AlertDataArgs']]]]):
224
+ pulumi.set(self, "datas", value)
225
+
192
226
  @_builtins.property
193
227
  @pulumi.getter
194
228
  def name(self) -> Optional[pulumi.Input[_builtins.str]]:
@@ -292,6 +326,7 @@ class Alert(pulumi.CustomResource):
292
326
  def __init__(__self__,
293
327
  resource_name: str,
294
328
  opts: Optional[pulumi.ResourceOptions] = None,
329
+ datas: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertDataArgs', 'AlertDataArgsDict']]]]] = None,
295
330
  name: Optional[pulumi.Input[_builtins.str]] = None,
296
331
  notification_lists: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
297
332
  record_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
@@ -308,13 +343,23 @@ class Alert(pulumi.CustomResource):
308
343
  import pulumi
309
344
  import pulumi_ns1 as ns1
310
345
 
311
- example = ns1.Alert("example",
312
- name="Example Alert",
346
+ example_zone_alert = ns1.Alert("example_zone_alert",
347
+ name="Example Zone Alert",
313
348
  type="zone",
314
349
  subtype="transfer_failed",
315
350
  notification_lists=[],
316
- zone_names=[],
351
+ zone_names=[
352
+ "a.b.c.com",
353
+ "myzone",
354
+ ],
317
355
  record_ids=[])
356
+ example_usage_alert = ns1.Alert("example_usage_alert",
357
+ name="Example Usage Alert",
358
+ type="account",
359
+ subtype="record_usage",
360
+ datas=[{
361
+ "alert_at_percent": 80,
362
+ }])
318
363
  ```
319
364
 
320
365
  ## NS1 Documentation
@@ -329,6 +374,7 @@ class Alert(pulumi.CustomResource):
329
374
 
330
375
  :param str resource_name: The name of the resource.
331
376
  :param pulumi.ResourceOptions opts: Options for the resource.
377
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AlertDataArgs', 'AlertDataArgsDict']]]] datas: A resource block with additional settings: the name and type of them vary based on the alert type.
332
378
  :param pulumi.Input[_builtins.str] name: The free-form display name for the alert.
333
379
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] notification_lists: A list of id's for notification lists whose notifiers will be triggered by the alert.
334
380
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] record_ids: A list of record id's this alert applies to.
@@ -351,13 +397,23 @@ class Alert(pulumi.CustomResource):
351
397
  import pulumi
352
398
  import pulumi_ns1 as ns1
353
399
 
354
- example = ns1.Alert("example",
355
- name="Example Alert",
400
+ example_zone_alert = ns1.Alert("example_zone_alert",
401
+ name="Example Zone Alert",
356
402
  type="zone",
357
403
  subtype="transfer_failed",
358
404
  notification_lists=[],
359
- zone_names=[],
405
+ zone_names=[
406
+ "a.b.c.com",
407
+ "myzone",
408
+ ],
360
409
  record_ids=[])
410
+ example_usage_alert = ns1.Alert("example_usage_alert",
411
+ name="Example Usage Alert",
412
+ type="account",
413
+ subtype="record_usage",
414
+ datas=[{
415
+ "alert_at_percent": 80,
416
+ }])
361
417
  ```
362
418
 
363
419
  ## NS1 Documentation
@@ -385,6 +441,7 @@ class Alert(pulumi.CustomResource):
385
441
  def _internal_init(__self__,
386
442
  resource_name: str,
387
443
  opts: Optional[pulumi.ResourceOptions] = None,
444
+ datas: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertDataArgs', 'AlertDataArgsDict']]]]] = None,
388
445
  name: Optional[pulumi.Input[_builtins.str]] = None,
389
446
  notification_lists: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
390
447
  record_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
@@ -400,6 +457,7 @@ class Alert(pulumi.CustomResource):
400
457
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
401
458
  __props__ = AlertArgs.__new__(AlertArgs)
402
459
 
460
+ __props__.__dict__["datas"] = datas
403
461
  __props__.__dict__["name"] = name
404
462
  __props__.__dict__["notification_lists"] = notification_lists
405
463
  __props__.__dict__["record_ids"] = record_ids
@@ -426,6 +484,7 @@ class Alert(pulumi.CustomResource):
426
484
  opts: Optional[pulumi.ResourceOptions] = None,
427
485
  created_at: Optional[pulumi.Input[_builtins.int]] = None,
428
486
  created_by: Optional[pulumi.Input[_builtins.str]] = None,
487
+ datas: Optional[pulumi.Input[Sequence[pulumi.Input[Union['AlertDataArgs', 'AlertDataArgsDict']]]]] = None,
429
488
  name: Optional[pulumi.Input[_builtins.str]] = None,
430
489
  notification_lists: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
431
490
  record_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
@@ -443,6 +502,7 @@ class Alert(pulumi.CustomResource):
443
502
  :param pulumi.ResourceOptions opts: Options for the resource.
444
503
  :param pulumi.Input[_builtins.int] created_at: (Read Only) The Unix timestamp representing when the alert configuration was created.
445
504
  :param pulumi.Input[_builtins.str] created_by: (Read Only) The user or apikey that created this alert.
505
+ :param pulumi.Input[Sequence[pulumi.Input[Union['AlertDataArgs', 'AlertDataArgsDict']]]] datas: A resource block with additional settings: the name and type of them vary based on the alert type.
446
506
  :param pulumi.Input[_builtins.str] name: The free-form display name for the alert.
447
507
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] notification_lists: A list of id's for notification lists whose notifiers will be triggered by the alert.
448
508
  :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] record_ids: A list of record id's this alert applies to.
@@ -458,6 +518,7 @@ class Alert(pulumi.CustomResource):
458
518
 
459
519
  __props__.__dict__["created_at"] = created_at
460
520
  __props__.__dict__["created_by"] = created_by
521
+ __props__.__dict__["datas"] = datas
461
522
  __props__.__dict__["name"] = name
462
523
  __props__.__dict__["notification_lists"] = notification_lists
463
524
  __props__.__dict__["record_ids"] = record_ids
@@ -484,6 +545,14 @@ class Alert(pulumi.CustomResource):
484
545
  """
485
546
  return pulumi.get(self, "created_by")
486
547
 
548
+ @_builtins.property
549
+ @pulumi.getter
550
+ def datas(self) -> pulumi.Output[Optional[Sequence['outputs.AlertData']]]:
551
+ """
552
+ A resource block with additional settings: the name and type of them vary based on the alert type.
553
+ """
554
+ return pulumi.get(self, "datas")
555
+
487
556
  @_builtins.property
488
557
  @pulumi.getter
489
558
  def name(self) -> pulumi.Output[_builtins.str]:
@@ -18,6 +18,7 @@ from . import outputs
18
18
  __all__ = [
19
19
  'APIKeyDnsRecordsAllow',
20
20
  'APIKeyDnsRecordsDeny',
21
+ 'AlertData',
21
22
  'ApplicationDefaultConfig',
22
23
  'DatasetDatatype',
23
24
  'DatasetRepeat',
@@ -152,6 +153,42 @@ class APIKeyDnsRecordsDeny(dict):
152
153
  return pulumi.get(self, "zone")
153
154
 
154
155
 
156
+ @pulumi.output_type
157
+ class AlertData(dict):
158
+ @staticmethod
159
+ def __key_warning(key: str):
160
+ suggest = None
161
+ if key == "alertAtPercent":
162
+ suggest = "alert_at_percent"
163
+
164
+ if suggest:
165
+ pulumi.log.warn(f"Key '{key}' not found in AlertData. Access the value via the '{suggest}' property getter instead.")
166
+
167
+ def __getitem__(self, key: str) -> Any:
168
+ AlertData.__key_warning(key)
169
+ return super().__getitem__(key)
170
+
171
+ def get(self, key: str, default = None) -> Any:
172
+ AlertData.__key_warning(key)
173
+ return super().get(key, default)
174
+
175
+ def __init__(__self__, *,
176
+ alert_at_percent: Optional[_builtins.int] = None):
177
+ """
178
+ :param _builtins.int alert_at_percent: required by the account/usage alerts, with a value between 1 and 100
179
+ """
180
+ if alert_at_percent is not None:
181
+ pulumi.set(__self__, "alert_at_percent", alert_at_percent)
182
+
183
+ @_builtins.property
184
+ @pulumi.getter(name="alertAtPercent")
185
+ def alert_at_percent(self) -> Optional[_builtins.int]:
186
+ """
187
+ required by the account/usage alerts, with a value between 1 and 100
188
+ """
189
+ return pulumi.get(self, "alert_at_percent")
190
+
191
+
155
192
  @pulumi.output_type
156
193
  class ApplicationDefaultConfig(dict):
157
194
  @staticmethod
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "ns1",
4
- "version": "3.7.0-alpha.1757053192"
4
+ "version": "3.7.0-alpha.1757128834"
5
5
  }
@@ -47,8 +47,9 @@ class RecordArgs:
47
47
  Answers are documented below.
48
48
  :param pulumi.Input[Sequence[pulumi.Input['RecordFilterArgs']]] filters: One or more NS1 filters for the record(order matters).
49
49
  Filters are documented below.
50
- :param pulumi.Input[_builtins.str] link: The target record to link to. This means this record is a
51
- 'linked' record, and it inherits all properties from its target.
50
+ :param pulumi.Input[_builtins.str] link: The fully qualified domain name (without a terminating dot)
51
+ of the target record. This means this record is a 'linked' record, and it
52
+ inherits all properties from its target.
52
53
  :param pulumi.Input[Sequence[pulumi.Input['RecordRegionArgs']]] regions: One or more "regions" for the record. These are really
53
54
  just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
54
55
  but remain `regions` here for legacy reasons. Regions are
@@ -168,8 +169,9 @@ class RecordArgs:
168
169
  @pulumi.getter
169
170
  def link(self) -> Optional[pulumi.Input[_builtins.str]]:
170
171
  """
171
- The target record to link to. This means this record is a
172
- 'linked' record, and it inherits all properties from its target.
172
+ The fully qualified domain name (without a terminating dot)
173
+ of the target record. This means this record is a 'linked' record, and it
174
+ inherits all properties from its target.
173
175
  """
174
176
  return pulumi.get(self, "link")
175
177
 
@@ -295,8 +297,9 @@ class _RecordState:
295
297
  dots - see the example above and `FQDN formatting` below.
296
298
  :param pulumi.Input[Sequence[pulumi.Input['RecordFilterArgs']]] filters: One or more NS1 filters for the record(order matters).
297
299
  Filters are documented below.
298
- :param pulumi.Input[_builtins.str] link: The target record to link to. This means this record is a
299
- 'linked' record, and it inherits all properties from its target.
300
+ :param pulumi.Input[_builtins.str] link: The fully qualified domain name (without a terminating dot)
301
+ of the target record. This means this record is a 'linked' record, and it
302
+ inherits all properties from its target.
300
303
  :param pulumi.Input[Sequence[pulumi.Input['RecordRegionArgs']]] regions: One or more "regions" for the record. These are really
301
304
  just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
302
305
  but remain `regions` here for legacy reasons. Regions are
@@ -397,8 +400,9 @@ class _RecordState:
397
400
  @pulumi.getter
398
401
  def link(self) -> Optional[pulumi.Input[_builtins.str]]:
399
402
  """
400
- The target record to link to. This means this record is a
401
- 'linked' record, and it inherits all properties from its target.
403
+ The fully qualified domain name (without a terminating dot)
404
+ of the target record. This means this record is a 'linked' record, and it
405
+ inherits all properties from its target.
402
406
  """
403
407
  return pulumi.get(self, "link")
404
408
 
@@ -682,8 +686,9 @@ class Record(pulumi.CustomResource):
682
686
  dots - see the example above and `FQDN formatting` below.
683
687
  :param pulumi.Input[Sequence[pulumi.Input[Union['RecordFilterArgs', 'RecordFilterArgsDict']]]] filters: One or more NS1 filters for the record(order matters).
684
688
  Filters are documented below.
685
- :param pulumi.Input[_builtins.str] link: The target record to link to. This means this record is a
686
- 'linked' record, and it inherits all properties from its target.
689
+ :param pulumi.Input[_builtins.str] link: The fully qualified domain name (without a terminating dot)
690
+ of the target record. This means this record is a 'linked' record, and it
691
+ inherits all properties from its target.
687
692
  :param pulumi.Input[Sequence[pulumi.Input[Union['RecordRegionArgs', 'RecordRegionArgsDict']]]] regions: One or more "regions" for the record. These are really
688
693
  just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
689
694
  but remain `regions` here for legacy reasons. Regions are
@@ -931,8 +936,9 @@ class Record(pulumi.CustomResource):
931
936
  dots - see the example above and `FQDN formatting` below.
932
937
  :param pulumi.Input[Sequence[pulumi.Input[Union['RecordFilterArgs', 'RecordFilterArgsDict']]]] filters: One or more NS1 filters for the record(order matters).
933
938
  Filters are documented below.
934
- :param pulumi.Input[_builtins.str] link: The target record to link to. This means this record is a
935
- 'linked' record, and it inherits all properties from its target.
939
+ :param pulumi.Input[_builtins.str] link: The fully qualified domain name (without a terminating dot)
940
+ of the target record. This means this record is a 'linked' record, and it
941
+ inherits all properties from its target.
936
942
  :param pulumi.Input[Sequence[pulumi.Input[Union['RecordRegionArgs', 'RecordRegionArgsDict']]]] regions: One or more "regions" for the record. These are really
937
943
  just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
938
944
  but remain `regions` here for legacy reasons. Regions are
@@ -1004,8 +1010,9 @@ class Record(pulumi.CustomResource):
1004
1010
  @pulumi.getter
1005
1011
  def link(self) -> pulumi.Output[Optional[_builtins.str]]:
1006
1012
  """
1007
- The target record to link to. This means this record is a
1008
- 'linked' record, and it inherits all properties from its target.
1013
+ The fully qualified domain name (without a terminating dot)
1014
+ of the target record. This means this record is a 'linked' record, and it
1015
+ inherits all properties from its target.
1009
1016
  """
1010
1017
  return pulumi.get(self, "link")
1011
1018
 
@@ -437,6 +437,18 @@ class Redirect(pulumi.CustomResource):
437
437
 
438
438
  [Redirect Api Doc](https://ns1.com/api#redirect)
439
439
 
440
+ ## Import
441
+
442
+ The resource can be imported via their `id`:
443
+
444
+ ```sh
445
+ $ pulumi import ns1:index/redirect:Redirect <name> <id>`
446
+ ```
447
+
448
+ ```sh
449
+ $ pulumi import ns1:index/redirect:Redirect <name> <id>`
450
+ ```
451
+
440
452
  :param str resource_name: The name of the resource.
441
453
  :param pulumi.ResourceOptions opts: Options for the resource.
442
454
  :param pulumi.Input[_builtins.str] domain: The domain the redirect refers to.
@@ -501,6 +513,18 @@ class Redirect(pulumi.CustomResource):
501
513
 
502
514
  [Redirect Api Doc](https://ns1.com/api#redirect)
503
515
 
516
+ ## Import
517
+
518
+ The resource can be imported via their `id`:
519
+
520
+ ```sh
521
+ $ pulumi import ns1:index/redirect:Redirect <name> <id>`
522
+ ```
523
+
524
+ ```sh
525
+ $ pulumi import ns1:index/redirect:Redirect <name> <id>`
526
+ ```
527
+
504
528
  :param str resource_name: The name of the resource.
505
529
  :param RedirectArgs args: The arguments to use to populate this resource's properties.
506
530
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -154,6 +154,9 @@ class UserArgs:
154
154
  pulumi.set(__self__, "monitoring_view_jobs", monitoring_view_jobs)
155
155
  if name is not None:
156
156
  pulumi.set(__self__, "name", name)
157
+ if notify is not None:
158
+ warnings.warn("""This field is deprecated and will be removed in a future release; create account usage alerts instead.""", DeprecationWarning)
159
+ pulumi.log.warn("""notify is deprecated: This field is deprecated and will be removed in a future release; create account usage alerts instead.""")
157
160
  if notify is not None:
158
161
  pulumi.set(__self__, "notify", notify)
159
162
  if redirects_manage_redirects is not None:
@@ -522,6 +525,7 @@ class UserArgs:
522
525
 
523
526
  @_builtins.property
524
527
  @pulumi.getter
528
+ @_utilities.deprecated("""This field is deprecated and will be removed in a future release; create account usage alerts instead.""")
525
529
  def notify(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
526
530
  """
527
531
  Whether or not to notify the user of specified events. Only `billing` is available currently.
@@ -718,6 +722,9 @@ class _UserState:
718
722
  pulumi.set(__self__, "monitoring_view_jobs", monitoring_view_jobs)
719
723
  if name is not None:
720
724
  pulumi.set(__self__, "name", name)
725
+ if notify is not None:
726
+ warnings.warn("""This field is deprecated and will be removed in a future release; create account usage alerts instead.""", DeprecationWarning)
727
+ pulumi.log.warn("""notify is deprecated: This field is deprecated and will be removed in a future release; create account usage alerts instead.""")
721
728
  if notify is not None:
722
729
  pulumi.set(__self__, "notify", notify)
723
730
  if redirects_manage_redirects is not None:
@@ -1076,6 +1083,7 @@ class _UserState:
1076
1083
 
1077
1084
  @_builtins.property
1078
1085
  @pulumi.getter
1086
+ @_utilities.deprecated("""This field is deprecated and will be removed in a future release; create account usage alerts instead.""")
1079
1087
  def notify(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
1080
1088
  """
1081
1089
  Whether or not to notify the user of specified events. Only `billing` is available currently.
@@ -1796,7 +1804,8 @@ class User(pulumi.CustomResource):
1796
1804
 
1797
1805
  @_builtins.property
1798
1806
  @pulumi.getter
1799
- def notify(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
1807
+ @_utilities.deprecated("""This field is deprecated and will be removed in a future release; create account usage alerts instead.""")
1808
+ def notify(self) -> pulumi.Output[Mapping[str, _builtins.str]]:
1800
1809
  """
1801
1810
  Whether or not to notify the user of specified events. Only `billing` is available currently.
1802
1811
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pulumi_ns1
3
- Version: 3.7.0a1757053192
3
+ Version: 3.7.0a1757128834
4
4
  Summary: A Pulumi package for creating and managing ns1 cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -5,7 +5,7 @@
5
5
  keywords = ["pulumi", "ns1"]
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.9"
8
- version = "3.7.0a1757053192"
8
+ version = "3.7.0a1757128834"
9
9
  [project.license]
10
10
  text = "Apache-2.0"
11
11
  [project.urls]