pulumi-ns1 3.7.0a1753337859__py3-none-any.whl → 3.7.0a1753397901__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/__init__.py +1 -1
- pulumi_ns1/_inputs.py +424 -425
- pulumi_ns1/account_whitelist.py +35 -36
- pulumi_ns1/alert.py +139 -140
- pulumi_ns1/api_key.py +526 -527
- pulumi_ns1/application.py +72 -73
- pulumi_ns1/config/__init__.py +1 -1
- pulumi_ns1/config/__init__.pyi +1 -2
- pulumi_ns1/config/vars.py +7 -8
- pulumi_ns1/data_feed.py +52 -53
- pulumi_ns1/data_source.py +52 -53
- pulumi_ns1/dataset.py +51 -52
- pulumi_ns1/dnsview.py +93 -94
- pulumi_ns1/get_billing_usage.py +48 -49
- pulumi_ns1/get_dns_sec.py +11 -12
- pulumi_ns1/get_monitoring_regions.py +4 -5
- pulumi_ns1/get_networks.py +4 -5
- pulumi_ns1/get_record.py +40 -41
- pulumi_ns1/get_zone.py +52 -53
- pulumi_ns1/monitoring_job.py +255 -256
- pulumi_ns1/notify_list.py +21 -22
- pulumi_ns1/outputs.py +414 -415
- pulumi_ns1/provider.py +56 -57
- pulumi_ns1/pulsar_job.py +96 -97
- pulumi_ns1/pulumi-plugin.json +1 -1
- pulumi_ns1/record.py +194 -195
- pulumi_ns1/redirect.py +168 -169
- pulumi_ns1/redirect_certificate.py +49 -50
- pulumi_ns1/team.py +469 -470
- pulumi_ns1/tsigkey.py +52 -53
- pulumi_ns1/user.py +568 -569
- pulumi_ns1/zone.py +329 -330
- {pulumi_ns1-3.7.0a1753337859.dist-info → pulumi_ns1-3.7.0a1753397901.dist-info}/METADATA +1 -1
- pulumi_ns1-3.7.0a1753397901.dist-info/RECORD +38 -0
- pulumi_ns1-3.7.0a1753337859.dist-info/RECORD +0 -38
- {pulumi_ns1-3.7.0a1753337859.dist-info → pulumi_ns1-3.7.0a1753397901.dist-info}/WHEEL +0 -0
- {pulumi_ns1-3.7.0a1753337859.dist-info → pulumi_ns1-3.7.0a1753397901.dist-info}/top_level.txt +0 -0
pulumi_ns1/redirect.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -20,25 +19,25 @@ __all__ = ['RedirectArgs', 'Redirect']
|
|
20
19
|
@pulumi.input_type
|
21
20
|
class RedirectArgs:
|
22
21
|
def __init__(__self__, *,
|
23
|
-
domain: pulumi.Input[
|
24
|
-
path: pulumi.Input[
|
25
|
-
target: pulumi.Input[
|
26
|
-
certificate_id: Optional[pulumi.Input[
|
27
|
-
forwarding_mode: Optional[pulumi.Input[
|
28
|
-
forwarding_type: Optional[pulumi.Input[
|
29
|
-
https_forced: Optional[pulumi.Input[
|
30
|
-
query_forwarding: Optional[pulumi.Input[
|
31
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
22
|
+
domain: pulumi.Input[_builtins.str],
|
23
|
+
path: pulumi.Input[_builtins.str],
|
24
|
+
target: pulumi.Input[_builtins.str],
|
25
|
+
certificate_id: Optional[pulumi.Input[_builtins.str]] = None,
|
26
|
+
forwarding_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
27
|
+
forwarding_type: Optional[pulumi.Input[_builtins.str]] = None,
|
28
|
+
https_forced: Optional[pulumi.Input[_builtins.bool]] = None,
|
29
|
+
query_forwarding: Optional[pulumi.Input[_builtins.bool]] = None,
|
30
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
32
31
|
"""
|
33
32
|
The set of arguments for constructing a Redirect resource.
|
34
|
-
:param pulumi.Input[
|
35
|
-
:param pulumi.Input[
|
36
|
-
:param pulumi.Input[
|
37
|
-
:param pulumi.Input[
|
33
|
+
:param pulumi.Input[_builtins.str] domain: The domain the redirect refers to.
|
34
|
+
:param pulumi.Input[_builtins.str] path: The path on the domain to redirect from.
|
35
|
+
:param pulumi.Input[_builtins.str] target: The URL to redirect to.
|
36
|
+
:param pulumi.Input[_builtins.str] forwarding_mode: How the target is interpreted:
|
38
37
|
* __all__ appends the entire incoming path to the target destination;
|
39
38
|
* __capture__ appends only the part of the incoming path corresponding to the wildcard (*);
|
40
39
|
* __none__ does not append any part of the incoming path.
|
41
|
-
:param pulumi.Input[
|
40
|
+
:param pulumi.Input[_builtins.str] forwarding_type: How the redirect is executed:
|
42
41
|
* __permanent__ (HTTP 301) indicates to search engines that they should remove the old page from
|
43
42
|
their database and replace it with the new target page (this is recommended for SEO);
|
44
43
|
* __temporary__ (HTTP 302) less common, indicates that search engines should keep the old domain or
|
@@ -47,9 +46,9 @@ class RedirectArgs:
|
|
47
46
|
prefer the new target page);
|
48
47
|
* __masking__ preserves the redirected domain in the browser's address bar (this lets users see the
|
49
48
|
address they entered, even though the displayed content comes from a different web page).
|
50
|
-
:param pulumi.Input[
|
51
|
-
:param pulumi.Input[
|
52
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
49
|
+
:param pulumi.Input[_builtins.bool] https_forced: Forces redirect for users that try to visit HTTP domain to HTTPS instead.
|
50
|
+
:param pulumi.Input[_builtins.bool] query_forwarding: Enables the query string of a URL to be applied directly to the new target URL.
|
51
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags associated with the configuration.
|
53
52
|
"""
|
54
53
|
pulumi.set(__self__, "domain", domain)
|
55
54
|
pulumi.set(__self__, "path", path)
|
@@ -67,54 +66,54 @@ class RedirectArgs:
|
|
67
66
|
if tags is not None:
|
68
67
|
pulumi.set(__self__, "tags", tags)
|
69
68
|
|
70
|
-
@property
|
69
|
+
@_builtins.property
|
71
70
|
@pulumi.getter
|
72
|
-
def domain(self) -> pulumi.Input[
|
71
|
+
def domain(self) -> pulumi.Input[_builtins.str]:
|
73
72
|
"""
|
74
73
|
The domain the redirect refers to.
|
75
74
|
"""
|
76
75
|
return pulumi.get(self, "domain")
|
77
76
|
|
78
77
|
@domain.setter
|
79
|
-
def domain(self, value: pulumi.Input[
|
78
|
+
def domain(self, value: pulumi.Input[_builtins.str]):
|
80
79
|
pulumi.set(self, "domain", value)
|
81
80
|
|
82
|
-
@property
|
81
|
+
@_builtins.property
|
83
82
|
@pulumi.getter
|
84
|
-
def path(self) -> pulumi.Input[
|
83
|
+
def path(self) -> pulumi.Input[_builtins.str]:
|
85
84
|
"""
|
86
85
|
The path on the domain to redirect from.
|
87
86
|
"""
|
88
87
|
return pulumi.get(self, "path")
|
89
88
|
|
90
89
|
@path.setter
|
91
|
-
def path(self, value: pulumi.Input[
|
90
|
+
def path(self, value: pulumi.Input[_builtins.str]):
|
92
91
|
pulumi.set(self, "path", value)
|
93
92
|
|
94
|
-
@property
|
93
|
+
@_builtins.property
|
95
94
|
@pulumi.getter
|
96
|
-
def target(self) -> pulumi.Input[
|
95
|
+
def target(self) -> pulumi.Input[_builtins.str]:
|
97
96
|
"""
|
98
97
|
The URL to redirect to.
|
99
98
|
"""
|
100
99
|
return pulumi.get(self, "target")
|
101
100
|
|
102
101
|
@target.setter
|
103
|
-
def target(self, value: pulumi.Input[
|
102
|
+
def target(self, value: pulumi.Input[_builtins.str]):
|
104
103
|
pulumi.set(self, "target", value)
|
105
104
|
|
106
|
-
@property
|
105
|
+
@_builtins.property
|
107
106
|
@pulumi.getter(name="certificateId")
|
108
|
-
def certificate_id(self) -> Optional[pulumi.Input[
|
107
|
+
def certificate_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
109
108
|
return pulumi.get(self, "certificate_id")
|
110
109
|
|
111
110
|
@certificate_id.setter
|
112
|
-
def certificate_id(self, value: Optional[pulumi.Input[
|
111
|
+
def certificate_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
113
112
|
pulumi.set(self, "certificate_id", value)
|
114
113
|
|
115
|
-
@property
|
114
|
+
@_builtins.property
|
116
115
|
@pulumi.getter(name="forwardingMode")
|
117
|
-
def forwarding_mode(self) -> Optional[pulumi.Input[
|
116
|
+
def forwarding_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
|
118
117
|
"""
|
119
118
|
How the target is interpreted:
|
120
119
|
* __all__ appends the entire incoming path to the target destination;
|
@@ -124,12 +123,12 @@ class RedirectArgs:
|
|
124
123
|
return pulumi.get(self, "forwarding_mode")
|
125
124
|
|
126
125
|
@forwarding_mode.setter
|
127
|
-
def forwarding_mode(self, value: Optional[pulumi.Input[
|
126
|
+
def forwarding_mode(self, value: Optional[pulumi.Input[_builtins.str]]):
|
128
127
|
pulumi.set(self, "forwarding_mode", value)
|
129
128
|
|
130
|
-
@property
|
129
|
+
@_builtins.property
|
131
130
|
@pulumi.getter(name="forwardingType")
|
132
|
-
def forwarding_type(self) -> Optional[pulumi.Input[
|
131
|
+
def forwarding_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
133
132
|
"""
|
134
133
|
How the redirect is executed:
|
135
134
|
* __permanent__ (HTTP 301) indicates to search engines that they should remove the old page from
|
@@ -144,68 +143,68 @@ class RedirectArgs:
|
|
144
143
|
return pulumi.get(self, "forwarding_type")
|
145
144
|
|
146
145
|
@forwarding_type.setter
|
147
|
-
def forwarding_type(self, value: Optional[pulumi.Input[
|
146
|
+
def forwarding_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
148
147
|
pulumi.set(self, "forwarding_type", value)
|
149
148
|
|
150
|
-
@property
|
149
|
+
@_builtins.property
|
151
150
|
@pulumi.getter(name="httpsForced")
|
152
|
-
def https_forced(self) -> Optional[pulumi.Input[
|
151
|
+
def https_forced(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
153
152
|
"""
|
154
153
|
Forces redirect for users that try to visit HTTP domain to HTTPS instead.
|
155
154
|
"""
|
156
155
|
return pulumi.get(self, "https_forced")
|
157
156
|
|
158
157
|
@https_forced.setter
|
159
|
-
def https_forced(self, value: Optional[pulumi.Input[
|
158
|
+
def https_forced(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
160
159
|
pulumi.set(self, "https_forced", value)
|
161
160
|
|
162
|
-
@property
|
161
|
+
@_builtins.property
|
163
162
|
@pulumi.getter(name="queryForwarding")
|
164
|
-
def query_forwarding(self) -> Optional[pulumi.Input[
|
163
|
+
def query_forwarding(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
165
164
|
"""
|
166
165
|
Enables the query string of a URL to be applied directly to the new target URL.
|
167
166
|
"""
|
168
167
|
return pulumi.get(self, "query_forwarding")
|
169
168
|
|
170
169
|
@query_forwarding.setter
|
171
|
-
def query_forwarding(self, value: Optional[pulumi.Input[
|
170
|
+
def query_forwarding(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
172
171
|
pulumi.set(self, "query_forwarding", value)
|
173
172
|
|
174
|
-
@property
|
173
|
+
@_builtins.property
|
175
174
|
@pulumi.getter
|
176
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
175
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
177
176
|
"""
|
178
177
|
Tags associated with the configuration.
|
179
178
|
"""
|
180
179
|
return pulumi.get(self, "tags")
|
181
180
|
|
182
181
|
@tags.setter
|
183
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
182
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
184
183
|
pulumi.set(self, "tags", value)
|
185
184
|
|
186
185
|
|
187
186
|
@pulumi.input_type
|
188
187
|
class _RedirectState:
|
189
188
|
def __init__(__self__, *,
|
190
|
-
certificate_id: Optional[pulumi.Input[
|
191
|
-
domain: Optional[pulumi.Input[
|
192
|
-
forwarding_mode: Optional[pulumi.Input[
|
193
|
-
forwarding_type: Optional[pulumi.Input[
|
194
|
-
https_enabled: Optional[pulumi.Input[
|
195
|
-
https_forced: Optional[pulumi.Input[
|
196
|
-
last_updated: Optional[pulumi.Input[
|
197
|
-
path: Optional[pulumi.Input[
|
198
|
-
query_forwarding: Optional[pulumi.Input[
|
199
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
200
|
-
target: Optional[pulumi.Input[
|
189
|
+
certificate_id: Optional[pulumi.Input[_builtins.str]] = None,
|
190
|
+
domain: Optional[pulumi.Input[_builtins.str]] = None,
|
191
|
+
forwarding_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
192
|
+
forwarding_type: Optional[pulumi.Input[_builtins.str]] = None,
|
193
|
+
https_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
194
|
+
https_forced: Optional[pulumi.Input[_builtins.bool]] = None,
|
195
|
+
last_updated: Optional[pulumi.Input[_builtins.int]] = None,
|
196
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
197
|
+
query_forwarding: Optional[pulumi.Input[_builtins.bool]] = None,
|
198
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
199
|
+
target: Optional[pulumi.Input[_builtins.str]] = None):
|
201
200
|
"""
|
202
201
|
Input properties used for looking up and filtering Redirect resources.
|
203
|
-
:param pulumi.Input[
|
204
|
-
:param pulumi.Input[
|
202
|
+
:param pulumi.Input[_builtins.str] domain: The domain the redirect refers to.
|
203
|
+
:param pulumi.Input[_builtins.str] forwarding_mode: How the target is interpreted:
|
205
204
|
* __all__ appends the entire incoming path to the target destination;
|
206
205
|
* __capture__ appends only the part of the incoming path corresponding to the wildcard (*);
|
207
206
|
* __none__ does not append any part of the incoming path.
|
208
|
-
:param pulumi.Input[
|
207
|
+
:param pulumi.Input[_builtins.str] forwarding_type: How the redirect is executed:
|
209
208
|
* __permanent__ (HTTP 301) indicates to search engines that they should remove the old page from
|
210
209
|
their database and replace it with the new target page (this is recommended for SEO);
|
211
210
|
* __temporary__ (HTTP 302) less common, indicates that search engines should keep the old domain or
|
@@ -214,13 +213,13 @@ class _RedirectState:
|
|
214
213
|
prefer the new target page);
|
215
214
|
* __masking__ preserves the redirected domain in the browser's address bar (this lets users see the
|
216
215
|
address they entered, even though the displayed content comes from a different web page).
|
217
|
-
:param pulumi.Input[
|
218
|
-
:param pulumi.Input[
|
219
|
-
:param pulumi.Input[
|
220
|
-
:param pulumi.Input[
|
221
|
-
:param pulumi.Input[
|
222
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
223
|
-
:param pulumi.Input[
|
216
|
+
:param pulumi.Input[_builtins.bool] https_enabled: True if HTTPS is supported on the source domain by using Let's Encrypt certificates.
|
217
|
+
:param pulumi.Input[_builtins.bool] https_forced: Forces redirect for users that try to visit HTTP domain to HTTPS instead.
|
218
|
+
:param pulumi.Input[_builtins.int] last_updated: The Unix timestamp representing when the certificate was last signed.
|
219
|
+
:param pulumi.Input[_builtins.str] path: The path on the domain to redirect from.
|
220
|
+
:param pulumi.Input[_builtins.bool] query_forwarding: Enables the query string of a URL to be applied directly to the new target URL.
|
221
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags associated with the configuration.
|
222
|
+
:param pulumi.Input[_builtins.str] target: The URL to redirect to.
|
224
223
|
"""
|
225
224
|
if certificate_id is not None:
|
226
225
|
pulumi.set(__self__, "certificate_id", certificate_id)
|
@@ -245,30 +244,30 @@ class _RedirectState:
|
|
245
244
|
if target is not None:
|
246
245
|
pulumi.set(__self__, "target", target)
|
247
246
|
|
248
|
-
@property
|
247
|
+
@_builtins.property
|
249
248
|
@pulumi.getter(name="certificateId")
|
250
|
-
def certificate_id(self) -> Optional[pulumi.Input[
|
249
|
+
def certificate_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
251
250
|
return pulumi.get(self, "certificate_id")
|
252
251
|
|
253
252
|
@certificate_id.setter
|
254
|
-
def certificate_id(self, value: Optional[pulumi.Input[
|
253
|
+
def certificate_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
255
254
|
pulumi.set(self, "certificate_id", value)
|
256
255
|
|
257
|
-
@property
|
256
|
+
@_builtins.property
|
258
257
|
@pulumi.getter
|
259
|
-
def domain(self) -> Optional[pulumi.Input[
|
258
|
+
def domain(self) -> Optional[pulumi.Input[_builtins.str]]:
|
260
259
|
"""
|
261
260
|
The domain the redirect refers to.
|
262
261
|
"""
|
263
262
|
return pulumi.get(self, "domain")
|
264
263
|
|
265
264
|
@domain.setter
|
266
|
-
def domain(self, value: Optional[pulumi.Input[
|
265
|
+
def domain(self, value: Optional[pulumi.Input[_builtins.str]]):
|
267
266
|
pulumi.set(self, "domain", value)
|
268
267
|
|
269
|
-
@property
|
268
|
+
@_builtins.property
|
270
269
|
@pulumi.getter(name="forwardingMode")
|
271
|
-
def forwarding_mode(self) -> Optional[pulumi.Input[
|
270
|
+
def forwarding_mode(self) -> Optional[pulumi.Input[_builtins.str]]:
|
272
271
|
"""
|
273
272
|
How the target is interpreted:
|
274
273
|
* __all__ appends the entire incoming path to the target destination;
|
@@ -278,12 +277,12 @@ class _RedirectState:
|
|
278
277
|
return pulumi.get(self, "forwarding_mode")
|
279
278
|
|
280
279
|
@forwarding_mode.setter
|
281
|
-
def forwarding_mode(self, value: Optional[pulumi.Input[
|
280
|
+
def forwarding_mode(self, value: Optional[pulumi.Input[_builtins.str]]):
|
282
281
|
pulumi.set(self, "forwarding_mode", value)
|
283
282
|
|
284
|
-
@property
|
283
|
+
@_builtins.property
|
285
284
|
@pulumi.getter(name="forwardingType")
|
286
|
-
def forwarding_type(self) -> Optional[pulumi.Input[
|
285
|
+
def forwarding_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
287
286
|
"""
|
288
287
|
How the redirect is executed:
|
289
288
|
* __permanent__ (HTTP 301) indicates to search engines that they should remove the old page from
|
@@ -298,91 +297,91 @@ class _RedirectState:
|
|
298
297
|
return pulumi.get(self, "forwarding_type")
|
299
298
|
|
300
299
|
@forwarding_type.setter
|
301
|
-
def forwarding_type(self, value: Optional[pulumi.Input[
|
300
|
+
def forwarding_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
302
301
|
pulumi.set(self, "forwarding_type", value)
|
303
302
|
|
304
|
-
@property
|
303
|
+
@_builtins.property
|
305
304
|
@pulumi.getter(name="httpsEnabled")
|
306
|
-
def https_enabled(self) -> Optional[pulumi.Input[
|
305
|
+
def https_enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
307
306
|
"""
|
308
307
|
True if HTTPS is supported on the source domain by using Let's Encrypt certificates.
|
309
308
|
"""
|
310
309
|
return pulumi.get(self, "https_enabled")
|
311
310
|
|
312
311
|
@https_enabled.setter
|
313
|
-
def https_enabled(self, value: Optional[pulumi.Input[
|
312
|
+
def https_enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
314
313
|
pulumi.set(self, "https_enabled", value)
|
315
314
|
|
316
|
-
@property
|
315
|
+
@_builtins.property
|
317
316
|
@pulumi.getter(name="httpsForced")
|
318
|
-
def https_forced(self) -> Optional[pulumi.Input[
|
317
|
+
def https_forced(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
319
318
|
"""
|
320
319
|
Forces redirect for users that try to visit HTTP domain to HTTPS instead.
|
321
320
|
"""
|
322
321
|
return pulumi.get(self, "https_forced")
|
323
322
|
|
324
323
|
@https_forced.setter
|
325
|
-
def https_forced(self, value: Optional[pulumi.Input[
|
324
|
+
def https_forced(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
326
325
|
pulumi.set(self, "https_forced", value)
|
327
326
|
|
328
|
-
@property
|
327
|
+
@_builtins.property
|
329
328
|
@pulumi.getter(name="lastUpdated")
|
330
|
-
def last_updated(self) -> Optional[pulumi.Input[
|
329
|
+
def last_updated(self) -> Optional[pulumi.Input[_builtins.int]]:
|
331
330
|
"""
|
332
331
|
The Unix timestamp representing when the certificate was last signed.
|
333
332
|
"""
|
334
333
|
return pulumi.get(self, "last_updated")
|
335
334
|
|
336
335
|
@last_updated.setter
|
337
|
-
def last_updated(self, value: Optional[pulumi.Input[
|
336
|
+
def last_updated(self, value: Optional[pulumi.Input[_builtins.int]]):
|
338
337
|
pulumi.set(self, "last_updated", value)
|
339
338
|
|
340
|
-
@property
|
339
|
+
@_builtins.property
|
341
340
|
@pulumi.getter
|
342
|
-
def path(self) -> Optional[pulumi.Input[
|
341
|
+
def path(self) -> Optional[pulumi.Input[_builtins.str]]:
|
343
342
|
"""
|
344
343
|
The path on the domain to redirect from.
|
345
344
|
"""
|
346
345
|
return pulumi.get(self, "path")
|
347
346
|
|
348
347
|
@path.setter
|
349
|
-
def path(self, value: Optional[pulumi.Input[
|
348
|
+
def path(self, value: Optional[pulumi.Input[_builtins.str]]):
|
350
349
|
pulumi.set(self, "path", value)
|
351
350
|
|
352
|
-
@property
|
351
|
+
@_builtins.property
|
353
352
|
@pulumi.getter(name="queryForwarding")
|
354
|
-
def query_forwarding(self) -> Optional[pulumi.Input[
|
353
|
+
def query_forwarding(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
355
354
|
"""
|
356
355
|
Enables the query string of a URL to be applied directly to the new target URL.
|
357
356
|
"""
|
358
357
|
return pulumi.get(self, "query_forwarding")
|
359
358
|
|
360
359
|
@query_forwarding.setter
|
361
|
-
def query_forwarding(self, value: Optional[pulumi.Input[
|
360
|
+
def query_forwarding(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
362
361
|
pulumi.set(self, "query_forwarding", value)
|
363
362
|
|
364
|
-
@property
|
363
|
+
@_builtins.property
|
365
364
|
@pulumi.getter
|
366
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
365
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
367
366
|
"""
|
368
367
|
Tags associated with the configuration.
|
369
368
|
"""
|
370
369
|
return pulumi.get(self, "tags")
|
371
370
|
|
372
371
|
@tags.setter
|
373
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
372
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
374
373
|
pulumi.set(self, "tags", value)
|
375
374
|
|
376
|
-
@property
|
375
|
+
@_builtins.property
|
377
376
|
@pulumi.getter
|
378
|
-
def target(self) -> Optional[pulumi.Input[
|
377
|
+
def target(self) -> Optional[pulumi.Input[_builtins.str]]:
|
379
378
|
"""
|
380
379
|
The URL to redirect to.
|
381
380
|
"""
|
382
381
|
return pulumi.get(self, "target")
|
383
382
|
|
384
383
|
@target.setter
|
385
|
-
def target(self, value: Optional[pulumi.Input[
|
384
|
+
def target(self, value: Optional[pulumi.Input[_builtins.str]]):
|
386
385
|
pulumi.set(self, "target", value)
|
387
386
|
|
388
387
|
|
@@ -392,15 +391,15 @@ class Redirect(pulumi.CustomResource):
|
|
392
391
|
def __init__(__self__,
|
393
392
|
resource_name: str,
|
394
393
|
opts: Optional[pulumi.ResourceOptions] = None,
|
395
|
-
certificate_id: Optional[pulumi.Input[
|
396
|
-
domain: Optional[pulumi.Input[
|
397
|
-
forwarding_mode: Optional[pulumi.Input[
|
398
|
-
forwarding_type: Optional[pulumi.Input[
|
399
|
-
https_forced: Optional[pulumi.Input[
|
400
|
-
path: Optional[pulumi.Input[
|
401
|
-
query_forwarding: Optional[pulumi.Input[
|
402
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
403
|
-
target: Optional[pulumi.Input[
|
394
|
+
certificate_id: Optional[pulumi.Input[_builtins.str]] = None,
|
395
|
+
domain: Optional[pulumi.Input[_builtins.str]] = None,
|
396
|
+
forwarding_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
397
|
+
forwarding_type: Optional[pulumi.Input[_builtins.str]] = None,
|
398
|
+
https_forced: Optional[pulumi.Input[_builtins.bool]] = None,
|
399
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
400
|
+
query_forwarding: Optional[pulumi.Input[_builtins.bool]] = None,
|
401
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
402
|
+
target: Optional[pulumi.Input[_builtins.str]] = None,
|
404
403
|
__props__=None):
|
405
404
|
"""
|
406
405
|
Provides a NS1 Redirect resource. This can be used to create, modify, and delete redirects.
|
@@ -440,12 +439,12 @@ class Redirect(pulumi.CustomResource):
|
|
440
439
|
|
441
440
|
:param str resource_name: The name of the resource.
|
442
441
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
443
|
-
:param pulumi.Input[
|
444
|
-
:param pulumi.Input[
|
442
|
+
:param pulumi.Input[_builtins.str] domain: The domain the redirect refers to.
|
443
|
+
:param pulumi.Input[_builtins.str] forwarding_mode: How the target is interpreted:
|
445
444
|
* __all__ appends the entire incoming path to the target destination;
|
446
445
|
* __capture__ appends only the part of the incoming path corresponding to the wildcard (*);
|
447
446
|
* __none__ does not append any part of the incoming path.
|
448
|
-
:param pulumi.Input[
|
447
|
+
:param pulumi.Input[_builtins.str] forwarding_type: How the redirect is executed:
|
449
448
|
* __permanent__ (HTTP 301) indicates to search engines that they should remove the old page from
|
450
449
|
their database and replace it with the new target page (this is recommended for SEO);
|
451
450
|
* __temporary__ (HTTP 302) less common, indicates that search engines should keep the old domain or
|
@@ -454,11 +453,11 @@ class Redirect(pulumi.CustomResource):
|
|
454
453
|
prefer the new target page);
|
455
454
|
* __masking__ preserves the redirected domain in the browser's address bar (this lets users see the
|
456
455
|
address they entered, even though the displayed content comes from a different web page).
|
457
|
-
:param pulumi.Input[
|
458
|
-
:param pulumi.Input[
|
459
|
-
:param pulumi.Input[
|
460
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
461
|
-
:param pulumi.Input[
|
456
|
+
:param pulumi.Input[_builtins.bool] https_forced: Forces redirect for users that try to visit HTTP domain to HTTPS instead.
|
457
|
+
:param pulumi.Input[_builtins.str] path: The path on the domain to redirect from.
|
458
|
+
:param pulumi.Input[_builtins.bool] query_forwarding: Enables the query string of a URL to be applied directly to the new target URL.
|
459
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags associated with the configuration.
|
460
|
+
:param pulumi.Input[_builtins.str] target: The URL to redirect to.
|
462
461
|
"""
|
463
462
|
...
|
464
463
|
@overload
|
@@ -517,15 +516,15 @@ class Redirect(pulumi.CustomResource):
|
|
517
516
|
def _internal_init(__self__,
|
518
517
|
resource_name: str,
|
519
518
|
opts: Optional[pulumi.ResourceOptions] = None,
|
520
|
-
certificate_id: Optional[pulumi.Input[
|
521
|
-
domain: Optional[pulumi.Input[
|
522
|
-
forwarding_mode: Optional[pulumi.Input[
|
523
|
-
forwarding_type: Optional[pulumi.Input[
|
524
|
-
https_forced: Optional[pulumi.Input[
|
525
|
-
path: Optional[pulumi.Input[
|
526
|
-
query_forwarding: Optional[pulumi.Input[
|
527
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
528
|
-
target: Optional[pulumi.Input[
|
519
|
+
certificate_id: Optional[pulumi.Input[_builtins.str]] = None,
|
520
|
+
domain: Optional[pulumi.Input[_builtins.str]] = None,
|
521
|
+
forwarding_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
522
|
+
forwarding_type: Optional[pulumi.Input[_builtins.str]] = None,
|
523
|
+
https_forced: Optional[pulumi.Input[_builtins.bool]] = None,
|
524
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
525
|
+
query_forwarding: Optional[pulumi.Input[_builtins.bool]] = None,
|
526
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
527
|
+
target: Optional[pulumi.Input[_builtins.str]] = None,
|
529
528
|
__props__=None):
|
530
529
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
531
530
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -562,17 +561,17 @@ class Redirect(pulumi.CustomResource):
|
|
562
561
|
def get(resource_name: str,
|
563
562
|
id: pulumi.Input[str],
|
564
563
|
opts: Optional[pulumi.ResourceOptions] = None,
|
565
|
-
certificate_id: Optional[pulumi.Input[
|
566
|
-
domain: Optional[pulumi.Input[
|
567
|
-
forwarding_mode: Optional[pulumi.Input[
|
568
|
-
forwarding_type: Optional[pulumi.Input[
|
569
|
-
https_enabled: Optional[pulumi.Input[
|
570
|
-
https_forced: Optional[pulumi.Input[
|
571
|
-
last_updated: Optional[pulumi.Input[
|
572
|
-
path: Optional[pulumi.Input[
|
573
|
-
query_forwarding: Optional[pulumi.Input[
|
574
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
575
|
-
target: Optional[pulumi.Input[
|
564
|
+
certificate_id: Optional[pulumi.Input[_builtins.str]] = None,
|
565
|
+
domain: Optional[pulumi.Input[_builtins.str]] = None,
|
566
|
+
forwarding_mode: Optional[pulumi.Input[_builtins.str]] = None,
|
567
|
+
forwarding_type: Optional[pulumi.Input[_builtins.str]] = None,
|
568
|
+
https_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
569
|
+
https_forced: Optional[pulumi.Input[_builtins.bool]] = None,
|
570
|
+
last_updated: Optional[pulumi.Input[_builtins.int]] = None,
|
571
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
572
|
+
query_forwarding: Optional[pulumi.Input[_builtins.bool]] = None,
|
573
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
574
|
+
target: Optional[pulumi.Input[_builtins.str]] = None) -> 'Redirect':
|
576
575
|
"""
|
577
576
|
Get an existing Redirect resource's state with the given name, id, and optional extra
|
578
577
|
properties used to qualify the lookup.
|
@@ -580,12 +579,12 @@ class Redirect(pulumi.CustomResource):
|
|
580
579
|
:param str resource_name: The unique name of the resulting resource.
|
581
580
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
582
581
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
583
|
-
:param pulumi.Input[
|
584
|
-
:param pulumi.Input[
|
582
|
+
:param pulumi.Input[_builtins.str] domain: The domain the redirect refers to.
|
583
|
+
:param pulumi.Input[_builtins.str] forwarding_mode: How the target is interpreted:
|
585
584
|
* __all__ appends the entire incoming path to the target destination;
|
586
585
|
* __capture__ appends only the part of the incoming path corresponding to the wildcard (*);
|
587
586
|
* __none__ does not append any part of the incoming path.
|
588
|
-
:param pulumi.Input[
|
587
|
+
:param pulumi.Input[_builtins.str] forwarding_type: How the redirect is executed:
|
589
588
|
* __permanent__ (HTTP 301) indicates to search engines that they should remove the old page from
|
590
589
|
their database and replace it with the new target page (this is recommended for SEO);
|
591
590
|
* __temporary__ (HTTP 302) less common, indicates that search engines should keep the old domain or
|
@@ -594,13 +593,13 @@ class Redirect(pulumi.CustomResource):
|
|
594
593
|
prefer the new target page);
|
595
594
|
* __masking__ preserves the redirected domain in the browser's address bar (this lets users see the
|
596
595
|
address they entered, even though the displayed content comes from a different web page).
|
597
|
-
:param pulumi.Input[
|
598
|
-
:param pulumi.Input[
|
599
|
-
:param pulumi.Input[
|
600
|
-
:param pulumi.Input[
|
601
|
-
:param pulumi.Input[
|
602
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
603
|
-
:param pulumi.Input[
|
596
|
+
:param pulumi.Input[_builtins.bool] https_enabled: True if HTTPS is supported on the source domain by using Let's Encrypt certificates.
|
597
|
+
:param pulumi.Input[_builtins.bool] https_forced: Forces redirect for users that try to visit HTTP domain to HTTPS instead.
|
598
|
+
:param pulumi.Input[_builtins.int] last_updated: The Unix timestamp representing when the certificate was last signed.
|
599
|
+
:param pulumi.Input[_builtins.str] path: The path on the domain to redirect from.
|
600
|
+
:param pulumi.Input[_builtins.bool] query_forwarding: Enables the query string of a URL to be applied directly to the new target URL.
|
601
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: Tags associated with the configuration.
|
602
|
+
:param pulumi.Input[_builtins.str] target: The URL to redirect to.
|
604
603
|
"""
|
605
604
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
606
605
|
|
@@ -619,22 +618,22 @@ class Redirect(pulumi.CustomResource):
|
|
619
618
|
__props__.__dict__["target"] = target
|
620
619
|
return Redirect(resource_name, opts=opts, __props__=__props__)
|
621
620
|
|
622
|
-
@property
|
621
|
+
@_builtins.property
|
623
622
|
@pulumi.getter(name="certificateId")
|
624
|
-
def certificate_id(self) -> pulumi.Output[
|
623
|
+
def certificate_id(self) -> pulumi.Output[_builtins.str]:
|
625
624
|
return pulumi.get(self, "certificate_id")
|
626
625
|
|
627
|
-
@property
|
626
|
+
@_builtins.property
|
628
627
|
@pulumi.getter
|
629
|
-
def domain(self) -> pulumi.Output[
|
628
|
+
def domain(self) -> pulumi.Output[_builtins.str]:
|
630
629
|
"""
|
631
630
|
The domain the redirect refers to.
|
632
631
|
"""
|
633
632
|
return pulumi.get(self, "domain")
|
634
633
|
|
635
|
-
@property
|
634
|
+
@_builtins.property
|
636
635
|
@pulumi.getter(name="forwardingMode")
|
637
|
-
def forwarding_mode(self) -> pulumi.Output[Optional[
|
636
|
+
def forwarding_mode(self) -> pulumi.Output[Optional[_builtins.str]]:
|
638
637
|
"""
|
639
638
|
How the target is interpreted:
|
640
639
|
* __all__ appends the entire incoming path to the target destination;
|
@@ -643,9 +642,9 @@ class Redirect(pulumi.CustomResource):
|
|
643
642
|
"""
|
644
643
|
return pulumi.get(self, "forwarding_mode")
|
645
644
|
|
646
|
-
@property
|
645
|
+
@_builtins.property
|
647
646
|
@pulumi.getter(name="forwardingType")
|
648
|
-
def forwarding_type(self) -> pulumi.Output[Optional[
|
647
|
+
def forwarding_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
649
648
|
"""
|
650
649
|
How the redirect is executed:
|
651
650
|
* __permanent__ (HTTP 301) indicates to search engines that they should remove the old page from
|
@@ -659,57 +658,57 @@ class Redirect(pulumi.CustomResource):
|
|
659
658
|
"""
|
660
659
|
return pulumi.get(self, "forwarding_type")
|
661
660
|
|
662
|
-
@property
|
661
|
+
@_builtins.property
|
663
662
|
@pulumi.getter(name="httpsEnabled")
|
664
|
-
def https_enabled(self) -> pulumi.Output[
|
663
|
+
def https_enabled(self) -> pulumi.Output[_builtins.bool]:
|
665
664
|
"""
|
666
665
|
True if HTTPS is supported on the source domain by using Let's Encrypt certificates.
|
667
666
|
"""
|
668
667
|
return pulumi.get(self, "https_enabled")
|
669
668
|
|
670
|
-
@property
|
669
|
+
@_builtins.property
|
671
670
|
@pulumi.getter(name="httpsForced")
|
672
|
-
def https_forced(self) -> pulumi.Output[
|
671
|
+
def https_forced(self) -> pulumi.Output[_builtins.bool]:
|
673
672
|
"""
|
674
673
|
Forces redirect for users that try to visit HTTP domain to HTTPS instead.
|
675
674
|
"""
|
676
675
|
return pulumi.get(self, "https_forced")
|
677
676
|
|
678
|
-
@property
|
677
|
+
@_builtins.property
|
679
678
|
@pulumi.getter(name="lastUpdated")
|
680
|
-
def last_updated(self) -> pulumi.Output[
|
679
|
+
def last_updated(self) -> pulumi.Output[_builtins.int]:
|
681
680
|
"""
|
682
681
|
The Unix timestamp representing when the certificate was last signed.
|
683
682
|
"""
|
684
683
|
return pulumi.get(self, "last_updated")
|
685
684
|
|
686
|
-
@property
|
685
|
+
@_builtins.property
|
687
686
|
@pulumi.getter
|
688
|
-
def path(self) -> pulumi.Output[
|
687
|
+
def path(self) -> pulumi.Output[_builtins.str]:
|
689
688
|
"""
|
690
689
|
The path on the domain to redirect from.
|
691
690
|
"""
|
692
691
|
return pulumi.get(self, "path")
|
693
692
|
|
694
|
-
@property
|
693
|
+
@_builtins.property
|
695
694
|
@pulumi.getter(name="queryForwarding")
|
696
|
-
def query_forwarding(self) -> pulumi.Output[Optional[
|
695
|
+
def query_forwarding(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
697
696
|
"""
|
698
697
|
Enables the query string of a URL to be applied directly to the new target URL.
|
699
698
|
"""
|
700
699
|
return pulumi.get(self, "query_forwarding")
|
701
700
|
|
702
|
-
@property
|
701
|
+
@_builtins.property
|
703
702
|
@pulumi.getter
|
704
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[
|
703
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
705
704
|
"""
|
706
705
|
Tags associated with the configuration.
|
707
706
|
"""
|
708
707
|
return pulumi.get(self, "tags")
|
709
708
|
|
710
|
-
@property
|
709
|
+
@_builtins.property
|
711
710
|
@pulumi.getter
|
712
|
-
def target(self) -> pulumi.Output[
|
711
|
+
def target(self) -> pulumi.Output[_builtins.str]:
|
713
712
|
"""
|
714
713
|
The URL to redirect to.
|
715
714
|
"""
|