pulumi-ns1 3.2.0a1710245297__py3-none-any.whl → 3.6.0a1736849591__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.
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
  from ._inputs import *
@@ -16,7 +21,7 @@ __all__ = ['MonitoringJobArgs', 'MonitoringJob']
16
21
  @pulumi.input_type
17
22
  class MonitoringJobArgs:
18
23
  def __init__(__self__, *,
19
- config: pulumi.Input[Mapping[str, Any]],
24
+ config: pulumi.Input[Mapping[str, pulumi.Input[str]]],
20
25
  frequency: pulumi.Input[int],
21
26
  job_type: pulumi.Input[str],
22
27
  regions: pulumi.Input[Sequence[pulumi.Input[str]]],
@@ -34,7 +39,7 @@ class MonitoringJobArgs:
34
39
  rules: Optional[pulumi.Input[Sequence[pulumi.Input['MonitoringJobRuleArgs']]]] = None):
35
40
  """
36
41
  The set of arguments for constructing a MonitoringJob resource.
37
- :param pulumi.Input[Mapping[str, Any]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
42
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
38
43
  :param pulumi.Input[int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
39
44
  :param pulumi.Input[str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
40
45
  :param pulumi.Input[Sequence[pulumi.Input[str]]] regions: The list of region codes in which to run the monitoring
@@ -83,14 +88,14 @@ class MonitoringJobArgs:
83
88
 
84
89
  @property
85
90
  @pulumi.getter
86
- def config(self) -> pulumi.Input[Mapping[str, Any]]:
91
+ def config(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
87
92
  """
88
93
  A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
89
94
  """
90
95
  return pulumi.get(self, "config")
91
96
 
92
97
  @config.setter
93
- def config(self, value: pulumi.Input[Mapping[str, Any]]):
98
+ def config(self, value: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
94
99
  pulumi.set(self, "config", value)
95
100
 
96
101
  @property
@@ -277,7 +282,7 @@ class MonitoringJobArgs:
277
282
  class _MonitoringJobState:
278
283
  def __init__(__self__, *,
279
284
  active: Optional[pulumi.Input[bool]] = None,
280
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
285
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
281
286
  frequency: Optional[pulumi.Input[int]] = None,
282
287
  job_type: Optional[pulumi.Input[str]] = None,
283
288
  mute: Optional[pulumi.Input[bool]] = None,
@@ -295,7 +300,7 @@ class _MonitoringJobState:
295
300
  """
296
301
  Input properties used for looking up and filtering MonitoringJob resources.
297
302
  :param pulumi.Input[bool] active: Indicates if the job is active or temporarily disabled.
298
- :param pulumi.Input[Mapping[str, Any]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
303
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
299
304
  :param pulumi.Input[int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
300
305
  :param pulumi.Input[str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
301
306
  :param pulumi.Input[bool] mute: turn off the notifications for the monitoring job.
@@ -359,14 +364,14 @@ class _MonitoringJobState:
359
364
 
360
365
  @property
361
366
  @pulumi.getter
362
- def config(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
367
+ def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
363
368
  """
364
369
  A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
365
370
  """
366
371
  return pulumi.get(self, "config")
367
372
 
368
373
  @config.setter
369
- def config(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
374
+ def config(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
370
375
  pulumi.set(self, "config", value)
371
376
 
372
377
  @property
@@ -543,7 +548,7 @@ class MonitoringJob(pulumi.CustomResource):
543
548
  resource_name: str,
544
549
  opts: Optional[pulumi.ResourceOptions] = None,
545
550
  active: Optional[pulumi.Input[bool]] = None,
546
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
551
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
547
552
  frequency: Optional[pulumi.Input[int]] = None,
548
553
  job_type: Optional[pulumi.Input[str]] = None,
549
554
  mute: Optional[pulumi.Input[bool]] = None,
@@ -557,43 +562,42 @@ class MonitoringJob(pulumi.CustomResource):
557
562
  policy: Optional[pulumi.Input[str]] = None,
558
563
  rapid_recheck: Optional[pulumi.Input[bool]] = None,
559
564
  regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
560
- rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MonitoringJobRuleArgs']]]]] = None,
565
+ rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitoringJobRuleArgs', 'MonitoringJobRuleArgsDict']]]]] = None,
561
566
  __props__=None):
562
567
  """
563
568
  Provides a NS1 Monitoring Job resource. This can be used to create, modify, and delete monitoring jobs.
564
569
 
565
570
  ## Example Usage
566
571
 
567
- <!--Start PulumiCodeChooser -->
568
572
  ```python
569
573
  import pulumi
570
574
  import pulumi_ns1 as ns1
571
575
 
572
- uswest_monitor = ns1.MonitoringJob("uswestMonitor",
576
+ uswest_monitor = ns1.MonitoringJob("uswest_monitor",
577
+ name="uswest",
573
578
  active=True,
574
- config={
575
- "host": "example-elb-uswest.aws.amazon.com",
576
- "port": 443,
577
- "send": "HEAD / HTTP/1.0\\\\r\\\\n\\\\r\\\\n",
578
- "ssl": 1,
579
- },
580
- frequency=60,
581
- job_type="tcp",
582
- mute=True,
583
- policy="quorum",
584
- rapid_recheck=True,
585
579
  regions=[
586
580
  "lga",
587
581
  "sjc",
588
582
  "sin",
589
583
  ],
590
- rules=[ns1.MonitoringJobRuleArgs(
591
- comparison="contains",
592
- key="output",
593
- value="200 OK",
594
- )])
584
+ job_type="tcp",
585
+ frequency=60,
586
+ rapid_recheck=True,
587
+ policy="quorum",
588
+ mute=True,
589
+ config={
590
+ "ssl": "1",
591
+ "send": "HEAD / HTTP/1.0\\\\r\\\\n\\\\r\\\\n",
592
+ "port": "443",
593
+ "host": "example-elb-uswest.aws.amazon.com",
594
+ },
595
+ rules=[{
596
+ "value": "200 OK",
597
+ "comparison": "contains",
598
+ "key": "output",
599
+ }])
595
600
  ```
596
- <!--End PulumiCodeChooser -->
597
601
 
598
602
  ## NS1 Documentation
599
603
 
@@ -608,7 +612,7 @@ class MonitoringJob(pulumi.CustomResource):
608
612
  :param str resource_name: The name of the resource.
609
613
  :param pulumi.ResourceOptions opts: Options for the resource.
610
614
  :param pulumi.Input[bool] active: Indicates if the job is active or temporarily disabled.
611
- :param pulumi.Input[Mapping[str, Any]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
615
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
612
616
  :param pulumi.Input[int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
613
617
  :param pulumi.Input[str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
614
618
  :param pulumi.Input[bool] mute: turn off the notifications for the monitoring job.
@@ -623,7 +627,7 @@ class MonitoringJob(pulumi.CustomResource):
623
627
  :param pulumi.Input[bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
624
628
  :param pulumi.Input[Sequence[pulumi.Input[str]]] regions: The list of region codes in which to run the monitoring
625
629
  job. See NS1 API docs for supported values.
626
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MonitoringJobRuleArgs']]]] rules: A list of rules for determining failure conditions. Each rule acts on one of the outputs from the monitoring job. You must specify key (the output key); comparison (a comparison to perform on the the output); and value (the value to compare to). For example, {"key":"rtt", "comparison":"<", "value":100} is a rule requiring the rtt from a job to be under 100ms, or the job will be marked failed. Available output keys, comparators, and value types are are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
630
+ :param pulumi.Input[Sequence[pulumi.Input[Union['MonitoringJobRuleArgs', 'MonitoringJobRuleArgsDict']]]] rules: A list of rules for determining failure conditions. Each rule acts on one of the outputs from the monitoring job. You must specify key (the output key); comparison (a comparison to perform on the the output); and value (the value to compare to). For example, {"key":"rtt", "comparison":"<", "value":100} is a rule requiring the rtt from a job to be under 100ms, or the job will be marked failed. Available output keys, comparators, and value types are are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
627
631
  """
628
632
  ...
629
633
  @overload
@@ -636,36 +640,35 @@ class MonitoringJob(pulumi.CustomResource):
636
640
 
637
641
  ## Example Usage
638
642
 
639
- <!--Start PulumiCodeChooser -->
640
643
  ```python
641
644
  import pulumi
642
645
  import pulumi_ns1 as ns1
643
646
 
644
- uswest_monitor = ns1.MonitoringJob("uswestMonitor",
647
+ uswest_monitor = ns1.MonitoringJob("uswest_monitor",
648
+ name="uswest",
645
649
  active=True,
646
- config={
647
- "host": "example-elb-uswest.aws.amazon.com",
648
- "port": 443,
649
- "send": "HEAD / HTTP/1.0\\\\r\\\\n\\\\r\\\\n",
650
- "ssl": 1,
651
- },
652
- frequency=60,
653
- job_type="tcp",
654
- mute=True,
655
- policy="quorum",
656
- rapid_recheck=True,
657
650
  regions=[
658
651
  "lga",
659
652
  "sjc",
660
653
  "sin",
661
654
  ],
662
- rules=[ns1.MonitoringJobRuleArgs(
663
- comparison="contains",
664
- key="output",
665
- value="200 OK",
666
- )])
655
+ job_type="tcp",
656
+ frequency=60,
657
+ rapid_recheck=True,
658
+ policy="quorum",
659
+ mute=True,
660
+ config={
661
+ "ssl": "1",
662
+ "send": "HEAD / HTTP/1.0\\\\r\\\\n\\\\r\\\\n",
663
+ "port": "443",
664
+ "host": "example-elb-uswest.aws.amazon.com",
665
+ },
666
+ rules=[{
667
+ "value": "200 OK",
668
+ "comparison": "contains",
669
+ "key": "output",
670
+ }])
667
671
  ```
668
- <!--End PulumiCodeChooser -->
669
672
 
670
673
  ## NS1 Documentation
671
674
 
@@ -693,7 +696,7 @@ class MonitoringJob(pulumi.CustomResource):
693
696
  resource_name: str,
694
697
  opts: Optional[pulumi.ResourceOptions] = None,
695
698
  active: Optional[pulumi.Input[bool]] = None,
696
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
699
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
697
700
  frequency: Optional[pulumi.Input[int]] = None,
698
701
  job_type: Optional[pulumi.Input[str]] = None,
699
702
  mute: Optional[pulumi.Input[bool]] = None,
@@ -707,7 +710,7 @@ class MonitoringJob(pulumi.CustomResource):
707
710
  policy: Optional[pulumi.Input[str]] = None,
708
711
  rapid_recheck: Optional[pulumi.Input[bool]] = None,
709
712
  regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
710
- rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MonitoringJobRuleArgs']]]]] = None,
713
+ rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitoringJobRuleArgs', 'MonitoringJobRuleArgsDict']]]]] = None,
711
714
  __props__=None):
712
715
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
713
716
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -752,7 +755,7 @@ class MonitoringJob(pulumi.CustomResource):
752
755
  id: pulumi.Input[str],
753
756
  opts: Optional[pulumi.ResourceOptions] = None,
754
757
  active: Optional[pulumi.Input[bool]] = None,
755
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
758
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
756
759
  frequency: Optional[pulumi.Input[int]] = None,
757
760
  job_type: Optional[pulumi.Input[str]] = None,
758
761
  mute: Optional[pulumi.Input[bool]] = None,
@@ -766,7 +769,7 @@ class MonitoringJob(pulumi.CustomResource):
766
769
  policy: Optional[pulumi.Input[str]] = None,
767
770
  rapid_recheck: Optional[pulumi.Input[bool]] = None,
768
771
  regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
769
- rules: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MonitoringJobRuleArgs']]]]] = None) -> 'MonitoringJob':
772
+ rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitoringJobRuleArgs', 'MonitoringJobRuleArgsDict']]]]] = None) -> 'MonitoringJob':
770
773
  """
771
774
  Get an existing MonitoringJob resource's state with the given name, id, and optional extra
772
775
  properties used to qualify the lookup.
@@ -775,7 +778,7 @@ class MonitoringJob(pulumi.CustomResource):
775
778
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
776
779
  :param pulumi.ResourceOptions opts: Options for the resource.
777
780
  :param pulumi.Input[bool] active: Indicates if the job is active or temporarily disabled.
778
- :param pulumi.Input[Mapping[str, Any]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
781
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
779
782
  :param pulumi.Input[int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
780
783
  :param pulumi.Input[str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
781
784
  :param pulumi.Input[bool] mute: turn off the notifications for the monitoring job.
@@ -790,7 +793,7 @@ class MonitoringJob(pulumi.CustomResource):
790
793
  :param pulumi.Input[bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
791
794
  :param pulumi.Input[Sequence[pulumi.Input[str]]] regions: The list of region codes in which to run the monitoring
792
795
  job. See NS1 API docs for supported values.
793
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['MonitoringJobRuleArgs']]]] rules: A list of rules for determining failure conditions. Each rule acts on one of the outputs from the monitoring job. You must specify key (the output key); comparison (a comparison to perform on the the output); and value (the value to compare to). For example, {"key":"rtt", "comparison":"<", "value":100} is a rule requiring the rtt from a job to be under 100ms, or the job will be marked failed. Available output keys, comparators, and value types are are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
796
+ :param pulumi.Input[Sequence[pulumi.Input[Union['MonitoringJobRuleArgs', 'MonitoringJobRuleArgsDict']]]] rules: A list of rules for determining failure conditions. Each rule acts on one of the outputs from the monitoring job. You must specify key (the output key); comparison (a comparison to perform on the the output); and value (the value to compare to). For example, {"key":"rtt", "comparison":"<", "value":100} is a rule requiring the rtt from a job to be under 100ms, or the job will be marked failed. Available output keys, comparators, and value types are are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
794
797
  """
795
798
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
796
799
 
@@ -824,7 +827,7 @@ class MonitoringJob(pulumi.CustomResource):
824
827
 
825
828
  @property
826
829
  @pulumi.getter
827
- def config(self) -> pulumi.Output[Mapping[str, Any]]:
830
+ def config(self) -> pulumi.Output[Mapping[str, str]]:
828
831
  """
829
832
  A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
830
833
  """
pulumi_ns1/notify_list.py CHANGED
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
  from ._inputs import *
@@ -99,34 +104,34 @@ class NotifyList(pulumi.CustomResource):
99
104
  resource_name: str,
100
105
  opts: Optional[pulumi.ResourceOptions] = None,
101
106
  name: Optional[pulumi.Input[str]] = None,
102
- notifications: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotifyListNotificationArgs']]]]] = None,
107
+ notifications: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotifyListNotificationArgs', 'NotifyListNotificationArgsDict']]]]] = None,
103
108
  __props__=None):
104
109
  """
105
110
  Provides a NS1 Notify List resource. This can be used to create, modify, and delete notify lists.
106
111
 
107
112
  ## Example Usage
108
113
 
109
- <!--Start PulumiCodeChooser -->
110
114
  ```python
111
115
  import pulumi
112
116
  import pulumi_ns1 as ns1
113
117
 
114
- nl = ns1.NotifyList("nl", notifications=[
115
- ns1.NotifyListNotificationArgs(
116
- config={
117
- "url": "http://www.mywebhook.com",
118
+ nl = ns1.NotifyList("nl",
119
+ name="my notify list",
120
+ notifications=[
121
+ {
122
+ "type": "webhook",
123
+ "config": {
124
+ "url": "http://www.mywebhook.com",
125
+ },
118
126
  },
119
- type="webhook",
120
- ),
121
- ns1.NotifyListNotificationArgs(
122
- config={
123
- "email": "test@test.com",
127
+ {
128
+ "type": "email",
129
+ "config": {
130
+ "email": "test@test.com",
131
+ },
124
132
  },
125
- type="email",
126
- ),
127
- ])
133
+ ])
128
134
  ```
129
- <!--End PulumiCodeChooser -->
130
135
 
131
136
  ## NS1 Documentation
132
137
 
@@ -141,7 +146,7 @@ class NotifyList(pulumi.CustomResource):
141
146
  :param str resource_name: The name of the resource.
142
147
  :param pulumi.ResourceOptions opts: Options for the resource.
143
148
  :param pulumi.Input[str] name: The free-form display name for the notify list.
144
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotifyListNotificationArgs']]]] notifications: A list of notifiers. All notifiers in a notification list will receive notifications whenever an event is send to the list (e.g., when a monitoring job fails). Notifiers are documented below.
149
+ :param pulumi.Input[Sequence[pulumi.Input[Union['NotifyListNotificationArgs', 'NotifyListNotificationArgsDict']]]] notifications: A list of notifiers. All notifiers in a notification list will receive notifications whenever an event is send to the list (e.g., when a monitoring job fails). Notifiers are documented below.
145
150
  """
146
151
  ...
147
152
  @overload
@@ -154,27 +159,27 @@ class NotifyList(pulumi.CustomResource):
154
159
 
155
160
  ## Example Usage
156
161
 
157
- <!--Start PulumiCodeChooser -->
158
162
  ```python
159
163
  import pulumi
160
164
  import pulumi_ns1 as ns1
161
165
 
162
- nl = ns1.NotifyList("nl", notifications=[
163
- ns1.NotifyListNotificationArgs(
164
- config={
165
- "url": "http://www.mywebhook.com",
166
+ nl = ns1.NotifyList("nl",
167
+ name="my notify list",
168
+ notifications=[
169
+ {
170
+ "type": "webhook",
171
+ "config": {
172
+ "url": "http://www.mywebhook.com",
173
+ },
166
174
  },
167
- type="webhook",
168
- ),
169
- ns1.NotifyListNotificationArgs(
170
- config={
171
- "email": "test@test.com",
175
+ {
176
+ "type": "email",
177
+ "config": {
178
+ "email": "test@test.com",
179
+ },
172
180
  },
173
- type="email",
174
- ),
175
- ])
181
+ ])
176
182
  ```
177
- <!--End PulumiCodeChooser -->
178
183
 
179
184
  ## NS1 Documentation
180
185
 
@@ -202,7 +207,7 @@ class NotifyList(pulumi.CustomResource):
202
207
  resource_name: str,
203
208
  opts: Optional[pulumi.ResourceOptions] = None,
204
209
  name: Optional[pulumi.Input[str]] = None,
205
- notifications: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotifyListNotificationArgs']]]]] = None,
210
+ notifications: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotifyListNotificationArgs', 'NotifyListNotificationArgsDict']]]]] = None,
206
211
  __props__=None):
207
212
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
208
213
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -225,7 +230,7 @@ class NotifyList(pulumi.CustomResource):
225
230
  id: pulumi.Input[str],
226
231
  opts: Optional[pulumi.ResourceOptions] = None,
227
232
  name: Optional[pulumi.Input[str]] = None,
228
- notifications: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotifyListNotificationArgs']]]]] = None) -> 'NotifyList':
233
+ notifications: Optional[pulumi.Input[Sequence[pulumi.Input[Union['NotifyListNotificationArgs', 'NotifyListNotificationArgsDict']]]]] = None) -> 'NotifyList':
229
234
  """
230
235
  Get an existing NotifyList resource's state with the given name, id, and optional extra
231
236
  properties used to qualify the lookup.
@@ -234,7 +239,7 @@ class NotifyList(pulumi.CustomResource):
234
239
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
235
240
  :param pulumi.ResourceOptions opts: Options for the resource.
236
241
  :param pulumi.Input[str] name: The free-form display name for the notify list.
237
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['NotifyListNotificationArgs']]]] notifications: A list of notifiers. All notifiers in a notification list will receive notifications whenever an event is send to the list (e.g., when a monitoring job fails). Notifiers are documented below.
242
+ :param pulumi.Input[Sequence[pulumi.Input[Union['NotifyListNotificationArgs', 'NotifyListNotificationArgsDict']]]] notifications: A list of notifiers. All notifiers in a notification list will receive notifications whenever an event is send to the list (e.g., when a monitoring job fails). Notifiers are documented below.
238
243
  """
239
244
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
240
245
 
pulumi_ns1/outputs.py CHANGED
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
 
@@ -251,7 +256,7 @@ class ApplicationDefaultConfig(dict):
251
256
  @pulumi.output_type
252
257
  class DatasetDatatype(dict):
253
258
  def __init__(__self__, *,
254
- data: Mapping[str, Any],
259
+ data: Mapping[str, str],
255
260
  scope: str,
256
261
  type: str):
257
262
  pulumi.set(__self__, "data", data)
@@ -260,7 +265,7 @@ class DatasetDatatype(dict):
260
265
 
261
266
  @property
262
267
  @pulumi.getter
263
- def data(self) -> Mapping[str, Any]:
268
+ def data(self) -> Mapping[str, str]:
264
269
  return pulumi.get(self, "data")
265
270
 
266
271
  @property
@@ -463,10 +468,10 @@ class MonitoringJobRule(dict):
463
468
  @pulumi.output_type
464
469
  class NotifyListNotification(dict):
465
470
  def __init__(__self__, *,
466
- config: Mapping[str, Any],
471
+ config: Mapping[str, str],
467
472
  type: str):
468
473
  """
469
- :param Mapping[str, Any] config: Configuration details for the given notifier type.
474
+ :param Mapping[str, str] config: Configuration details for the given notifier type.
470
475
  :param str type: The type of notifier. Available notifiers are indicated in /notifytypes endpoint.
471
476
  """
472
477
  pulumi.set(__self__, "config", config)
@@ -474,7 +479,7 @@ class NotifyListNotification(dict):
474
479
 
475
480
  @property
476
481
  @pulumi.getter
477
- def config(self) -> Mapping[str, Any]:
482
+ def config(self) -> Mapping[str, str]:
478
483
  """
479
484
  Configuration details for the given notifier type.
480
485
  """
@@ -650,7 +655,7 @@ class PulsarJobWeight(dict):
650
655
  class RecordAnswer(dict):
651
656
  def __init__(__self__, *,
652
657
  answer: Optional[str] = None,
653
- meta: Optional[Mapping[str, Any]] = None,
658
+ meta: Optional[Mapping[str, str]] = None,
654
659
  region: Optional[str] = None):
655
660
  """
656
661
  :param str answer: Space delimited string of RDATA fields dependent on the record type.
@@ -719,7 +724,7 @@ class RecordAnswer(dict):
719
724
 
720
725
  @property
721
726
  @pulumi.getter
722
- def meta(self) -> Optional[Mapping[str, Any]]:
727
+ def meta(self) -> Optional[Mapping[str, str]]:
723
728
  return pulumi.get(self, "meta")
724
729
 
725
730
  @property
@@ -741,11 +746,11 @@ class RecordAnswer(dict):
741
746
  class RecordFilter(dict):
742
747
  def __init__(__self__, *,
743
748
  filter: str,
744
- config: Optional[Mapping[str, Any]] = None,
749
+ config: Optional[Mapping[str, str]] = None,
745
750
  disabled: Optional[bool] = None):
746
751
  """
747
752
  :param str filter: The type of filter.
748
- :param Mapping[str, Any] config: The filters' configuration. Simple key/value pairs
753
+ :param Mapping[str, str] config: The filters' configuration. Simple key/value pairs
749
754
  determined by the filter type.
750
755
  :param bool disabled: Determines whether the filter is applied in the
751
756
  filter chain.
@@ -766,7 +771,7 @@ class RecordFilter(dict):
766
771
 
767
772
  @property
768
773
  @pulumi.getter
769
- def config(self) -> Optional[Mapping[str, Any]]:
774
+ def config(self) -> Optional[Mapping[str, str]]:
770
775
  """
771
776
  The filters' configuration. Simple key/value pairs
772
777
  determined by the filter type.
@@ -787,7 +792,7 @@ class RecordFilter(dict):
787
792
  class RecordRegion(dict):
788
793
  def __init__(__self__, *,
789
794
  name: str,
790
- meta: Optional[Mapping[str, Any]] = None):
795
+ meta: Optional[Mapping[str, str]] = None):
791
796
  """
792
797
  :param str name: Name of the region (or Answer Group).
793
798
  """
@@ -805,7 +810,7 @@ class RecordRegion(dict):
805
810
 
806
811
  @property
807
812
  @pulumi.getter
808
- def meta(self) -> Optional[Mapping[str, Any]]:
813
+ def meta(self) -> Optional[Mapping[str, str]]:
809
814
  return pulumi.get(self, "meta")
810
815
 
811
816
 
@@ -1403,10 +1408,10 @@ class GetNetworksNetworkResult(dict):
1403
1408
  class GetRecordAnswerResult(dict):
1404
1409
  def __init__(__self__, *,
1405
1410
  answer: str,
1406
- meta: Mapping[str, Any],
1411
+ meta: Mapping[str, str],
1407
1412
  region: str):
1408
1413
  """
1409
- :param Mapping[str, Any] meta: Map of metadata
1414
+ :param Mapping[str, str] meta: Map of metadata
1410
1415
  """
1411
1416
  pulumi.set(__self__, "answer", answer)
1412
1417
  pulumi.set(__self__, "meta", meta)
@@ -1419,7 +1424,7 @@ class GetRecordAnswerResult(dict):
1419
1424
 
1420
1425
  @property
1421
1426
  @pulumi.getter
1422
- def meta(self) -> Mapping[str, Any]:
1427
+ def meta(self) -> Mapping[str, str]:
1423
1428
  """
1424
1429
  Map of metadata
1425
1430
  """
@@ -1434,7 +1439,7 @@ class GetRecordAnswerResult(dict):
1434
1439
  @pulumi.output_type
1435
1440
  class GetRecordFilterResult(dict):
1436
1441
  def __init__(__self__, *,
1437
- config: Mapping[str, Any],
1442
+ config: Mapping[str, str],
1438
1443
  disabled: bool,
1439
1444
  filter: str):
1440
1445
  pulumi.set(__self__, "config", config)
@@ -1443,7 +1448,7 @@ class GetRecordFilterResult(dict):
1443
1448
 
1444
1449
  @property
1445
1450
  @pulumi.getter
1446
- def config(self) -> Mapping[str, Any]:
1451
+ def config(self) -> Mapping[str, str]:
1447
1452
  return pulumi.get(self, "config")
1448
1453
 
1449
1454
  @property
@@ -1460,17 +1465,17 @@ class GetRecordFilterResult(dict):
1460
1465
  @pulumi.output_type
1461
1466
  class GetRecordRegionResult(dict):
1462
1467
  def __init__(__self__, *,
1463
- meta: Mapping[str, Any],
1468
+ meta: Mapping[str, str],
1464
1469
  name: str):
1465
1470
  """
1466
- :param Mapping[str, Any] meta: Map of metadata
1471
+ :param Mapping[str, str] meta: Map of metadata
1467
1472
  """
1468
1473
  pulumi.set(__self__, "meta", meta)
1469
1474
  pulumi.set(__self__, "name", name)
1470
1475
 
1471
1476
  @property
1472
1477
  @pulumi.getter
1473
- def meta(self) -> Mapping[str, Any]:
1478
+ def meta(self) -> Mapping[str, str]:
1474
1479
  """
1475
1480
  Map of metadata
1476
1481
  """