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