pulumi-ns1 3.2.2__py3-none-any.whl → 3.3.0a1710918500__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 +10 -8
- pulumi_ns1/application.py +44 -0
- pulumi_ns1/data_feed.py +16 -26
- pulumi_ns1/data_source.py +6 -6
- pulumi_ns1/get_dns_sec.py +12 -8
- pulumi_ns1/get_monitoring_regions.py +4 -2
- pulumi_ns1/get_networks.py +4 -2
- pulumi_ns1/get_record.py +10 -8
- pulumi_ns1/get_zone.py +4 -2
- pulumi_ns1/monitoring_job.py +30 -28
- pulumi_ns1/notify_list.py +32 -32
- pulumi_ns1/pulumi-plugin.json +1 -2
- pulumi_ns1/record.py +0 -241
- pulumi_ns1/team.py +22 -22
- pulumi_ns1/tsigkey.py +4 -2
- pulumi_ns1/user.py +10 -10
- pulumi_ns1/zone.py +0 -13
- {pulumi_ns1-3.2.2.dist-info → pulumi_ns1-3.3.0a1710918500.dist-info}/METADATA +1 -1
- pulumi_ns1-3.3.0a1710918500.dist-info/RECORD +35 -0
- pulumi_ns1-3.2.2.dist-info/RECORD +0 -35
- {pulumi_ns1-3.2.2.dist-info → pulumi_ns1-3.3.0a1710918500.dist-info}/WHEEL +0 -0
- {pulumi_ns1-3.2.2.dist-info → pulumi_ns1-3.3.0a1710918500.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 -->
|
108
109
|
```python
|
109
110
|
import pulumi
|
110
111
|
import pulumi_ns1 as ns1
|
111
112
|
|
112
|
-
example = ns1.AccountWhitelist("example",
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
"2.2.2.2",
|
117
|
-
])
|
113
|
+
example = ns1.AccountWhitelist("example", values=[
|
114
|
+
"1.1.1.1",
|
115
|
+
"2.2.2.2",
|
116
|
+
])
|
118
117
|
```
|
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 -->
|
150
151
|
```python
|
151
152
|
import pulumi
|
152
153
|
import pulumi_ns1 as ns1
|
153
154
|
|
154
|
-
example = ns1.AccountWhitelist("example",
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
"2.2.2.2",
|
159
|
-
])
|
155
|
+
example = ns1.AccountWhitelist("example", values=[
|
156
|
+
"1.1.1.1",
|
157
|
+
"2.2.2.2",
|
158
|
+
])
|
160
159
|
```
|
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 -->
|
1147
1148
|
```python
|
1148
1149
|
import pulumi
|
1149
1150
|
import pulumi_ns1 as ns1
|
1150
1151
|
|
1151
|
-
|
1152
|
-
example_api_key = ns1.APIKey("
|
1153
|
-
|
1154
|
-
teams=[example.id],
|
1152
|
+
example_team = ns1.Team("exampleTeam")
|
1153
|
+
example_api_key = ns1.APIKey("exampleAPIKey",
|
1154
|
+
teams=[example_team.id],
|
1155
1155
|
ip_whitelists=[
|
1156
1156
|
"1.1.1.1",
|
1157
1157
|
"2.2.2.2",
|
@@ -1159,6 +1159,7 @@ class APIKey(pulumi.CustomResource):
|
|
1159
1159
|
dns_view_zones=False,
|
1160
1160
|
account_manage_users=False)
|
1161
1161
|
```
|
1162
|
+
<!--End PulumiCodeChooser -->
|
1162
1163
|
|
1163
1164
|
## Permissions
|
1164
1165
|
|
@@ -1240,14 +1241,14 @@ class APIKey(pulumi.CustomResource):
|
|
1240
1241
|
|
1241
1242
|
## Example Usage
|
1242
1243
|
|
1244
|
+
<!--Start PulumiCodeChooser -->
|
1243
1245
|
```python
|
1244
1246
|
import pulumi
|
1245
1247
|
import pulumi_ns1 as ns1
|
1246
1248
|
|
1247
|
-
|
1248
|
-
example_api_key = ns1.APIKey("
|
1249
|
-
|
1250
|
-
teams=[example.id],
|
1249
|
+
example_team = ns1.Team("exampleTeam")
|
1250
|
+
example_api_key = ns1.APIKey("exampleAPIKey",
|
1251
|
+
teams=[example_team.id],
|
1251
1252
|
ip_whitelists=[
|
1252
1253
|
"1.1.1.1",
|
1253
1254
|
"2.2.2.2",
|
@@ -1255,6 +1256,7 @@ class APIKey(pulumi.CustomResource):
|
|
1255
1256
|
dns_view_zones=False,
|
1256
1257
|
account_manage_users=False)
|
1257
1258
|
```
|
1259
|
+
<!--End PulumiCodeChooser -->
|
1258
1260
|
|
1259
1261
|
## Permissions
|
1260
1262
|
|
pulumi_ns1/application.py
CHANGED
@@ -215,6 +215,28 @@ 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
|
+
|
218
240
|
## Import
|
219
241
|
|
220
242
|
```sh
|
@@ -247,6 +269,28 @@ class Application(pulumi.CustomResource):
|
|
247
269
|
"""
|
248
270
|
Provides a NS1 Pulsar application resource. This can be used to create, modify, and delete applications.
|
249
271
|
|
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
|
+
|
250
294
|
## Import
|
251
295
|
|
252
296
|
```sh
|
pulumi_ns1/data_feed.py
CHANGED
@@ -140,35 +140,30 @@ class DataFeed(pulumi.CustomResource):
|
|
140
140
|
|
141
141
|
## Example Usage
|
142
142
|
|
143
|
+
<!--Start PulumiCodeChooser -->
|
143
144
|
```python
|
144
145
|
import pulumi
|
145
146
|
import pulumi_ns1 as ns1
|
146
147
|
|
147
|
-
example = ns1.DataSource("example",
|
148
|
-
|
149
|
-
|
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",
|
148
|
+
example = ns1.DataSource("example", sourcetype="nsone_v1")
|
149
|
+
example_monitoring = ns1.DataSource("exampleMonitoring", sourcetype="nsone_monitoring")
|
150
|
+
uswest_feed = ns1.DataFeed("uswestFeed",
|
155
151
|
source_id=example.id,
|
156
152
|
config={
|
157
153
|
"label": "uswest",
|
158
154
|
})
|
159
|
-
useast_feed = ns1.DataFeed("
|
160
|
-
name="useast_feed",
|
155
|
+
useast_feed = ns1.DataFeed("useastFeed",
|
161
156
|
source_id=example.id,
|
162
157
|
config={
|
163
158
|
"label": "useast",
|
164
159
|
})
|
165
|
-
useast_monitor_feed = ns1.DataFeed("
|
166
|
-
name="useast_monitor_feed",
|
160
|
+
useast_monitor_feed = ns1.DataFeed("useastMonitorFeed",
|
167
161
|
source_id=example_monitoring.id,
|
168
162
|
config={
|
169
|
-
"jobid": example_job["id"],
|
163
|
+
"jobid": ns1_monitoringjob["example_job"]["id"],
|
170
164
|
})
|
171
165
|
```
|
166
|
+
<!--End PulumiCodeChooser -->
|
172
167
|
|
173
168
|
## NS1 Documentation
|
174
169
|
|
@@ -198,35 +193,30 @@ class DataFeed(pulumi.CustomResource):
|
|
198
193
|
|
199
194
|
## Example Usage
|
200
195
|
|
196
|
+
<!--Start PulumiCodeChooser -->
|
201
197
|
```python
|
202
198
|
import pulumi
|
203
199
|
import pulumi_ns1 as ns1
|
204
200
|
|
205
|
-
example = ns1.DataSource("example",
|
206
|
-
|
207
|
-
|
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",
|
201
|
+
example = ns1.DataSource("example", sourcetype="nsone_v1")
|
202
|
+
example_monitoring = ns1.DataSource("exampleMonitoring", sourcetype="nsone_monitoring")
|
203
|
+
uswest_feed = ns1.DataFeed("uswestFeed",
|
213
204
|
source_id=example.id,
|
214
205
|
config={
|
215
206
|
"label": "uswest",
|
216
207
|
})
|
217
|
-
useast_feed = ns1.DataFeed("
|
218
|
-
name="useast_feed",
|
208
|
+
useast_feed = ns1.DataFeed("useastFeed",
|
219
209
|
source_id=example.id,
|
220
210
|
config={
|
221
211
|
"label": "useast",
|
222
212
|
})
|
223
|
-
useast_monitor_feed = ns1.DataFeed("
|
224
|
-
name="useast_monitor_feed",
|
213
|
+
useast_monitor_feed = ns1.DataFeed("useastMonitorFeed",
|
225
214
|
source_id=example_monitoring.id,
|
226
215
|
config={
|
227
|
-
"jobid": example_job["id"],
|
216
|
+
"jobid": ns1_monitoringjob["example_job"]["id"],
|
228
217
|
})
|
229
218
|
```
|
219
|
+
<!--End PulumiCodeChooser -->
|
230
220
|
|
231
221
|
## NS1 Documentation
|
232
222
|
|
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 -->
|
143
144
|
```python
|
144
145
|
import pulumi
|
145
146
|
import pulumi_ns1 as ns1
|
146
147
|
|
147
|
-
example = ns1.DataSource("example",
|
148
|
-
name="example",
|
149
|
-
sourcetype="nsone_v1")
|
148
|
+
example = ns1.DataSource("example", sourcetype="nsone_v1")
|
150
149
|
```
|
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 -->
|
180
181
|
```python
|
181
182
|
import pulumi
|
182
183
|
import pulumi_ns1 as ns1
|
183
184
|
|
184
|
-
example = ns1.DataSource("example",
|
185
|
-
name="example",
|
186
|
-
sourcetype="nsone_v1")
|
185
|
+
example = ns1.DataSource("example", sourcetype="nsone_v1")
|
187
186
|
```
|
187
|
+
<!--End PulumiCodeChooser -->
|
188
188
|
|
189
189
|
## NS1 Documentation
|
190
190
|
|
pulumi_ns1/get_dns_sec.py
CHANGED
@@ -86,16 +86,18 @@ def get_dns_sec(zone: Optional[str] = None,
|
|
86
86
|
|
87
87
|
## Example Usage
|
88
88
|
|
89
|
+
<!--Start PulumiCodeChooser -->
|
89
90
|
```python
|
90
91
|
import pulumi
|
91
92
|
import pulumi_ns1 as ns1
|
92
93
|
|
93
94
|
# Get DNSSEC details about a NS1 Zone.
|
94
|
-
example_zone = ns1.Zone("
|
95
|
-
|
96
|
-
|
97
|
-
|
95
|
+
example_zone = ns1.Zone("exampleZone",
|
96
|
+
dnssec=True,
|
97
|
+
zone="terraform.example.io")
|
98
|
+
example_dns_sec = ns1.get_dns_sec_output(zone=example_zone.zone)
|
98
99
|
```
|
100
|
+
<!--End PulumiCodeChooser -->
|
99
101
|
|
100
102
|
|
101
103
|
:param str zone: The name of the zone to get DNSSEC details for.
|
@@ -120,16 +122,18 @@ def get_dns_sec_output(zone: Optional[pulumi.Input[str]] = None,
|
|
120
122
|
|
121
123
|
## Example Usage
|
122
124
|
|
125
|
+
<!--Start PulumiCodeChooser -->
|
123
126
|
```python
|
124
127
|
import pulumi
|
125
128
|
import pulumi_ns1 as ns1
|
126
129
|
|
127
130
|
# Get DNSSEC details about a NS1 Zone.
|
128
|
-
example_zone = ns1.Zone("
|
129
|
-
|
130
|
-
|
131
|
-
|
131
|
+
example_zone = ns1.Zone("exampleZone",
|
132
|
+
dnssec=True,
|
133
|
+
zone="terraform.example.io")
|
134
|
+
example_dns_sec = ns1.get_dns_sec_output(zone=example_zone.zone)
|
132
135
|
```
|
136
|
+
<!--End PulumiCodeChooser -->
|
133
137
|
|
134
138
|
|
135
139
|
:param str zone: The name of the zone to get DNSSEC details for.
|
@@ -66,13 +66,14 @@ def get_monitoring_regions(regions: Optional[Sequence[pulumi.InputType['GetMonit
|
|
66
66
|
|
67
67
|
## Example Usage
|
68
68
|
|
69
|
+
<!--Start PulumiCodeChooser -->
|
69
70
|
```python
|
70
71
|
import pulumi
|
71
72
|
import pulumi_ns1 as ns1
|
72
73
|
|
73
|
-
# Get details of all available monitoring regions.
|
74
74
|
example = ns1.get_monitoring_regions()
|
75
75
|
```
|
76
|
+
<!--End PulumiCodeChooser -->
|
76
77
|
|
77
78
|
|
78
79
|
:param Sequence[pulumi.InputType['GetMonitoringRegionsRegionArgs']] regions: A set of the available monitoring regions. Regions is
|
@@ -96,13 +97,14 @@ def get_monitoring_regions_output(regions: Optional[pulumi.Input[Optional[Sequen
|
|
96
97
|
|
97
98
|
## Example Usage
|
98
99
|
|
100
|
+
<!--Start PulumiCodeChooser -->
|
99
101
|
```python
|
100
102
|
import pulumi
|
101
103
|
import pulumi_ns1 as ns1
|
102
104
|
|
103
|
-
# Get details of all available monitoring regions.
|
104
105
|
example = ns1.get_monitoring_regions()
|
105
106
|
```
|
107
|
+
<!--End PulumiCodeChooser -->
|
106
108
|
|
107
109
|
|
108
110
|
:param Sequence[pulumi.InputType['GetMonitoringRegionsRegionArgs']] regions: A set of the available monitoring regions. Regions is
|
pulumi_ns1/get_networks.py
CHANGED
@@ -66,13 +66,14 @@ def get_networks(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNet
|
|
66
66
|
|
67
67
|
## Example Usage
|
68
68
|
|
69
|
+
<!--Start PulumiCodeChooser -->
|
69
70
|
```python
|
70
71
|
import pulumi
|
71
72
|
import pulumi_ns1 as ns1
|
72
73
|
|
73
|
-
# Get details about NS1 Networks.
|
74
74
|
example = ns1.get_networks()
|
75
75
|
```
|
76
|
+
<!--End PulumiCodeChooser -->
|
76
77
|
"""
|
77
78
|
__args__ = dict()
|
78
79
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
@@ -92,12 +93,13 @@ def get_networks_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.O
|
|
92
93
|
|
93
94
|
## Example Usage
|
94
95
|
|
96
|
+
<!--Start PulumiCodeChooser -->
|
95
97
|
```python
|
96
98
|
import pulumi
|
97
99
|
import pulumi_ns1 as ns1
|
98
100
|
|
99
|
-
# Get details about NS1 Networks.
|
100
101
|
example = ns1.get_networks()
|
101
102
|
```
|
103
|
+
<!--End PulumiCodeChooser -->
|
102
104
|
"""
|
103
105
|
...
|
pulumi_ns1/get_record.py
CHANGED
@@ -194,15 +194,16 @@ def get_record(domain: Optional[str] = None,
|
|
194
194
|
|
195
195
|
## Example Usage
|
196
196
|
|
197
|
+
<!--Start PulumiCodeChooser -->
|
197
198
|
```python
|
198
199
|
import pulumi
|
199
200
|
import pulumi_ns1 as ns1
|
200
201
|
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
type="A")
|
202
|
+
example = ns1.get_record(domain="terraform.example.io",
|
203
|
+
type="A",
|
204
|
+
zone="example.io")
|
205
205
|
```
|
206
|
+
<!--End PulumiCodeChooser -->
|
206
207
|
|
207
208
|
|
208
209
|
:param str domain: The records' domain.
|
@@ -245,15 +246,16 @@ def get_record_output(domain: Optional[pulumi.Input[str]] = None,
|
|
245
246
|
|
246
247
|
## Example Usage
|
247
248
|
|
249
|
+
<!--Start PulumiCodeChooser -->
|
248
250
|
```python
|
249
251
|
import pulumi
|
250
252
|
import pulumi_ns1 as ns1
|
251
253
|
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
type="A")
|
254
|
+
example = ns1.get_record(domain="terraform.example.io",
|
255
|
+
type="A",
|
256
|
+
zone="example.io")
|
256
257
|
```
|
258
|
+
<!--End PulumiCodeChooser -->
|
257
259
|
|
258
260
|
|
259
261
|
:param str domain: The records' domain.
|
pulumi_ns1/get_zone.py
CHANGED
@@ -252,13 +252,14 @@ def get_zone(additional_ports: Optional[Sequence[int]] = None,
|
|
252
252
|
|
253
253
|
## Example Usage
|
254
254
|
|
255
|
+
<!--Start PulumiCodeChooser -->
|
255
256
|
```python
|
256
257
|
import pulumi
|
257
258
|
import pulumi_ns1 as ns1
|
258
259
|
|
259
|
-
# Get details about a NS1 Zone.
|
260
260
|
example = ns1.get_zone(zone="terraform.example.io")
|
261
261
|
```
|
262
|
+
<!--End PulumiCodeChooser -->
|
262
263
|
|
263
264
|
|
264
265
|
:param Sequence[str] additional_primaries: List of additional IPv4 addresses for the primary
|
@@ -307,13 +308,14 @@ def get_zone_output(additional_ports: Optional[pulumi.Input[Optional[Sequence[in
|
|
307
308
|
|
308
309
|
## Example Usage
|
309
310
|
|
311
|
+
<!--Start PulumiCodeChooser -->
|
310
312
|
```python
|
311
313
|
import pulumi
|
312
314
|
import pulumi_ns1 as ns1
|
313
315
|
|
314
|
-
# Get details about a NS1 Zone.
|
315
316
|
example = ns1.get_zone(zone="terraform.example.io")
|
316
317
|
```
|
318
|
+
<!--End PulumiCodeChooser -->
|
317
319
|
|
318
320
|
|
319
321
|
:param Sequence[str] additional_primaries: List of additional IPv4 addresses for the primary
|
pulumi_ns1/monitoring_job.py
CHANGED
@@ -564,35 +564,36 @@ class MonitoringJob(pulumi.CustomResource):
|
|
564
564
|
|
565
565
|
## Example Usage
|
566
566
|
|
567
|
+
<!--Start PulumiCodeChooser -->
|
567
568
|
```python
|
568
569
|
import pulumi
|
569
570
|
import pulumi_ns1 as ns1
|
570
571
|
|
571
|
-
uswest_monitor = ns1.MonitoringJob("
|
572
|
-
name="uswest",
|
572
|
+
uswest_monitor = ns1.MonitoringJob("uswestMonitor",
|
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,
|
574
585
|
regions=[
|
575
586
|
"lga",
|
576
587
|
"sjc",
|
577
588
|
"sin",
|
578
589
|
],
|
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",
|
592
591
|
comparison="contains",
|
593
592
|
key="output",
|
593
|
+
value="200 OK",
|
594
594
|
)])
|
595
595
|
```
|
596
|
+
<!--End PulumiCodeChooser -->
|
596
597
|
|
597
598
|
## NS1 Documentation
|
598
599
|
|
@@ -635,35 +636,36 @@ class MonitoringJob(pulumi.CustomResource):
|
|
635
636
|
|
636
637
|
## Example Usage
|
637
638
|
|
639
|
+
<!--Start PulumiCodeChooser -->
|
638
640
|
```python
|
639
641
|
import pulumi
|
640
642
|
import pulumi_ns1 as ns1
|
641
643
|
|
642
|
-
uswest_monitor = ns1.MonitoringJob("
|
643
|
-
name="uswest",
|
644
|
+
uswest_monitor = ns1.MonitoringJob("uswestMonitor",
|
644
645
|
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,
|
645
657
|
regions=[
|
646
658
|
"lga",
|
647
659
|
"sjc",
|
648
660
|
"sin",
|
649
661
|
],
|
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
|
-
},
|
661
662
|
rules=[ns1.MonitoringJobRuleArgs(
|
662
|
-
value="200 OK",
|
663
663
|
comparison="contains",
|
664
664
|
key="output",
|
665
|
+
value="200 OK",
|
665
666
|
)])
|
666
667
|
```
|
668
|
+
<!--End PulumiCodeChooser -->
|
667
669
|
|
668
670
|
## NS1 Documentation
|
669
671
|
|
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 -->
|
109
110
|
```python
|
110
111
|
import pulumi
|
111
112
|
import pulumi_ns1 as ns1
|
112
113
|
|
113
|
-
nl = ns1.NotifyList("nl",
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
),
|
128
|
-
])
|
114
|
+
nl = ns1.NotifyList("nl", notifications=[
|
115
|
+
ns1.NotifyListNotificationArgs(
|
116
|
+
config={
|
117
|
+
"url": "http://www.mywebhook.com",
|
118
|
+
},
|
119
|
+
type="webhook",
|
120
|
+
),
|
121
|
+
ns1.NotifyListNotificationArgs(
|
122
|
+
config={
|
123
|
+
"email": "test@test.com",
|
124
|
+
},
|
125
|
+
type="email",
|
126
|
+
),
|
127
|
+
])
|
129
128
|
```
|
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 -->
|
157
158
|
```python
|
158
159
|
import pulumi
|
159
160
|
import pulumi_ns1 as ns1
|
160
161
|
|
161
|
-
nl = ns1.NotifyList("nl",
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
),
|
176
|
-
])
|
162
|
+
nl = ns1.NotifyList("nl", notifications=[
|
163
|
+
ns1.NotifyListNotificationArgs(
|
164
|
+
config={
|
165
|
+
"url": "http://www.mywebhook.com",
|
166
|
+
},
|
167
|
+
type="webhook",
|
168
|
+
),
|
169
|
+
ns1.NotifyListNotificationArgs(
|
170
|
+
config={
|
171
|
+
"email": "test@test.com",
|
172
|
+
},
|
173
|
+
type="email",
|
174
|
+
),
|
175
|
+
])
|
177
176
|
```
|
177
|
+
<!--End PulumiCodeChooser -->
|
178
178
|
|
179
179
|
## NS1 Documentation
|
180
180
|
|
pulumi_ns1/pulumi-plugin.json
CHANGED
pulumi_ns1/record.py
CHANGED
@@ -47,7 +47,6 @@ 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
|
51
50
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
52
51
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
53
52
|
available(in filter chain).
|
@@ -217,9 +216,6 @@ class RecordArgs:
|
|
217
216
|
@property
|
218
217
|
@pulumi.getter
|
219
218
|
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
|
-
"""
|
223
219
|
return pulumi.get(self, "tags")
|
224
220
|
|
225
221
|
@tags.setter
|
@@ -285,7 +281,6 @@ class _RecordState:
|
|
285
281
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
286
282
|
but remain `regions` here for legacy reasons. Regions are
|
287
283
|
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
|
289
284
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
290
285
|
:param pulumi.Input[str] type: The records' RR type.
|
291
286
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
@@ -436,9 +431,6 @@ class _RecordState:
|
|
436
431
|
@property
|
437
432
|
@pulumi.getter
|
438
433
|
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
|
-
"""
|
442
434
|
return pulumi.get(self, "tags")
|
443
435
|
|
444
436
|
@tags.setter
|
@@ -521,120 +513,6 @@ class Record(pulumi.CustomResource):
|
|
521
513
|
"""
|
522
514
|
Provides a NS1 Record resource. This can be used to create, modify, and delete records.
|
523
515
|
|
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
|
-
|
638
516
|
## Import
|
639
517
|
|
640
518
|
```sh
|
@@ -661,7 +539,6 @@ class Record(pulumi.CustomResource):
|
|
661
539
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
662
540
|
but remain `regions` here for legacy reasons. Regions are
|
663
541
|
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
|
665
542
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
666
543
|
:param pulumi.Input[str] type: The records' RR type.
|
667
544
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
@@ -680,120 +557,6 @@ class Record(pulumi.CustomResource):
|
|
680
557
|
"""
|
681
558
|
Provides a NS1 Record resource. This can be used to create, modify, and delete records.
|
682
559
|
|
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
|
-
|
797
560
|
## Import
|
798
561
|
|
799
562
|
```sh
|
@@ -907,7 +670,6 @@ class Record(pulumi.CustomResource):
|
|
907
670
|
just groupings based on metadata, and are called "Answer Groups" in the NS1 UI,
|
908
671
|
but remain `regions` here for legacy reasons. Regions are
|
909
672
|
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
|
911
673
|
:param pulumi.Input[int] ttl: The records' time to live (in seconds).
|
912
674
|
:param pulumi.Input[str] type: The records' RR type.
|
913
675
|
:param pulumi.Input[bool] use_client_subnet: Whether to use EDNS client subnet data when
|
@@ -1010,9 +772,6 @@ class Record(pulumi.CustomResource):
|
|
1010
772
|
@property
|
1011
773
|
@pulumi.getter
|
1012
774
|
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
|
-
"""
|
1016
775
|
return pulumi.get(self, "tags")
|
1017
776
|
|
1018
777
|
@property
|
pulumi_ns1/team.py
CHANGED
@@ -1063,13 +1063,15 @@ class Team(pulumi.CustomResource):
|
|
1063
1063
|
|
1064
1064
|
## Example Usage
|
1065
1065
|
|
1066
|
+
<!--Start PulumiCodeChooser -->
|
1066
1067
|
```python
|
1067
1068
|
import pulumi
|
1068
1069
|
import pulumi_ns1 as ns1
|
1069
1070
|
|
1070
1071
|
# Create a new NS1 Team
|
1071
1072
|
example = ns1.Team("example",
|
1072
|
-
|
1073
|
+
account_manage_users=False,
|
1074
|
+
dns_view_zones=False,
|
1073
1075
|
ip_whitelists=[
|
1074
1076
|
ns1.TeamIpWhitelistArgs(
|
1075
1077
|
name="whitelist-1",
|
@@ -1085,24 +1087,22 @@ class Team(pulumi.CustomResource):
|
|
1085
1087
|
"4.4.4.4",
|
1086
1088
|
],
|
1087
1089
|
),
|
1088
|
-
]
|
1089
|
-
dns_view_zones=False,
|
1090
|
-
account_manage_users=False)
|
1090
|
+
])
|
1091
1091
|
# Another team
|
1092
1092
|
example2 = ns1.Team("example2",
|
1093
|
-
|
1094
|
-
dns_view_zones=True,
|
1095
|
-
dns_zones_allow_by_default=True,
|
1096
|
-
dns_zones_allows=["mytest.zone"],
|
1097
|
-
dns_zones_denies=["myother.zone"],
|
1093
|
+
data_manage_datasources=True,
|
1098
1094
|
dns_records_allows=[ns1.TeamDnsRecordsAllowArgs(
|
1099
1095
|
domain="terraform.example.io",
|
1100
1096
|
include_subdomains=False,
|
1101
|
-
zone="example.io",
|
1102
1097
|
type="A",
|
1098
|
+
zone="example.io",
|
1103
1099
|
)],
|
1104
|
-
|
1100
|
+
dns_view_zones=True,
|
1101
|
+
dns_zones_allows=["mytest.zone"],
|
1102
|
+
dns_zones_allow_by_default=True,
|
1103
|
+
dns_zones_denies=["myother.zone"])
|
1105
1104
|
```
|
1105
|
+
<!--End PulumiCodeChooser -->
|
1106
1106
|
|
1107
1107
|
## NS1 Documentation
|
1108
1108
|
|
@@ -1164,13 +1164,15 @@ class Team(pulumi.CustomResource):
|
|
1164
1164
|
|
1165
1165
|
## Example Usage
|
1166
1166
|
|
1167
|
+
<!--Start PulumiCodeChooser -->
|
1167
1168
|
```python
|
1168
1169
|
import pulumi
|
1169
1170
|
import pulumi_ns1 as ns1
|
1170
1171
|
|
1171
1172
|
# Create a new NS1 Team
|
1172
1173
|
example = ns1.Team("example",
|
1173
|
-
|
1174
|
+
account_manage_users=False,
|
1175
|
+
dns_view_zones=False,
|
1174
1176
|
ip_whitelists=[
|
1175
1177
|
ns1.TeamIpWhitelistArgs(
|
1176
1178
|
name="whitelist-1",
|
@@ -1186,24 +1188,22 @@ class Team(pulumi.CustomResource):
|
|
1186
1188
|
"4.4.4.4",
|
1187
1189
|
],
|
1188
1190
|
),
|
1189
|
-
]
|
1190
|
-
dns_view_zones=False,
|
1191
|
-
account_manage_users=False)
|
1191
|
+
])
|
1192
1192
|
# Another team
|
1193
1193
|
example2 = ns1.Team("example2",
|
1194
|
-
|
1195
|
-
dns_view_zones=True,
|
1196
|
-
dns_zones_allow_by_default=True,
|
1197
|
-
dns_zones_allows=["mytest.zone"],
|
1198
|
-
dns_zones_denies=["myother.zone"],
|
1194
|
+
data_manage_datasources=True,
|
1199
1195
|
dns_records_allows=[ns1.TeamDnsRecordsAllowArgs(
|
1200
1196
|
domain="terraform.example.io",
|
1201
1197
|
include_subdomains=False,
|
1202
|
-
zone="example.io",
|
1203
1198
|
type="A",
|
1199
|
+
zone="example.io",
|
1204
1200
|
)],
|
1205
|
-
|
1201
|
+
dns_view_zones=True,
|
1202
|
+
dns_zones_allows=["mytest.zone"],
|
1203
|
+
dns_zones_allow_by_default=True,
|
1204
|
+
dns_zones_denies=["myother.zone"])
|
1206
1205
|
```
|
1206
|
+
<!--End PulumiCodeChooser -->
|
1207
1207
|
|
1208
1208
|
## NS1 Documentation
|
1209
1209
|
|
pulumi_ns1/tsigkey.py
CHANGED
@@ -135,15 +135,16 @@ class Tsigkey(pulumi.CustomResource):
|
|
135
135
|
|
136
136
|
## Example Usage
|
137
137
|
|
138
|
+
<!--Start PulumiCodeChooser -->
|
138
139
|
```python
|
139
140
|
import pulumi
|
140
141
|
import pulumi_ns1 as ns1
|
141
142
|
|
142
143
|
example = ns1.Tsigkey("example",
|
143
|
-
name="ExampleTsigKey",
|
144
144
|
algorithm="hmac-sha256",
|
145
145
|
secret="Ok1qR5IW1ajVka5cHPEJQIXfLyx5V3PSkFBROAzOn21JumDq6nIpoj6H8rfj5Uo+Ok55ZWQ0Wgrf302fDscHLA==")
|
146
146
|
```
|
147
|
+
<!--End PulumiCodeChooser -->
|
147
148
|
## NS1 Documentation
|
148
149
|
|
149
150
|
[TSIG Keys Api Doc](https://ns1.com/api/#tsig)
|
@@ -171,15 +172,16 @@ class Tsigkey(pulumi.CustomResource):
|
|
171
172
|
|
172
173
|
## Example Usage
|
173
174
|
|
175
|
+
<!--Start PulumiCodeChooser -->
|
174
176
|
```python
|
175
177
|
import pulumi
|
176
178
|
import pulumi_ns1 as ns1
|
177
179
|
|
178
180
|
example = ns1.Tsigkey("example",
|
179
|
-
name="ExampleTsigKey",
|
180
181
|
algorithm="hmac-sha256",
|
181
182
|
secret="Ok1qR5IW1ajVka5cHPEJQIXfLyx5V3PSkFBROAzOn21JumDq6nIpoj6H8rfj5Uo+Ok55ZWQ0Wgrf302fDscHLA==")
|
182
183
|
```
|
184
|
+
<!--End PulumiCodeChooser -->
|
183
185
|
## NS1 Documentation
|
184
186
|
|
185
187
|
[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 -->
|
1202
1203
|
```python
|
1203
1204
|
import pulumi
|
1204
1205
|
import pulumi_ns1 as ns1
|
1205
1206
|
|
1206
|
-
|
1207
|
-
name="Example team",
|
1207
|
+
example_team = ns1.Team("exampleTeam",
|
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("
|
1215
|
-
name="Example User",
|
1214
|
+
example_user = ns1.User("exampleUser",
|
1216
1215
|
username="example_user",
|
1217
1216
|
email="user@example.com",
|
1218
|
-
teams=[
|
1217
|
+
teams=[example_team.id],
|
1219
1218
|
notify={
|
1220
1219
|
"billing": False,
|
1221
1220
|
})
|
1222
1221
|
```
|
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 -->
|
1301
1302
|
```python
|
1302
1303
|
import pulumi
|
1303
1304
|
import pulumi_ns1 as ns1
|
1304
1305
|
|
1305
|
-
|
1306
|
-
name="Example team",
|
1306
|
+
example_team = ns1.Team("exampleTeam",
|
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("
|
1314
|
-
name="Example User",
|
1313
|
+
example_user = ns1.User("exampleUser",
|
1315
1314
|
username="example_user",
|
1316
1315
|
email="user@example.com",
|
1317
|
-
teams=[
|
1316
|
+
teams=[example_team.id],
|
1318
1317
|
notify={
|
1319
1318
|
"billing": False,
|
1320
1319
|
})
|
1321
1320
|
```
|
1321
|
+
<!--End PulumiCodeChooser -->
|
1322
1322
|
|
1323
1323
|
## Permissions
|
1324
1324
|
|
pulumi_ns1/zone.py
CHANGED
@@ -60,7 +60,6 @@ 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
|
64
63
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
65
64
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
66
65
|
"""
|
@@ -286,9 +285,6 @@ class ZoneArgs:
|
|
286
285
|
@property
|
287
286
|
@pulumi.getter
|
288
287
|
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
|
-
"""
|
292
288
|
return pulumi.get(self, "tags")
|
293
289
|
|
294
290
|
@tags.setter
|
@@ -368,7 +364,6 @@ class _ZoneState:
|
|
368
364
|
:param pulumi.Input[Sequence[pulumi.Input['ZoneSecondaryArgs']]] secondaries: List of secondary servers. This makes the zone a
|
369
365
|
primary. Conflicts with `primary` and `additional_primaries`.
|
370
366
|
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
|
372
367
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
373
368
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
374
369
|
:param pulumi.Input[str] zone: The domain name of the zone.
|
@@ -598,9 +593,6 @@ class _ZoneState:
|
|
598
593
|
@property
|
599
594
|
@pulumi.getter
|
600
595
|
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
|
-
"""
|
604
596
|
return pulumi.get(self, "tags")
|
605
597
|
|
606
598
|
@tags.setter
|
@@ -706,7 +698,6 @@ class Zone(pulumi.CustomResource):
|
|
706
698
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ZoneSecondaryArgs']]]] secondaries: List of secondary servers. This makes the zone a
|
707
699
|
primary. Conflicts with `primary` and `additional_primaries`.
|
708
700
|
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
|
710
701
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
711
702
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
712
703
|
:param pulumi.Input[str] zone: The domain name of the zone.
|
@@ -853,7 +844,6 @@ class Zone(pulumi.CustomResource):
|
|
853
844
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ZoneSecondaryArgs']]]] secondaries: List of secondary servers. This makes the zone a
|
854
845
|
primary. Conflicts with `primary` and `additional_primaries`.
|
855
846
|
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
|
857
847
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tsig: TSIG is documented below
|
858
848
|
:param pulumi.Input[int] ttl: The SOA TTL.
|
859
849
|
:param pulumi.Input[str] zone: The domain name of the zone.
|
@@ -1009,9 +999,6 @@ class Zone(pulumi.CustomResource):
|
|
1009
999
|
@property
|
1010
1000
|
@pulumi.getter
|
1011
1001
|
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
|
-
"""
|
1015
1002
|
return pulumi.get(self, "tags")
|
1016
1003
|
|
1017
1004
|
@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=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.3.0a1710918500.dist-info/METADATA,sha256=8qt5A9DRgNC_EYNVpSGNkZzwaupd4Rh1jOEDZt6qQNU,3047
|
33
|
+
pulumi_ns1-3.3.0a1710918500.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
34
|
+
pulumi_ns1-3.3.0a1710918500.dist-info/top_level.txt,sha256=Sndx9N4MHnSbjpwVT-_JZ8NZ7JzudJUIUQkU2-9GH9U,11
|
35
|
+
pulumi_ns1-3.3.0a1710918500.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=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,,
|
File without changes
|
File without changes
|