pulumi-ns1 3.2.0a1710245297__py3-none-any.whl → 3.6.0a1736834553__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.
pulumi_ns1/application.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 *
@@ -208,35 +213,13 @@ class Application(pulumi.CustomResource):
208
213
  opts: Optional[pulumi.ResourceOptions] = None,
209
214
  active: Optional[pulumi.Input[bool]] = None,
210
215
  browser_wait_millis: Optional[pulumi.Input[int]] = None,
211
- default_config: Optional[pulumi.Input[pulumi.InputType['ApplicationDefaultConfigArgs']]] = None,
216
+ default_config: Optional[pulumi.Input[Union['ApplicationDefaultConfigArgs', 'ApplicationDefaultConfigArgsDict']]] = None,
212
217
  jobs_per_transaction: Optional[pulumi.Input[int]] = None,
213
218
  name: Optional[pulumi.Input[str]] = None,
214
219
  __props__=None):
215
220
  """
216
221
  Provides a NS1 Pulsar application resource. This can be used to create, modify, and delete applications.
217
222
 
218
- ## Example Usage
219
-
220
- <!--Start PulumiCodeChooser -->
221
- ```python
222
- import pulumi
223
- import pulumi_ns1 as ns1
224
-
225
- # Create a new pulsar application with default config
226
- ns1_app = ns1.Application("ns1App", default_config=ns1.ApplicationDefaultConfigArgs(
227
- http=True,
228
- https=False,
229
- job_timeout_millis=100,
230
- request_timeout_millis=100,
231
- static_values=True,
232
- ))
233
- ```
234
- <!--End PulumiCodeChooser -->
235
-
236
- ## NS1 Documentation
237
-
238
- [Application Api Docs](https://ns1.com/api#get-list-pulsar-applications)
239
-
240
223
  ## Import
241
224
 
242
225
  ```sh
@@ -255,7 +238,7 @@ class Application(pulumi.CustomResource):
255
238
  steering.
256
239
  :param pulumi.Input[int] browser_wait_millis: The amount of time (in milliseconds) the browser should wait before running
257
240
  measurements.
258
- :param pulumi.Input[pulumi.InputType['ApplicationDefaultConfigArgs']] default_config: Default job configuration. If a field is present here and not on a specific job
241
+ :param pulumi.Input[Union['ApplicationDefaultConfigArgs', 'ApplicationDefaultConfigArgsDict']] default_config: Default job configuration. If a field is present here and not on a specific job
259
242
  associated with this application, the default value specified here is used..
260
243
  :param pulumi.Input[int] jobs_per_transaction: Number of jobs to measure per user impression.
261
244
  :param pulumi.Input[str] name: Descriptive name for this Pulsar app.
@@ -269,28 +252,6 @@ class Application(pulumi.CustomResource):
269
252
  """
270
253
  Provides a NS1 Pulsar application resource. This can be used to create, modify, and delete applications.
271
254
 
272
- ## Example Usage
273
-
274
- <!--Start PulumiCodeChooser -->
275
- ```python
276
- import pulumi
277
- import pulumi_ns1 as ns1
278
-
279
- # Create a new pulsar application with default config
280
- ns1_app = ns1.Application("ns1App", default_config=ns1.ApplicationDefaultConfigArgs(
281
- http=True,
282
- https=False,
283
- job_timeout_millis=100,
284
- request_timeout_millis=100,
285
- static_values=True,
286
- ))
287
- ```
288
- <!--End PulumiCodeChooser -->
289
-
290
- ## NS1 Documentation
291
-
292
- [Application Api Docs](https://ns1.com/api#get-list-pulsar-applications)
293
-
294
255
  ## Import
295
256
 
296
257
  ```sh
@@ -320,7 +281,7 @@ class Application(pulumi.CustomResource):
320
281
  opts: Optional[pulumi.ResourceOptions] = None,
321
282
  active: Optional[pulumi.Input[bool]] = None,
322
283
  browser_wait_millis: Optional[pulumi.Input[int]] = None,
323
- default_config: Optional[pulumi.Input[pulumi.InputType['ApplicationDefaultConfigArgs']]] = None,
284
+ default_config: Optional[pulumi.Input[Union['ApplicationDefaultConfigArgs', 'ApplicationDefaultConfigArgsDict']]] = None,
324
285
  jobs_per_transaction: Optional[pulumi.Input[int]] = None,
325
286
  name: Optional[pulumi.Input[str]] = None,
326
287
  __props__=None):
@@ -349,7 +310,7 @@ class Application(pulumi.CustomResource):
349
310
  opts: Optional[pulumi.ResourceOptions] = None,
350
311
  active: Optional[pulumi.Input[bool]] = None,
351
312
  browser_wait_millis: Optional[pulumi.Input[int]] = None,
352
- default_config: Optional[pulumi.Input[pulumi.InputType['ApplicationDefaultConfigArgs']]] = None,
313
+ default_config: Optional[pulumi.Input[Union['ApplicationDefaultConfigArgs', 'ApplicationDefaultConfigArgsDict']]] = None,
353
314
  jobs_per_transaction: Optional[pulumi.Input[int]] = None,
354
315
  name: Optional[pulumi.Input[str]] = None) -> 'Application':
355
316
  """
@@ -363,7 +324,7 @@ class Application(pulumi.CustomResource):
363
324
  steering.
364
325
  :param pulumi.Input[int] browser_wait_millis: The amount of time (in milliseconds) the browser should wait before running
365
326
  measurements.
366
- :param pulumi.Input[pulumi.InputType['ApplicationDefaultConfigArgs']] default_config: Default job configuration. If a field is present here and not on a specific job
327
+ :param pulumi.Input[Union['ApplicationDefaultConfigArgs', 'ApplicationDefaultConfigArgsDict']] default_config: Default job configuration. If a field is present here and not on a specific job
367
328
  associated with this application, the default value specified here is used..
368
329
  :param pulumi.Input[int] jobs_per_transaction: Number of jobs to measure per user impression.
369
330
  :param pulumi.Input[str] name: Descriptive name for this Pulsar app.
@@ -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
 
12
17
  apikey: Optional[str]
@@ -14,11 +19,6 @@ apikey: Optional[str]
14
19
  The ns1 API key (required)
15
20
  """
16
21
 
17
- enableDdi: Optional[bool]
18
- """
19
- Deprecated, no longer in use
20
- """
21
-
22
22
  endpoint: Optional[str]
23
23
  """
24
24
  URL prefix (including version) for API calls
pulumi_ns1/config/vars.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
 
12
17
  import types
@@ -22,13 +27,6 @@ class _ExportableConfig(types.ModuleType):
22
27
  """
23
28
  return __config__.get('apikey')
24
29
 
25
- @property
26
- def enable_ddi(self) -> Optional[bool]:
27
- """
28
- Deprecated, no longer in use
29
- """
30
- return __config__.get_bool('enableDdi')
31
-
32
30
  @property
33
31
  def endpoint(self) -> Optional[str]:
34
32
  """
pulumi_ns1/data_feed.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
 
12
17
  __all__ = ['DataFeedArgs', 'DataFeed']
@@ -15,12 +20,12 @@ __all__ = ['DataFeedArgs', 'DataFeed']
15
20
  class DataFeedArgs:
16
21
  def __init__(__self__, *,
17
22
  source_id: pulumi.Input[str],
18
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
23
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
19
24
  name: Optional[pulumi.Input[str]] = None):
20
25
  """
21
26
  The set of arguments for constructing a DataFeed resource.
22
27
  :param pulumi.Input[str] source_id: The data source id that this feed is connected to.
23
- :param pulumi.Input[Mapping[str, Any]] config: The feeds configuration matching the specification in
28
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The feeds configuration matching the specification in
24
29
  `feed_config` from /data/sourcetypes. `jobid` is required in the `config` for datafeeds connected to NS1 monitoring.
25
30
  :param pulumi.Input[str] name: The free form name of the data feed.
26
31
  """
@@ -44,7 +49,7 @@ class DataFeedArgs:
44
49
 
45
50
  @property
46
51
  @pulumi.getter
47
- def config(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
52
+ def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
48
53
  """
49
54
  The feeds configuration matching the specification in
50
55
  `feed_config` from /data/sourcetypes. `jobid` is required in the `config` for datafeeds connected to NS1 monitoring.
@@ -52,7 +57,7 @@ class DataFeedArgs:
52
57
  return pulumi.get(self, "config")
53
58
 
54
59
  @config.setter
55
- def config(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
60
+ def config(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
56
61
  pulumi.set(self, "config", value)
57
62
 
58
63
  @property
@@ -71,12 +76,12 @@ class DataFeedArgs:
71
76
  @pulumi.input_type
72
77
  class _DataFeedState:
73
78
  def __init__(__self__, *,
74
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
79
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
75
80
  name: Optional[pulumi.Input[str]] = None,
76
81
  source_id: Optional[pulumi.Input[str]] = None):
77
82
  """
78
83
  Input properties used for looking up and filtering DataFeed resources.
79
- :param pulumi.Input[Mapping[str, Any]] config: The feeds configuration matching the specification in
84
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The feeds configuration matching the specification in
80
85
  `feed_config` from /data/sourcetypes. `jobid` is required in the `config` for datafeeds connected to NS1 monitoring.
81
86
  :param pulumi.Input[str] name: The free form name of the data feed.
82
87
  :param pulumi.Input[str] source_id: The data source id that this feed is connected to.
@@ -90,7 +95,7 @@ class _DataFeedState:
90
95
 
91
96
  @property
92
97
  @pulumi.getter
93
- def config(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
98
+ def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
94
99
  """
95
100
  The feeds configuration matching the specification in
96
101
  `feed_config` from /data/sourcetypes. `jobid` is required in the `config` for datafeeds connected to NS1 monitoring.
@@ -98,7 +103,7 @@ class _DataFeedState:
98
103
  return pulumi.get(self, "config")
99
104
 
100
105
  @config.setter
101
- def config(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
106
+ def config(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
102
107
  pulumi.set(self, "config", value)
103
108
 
104
109
  @property
@@ -131,7 +136,7 @@ class DataFeed(pulumi.CustomResource):
131
136
  def __init__(__self__,
132
137
  resource_name: str,
133
138
  opts: Optional[pulumi.ResourceOptions] = None,
134
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
139
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
135
140
  name: Optional[pulumi.Input[str]] = None,
136
141
  source_id: Optional[pulumi.Input[str]] = None,
137
142
  __props__=None):
@@ -140,30 +145,35 @@ class DataFeed(pulumi.CustomResource):
140
145
 
141
146
  ## Example Usage
142
147
 
143
- <!--Start PulumiCodeChooser -->
144
148
  ```python
145
149
  import pulumi
146
150
  import pulumi_ns1 as ns1
147
151
 
148
- example = ns1.DataSource("example", sourcetype="nsone_v1")
149
- example_monitoring = ns1.DataSource("exampleMonitoring", sourcetype="nsone_monitoring")
150
- uswest_feed = ns1.DataFeed("uswestFeed",
152
+ example = ns1.DataSource("example",
153
+ name="example",
154
+ sourcetype="nsone_v1")
155
+ example_monitoring = ns1.DataSource("example_monitoring",
156
+ name="example_monitoring",
157
+ sourcetype="nsone_monitoring")
158
+ uswest_feed = ns1.DataFeed("uswest_feed",
159
+ name="uswest_feed",
151
160
  source_id=example.id,
152
161
  config={
153
162
  "label": "uswest",
154
163
  })
155
- useast_feed = ns1.DataFeed("useastFeed",
164
+ useast_feed = ns1.DataFeed("useast_feed",
165
+ name="useast_feed",
156
166
  source_id=example.id,
157
167
  config={
158
168
  "label": "useast",
159
169
  })
160
- useast_monitor_feed = ns1.DataFeed("useastMonitorFeed",
170
+ useast_monitor_feed = ns1.DataFeed("useast_monitor_feed",
171
+ name="useast_monitor_feed",
161
172
  source_id=example_monitoring.id,
162
173
  config={
163
- "jobid": ns1_monitoringjob["example_job"]["id"],
174
+ "jobid": example_job["id"],
164
175
  })
165
176
  ```
166
- <!--End PulumiCodeChooser -->
167
177
 
168
178
  ## NS1 Documentation
169
179
 
@@ -177,7 +187,7 @@ class DataFeed(pulumi.CustomResource):
177
187
 
178
188
  :param str resource_name: The name of the resource.
179
189
  :param pulumi.ResourceOptions opts: Options for the resource.
180
- :param pulumi.Input[Mapping[str, Any]] config: The feeds configuration matching the specification in
190
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The feeds configuration matching the specification in
181
191
  `feed_config` from /data/sourcetypes. `jobid` is required in the `config` for datafeeds connected to NS1 monitoring.
182
192
  :param pulumi.Input[str] name: The free form name of the data feed.
183
193
  :param pulumi.Input[str] source_id: The data source id that this feed is connected to.
@@ -193,30 +203,35 @@ class DataFeed(pulumi.CustomResource):
193
203
 
194
204
  ## Example Usage
195
205
 
196
- <!--Start PulumiCodeChooser -->
197
206
  ```python
198
207
  import pulumi
199
208
  import pulumi_ns1 as ns1
200
209
 
201
- example = ns1.DataSource("example", sourcetype="nsone_v1")
202
- example_monitoring = ns1.DataSource("exampleMonitoring", sourcetype="nsone_monitoring")
203
- uswest_feed = ns1.DataFeed("uswestFeed",
210
+ example = ns1.DataSource("example",
211
+ name="example",
212
+ sourcetype="nsone_v1")
213
+ example_monitoring = ns1.DataSource("example_monitoring",
214
+ name="example_monitoring",
215
+ sourcetype="nsone_monitoring")
216
+ uswest_feed = ns1.DataFeed("uswest_feed",
217
+ name="uswest_feed",
204
218
  source_id=example.id,
205
219
  config={
206
220
  "label": "uswest",
207
221
  })
208
- useast_feed = ns1.DataFeed("useastFeed",
222
+ useast_feed = ns1.DataFeed("useast_feed",
223
+ name="useast_feed",
209
224
  source_id=example.id,
210
225
  config={
211
226
  "label": "useast",
212
227
  })
213
- useast_monitor_feed = ns1.DataFeed("useastMonitorFeed",
228
+ useast_monitor_feed = ns1.DataFeed("useast_monitor_feed",
229
+ name="useast_monitor_feed",
214
230
  source_id=example_monitoring.id,
215
231
  config={
216
- "jobid": ns1_monitoringjob["example_job"]["id"],
232
+ "jobid": example_job["id"],
217
233
  })
218
234
  ```
219
- <!--End PulumiCodeChooser -->
220
235
 
221
236
  ## NS1 Documentation
222
237
 
@@ -243,7 +258,7 @@ class DataFeed(pulumi.CustomResource):
243
258
  def _internal_init(__self__,
244
259
  resource_name: str,
245
260
  opts: Optional[pulumi.ResourceOptions] = None,
246
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
261
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
247
262
  name: Optional[pulumi.Input[str]] = None,
248
263
  source_id: Optional[pulumi.Input[str]] = None,
249
264
  __props__=None):
@@ -270,7 +285,7 @@ class DataFeed(pulumi.CustomResource):
270
285
  def get(resource_name: str,
271
286
  id: pulumi.Input[str],
272
287
  opts: Optional[pulumi.ResourceOptions] = None,
273
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
288
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
274
289
  name: Optional[pulumi.Input[str]] = None,
275
290
  source_id: Optional[pulumi.Input[str]] = None) -> 'DataFeed':
276
291
  """
@@ -280,7 +295,7 @@ class DataFeed(pulumi.CustomResource):
280
295
  :param str resource_name: The unique name of the resulting resource.
281
296
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
282
297
  :param pulumi.ResourceOptions opts: Options for the resource.
283
- :param pulumi.Input[Mapping[str, Any]] config: The feeds configuration matching the specification in
298
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The feeds configuration matching the specification in
284
299
  `feed_config` from /data/sourcetypes. `jobid` is required in the `config` for datafeeds connected to NS1 monitoring.
285
300
  :param pulumi.Input[str] name: The free form name of the data feed.
286
301
  :param pulumi.Input[str] source_id: The data source id that this feed is connected to.
@@ -296,7 +311,7 @@ class DataFeed(pulumi.CustomResource):
296
311
 
297
312
  @property
298
313
  @pulumi.getter
299
- def config(self) -> pulumi.Output[Optional[Mapping[str, Any]]]:
314
+ def config(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
300
315
  """
301
316
  The feeds configuration matching the specification in
302
317
  `feed_config` from /data/sourcetypes. `jobid` is required in the `config` for datafeeds connected to NS1 monitoring.
pulumi_ns1/data_source.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
 
12
17
  __all__ = ['DataSourceArgs', 'DataSource']
@@ -15,12 +20,12 @@ __all__ = ['DataSourceArgs', 'DataSource']
15
20
  class DataSourceArgs:
16
21
  def __init__(__self__, *,
17
22
  sourcetype: pulumi.Input[str],
18
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
23
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
19
24
  name: Optional[pulumi.Input[str]] = None):
20
25
  """
21
26
  The set of arguments for constructing a DataSource resource.
22
27
  :param pulumi.Input[str] sourcetype: The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
23
- :param pulumi.Input[Mapping[str, Any]] config: The data source configuration, determined by its type,
28
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The data source configuration, determined by its type,
24
29
  matching the specification in `config` from /data/sourcetypes.
25
30
  :param pulumi.Input[str] name: The free form name of the data source.
26
31
  """
@@ -44,7 +49,7 @@ class DataSourceArgs:
44
49
 
45
50
  @property
46
51
  @pulumi.getter
47
- def config(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
52
+ def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
48
53
  """
49
54
  The data source configuration, determined by its type,
50
55
  matching the specification in `config` from /data/sourcetypes.
@@ -52,7 +57,7 @@ class DataSourceArgs:
52
57
  return pulumi.get(self, "config")
53
58
 
54
59
  @config.setter
55
- def config(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
60
+ def config(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
56
61
  pulumi.set(self, "config", value)
57
62
 
58
63
  @property
@@ -71,12 +76,12 @@ class DataSourceArgs:
71
76
  @pulumi.input_type
72
77
  class _DataSourceState:
73
78
  def __init__(__self__, *,
74
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
79
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
75
80
  name: Optional[pulumi.Input[str]] = None,
76
81
  sourcetype: Optional[pulumi.Input[str]] = None):
77
82
  """
78
83
  Input properties used for looking up and filtering DataSource resources.
79
- :param pulumi.Input[Mapping[str, Any]] config: The data source configuration, determined by its type,
84
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The data source configuration, determined by its type,
80
85
  matching the specification in `config` from /data/sourcetypes.
81
86
  :param pulumi.Input[str] name: The free form name of the data source.
82
87
  :param pulumi.Input[str] sourcetype: The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
@@ -90,7 +95,7 @@ class _DataSourceState:
90
95
 
91
96
  @property
92
97
  @pulumi.getter
93
- def config(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
98
+ def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
94
99
  """
95
100
  The data source configuration, determined by its type,
96
101
  matching the specification in `config` from /data/sourcetypes.
@@ -98,7 +103,7 @@ class _DataSourceState:
98
103
  return pulumi.get(self, "config")
99
104
 
100
105
  @config.setter
101
- def config(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
106
+ def config(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
102
107
  pulumi.set(self, "config", value)
103
108
 
104
109
  @property
@@ -131,7 +136,7 @@ class DataSource(pulumi.CustomResource):
131
136
  def __init__(__self__,
132
137
  resource_name: str,
133
138
  opts: Optional[pulumi.ResourceOptions] = None,
134
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
139
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
135
140
  name: Optional[pulumi.Input[str]] = None,
136
141
  sourcetype: Optional[pulumi.Input[str]] = None,
137
142
  __props__=None):
@@ -140,14 +145,14 @@ class DataSource(pulumi.CustomResource):
140
145
 
141
146
  ## Example Usage
142
147
 
143
- <!--Start PulumiCodeChooser -->
144
148
  ```python
145
149
  import pulumi
146
150
  import pulumi_ns1 as ns1
147
151
 
148
- example = ns1.DataSource("example", sourcetype="nsone_v1")
152
+ example = ns1.DataSource("example",
153
+ name="example",
154
+ sourcetype="nsone_v1")
149
155
  ```
150
- <!--End PulumiCodeChooser -->
151
156
 
152
157
  ## NS1 Documentation
153
158
 
@@ -161,7 +166,7 @@ class DataSource(pulumi.CustomResource):
161
166
 
162
167
  :param str resource_name: The name of the resource.
163
168
  :param pulumi.ResourceOptions opts: Options for the resource.
164
- :param pulumi.Input[Mapping[str, Any]] config: The data source configuration, determined by its type,
169
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The data source configuration, determined by its type,
165
170
  matching the specification in `config` from /data/sourcetypes.
166
171
  :param pulumi.Input[str] name: The free form name of the data source.
167
172
  :param pulumi.Input[str] sourcetype: The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
@@ -177,14 +182,14 @@ class DataSource(pulumi.CustomResource):
177
182
 
178
183
  ## Example Usage
179
184
 
180
- <!--Start PulumiCodeChooser -->
181
185
  ```python
182
186
  import pulumi
183
187
  import pulumi_ns1 as ns1
184
188
 
185
- example = ns1.DataSource("example", sourcetype="nsone_v1")
189
+ example = ns1.DataSource("example",
190
+ name="example",
191
+ sourcetype="nsone_v1")
186
192
  ```
187
- <!--End PulumiCodeChooser -->
188
193
 
189
194
  ## NS1 Documentation
190
195
 
@@ -211,7 +216,7 @@ class DataSource(pulumi.CustomResource):
211
216
  def _internal_init(__self__,
212
217
  resource_name: str,
213
218
  opts: Optional[pulumi.ResourceOptions] = None,
214
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
219
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
215
220
  name: Optional[pulumi.Input[str]] = None,
216
221
  sourcetype: Optional[pulumi.Input[str]] = None,
217
222
  __props__=None):
@@ -238,7 +243,7 @@ class DataSource(pulumi.CustomResource):
238
243
  def get(resource_name: str,
239
244
  id: pulumi.Input[str],
240
245
  opts: Optional[pulumi.ResourceOptions] = None,
241
- config: Optional[pulumi.Input[Mapping[str, Any]]] = None,
246
+ config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
242
247
  name: Optional[pulumi.Input[str]] = None,
243
248
  sourcetype: Optional[pulumi.Input[str]] = None) -> 'DataSource':
244
249
  """
@@ -248,7 +253,7 @@ class DataSource(pulumi.CustomResource):
248
253
  :param str resource_name: The unique name of the resulting resource.
249
254
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
250
255
  :param pulumi.ResourceOptions opts: Options for the resource.
251
- :param pulumi.Input[Mapping[str, Any]] config: The data source configuration, determined by its type,
256
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: The data source configuration, determined by its type,
252
257
  matching the specification in `config` from /data/sourcetypes.
253
258
  :param pulumi.Input[str] name: The free form name of the data source.
254
259
  :param pulumi.Input[str] sourcetype: The data sources type, listed in API endpoint https://api.nsone.net/v1/data/sourcetypes.
@@ -264,7 +269,7 @@ class DataSource(pulumi.CustomResource):
264
269
 
265
270
  @property
266
271
  @pulumi.getter
267
- def config(self) -> pulumi.Output[Optional[Mapping[str, Any]]]:
272
+ def config(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
268
273
  """
269
274
  The data source configuration, determined by its type,
270
275
  matching the specification in `config` from /data/sourcetypes.
pulumi_ns1/dataset.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 *
@@ -187,12 +192,12 @@ class Dataset(pulumi.CustomResource):
187
192
  def __init__(__self__,
188
193
  resource_name: str,
189
194
  opts: Optional[pulumi.ResourceOptions] = None,
190
- datatype: Optional[pulumi.Input[pulumi.InputType['DatasetDatatypeArgs']]] = None,
195
+ datatype: Optional[pulumi.Input[Union['DatasetDatatypeArgs', 'DatasetDatatypeArgsDict']]] = None,
191
196
  export_type: Optional[pulumi.Input[str]] = None,
192
197
  name: Optional[pulumi.Input[str]] = None,
193
198
  recipient_emails: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
194
- repeat: Optional[pulumi.Input[pulumi.InputType['DatasetRepeatArgs']]] = None,
195
- timeframe: Optional[pulumi.Input[pulumi.InputType['DatasetTimeframeArgs']]] = None,
199
+ repeat: Optional[pulumi.Input[Union['DatasetRepeatArgs', 'DatasetRepeatArgsDict']]] = None,
200
+ timeframe: Optional[pulumi.Input[Union['DatasetTimeframeArgs', 'DatasetTimeframeArgsDict']]] = None,
196
201
  __props__=None):
197
202
  """
198
203
  Create a Dataset resource with the given unique name, props, and options.
@@ -222,12 +227,12 @@ class Dataset(pulumi.CustomResource):
222
227
  def _internal_init(__self__,
223
228
  resource_name: str,
224
229
  opts: Optional[pulumi.ResourceOptions] = None,
225
- datatype: Optional[pulumi.Input[pulumi.InputType['DatasetDatatypeArgs']]] = None,
230
+ datatype: Optional[pulumi.Input[Union['DatasetDatatypeArgs', 'DatasetDatatypeArgsDict']]] = None,
226
231
  export_type: Optional[pulumi.Input[str]] = None,
227
232
  name: Optional[pulumi.Input[str]] = None,
228
233
  recipient_emails: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
229
- repeat: Optional[pulumi.Input[pulumi.InputType['DatasetRepeatArgs']]] = None,
230
- timeframe: Optional[pulumi.Input[pulumi.InputType['DatasetTimeframeArgs']]] = None,
234
+ repeat: Optional[pulumi.Input[Union['DatasetRepeatArgs', 'DatasetRepeatArgsDict']]] = None,
235
+ timeframe: Optional[pulumi.Input[Union['DatasetTimeframeArgs', 'DatasetTimeframeArgsDict']]] = None,
231
236
  __props__=None):
232
237
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
233
238
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -260,13 +265,13 @@ class Dataset(pulumi.CustomResource):
260
265
  def get(resource_name: str,
261
266
  id: pulumi.Input[str],
262
267
  opts: Optional[pulumi.ResourceOptions] = None,
263
- datatype: Optional[pulumi.Input[pulumi.InputType['DatasetDatatypeArgs']]] = None,
268
+ datatype: Optional[pulumi.Input[Union['DatasetDatatypeArgs', 'DatasetDatatypeArgsDict']]] = None,
264
269
  export_type: Optional[pulumi.Input[str]] = None,
265
270
  name: Optional[pulumi.Input[str]] = None,
266
271
  recipient_emails: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
267
- repeat: Optional[pulumi.Input[pulumi.InputType['DatasetRepeatArgs']]] = None,
268
- reports: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['DatasetReportArgs']]]]] = None,
269
- timeframe: Optional[pulumi.Input[pulumi.InputType['DatasetTimeframeArgs']]] = None) -> 'Dataset':
272
+ repeat: Optional[pulumi.Input[Union['DatasetRepeatArgs', 'DatasetRepeatArgsDict']]] = None,
273
+ reports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DatasetReportArgs', 'DatasetReportArgsDict']]]]] = None,
274
+ timeframe: Optional[pulumi.Input[Union['DatasetTimeframeArgs', 'DatasetTimeframeArgsDict']]] = None) -> 'Dataset':
270
275
  """
271
276
  Get an existing Dataset resource's state with the given name, id, and optional extra
272
277
  properties used to qualify the lookup.
pulumi_ns1/dnsview.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
 
12
17
  __all__ = ['DnsviewArgs', 'Dnsview']