pulumi-ns1 3.2.0a1710245297__py3-none-any.whl → 3.2.2__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/account_whitelist.py +12 -12
- pulumi_ns1/api_key.py +8 -10
- pulumi_ns1/application.py +0 -44
- pulumi_ns1/data_feed.py +26 -16
- pulumi_ns1/data_source.py +6 -6
- pulumi_ns1/get_dns_sec.py +8 -12
- pulumi_ns1/get_monitoring_regions.py +2 -4
- pulumi_ns1/get_networks.py +2 -4
- pulumi_ns1/get_record.py +8 -10
- pulumi_ns1/get_zone.py +2 -4
- pulumi_ns1/monitoring_job.py +28 -30
- pulumi_ns1/notify_list.py +32 -32
- pulumi_ns1/pulumi-plugin.json +2 -1
- pulumi_ns1/record.py +241 -0
- pulumi_ns1/team.py +22 -22
- pulumi_ns1/tsigkey.py +2 -4
- pulumi_ns1/user.py +10 -10
- pulumi_ns1/zone.py +13 -0
- {pulumi_ns1-3.2.0a1710245297.dist-info → pulumi_ns1-3.2.2.dist-info}/METADATA +1 -1
- pulumi_ns1-3.2.2.dist-info/RECORD +35 -0
- pulumi_ns1-3.2.0a1710245297.dist-info/RECORD +0 -35
- {pulumi_ns1-3.2.0a1710245297.dist-info → pulumi_ns1-3.2.2.dist-info}/WHEEL +0 -0
- {pulumi_ns1-3.2.0a1710245297.dist-info → pulumi_ns1-3.2.2.dist-info}/top_level.txt +0 -0
pulumi_ns1/account_whitelist.py
CHANGED
@@ -105,17 +105,17 @@ class AccountWhitelist(pulumi.CustomResource):
|
|
105
105
|
|
106
106
|
## Example Usage
|
107
107
|
|
108
|
-
<!--Start PulumiCodeChooser -->
|
109
108
|
```python
|
110
109
|
import pulumi
|
111
110
|
import pulumi_ns1 as ns1
|
112
111
|
|
113
|
-
example = ns1.AccountWhitelist("example",
|
114
|
-
"
|
115
|
-
|
116
|
-
|
112
|
+
example = ns1.AccountWhitelist("example",
|
113
|
+
name="Example Whitelist",
|
114
|
+
values=[
|
115
|
+
"1.1.1.1",
|
116
|
+
"2.2.2.2",
|
117
|
+
])
|
117
118
|
```
|
118
|
-
<!--End PulumiCodeChooser -->
|
119
119
|
|
120
120
|
> You current source IP must be present in one of the whitelists to prevent locking yourself out.
|
121
121
|
|
@@ -147,17 +147,17 @@ class AccountWhitelist(pulumi.CustomResource):
|
|
147
147
|
|
148
148
|
## Example Usage
|
149
149
|
|
150
|
-
<!--Start PulumiCodeChooser -->
|
151
150
|
```python
|
152
151
|
import pulumi
|
153
152
|
import pulumi_ns1 as ns1
|
154
153
|
|
155
|
-
example = ns1.AccountWhitelist("example",
|
156
|
-
"
|
157
|
-
|
158
|
-
|
154
|
+
example = ns1.AccountWhitelist("example",
|
155
|
+
name="Example Whitelist",
|
156
|
+
values=[
|
157
|
+
"1.1.1.1",
|
158
|
+
"2.2.2.2",
|
159
|
+
])
|
159
160
|
```
|
160
|
-
<!--End PulumiCodeChooser -->
|
161
161
|
|
162
162
|
> You current source IP must be present in one of the whitelists to prevent locking yourself out.
|
163
163
|
|
pulumi_ns1/api_key.py
CHANGED
@@ -1144,14 +1144,14 @@ class APIKey(pulumi.CustomResource):
|
|
1144
1144
|
|
1145
1145
|
## Example Usage
|
1146
1146
|
|
1147
|
-
<!--Start PulumiCodeChooser -->
|
1148
1147
|
```python
|
1149
1148
|
import pulumi
|
1150
1149
|
import pulumi_ns1 as ns1
|
1151
1150
|
|
1152
|
-
|
1153
|
-
example_api_key = ns1.APIKey("
|
1154
|
-
|
1151
|
+
example = ns1.Team("example", name="Example team")
|
1152
|
+
example_api_key = ns1.APIKey("example",
|
1153
|
+
name="Example key",
|
1154
|
+
teams=[example.id],
|
1155
1155
|
ip_whitelists=[
|
1156
1156
|
"1.1.1.1",
|
1157
1157
|
"2.2.2.2",
|
@@ -1159,7 +1159,6 @@ class APIKey(pulumi.CustomResource):
|
|
1159
1159
|
dns_view_zones=False,
|
1160
1160
|
account_manage_users=False)
|
1161
1161
|
```
|
1162
|
-
<!--End PulumiCodeChooser -->
|
1163
1162
|
|
1164
1163
|
## Permissions
|
1165
1164
|
|
@@ -1241,14 +1240,14 @@ class APIKey(pulumi.CustomResource):
|
|
1241
1240
|
|
1242
1241
|
## Example Usage
|
1243
1242
|
|
1244
|
-
<!--Start PulumiCodeChooser -->
|
1245
1243
|
```python
|
1246
1244
|
import pulumi
|
1247
1245
|
import pulumi_ns1 as ns1
|
1248
1246
|
|
1249
|
-
|
1250
|
-
example_api_key = ns1.APIKey("
|
1251
|
-
|
1247
|
+
example = ns1.Team("example", name="Example team")
|
1248
|
+
example_api_key = ns1.APIKey("example",
|
1249
|
+
name="Example key",
|
1250
|
+
teams=[example.id],
|
1252
1251
|
ip_whitelists=[
|
1253
1252
|
"1.1.1.1",
|
1254
1253
|
"2.2.2.2",
|
@@ -1256,7 +1255,6 @@ class APIKey(pulumi.CustomResource):
|
|
1256
1255
|
dns_view_zones=False,
|
1257
1256
|
account_manage_users=False)
|
1258
1257
|
```
|
1259
|
-
<!--End PulumiCodeChooser -->
|
1260
1258
|
|
1261
1259
|
## Permissions
|
1262
1260
|
|
pulumi_ns1/application.py
CHANGED
@@ -215,28 +215,6 @@ class Application(pulumi.CustomResource):
|
|
215
215
|
"""
|
216
216
|
Provides a NS1 Pulsar application resource. This can be used to create, modify, and delete applications.
|
217
217
|
|
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
218
|
## Import
|
241
219
|
|
242
220
|
```sh
|
@@ -269,28 +247,6 @@ class Application(pulumi.CustomResource):
|
|
269
247
|
"""
|
270
248
|
Provides a NS1 Pulsar application resource. This can be used to create, modify, and delete applications.
|
271
249
|
|
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
250
|
## Import
|
295
251
|
|
296
252
|
```sh
|
pulumi_ns1/data_feed.py
CHANGED
@@ -140,30 +140,35 @@ class DataFeed(pulumi.CustomResource):
|
|
140
140
|
|
141
141
|
## Example Usage
|
142
142
|
|
143
|
-
<!--Start PulumiCodeChooser -->
|
144
143
|
```python
|
145
144
|
import pulumi
|
146
145
|
import pulumi_ns1 as ns1
|
147
146
|
|
148
|
-
example = ns1.DataSource("example",
|
149
|
-
|
150
|
-
|
147
|
+
example = ns1.DataSource("example",
|
148
|
+
name="example",
|
149
|
+
sourcetype="nsone_v1")
|
150
|
+
example_monitoring = ns1.DataSource("example_monitoring",
|
151
|
+
name="example_monitoring",
|
152
|
+
sourcetype="nsone_monitoring")
|
153
|
+
uswest_feed = ns1.DataFeed("uswest_feed",
|
154
|
+
name="uswest_feed",
|
151
155
|
source_id=example.id,
|
152
156
|
config={
|
153
157
|
"label": "uswest",
|
154
158
|
})
|
155
|
-
useast_feed = ns1.DataFeed("
|
159
|
+
useast_feed = ns1.DataFeed("useast_feed",
|
160
|
+
name="useast_feed",
|
156
161
|
source_id=example.id,
|
157
162
|
config={
|
158
163
|
"label": "useast",
|
159
164
|
})
|
160
|
-
useast_monitor_feed = ns1.DataFeed("
|
165
|
+
useast_monitor_feed = ns1.DataFeed("useast_monitor_feed",
|
166
|
+
name="useast_monitor_feed",
|
161
167
|
source_id=example_monitoring.id,
|
162
168
|
config={
|
163
|
-
"jobid":
|
169
|
+
"jobid": example_job["id"],
|
164
170
|
})
|
165
171
|
```
|
166
|
-
<!--End PulumiCodeChooser -->
|
167
172
|
|
168
173
|
## NS1 Documentation
|
169
174
|
|
@@ -193,30 +198,35 @@ class DataFeed(pulumi.CustomResource):
|
|
193
198
|
|
194
199
|
## Example Usage
|
195
200
|
|
196
|
-
<!--Start PulumiCodeChooser -->
|
197
201
|
```python
|
198
202
|
import pulumi
|
199
203
|
import pulumi_ns1 as ns1
|
200
204
|
|
201
|
-
example = ns1.DataSource("example",
|
202
|
-
|
203
|
-
|
205
|
+
example = ns1.DataSource("example",
|
206
|
+
name="example",
|
207
|
+
sourcetype="nsone_v1")
|
208
|
+
example_monitoring = ns1.DataSource("example_monitoring",
|
209
|
+
name="example_monitoring",
|
210
|
+
sourcetype="nsone_monitoring")
|
211
|
+
uswest_feed = ns1.DataFeed("uswest_feed",
|
212
|
+
name="uswest_feed",
|
204
213
|
source_id=example.id,
|
205
214
|
config={
|
206
215
|
"label": "uswest",
|
207
216
|
})
|
208
|
-
useast_feed = ns1.DataFeed("
|
217
|
+
useast_feed = ns1.DataFeed("useast_feed",
|
218
|
+
name="useast_feed",
|
209
219
|
source_id=example.id,
|
210
220
|
config={
|
211
221
|
"label": "useast",
|
212
222
|
})
|
213
|
-
useast_monitor_feed = ns1.DataFeed("
|
223
|
+
useast_monitor_feed = ns1.DataFeed("useast_monitor_feed",
|
224
|
+
name="useast_monitor_feed",
|
214
225
|
source_id=example_monitoring.id,
|
215
226
|
config={
|
216
|
-
"jobid":
|
227
|
+
"jobid": example_job["id"],
|
217
228
|
})
|
218
229
|
```
|
219
|
-
<!--End PulumiCodeChooser -->
|
220
230
|
|
221
231
|
## NS1 Documentation
|
222
232
|
|
pulumi_ns1/data_source.py
CHANGED
@@ -140,14 +140,14 @@ class DataSource(pulumi.CustomResource):
|
|
140
140
|
|
141
141
|
## Example Usage
|
142
142
|
|
143
|
-
<!--Start PulumiCodeChooser -->
|
144
143
|
```python
|
145
144
|
import pulumi
|
146
145
|
import pulumi_ns1 as ns1
|
147
146
|
|
148
|
-
example = ns1.DataSource("example",
|
147
|
+
example = ns1.DataSource("example",
|
148
|
+
name="example",
|
149
|
+
sourcetype="nsone_v1")
|
149
150
|
```
|
150
|
-
<!--End PulumiCodeChooser -->
|
151
151
|
|
152
152
|
## NS1 Documentation
|
153
153
|
|
@@ -177,14 +177,14 @@ class DataSource(pulumi.CustomResource):
|
|
177
177
|
|
178
178
|
## Example Usage
|
179
179
|
|
180
|
-
<!--Start PulumiCodeChooser -->
|
181
180
|
```python
|
182
181
|
import pulumi
|
183
182
|
import pulumi_ns1 as ns1
|
184
183
|
|
185
|
-
example = ns1.DataSource("example",
|
184
|
+
example = ns1.DataSource("example",
|
185
|
+
name="example",
|
186
|
+
sourcetype="nsone_v1")
|
186
187
|
```
|
187
|
-
<!--End PulumiCodeChooser -->
|
188
188
|
|
189
189
|
## NS1 Documentation
|
190
190
|
|
pulumi_ns1/get_dns_sec.py
CHANGED
@@ -86,18 +86,16 @@ def get_dns_sec(zone: Optional[str] = None,
|
|
86
86
|
|
87
87
|
## Example Usage
|
88
88
|
|
89
|
-
<!--Start PulumiCodeChooser -->
|
90
89
|
```python
|
91
90
|
import pulumi
|
92
91
|
import pulumi_ns1 as ns1
|
93
92
|
|
94
93
|
# Get DNSSEC details about a NS1 Zone.
|
95
|
-
example_zone = ns1.Zone("
|
96
|
-
|
97
|
-
|
98
|
-
|
94
|
+
example_zone = ns1.Zone("example",
|
95
|
+
zone="terraform.example.io",
|
96
|
+
dnssec=True)
|
97
|
+
example = ns1.get_dns_sec_output(zone=example_zone.zone)
|
99
98
|
```
|
100
|
-
<!--End PulumiCodeChooser -->
|
101
99
|
|
102
100
|
|
103
101
|
:param str zone: The name of the zone to get DNSSEC details for.
|
@@ -122,18 +120,16 @@ def get_dns_sec_output(zone: Optional[pulumi.Input[str]] = None,
|
|
122
120
|
|
123
121
|
## Example Usage
|
124
122
|
|
125
|
-
<!--Start PulumiCodeChooser -->
|
126
123
|
```python
|
127
124
|
import pulumi
|
128
125
|
import pulumi_ns1 as ns1
|
129
126
|
|
130
127
|
# Get DNSSEC details about a NS1 Zone.
|
131
|
-
example_zone = ns1.Zone("
|
132
|
-
|
133
|
-
|
134
|
-
|
128
|
+
example_zone = ns1.Zone("example",
|
129
|
+
zone="terraform.example.io",
|
130
|
+
dnssec=True)
|
131
|
+
example = ns1.get_dns_sec_output(zone=example_zone.zone)
|
135
132
|
```
|
136
|
-
<!--End PulumiCodeChooser -->
|
137
133
|
|
138
134
|
|
139
135
|
:param str zone: The name of the zone to get DNSSEC details for.
|
@@ -66,14 +66,13 @@ def get_monitoring_regions(regions: Optional[Sequence[pulumi.InputType['GetMonit
|
|
66
66
|
|
67
67
|
## Example Usage
|
68
68
|
|
69
|
-
<!--Start PulumiCodeChooser -->
|
70
69
|
```python
|
71
70
|
import pulumi
|
72
71
|
import pulumi_ns1 as ns1
|
73
72
|
|
73
|
+
# Get details of all available monitoring regions.
|
74
74
|
example = ns1.get_monitoring_regions()
|
75
75
|
```
|
76
|
-
<!--End PulumiCodeChooser -->
|
77
76
|
|
78
77
|
|
79
78
|
:param Sequence[pulumi.InputType['GetMonitoringRegionsRegionArgs']] regions: A set of the available monitoring regions. Regions is
|
@@ -97,14 +96,13 @@ def get_monitoring_regions_output(regions: Optional[pulumi.Input[Optional[Sequen
|
|
97
96
|
|
98
97
|
## Example Usage
|
99
98
|
|
100
|
-
<!--Start PulumiCodeChooser -->
|
101
99
|
```python
|
102
100
|
import pulumi
|
103
101
|
import pulumi_ns1 as ns1
|
104
102
|
|
103
|
+
# Get details of all available monitoring regions.
|
105
104
|
example = ns1.get_monitoring_regions()
|
106
105
|
```
|
107
|
-
<!--End PulumiCodeChooser -->
|
108
106
|
|
109
107
|
|
110
108
|
:param Sequence[pulumi.InputType['GetMonitoringRegionsRegionArgs']] regions: A set of the available monitoring regions. Regions is
|
pulumi_ns1/get_networks.py
CHANGED
@@ -66,14 +66,13 @@ def get_networks(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNet
|
|
66
66
|
|
67
67
|
## Example Usage
|
68
68
|
|
69
|
-
<!--Start PulumiCodeChooser -->
|
70
69
|
```python
|
71
70
|
import pulumi
|
72
71
|
import pulumi_ns1 as ns1
|
73
72
|
|
73
|
+
# Get details about NS1 Networks.
|
74
74
|
example = ns1.get_networks()
|
75
75
|
```
|
76
|
-
<!--End PulumiCodeChooser -->
|
77
76
|
"""
|
78
77
|
__args__ = dict()
|
79
78
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
@@ -93,13 +92,12 @@ def get_networks_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.O
|
|
93
92
|
|
94
93
|
## Example Usage
|
95
94
|
|
96
|
-
<!--Start PulumiCodeChooser -->
|
97
95
|
```python
|
98
96
|
import pulumi
|
99
97
|
import pulumi_ns1 as ns1
|
100
98
|
|
99
|
+
# Get details about NS1 Networks.
|
101
100
|
example = ns1.get_networks()
|
102
101
|
```
|
103
|
-
<!--End PulumiCodeChooser -->
|
104
102
|
"""
|
105
103
|
...
|
pulumi_ns1/get_record.py
CHANGED
@@ -194,16 +194,15 @@ def get_record(domain: Optional[str] = None,
|
|
194
194
|
|
195
195
|
## Example Usage
|
196
196
|
|
197
|
-
<!--Start PulumiCodeChooser -->
|
198
197
|
```python
|
199
198
|
import pulumi
|
200
199
|
import pulumi_ns1 as ns1
|
201
200
|
|
202
|
-
|
203
|
-
|
204
|
-
|
201
|
+
# Get details about a NS1 Record.
|
202
|
+
example = ns1.get_record(zone="example.io",
|
203
|
+
domain="terraform.example.io",
|
204
|
+
type="A")
|
205
205
|
```
|
206
|
-
<!--End PulumiCodeChooser -->
|
207
206
|
|
208
207
|
|
209
208
|
:param str domain: The records' domain.
|
@@ -246,16 +245,15 @@ def get_record_output(domain: Optional[pulumi.Input[str]] = None,
|
|
246
245
|
|
247
246
|
## Example Usage
|
248
247
|
|
249
|
-
<!--Start PulumiCodeChooser -->
|
250
248
|
```python
|
251
249
|
import pulumi
|
252
250
|
import pulumi_ns1 as ns1
|
253
251
|
|
254
|
-
|
255
|
-
|
256
|
-
|
252
|
+
# Get details about a NS1 Record.
|
253
|
+
example = ns1.get_record(zone="example.io",
|
254
|
+
domain="terraform.example.io",
|
255
|
+
type="A")
|
257
256
|
```
|
258
|
-
<!--End PulumiCodeChooser -->
|
259
257
|
|
260
258
|
|
261
259
|
:param str domain: The records' domain.
|
pulumi_ns1/get_zone.py
CHANGED
@@ -252,14 +252,13 @@ def get_zone(additional_ports: Optional[Sequence[int]] = None,
|
|
252
252
|
|
253
253
|
## Example Usage
|
254
254
|
|
255
|
-
<!--Start PulumiCodeChooser -->
|
256
255
|
```python
|
257
256
|
import pulumi
|
258
257
|
import pulumi_ns1 as ns1
|
259
258
|
|
259
|
+
# Get details about a NS1 Zone.
|
260
260
|
example = ns1.get_zone(zone="terraform.example.io")
|
261
261
|
```
|
262
|
-
<!--End PulumiCodeChooser -->
|
263
262
|
|
264
263
|
|
265
264
|
:param Sequence[str] additional_primaries: List of additional IPv4 addresses for the primary
|
@@ -308,14 +307,13 @@ def get_zone_output(additional_ports: Optional[pulumi.Input[Optional[Sequence[in
|
|
308
307
|
|
309
308
|
## Example Usage
|
310
309
|
|
311
|
-
<!--Start PulumiCodeChooser -->
|
312
310
|
```python
|
313
311
|
import pulumi
|
314
312
|
import pulumi_ns1 as ns1
|
315
313
|
|
314
|
+
# Get details about a NS1 Zone.
|
316
315
|
example = ns1.get_zone(zone="terraform.example.io")
|
317
316
|
```
|
318
|
-
<!--End PulumiCodeChooser -->
|
319
317
|
|
320
318
|
|
321
319
|
:param Sequence[str] additional_primaries: List of additional IPv4 addresses for the primary
|
pulumi_ns1/monitoring_job.py
CHANGED
@@ -564,36 +564,35 @@ class MonitoringJob(pulumi.CustomResource):
|
|
564
564
|
|
565
565
|
## Example Usage
|
566
566
|
|
567
|
-
<!--Start PulumiCodeChooser -->
|
568
567
|
```python
|
569
568
|
import pulumi
|
570
569
|
import pulumi_ns1 as ns1
|
571
570
|
|
572
|
-
uswest_monitor = ns1.MonitoringJob("
|
571
|
+
uswest_monitor = ns1.MonitoringJob("uswest_monitor",
|
572
|
+
name="uswest",
|
573
573
|
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
574
|
regions=[
|
586
575
|
"lga",
|
587
576
|
"sjc",
|
588
577
|
"sin",
|
589
578
|
],
|
579
|
+
job_type="tcp",
|
580
|
+
frequency=60,
|
581
|
+
rapid_recheck=True,
|
582
|
+
policy="quorum",
|
583
|
+
mute=True,
|
584
|
+
config={
|
585
|
+
"ssl": 1,
|
586
|
+
"send": "HEAD / HTTP/1.0\\\\r\\\\n\\\\r\\\\n",
|
587
|
+
"port": 443,
|
588
|
+
"host": "example-elb-uswest.aws.amazon.com",
|
589
|
+
},
|
590
590
|
rules=[ns1.MonitoringJobRuleArgs(
|
591
|
+
value="200 OK",
|
591
592
|
comparison="contains",
|
592
593
|
key="output",
|
593
|
-
value="200 OK",
|
594
594
|
)])
|
595
595
|
```
|
596
|
-
<!--End PulumiCodeChooser -->
|
597
596
|
|
598
597
|
## NS1 Documentation
|
599
598
|
|
@@ -636,36 +635,35 @@ class MonitoringJob(pulumi.CustomResource):
|
|
636
635
|
|
637
636
|
## Example Usage
|
638
637
|
|
639
|
-
<!--Start PulumiCodeChooser -->
|
640
638
|
```python
|
641
639
|
import pulumi
|
642
640
|
import pulumi_ns1 as ns1
|
643
641
|
|
644
|
-
uswest_monitor = ns1.MonitoringJob("
|
642
|
+
uswest_monitor = ns1.MonitoringJob("uswest_monitor",
|
643
|
+
name="uswest",
|
645
644
|
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
645
|
regions=[
|
658
646
|
"lga",
|
659
647
|
"sjc",
|
660
648
|
"sin",
|
661
649
|
],
|
650
|
+
job_type="tcp",
|
651
|
+
frequency=60,
|
652
|
+
rapid_recheck=True,
|
653
|
+
policy="quorum",
|
654
|
+
mute=True,
|
655
|
+
config={
|
656
|
+
"ssl": 1,
|
657
|
+
"send": "HEAD / HTTP/1.0\\\\r\\\\n\\\\r\\\\n",
|
658
|
+
"port": 443,
|
659
|
+
"host": "example-elb-uswest.aws.amazon.com",
|
660
|
+
},
|
662
661
|
rules=[ns1.MonitoringJobRuleArgs(
|
662
|
+
value="200 OK",
|
663
663
|
comparison="contains",
|
664
664
|
key="output",
|
665
|
-
value="200 OK",
|
666
665
|
)])
|
667
666
|
```
|
668
|
-
<!--End PulumiCodeChooser -->
|
669
667
|
|
670
668
|
## NS1 Documentation
|
671
669
|
|
pulumi_ns1/notify_list.py
CHANGED
@@ -106,27 +106,27 @@ class NotifyList(pulumi.CustomResource):
|
|
106
106
|
|
107
107
|
## Example Usage
|
108
108
|
|
109
|
-
<!--Start PulumiCodeChooser -->
|
110
109
|
```python
|
111
110
|
import pulumi
|
112
111
|
import pulumi_ns1 as ns1
|
113
112
|
|
114
|
-
nl = ns1.NotifyList("nl",
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
113
|
+
nl = ns1.NotifyList("nl",
|
114
|
+
name="my notify list",
|
115
|
+
notifications=[
|
116
|
+
ns1.NotifyListNotificationArgs(
|
117
|
+
type="webhook",
|
118
|
+
config={
|
119
|
+
"url": "http://www.mywebhook.com",
|
120
|
+
},
|
121
|
+
),
|
122
|
+
ns1.NotifyListNotificationArgs(
|
123
|
+
type="email",
|
124
|
+
config={
|
125
|
+
"email": "test@test.com",
|
126
|
+
},
|
127
|
+
),
|
128
|
+
])
|
128
129
|
```
|
129
|
-
<!--End PulumiCodeChooser -->
|
130
130
|
|
131
131
|
## NS1 Documentation
|
132
132
|
|
@@ -154,27 +154,27 @@ class NotifyList(pulumi.CustomResource):
|
|
154
154
|
|
155
155
|
## Example Usage
|
156
156
|
|
157
|
-
<!--Start PulumiCodeChooser -->
|
158
157
|
```python
|
159
158
|
import pulumi
|
160
159
|
import pulumi_ns1 as ns1
|
161
160
|
|
162
|
-
nl = ns1.NotifyList("nl",
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
161
|
+
nl = ns1.NotifyList("nl",
|
162
|
+
name="my notify list",
|
163
|
+
notifications=[
|
164
|
+
ns1.NotifyListNotificationArgs(
|
165
|
+
type="webhook",
|
166
|
+
config={
|
167
|
+
"url": "http://www.mywebhook.com",
|
168
|
+
},
|
169
|
+
),
|
170
|
+
ns1.NotifyListNotificationArgs(
|
171
|
+
type="email",
|
172
|
+
config={
|
173
|
+
"email": "test@test.com",
|
174
|
+
},
|
175
|
+
),
|
176
|
+
])
|
176
177
|
```
|
177
|
-
<!--End PulumiCodeChooser -->
|
178
178
|
|
179
179
|
## NS1 Documentation
|
180
180
|
|
pulumi_ns1/pulumi-plugin.json
CHANGED
pulumi_ns1/record.py
CHANGED
@@ -47,6 +47,7 @@ class RecordArgs:
|
|
47
47
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
48
48
|
but remain `regions` here for legacy reasons. Regions are
|
49
49
|
documented below. Please note the ordering requirement!
|
50
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
50
51
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
51
52
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
52
53
|
available(in filter chain).
|
@@ -216,6 +217,9 @@ class RecordArgs:
|
|
216
217
|
@property
|
217
218
|
@pulumi.getter
|
218
219
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
220
|
+
"""
|
221
|
+
map of tags in the form of `"key" = "value"` where both key and value are strings
|
222
|
+
"""
|
219
223
|
return pulumi.get(self, "tags")
|
220
224
|
|
221
225
|
@tags.setter
|
@@ -281,6 +285,7 @@ class _RecordState:
|
|
281
285
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
282
286
|
but remain `regions` here for legacy reasons. Regions are
|
283
287
|
documented below. Please note the ordering requirement!
|
288
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
284
289
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
285
290
|
:param pulumi.Input[str] type: The records' RR type.
|
286
291
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
@@ -431,6 +436,9 @@ class _RecordState:
|
|
431
436
|
@property
|
432
437
|
@pulumi.getter
|
433
438
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
439
|
+
"""
|
440
|
+
map of tags in the form of `"key" = "value"` where both key and value are strings
|
441
|
+
"""
|
434
442
|
return pulumi.get(self, "tags")
|
435
443
|
|
436
444
|
@tags.setter
|
@@ -513,6 +521,120 @@ class Record(pulumi.CustomResource):
|
|
513
521
|
"""
|
514
522
|
Provides a NS1 Record resource. This can be used to create, modify, and delete records.
|
515
523
|
|
524
|
+
## Example Usage
|
525
|
+
|
526
|
+
```python
|
527
|
+
import pulumi
|
528
|
+
import json
|
529
|
+
import pulumi_external as external
|
530
|
+
import pulumi_ns1 as ns1
|
531
|
+
import pulumi_std as std
|
532
|
+
|
533
|
+
example = ns1.Zone("example", zone="terraform.example.io")
|
534
|
+
ns1 = ns1.DataSource("ns1",
|
535
|
+
name="ns1_source",
|
536
|
+
sourcetype="nsone_v1")
|
537
|
+
foo = ns1.DataFeed("foo",
|
538
|
+
name="foo_feed",
|
539
|
+
source_id=ns1.id,
|
540
|
+
config={
|
541
|
+
"label": "foo",
|
542
|
+
})
|
543
|
+
bar = ns1.DataFeed("bar",
|
544
|
+
name="bar_feed",
|
545
|
+
source_id=ns1.id,
|
546
|
+
config={
|
547
|
+
"label": "bar",
|
548
|
+
})
|
549
|
+
www = ns1.Record("www",
|
550
|
+
zone=tld["zone"],
|
551
|
+
domain=f"www.{tld['zone']}",
|
552
|
+
type="CNAME",
|
553
|
+
ttl=60,
|
554
|
+
meta={
|
555
|
+
"up": True,
|
556
|
+
},
|
557
|
+
regions=[
|
558
|
+
ns1.RecordRegionArgs(
|
559
|
+
name="east",
|
560
|
+
meta={
|
561
|
+
"georegion": "US-EAST",
|
562
|
+
},
|
563
|
+
),
|
564
|
+
ns1.RecordRegionArgs(
|
565
|
+
name="usa",
|
566
|
+
meta={
|
567
|
+
"country": "US",
|
568
|
+
},
|
569
|
+
),
|
570
|
+
],
|
571
|
+
answers=[
|
572
|
+
ns1.RecordAnswerArgs(
|
573
|
+
answer=f"sub1.{tld['zone']}",
|
574
|
+
region="east",
|
575
|
+
meta={
|
576
|
+
"up": foo.id.apply(lambda id: f"{{\\"feed\\":\\"{id}\\"}}"),
|
577
|
+
},
|
578
|
+
),
|
579
|
+
ns1.RecordAnswerArgs(
|
580
|
+
answer=f"sub2.{tld['zone']}",
|
581
|
+
meta={
|
582
|
+
"up": bar.id.apply(lambda id: f"{{\\"feed\\":\\"{id}\\"}}"),
|
583
|
+
"connections": 3,
|
584
|
+
},
|
585
|
+
),
|
586
|
+
ns1.RecordAnswerArgs(
|
587
|
+
answer=f"sub3.{tld['zone']}",
|
588
|
+
meta={
|
589
|
+
"pulsar": json.dumps([{
|
590
|
+
"job_id": "abcdef",
|
591
|
+
"bias": "*0.55",
|
592
|
+
"a5m_cutoff": 0.9,
|
593
|
+
}]),
|
594
|
+
"subdivisions": json.dumps({
|
595
|
+
"BR": [
|
596
|
+
"SP",
|
597
|
+
"SC",
|
598
|
+
],
|
599
|
+
"DZ": [
|
600
|
+
"01",
|
601
|
+
"02",
|
602
|
+
"03",
|
603
|
+
],
|
604
|
+
}),
|
605
|
+
},
|
606
|
+
),
|
607
|
+
],
|
608
|
+
filters=[ns1.RecordFilterArgs(
|
609
|
+
filter="select_first_n",
|
610
|
+
config={
|
611
|
+
"N": 1,
|
612
|
+
},
|
613
|
+
)])
|
614
|
+
# Some other non-NS1 provider that returns a zone with a trailing dot and a domain with a leading dot.
|
615
|
+
baz = external.index.Source("baz",
|
616
|
+
zone=terraform.example.io.,
|
617
|
+
domain=.www.terraform.example.io)
|
618
|
+
# Basic record showing how to clean a zone or domain field that comes from
|
619
|
+
# another non-NS1 resource. DNS names often end in '.' characters to signify
|
620
|
+
# the root of the DNS tree, but the NS1 provider does not support this.
|
621
|
+
#
|
622
|
+
# In other cases, a domain or zone may be passed in with a preceding dot ('.')
|
623
|
+
# character which would likewise lead the system to fail.
|
624
|
+
external = ns1.Record("external",
|
625
|
+
zone=std.replace(text=zone,
|
626
|
+
search="/(^\\\\.)|(\\\\.$)/",
|
627
|
+
replace="").result,
|
628
|
+
domain=std.replace(text=domain,
|
629
|
+
search="/(^\\\\.)|(\\\\.$)/",
|
630
|
+
replace="").result,
|
631
|
+
type="CNAME")
|
632
|
+
```
|
633
|
+
|
634
|
+
## NS1 Documentation
|
635
|
+
|
636
|
+
[Record Api Doc](https://ns1.com/api#records)
|
637
|
+
|
516
638
|
## Import
|
517
639
|
|
518
640
|
```sh
|
@@ -539,6 +661,7 @@ class Record(pulumi.CustomResource):
|
|
539
661
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
540
662
|
but remain `regions` here for legacy reasons. Regions are
|
541
663
|
documented below. Please note the ordering requirement!
|
664
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
542
665
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
543
666
|
:param pulumi.Input[str] type: The records' RR type.
|
544
667
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
@@ -557,6 +680,120 @@ class Record(pulumi.CustomResource):
|
|
557
680
|
"""
|
558
681
|
Provides a NS1 Record resource. This can be used to create, modify, and delete records.
|
559
682
|
|
683
|
+
## Example Usage
|
684
|
+
|
685
|
+
```python
|
686
|
+
import pulumi
|
687
|
+
import json
|
688
|
+
import pulumi_external as external
|
689
|
+
import pulumi_ns1 as ns1
|
690
|
+
import pulumi_std as std
|
691
|
+
|
692
|
+
example = ns1.Zone("example", zone="terraform.example.io")
|
693
|
+
ns1 = ns1.DataSource("ns1",
|
694
|
+
name="ns1_source",
|
695
|
+
sourcetype="nsone_v1")
|
696
|
+
foo = ns1.DataFeed("foo",
|
697
|
+
name="foo_feed",
|
698
|
+
source_id=ns1.id,
|
699
|
+
config={
|
700
|
+
"label": "foo",
|
701
|
+
})
|
702
|
+
bar = ns1.DataFeed("bar",
|
703
|
+
name="bar_feed",
|
704
|
+
source_id=ns1.id,
|
705
|
+
config={
|
706
|
+
"label": "bar",
|
707
|
+
})
|
708
|
+
www = ns1.Record("www",
|
709
|
+
zone=tld["zone"],
|
710
|
+
domain=f"www.{tld['zone']}",
|
711
|
+
type="CNAME",
|
712
|
+
ttl=60,
|
713
|
+
meta={
|
714
|
+
"up": True,
|
715
|
+
},
|
716
|
+
regions=[
|
717
|
+
ns1.RecordRegionArgs(
|
718
|
+
name="east",
|
719
|
+
meta={
|
720
|
+
"georegion": "US-EAST",
|
721
|
+
},
|
722
|
+
),
|
723
|
+
ns1.RecordRegionArgs(
|
724
|
+
name="usa",
|
725
|
+
meta={
|
726
|
+
"country": "US",
|
727
|
+
},
|
728
|
+
),
|
729
|
+
],
|
730
|
+
answers=[
|
731
|
+
ns1.RecordAnswerArgs(
|
732
|
+
answer=f"sub1.{tld['zone']}",
|
733
|
+
region="east",
|
734
|
+
meta={
|
735
|
+
"up": foo.id.apply(lambda id: f"{{\\"feed\\":\\"{id}\\"}}"),
|
736
|
+
},
|
737
|
+
),
|
738
|
+
ns1.RecordAnswerArgs(
|
739
|
+
answer=f"sub2.{tld['zone']}",
|
740
|
+
meta={
|
741
|
+
"up": bar.id.apply(lambda id: f"{{\\"feed\\":\\"{id}\\"}}"),
|
742
|
+
"connections": 3,
|
743
|
+
},
|
744
|
+
),
|
745
|
+
ns1.RecordAnswerArgs(
|
746
|
+
answer=f"sub3.{tld['zone']}",
|
747
|
+
meta={
|
748
|
+
"pulsar": json.dumps([{
|
749
|
+
"job_id": "abcdef",
|
750
|
+
"bias": "*0.55",
|
751
|
+
"a5m_cutoff": 0.9,
|
752
|
+
}]),
|
753
|
+
"subdivisions": json.dumps({
|
754
|
+
"BR": [
|
755
|
+
"SP",
|
756
|
+
"SC",
|
757
|
+
],
|
758
|
+
"DZ": [
|
759
|
+
"01",
|
760
|
+
"02",
|
761
|
+
"03",
|
762
|
+
],
|
763
|
+
}),
|
764
|
+
},
|
765
|
+
),
|
766
|
+
],
|
767
|
+
filters=[ns1.RecordFilterArgs(
|
768
|
+
filter="select_first_n",
|
769
|
+
config={
|
770
|
+
"N": 1,
|
771
|
+
},
|
772
|
+
)])
|
773
|
+
# Some other non-NS1 provider that returns a zone with a trailing dot and a domain with a leading dot.
|
774
|
+
baz = external.index.Source("baz",
|
775
|
+
zone=terraform.example.io.,
|
776
|
+
domain=.www.terraform.example.io)
|
777
|
+
# Basic record showing how to clean a zone or domain field that comes from
|
778
|
+
# another non-NS1 resource. DNS names often end in '.' characters to signify
|
779
|
+
# the root of the DNS tree, but the NS1 provider does not support this.
|
780
|
+
#
|
781
|
+
# In other cases, a domain or zone may be passed in with a preceding dot ('.')
|
782
|
+
# character which would likewise lead the system to fail.
|
783
|
+
external = ns1.Record("external",
|
784
|
+
zone=std.replace(text=zone,
|
785
|
+
search="/(^\\\\.)|(\\\\.$)/",
|
786
|
+
replace="").result,
|
787
|
+
domain=std.replace(text=domain,
|
788
|
+
search="/(^\\\\.)|(\\\\.$)/",
|
789
|
+
replace="").result,
|
790
|
+
type="CNAME")
|
791
|
+
```
|
792
|
+
|
793
|
+
## NS1 Documentation
|
794
|
+
|
795
|
+
[Record Api Doc](https://ns1.com/api#records)
|
796
|
+
|
560
797
|
## Import
|
561
798
|
|
562
799
|
```sh
|
@@ -670,6 +907,7 @@ class Record(pulumi.CustomResource):
|
|
670
907
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
671
908
|
but remain `regions` here for legacy reasons. Regions are
|
672
909
|
documented below. Please note the ordering requirement!
|
910
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
673
911
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
674
912
|
:param pulumi.Input[str] type: The records' RR type.
|
675
913
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
@@ -772,6 +1010,9 @@ class Record(pulumi.CustomResource):
|
|
772
1010
|
@property
|
773
1011
|
@pulumi.getter
|
774
1012
|
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
1013
|
+
"""
|
1014
|
+
map of tags in the form of `"key" = "value"` where both key and value are strings
|
1015
|
+
"""
|
775
1016
|
return pulumi.get(self, "tags")
|
776
1017
|
|
777
1018
|
@property
|
pulumi_ns1/team.py
CHANGED
@@ -1063,15 +1063,13 @@ class Team(pulumi.CustomResource):
|
|
1063
1063
|
|
1064
1064
|
## Example Usage
|
1065
1065
|
|
1066
|
-
<!--Start PulumiCodeChooser -->
|
1067
1066
|
```python
|
1068
1067
|
import pulumi
|
1069
1068
|
import pulumi_ns1 as ns1
|
1070
1069
|
|
1071
1070
|
# Create a new NS1 Team
|
1072
1071
|
example = ns1.Team("example",
|
1073
|
-
|
1074
|
-
dns_view_zones=False,
|
1072
|
+
name="Example team",
|
1075
1073
|
ip_whitelists=[
|
1076
1074
|
ns1.TeamIpWhitelistArgs(
|
1077
1075
|
name="whitelist-1",
|
@@ -1087,22 +1085,24 @@ class Team(pulumi.CustomResource):
|
|
1087
1085
|
"4.4.4.4",
|
1088
1086
|
],
|
1089
1087
|
),
|
1090
|
-
]
|
1088
|
+
],
|
1089
|
+
dns_view_zones=False,
|
1090
|
+
account_manage_users=False)
|
1091
1091
|
# Another team
|
1092
1092
|
example2 = ns1.Team("example2",
|
1093
|
-
|
1093
|
+
name="another team",
|
1094
|
+
dns_view_zones=True,
|
1095
|
+
dns_zones_allow_by_default=True,
|
1096
|
+
dns_zones_allows=["mytest.zone"],
|
1097
|
+
dns_zones_denies=["myother.zone"],
|
1094
1098
|
dns_records_allows=[ns1.TeamDnsRecordsAllowArgs(
|
1095
1099
|
domain="terraform.example.io",
|
1096
1100
|
include_subdomains=False,
|
1097
|
-
type="A",
|
1098
1101
|
zone="example.io",
|
1102
|
+
type="A",
|
1099
1103
|
)],
|
1100
|
-
|
1101
|
-
dns_zones_allows=["mytest.zone"],
|
1102
|
-
dns_zones_allow_by_default=True,
|
1103
|
-
dns_zones_denies=["myother.zone"])
|
1104
|
+
data_manage_datasources=True)
|
1104
1105
|
```
|
1105
|
-
<!--End PulumiCodeChooser -->
|
1106
1106
|
|
1107
1107
|
## NS1 Documentation
|
1108
1108
|
|
@@ -1164,15 +1164,13 @@ class Team(pulumi.CustomResource):
|
|
1164
1164
|
|
1165
1165
|
## Example Usage
|
1166
1166
|
|
1167
|
-
<!--Start PulumiCodeChooser -->
|
1168
1167
|
```python
|
1169
1168
|
import pulumi
|
1170
1169
|
import pulumi_ns1 as ns1
|
1171
1170
|
|
1172
1171
|
# Create a new NS1 Team
|
1173
1172
|
example = ns1.Team("example",
|
1174
|
-
|
1175
|
-
dns_view_zones=False,
|
1173
|
+
name="Example team",
|
1176
1174
|
ip_whitelists=[
|
1177
1175
|
ns1.TeamIpWhitelistArgs(
|
1178
1176
|
name="whitelist-1",
|
@@ -1188,22 +1186,24 @@ class Team(pulumi.CustomResource):
|
|
1188
1186
|
"4.4.4.4",
|
1189
1187
|
],
|
1190
1188
|
),
|
1191
|
-
]
|
1189
|
+
],
|
1190
|
+
dns_view_zones=False,
|
1191
|
+
account_manage_users=False)
|
1192
1192
|
# Another team
|
1193
1193
|
example2 = ns1.Team("example2",
|
1194
|
-
|
1194
|
+
name="another team",
|
1195
|
+
dns_view_zones=True,
|
1196
|
+
dns_zones_allow_by_default=True,
|
1197
|
+
dns_zones_allows=["mytest.zone"],
|
1198
|
+
dns_zones_denies=["myother.zone"],
|
1195
1199
|
dns_records_allows=[ns1.TeamDnsRecordsAllowArgs(
|
1196
1200
|
domain="terraform.example.io",
|
1197
1201
|
include_subdomains=False,
|
1198
|
-
type="A",
|
1199
1202
|
zone="example.io",
|
1203
|
+
type="A",
|
1200
1204
|
)],
|
1201
|
-
|
1202
|
-
dns_zones_allows=["mytest.zone"],
|
1203
|
-
dns_zones_allow_by_default=True,
|
1204
|
-
dns_zones_denies=["myother.zone"])
|
1205
|
+
data_manage_datasources=True)
|
1205
1206
|
```
|
1206
|
-
<!--End PulumiCodeChooser -->
|
1207
1207
|
|
1208
1208
|
## NS1 Documentation
|
1209
1209
|
|
pulumi_ns1/tsigkey.py
CHANGED
@@ -135,16 +135,15 @@ class Tsigkey(pulumi.CustomResource):
|
|
135
135
|
|
136
136
|
## Example Usage
|
137
137
|
|
138
|
-
<!--Start PulumiCodeChooser -->
|
139
138
|
```python
|
140
139
|
import pulumi
|
141
140
|
import pulumi_ns1 as ns1
|
142
141
|
|
143
142
|
example = ns1.Tsigkey("example",
|
143
|
+
name="ExampleTsigKey",
|
144
144
|
algorithm="hmac-sha256",
|
145
145
|
secret="Ok1qR5IW1ajVka5cHPEJQIXfLyx5V3PSkFBROAzOn21JumDq6nIpoj6H8rfj5Uo+Ok55ZWQ0Wgrf302fDscHLA==")
|
146
146
|
```
|
147
|
-
<!--End PulumiCodeChooser -->
|
148
147
|
## NS1 Documentation
|
149
148
|
|
150
149
|
[TSIG Keys Api Doc](https://ns1.com/api/#tsig)
|
@@ -172,16 +171,15 @@ class Tsigkey(pulumi.CustomResource):
|
|
172
171
|
|
173
172
|
## Example Usage
|
174
173
|
|
175
|
-
<!--Start PulumiCodeChooser -->
|
176
174
|
```python
|
177
175
|
import pulumi
|
178
176
|
import pulumi_ns1 as ns1
|
179
177
|
|
180
178
|
example = ns1.Tsigkey("example",
|
179
|
+
name="ExampleTsigKey",
|
181
180
|
algorithm="hmac-sha256",
|
182
181
|
secret="Ok1qR5IW1ajVka5cHPEJQIXfLyx5V3PSkFBROAzOn21JumDq6nIpoj6H8rfj5Uo+Ok55ZWQ0Wgrf302fDscHLA==")
|
183
182
|
```
|
184
|
-
<!--End PulumiCodeChooser -->
|
185
183
|
## NS1 Documentation
|
186
184
|
|
187
185
|
[TSIG Keys Api Doc](https://ns1.com/api/#tsig)
|
pulumi_ns1/user.py
CHANGED
@@ -1199,27 +1199,27 @@ class User(pulumi.CustomResource):
|
|
1199
1199
|
|
1200
1200
|
## Example Usage
|
1201
1201
|
|
1202
|
-
<!--Start PulumiCodeChooser -->
|
1203
1202
|
```python
|
1204
1203
|
import pulumi
|
1205
1204
|
import pulumi_ns1 as ns1
|
1206
1205
|
|
1207
|
-
|
1206
|
+
example = ns1.Team("example",
|
1207
|
+
name="Example team",
|
1208
1208
|
ip_whitelists=[
|
1209
1209
|
"1.1.1.1",
|
1210
1210
|
"2.2.2.2",
|
1211
1211
|
],
|
1212
1212
|
dns_view_zones=False,
|
1213
1213
|
account_manage_users=False)
|
1214
|
-
example_user = ns1.User("
|
1214
|
+
example_user = ns1.User("example",
|
1215
|
+
name="Example User",
|
1215
1216
|
username="example_user",
|
1216
1217
|
email="user@example.com",
|
1217
|
-
teams=[
|
1218
|
+
teams=[example.id],
|
1218
1219
|
notify={
|
1219
1220
|
"billing": False,
|
1220
1221
|
})
|
1221
1222
|
```
|
1222
|
-
<!--End PulumiCodeChooser -->
|
1223
1223
|
|
1224
1224
|
## Permissions
|
1225
1225
|
|
@@ -1298,27 +1298,27 @@ class User(pulumi.CustomResource):
|
|
1298
1298
|
|
1299
1299
|
## Example Usage
|
1300
1300
|
|
1301
|
-
<!--Start PulumiCodeChooser -->
|
1302
1301
|
```python
|
1303
1302
|
import pulumi
|
1304
1303
|
import pulumi_ns1 as ns1
|
1305
1304
|
|
1306
|
-
|
1305
|
+
example = ns1.Team("example",
|
1306
|
+
name="Example team",
|
1307
1307
|
ip_whitelists=[
|
1308
1308
|
"1.1.1.1",
|
1309
1309
|
"2.2.2.2",
|
1310
1310
|
],
|
1311
1311
|
dns_view_zones=False,
|
1312
1312
|
account_manage_users=False)
|
1313
|
-
example_user = ns1.User("
|
1313
|
+
example_user = ns1.User("example",
|
1314
|
+
name="Example User",
|
1314
1315
|
username="example_user",
|
1315
1316
|
email="user@example.com",
|
1316
|
-
teams=[
|
1317
|
+
teams=[example.id],
|
1317
1318
|
notify={
|
1318
1319
|
"billing": False,
|
1319
1320
|
})
|
1320
1321
|
```
|
1321
|
-
<!--End PulumiCodeChooser -->
|
1322
1322
|
|
1323
1323
|
## Permissions
|
1324
1324
|
|
pulumi_ns1/zone.py
CHANGED
@@ -60,6 +60,7 @@ class ZoneArgs:
|
|
60
60
|
:param pulumi.Input[Sequence[pulumi.Input['ZoneSecondaryArgs']]] secondaries: List of secondary servers. This makes the zone a
|
61
61
|
primary. Conflicts with `primary` and `additional_primaries`.
|
62
62
|
Secondaries is documented below.
|
63
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
63
64
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
64
65
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
65
66
|
"""
|
@@ -285,6 +286,9 @@ class ZoneArgs:
|
|
285
286
|
@property
|
286
287
|
@pulumi.getter
|
287
288
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
289
|
+
"""
|
290
|
+
map of tags in the form of `"key" = "value"` where both key and value are strings
|
291
|
+
"""
|
288
292
|
return pulumi.get(self, "tags")
|
289
293
|
|
290
294
|
@tags.setter
|
@@ -364,6 +368,7 @@ class _ZoneState:
|
|
364
368
|
:param pulumi.Input[Sequence[pulumi.Input['ZoneSecondaryArgs']]] secondaries: List of secondary servers. This makes the zone a
|
365
369
|
primary. Conflicts with `primary` and `additional_primaries`.
|
366
370
|
Secondaries is documented below.
|
371
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
367
372
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
368
373
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
369
374
|
:param pulumi.Input[str] zone: The domain name of the zone.
|
@@ -593,6 +598,9 @@ class _ZoneState:
|
|
593
598
|
@property
|
594
599
|
@pulumi.getter
|
595
600
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
601
|
+
"""
|
602
|
+
map of tags in the form of `"key" = "value"` where both key and value are strings
|
603
|
+
"""
|
596
604
|
return pulumi.get(self, "tags")
|
597
605
|
|
598
606
|
@tags.setter
|
@@ -698,6 +706,7 @@ class Zone(pulumi.CustomResource):
|
|
698
706
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ZoneSecondaryArgs']]]] secondaries: List of secondary servers. This makes the zone a
|
699
707
|
primary. Conflicts with `primary` and `additional_primaries`.
|
700
708
|
Secondaries is documented below.
|
709
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
701
710
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
702
711
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
703
712
|
:param pulumi.Input[str] zone: The domain name of the zone.
|
@@ -844,6 +853,7 @@ class Zone(pulumi.CustomResource):
|
|
844
853
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ZoneSecondaryArgs']]]] secondaries: List of secondary servers. This makes the zone a
|
845
854
|
primary. Conflicts with `primary` and `additional_primaries`.
|
846
855
|
Secondaries is documented below.
|
856
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: map of tags in the form of `"key" = "value"` where both key and value are strings
|
847
857
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
848
858
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
849
859
|
:param pulumi.Input[str] zone: The domain name of the zone.
|
@@ -999,6 +1009,9 @@ class Zone(pulumi.CustomResource):
|
|
999
1009
|
@property
|
1000
1010
|
@pulumi.getter
|
1001
1011
|
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
1012
|
+
"""
|
1013
|
+
map of tags in the form of `"key" = "value"` where both key and value are strings
|
1014
|
+
"""
|
1002
1015
|
return pulumi.get(self, "tags")
|
1003
1016
|
|
1004
1017
|
@property
|
@@ -0,0 +1,35 @@
|
|
1
|
+
pulumi_ns1/__init__.py,sha256=wNUy5gN6yVX06kifppBkiBFuJrHs5rh3Dzq66Pm8i2o,3438
|
2
|
+
pulumi_ns1/_inputs.py,sha256=8FSj_cd_yoTCKSpENO84hL6nUYMk5nV4TMPiVfmKCLE,38901
|
3
|
+
pulumi_ns1/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
|
4
|
+
pulumi_ns1/account_whitelist.py,sha256=rTZ7XcM7jO4iB0g7Q4bC0WEY26ysnEY3qXG77q-QpDI,9054
|
5
|
+
pulumi_ns1/api_key.py,sha256=hyXAMjyqNelH2b4Mk1rLv3fKTPPTil_RUUPUIVy2KLk,87262
|
6
|
+
pulumi_ns1/application.py,sha256=YAetD40s0hg6zULKu3u-e5Q8sVHm9J6vAYlhVv8Y0X8,16619
|
7
|
+
pulumi_ns1/data_feed.py,sha256=1gg4udnlqVKsV2JHhe_BsZSSlO7m0s0fbbiARm0QAEc,12682
|
8
|
+
pulumi_ns1/data_source.py,sha256=Qg0Dtd0OlxTymPvMqJJTQ0peSalQI_gxqGt5XjoAisI,11102
|
9
|
+
pulumi_ns1/dataset.py,sha256=IwYvL6WgRpKF6ZRhFi4pO3Zqj2OymKPbdh3XqWEHdj4,13385
|
10
|
+
pulumi_ns1/dnsview.py,sha256=83riInActsTQC_E-yuaeFxHWYG49UHtrJtjuDsH5ASM,13624
|
11
|
+
pulumi_ns1/get_dns_sec.py,sha256=zBSO-sfVhPTMpGCHcIcFxlMsey0TDnH1XaL6mwBfpFU,4067
|
12
|
+
pulumi_ns1/get_monitoring_regions.py,sha256=VOOtKdZFbJO5yWD9-fycgaSgJyQf38I0VF5iIV3lKJw,3650
|
13
|
+
pulumi_ns1/get_networks.py,sha256=hx8D7PtoyAPkQ8-IjgsT3ElASVc66N8NDwwAQ18Cv8Q,3032
|
14
|
+
pulumi_ns1/get_record.py,sha256=PMbOMfXg2L9rC61NMNhXK9s6-l5-xuMr3hmKHhK8Xv8,8883
|
15
|
+
pulumi_ns1/get_zone.py,sha256=sXY8Rd7Enj3JNUxD-czMm3Bf7tjpGZwas_mLHCtuhUw,11320
|
16
|
+
pulumi_ns1/monitoring_job.py,sha256=PvPa7YIJnFCdiiTVegt8nc-djI4Yba3ff9RhJKv_5Ls,45756
|
17
|
+
pulumi_ns1/notify_list.py,sha256=w4Z350jOCgGwAUKwgWTa502Xx_8EK4o_BsJj-HoXL2A,11069
|
18
|
+
pulumi_ns1/outputs.py,sha256=Ld_6Lm9hRElF10c_aIewKwbtmsXIJzlZXXI4OqUHt0o,46058
|
19
|
+
pulumi_ns1/provider.py,sha256=5E3JbCjCD3ztCf3HFRYQ_c680oYir0a9h_Fy3nUtHe0,10590
|
20
|
+
pulumi_ns1/pulsar_job.py,sha256=Gk12BJdVCy6QWEqt99Wf5RqvZXEIf8Oub5Qn0x3YfjM,17050
|
21
|
+
pulumi_ns1/pulumi-plugin.json,sha256=vZIxSBJjBohwYzto0Gf-pBaYNaocW0zRYZgt95gpK1I,62
|
22
|
+
pulumi_ns1/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
|
+
pulumi_ns1/record.py,sha256=7W76cCpzqzdOvV10g3HDh_4l-YlVameA2rBmeZ9HXGE,45469
|
24
|
+
pulumi_ns1/subnet.py,sha256=9LN3o8gVwCgL4hC9wwFDzU4WPNXDxCOZE3MudBWPlq0,19239
|
25
|
+
pulumi_ns1/team.py,sha256=W7zln_uUxGUhRLpwygcW0hmPwUAJmV9dtJXNgPmaFT0,81714
|
26
|
+
pulumi_ns1/tsigkey.py,sha256=HpbUG1x720Ix-BuA-qj5MIurFDVQ2JI_Y2b736cN97E,10038
|
27
|
+
pulumi_ns1/user.py,sha256=ThbfFxGo-dF2HHOvECTA4Surd8vAJKTtPmy9RV8GwTg,89234
|
28
|
+
pulumi_ns1/zone.py,sha256=easSfXfDqQhz6tNwc7SGCK5CdwTlq340VTByde69tqI,43790
|
29
|
+
pulumi_ns1/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
30
|
+
pulumi_ns1/config/__init__.pyi,sha256=gTM1utkGS4KH3on5zyhR_a6AtTg4_jVpEXyQeU7ZpJQ,865
|
31
|
+
pulumi_ns1/config/vars.py,sha256=bQTOWrwMP1x58zYPNlK8g8CTAbOUMF3GyfcevML1frE,1674
|
32
|
+
pulumi_ns1-3.2.2.dist-info/METADATA,sha256=mVUH39P0707SXdm9xYGujjcwci9Hrd8amUt4tKpM6oo,3036
|
33
|
+
pulumi_ns1-3.2.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
34
|
+
pulumi_ns1-3.2.2.dist-info/top_level.txt,sha256=Sndx9N4MHnSbjpwVT-_JZ8NZ7JzudJUIUQkU2-9GH9U,11
|
35
|
+
pulumi_ns1-3.2.2.dist-info/RECORD,,
|
@@ -1,35 +0,0 @@
|
|
1
|
-
pulumi_ns1/__init__.py,sha256=wNUy5gN6yVX06kifppBkiBFuJrHs5rh3Dzq66Pm8i2o,3438
|
2
|
-
pulumi_ns1/_inputs.py,sha256=8FSj_cd_yoTCKSpENO84hL6nUYMk5nV4TMPiVfmKCLE,38901
|
3
|
-
pulumi_ns1/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
|
4
|
-
pulumi_ns1/account_whitelist.py,sha256=PPYX8ErnQ5OLMEWx9svBbhKSlirrjCXSNib8NQDHWLY,9086
|
5
|
-
pulumi_ns1/api_key.py,sha256=39Jp6JTylpVbPuNedVB_e6sTwki_rBT4gUVcyXDQTcg,87352
|
6
|
-
pulumi_ns1/application.py,sha256=BTdXOXuijgCSmq6AZC5L0UNlXEHPabGFACgF9dTtx7w,17869
|
7
|
-
pulumi_ns1/data_feed.py,sha256=7fwC26DyC69HvNmA1xZA-_4ly4jsd3ck6dSwEUcMWcw,12480
|
8
|
-
pulumi_ns1/data_source.py,sha256=jTs1OlOSnP09mNZZAfHZbaygAWgQfbekBGryn5ozgE4,11178
|
9
|
-
pulumi_ns1/dataset.py,sha256=IwYvL6WgRpKF6ZRhFi4pO3Zqj2OymKPbdh3XqWEHdj4,13385
|
10
|
-
pulumi_ns1/dnsview.py,sha256=83riInActsTQC_E-yuaeFxHWYG49UHtrJtjuDsH5ASM,13624
|
11
|
-
pulumi_ns1/get_dns_sec.py,sha256=HIDs_IivkxyC9PasG9kjDAM9tp80zhFV8Rq5w4laA6s,4231
|
12
|
-
pulumi_ns1/get_monitoring_regions.py,sha256=Gfd5bw0HxiEo4CF0QRuqXsk5tBB2XgrbMt0NcekR_VU,3680
|
13
|
-
pulumi_ns1/get_networks.py,sha256=PlDpRvSk6AohEUcNEp2xladWYBjqg0JPQtB9a8gN95g,3096
|
14
|
-
pulumi_ns1/get_record.py,sha256=ngeq5_mn02icCIBFGBcVjzFeHboPtj4wAdVVELF7K64,8947
|
15
|
-
pulumi_ns1/get_zone.py,sha256=HxTroFSB_Svchn3uXQfxrB79Q1E5bvCa3-W0DbNBKaE,11388
|
16
|
-
pulumi_ns1/monitoring_job.py,sha256=CMGf5-Q0VL3k7kTemlzs1Zd4vtBhu_kJy4u83_57pSQ,45856
|
17
|
-
pulumi_ns1/notify_list.py,sha256=_1AYkYviA26HkyddMMSyKdSRKQgS1PuQtCgHZa4OYfk,11027
|
18
|
-
pulumi_ns1/outputs.py,sha256=Ld_6Lm9hRElF10c_aIewKwbtmsXIJzlZXXI4OqUHt0o,46058
|
19
|
-
pulumi_ns1/provider.py,sha256=5E3JbCjCD3ztCf3HFRYQ_c680oYir0a9h_Fy3nUtHe0,10590
|
20
|
-
pulumi_ns1/pulsar_job.py,sha256=Gk12BJdVCy6QWEqt99Wf5RqvZXEIf8Oub5Qn0x3YfjM,17050
|
21
|
-
pulumi_ns1/pulumi-plugin.json,sha256=U1IwjH61SXsxMo8_PRJwqdmvSF-6MsDFM_LRS0M9Pow,40
|
22
|
-
pulumi_ns1/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
|
-
pulumi_ns1/record.py,sha256=2biweXRmvXhIYyOjbQ6ClGCwCUiMYyx7M5C8lNW7_2o,36697
|
24
|
-
pulumi_ns1/subnet.py,sha256=9LN3o8gVwCgL4hC9wwFDzU4WPNXDxCOZE3MudBWPlq0,19239
|
25
|
-
pulumi_ns1/team.py,sha256=AeQWM_BLdlAmfkLvUCgVhu_cUkwhRKZj_nQUsJ3TPU8,81738
|
26
|
-
pulumi_ns1/tsigkey.py,sha256=BPZuLJsUsFUwf_lqq8Ko_L_MMKzDO2tFtXeGdXEOkDA,10124
|
27
|
-
pulumi_ns1/user.py,sha256=uFIz4aombM4P0HnL_z8spIlnOOlKwuKxdpXnB6egsp8,89294
|
28
|
-
pulumi_ns1/zone.py,sha256=uNMTuyIfC-ij8y5iUJNVWp31Q5PInWpgiXNvqhPTZWs,42852
|
29
|
-
pulumi_ns1/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
30
|
-
pulumi_ns1/config/__init__.pyi,sha256=gTM1utkGS4KH3on5zyhR_a6AtTg4_jVpEXyQeU7ZpJQ,865
|
31
|
-
pulumi_ns1/config/vars.py,sha256=bQTOWrwMP1x58zYPNlK8g8CTAbOUMF3GyfcevML1frE,1674
|
32
|
-
pulumi_ns1-3.2.0a1710245297.dist-info/METADATA,sha256=lwWESQ7BQL8zERYYxP45-RadQ66OUPc6QzDDqKB5WQc,3047
|
33
|
-
pulumi_ns1-3.2.0a1710245297.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
34
|
-
pulumi_ns1-3.2.0a1710245297.dist-info/top_level.txt,sha256=Sndx9N4MHnSbjpwVT-_JZ8NZ7JzudJUIUQkU2-9GH9U,11
|
35
|
-
pulumi_ns1-3.2.0a1710245297.dist-info/RECORD,,
|
File without changes
|
File without changes
|