pulumiverse-cpln 0.0.0__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.
- pulumiverse_cpln/__init__.py +241 -0
- pulumiverse_cpln/_inputs.py +18692 -0
- pulumiverse_cpln/_utilities.py +331 -0
- pulumiverse_cpln/agent.py +330 -0
- pulumiverse_cpln/audit_context.py +300 -0
- pulumiverse_cpln/cloud_account.py +546 -0
- pulumiverse_cpln/config/__init__.py +9 -0
- pulumiverse_cpln/config/__init__.pyi +48 -0
- pulumiverse_cpln/config/vars.py +64 -0
- pulumiverse_cpln/custom_location.py +424 -0
- pulumiverse_cpln/domain.py +377 -0
- pulumiverse_cpln/domain_route.py +645 -0
- pulumiverse_cpln/get_cloud_account.py +107 -0
- pulumiverse_cpln/get_gvc.py +423 -0
- pulumiverse_cpln/get_image.py +284 -0
- pulumiverse_cpln/get_images.py +261 -0
- pulumiverse_cpln/get_location.py +273 -0
- pulumiverse_cpln/get_locations.py +171 -0
- pulumiverse_cpln/get_org.py +250 -0
- pulumiverse_cpln/get_secret.py +555 -0
- pulumiverse_cpln/group.py +539 -0
- pulumiverse_cpln/gvc.py +771 -0
- pulumiverse_cpln/identity.py +688 -0
- pulumiverse_cpln/ip_set.py +521 -0
- pulumiverse_cpln/location.py +435 -0
- pulumiverse_cpln/mk8s.py +848 -0
- pulumiverse_cpln/mk8s_kubeconfig.py +362 -0
- pulumiverse_cpln/org.py +594 -0
- pulumiverse_cpln/org_logging.py +616 -0
- pulumiverse_cpln/org_tracing.py +347 -0
- pulumiverse_cpln/outputs.py +14498 -0
- pulumiverse_cpln/policy.py +620 -0
- pulumiverse_cpln/provider.py +271 -0
- pulumiverse_cpln/pulumi-plugin.json +5 -0
- pulumiverse_cpln/py.typed +0 -0
- pulumiverse_cpln/secret.py +915 -0
- pulumiverse_cpln/service_account.py +328 -0
- pulumiverse_cpln/service_account_key.py +285 -0
- pulumiverse_cpln/volume_set.py +765 -0
- pulumiverse_cpln/workload.py +1033 -0
- pulumiverse_cpln-0.0.0.dist-info/METADATA +83 -0
- pulumiverse_cpln-0.0.0.dist-info/RECORD +44 -0
- pulumiverse_cpln-0.0.0.dist-info/WHEEL +5 -0
- pulumiverse_cpln-0.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,645 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import builtins
|
6
|
+
import copy
|
7
|
+
import warnings
|
8
|
+
import sys
|
9
|
+
import pulumi
|
10
|
+
import pulumi.runtime
|
11
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
12
|
+
if sys.version_info >= (3, 11):
|
13
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
14
|
+
else:
|
15
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
16
|
+
from . import _utilities
|
17
|
+
from . import outputs
|
18
|
+
from ._inputs import *
|
19
|
+
|
20
|
+
__all__ = ['DomainRouteArgs', 'DomainRoute']
|
21
|
+
|
22
|
+
@pulumi.input_type
|
23
|
+
class DomainRouteArgs:
|
24
|
+
def __init__(__self__, *,
|
25
|
+
domain_link: pulumi.Input[builtins.str],
|
26
|
+
workload_link: pulumi.Input[builtins.str],
|
27
|
+
domain_port: Optional[pulumi.Input[builtins.int]] = None,
|
28
|
+
headers: Optional[pulumi.Input['DomainRouteHeadersArgs']] = None,
|
29
|
+
host_prefix: Optional[pulumi.Input[builtins.str]] = None,
|
30
|
+
host_regex: Optional[pulumi.Input[builtins.str]] = None,
|
31
|
+
port: Optional[pulumi.Input[builtins.int]] = None,
|
32
|
+
prefix: Optional[pulumi.Input[builtins.str]] = None,
|
33
|
+
regex: Optional[pulumi.Input[builtins.str]] = None,
|
34
|
+
replace_prefix: Optional[pulumi.Input[builtins.str]] = None,
|
35
|
+
replica: Optional[pulumi.Input[builtins.int]] = None):
|
36
|
+
"""
|
37
|
+
The set of arguments for constructing a DomainRoute resource.
|
38
|
+
:param pulumi.Input[builtins.str] domain_link: The self link of the domain to add the route to.
|
39
|
+
:param pulumi.Input[builtins.str] workload_link: The link of the workload to map the prefix to.
|
40
|
+
:param pulumi.Input[builtins.int] domain_port: The port the route corresponds to. Default: 443
|
41
|
+
:param pulumi.Input['DomainRouteHeadersArgs'] headers: Modify the headers for all http requests for this route.
|
42
|
+
:param pulumi.Input[builtins.str] host_prefix: This option allows forwarding traffic for different host headers to different workloads. This will only be used when the
|
43
|
+
target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on
|
44
|
+
Slack or at support@controlplane.com for additional details.
|
45
|
+
:param pulumi.Input[builtins.str] host_regex: A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and
|
46
|
+
the Domain is configure for wildcard support. Contact your account manager for details.
|
47
|
+
:param pulumi.Input[builtins.int] port: For the linked workload, the port to route traffic to.
|
48
|
+
:param pulumi.Input[builtins.str] prefix: The path will match any unmatched path prefixes for the subdomain.
|
49
|
+
:param pulumi.Input[builtins.str] regex: Used to match URI paths. Uses the google re2 regex syntax.
|
50
|
+
:param pulumi.Input[builtins.str] replace_prefix: A path prefix can be configured to be replaced when forwarding the request to the Workload.
|
51
|
+
:param pulumi.Input[builtins.int] replica: The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
|
52
|
+
"""
|
53
|
+
pulumi.set(__self__, "domain_link", domain_link)
|
54
|
+
pulumi.set(__self__, "workload_link", workload_link)
|
55
|
+
if domain_port is not None:
|
56
|
+
pulumi.set(__self__, "domain_port", domain_port)
|
57
|
+
if headers is not None:
|
58
|
+
pulumi.set(__self__, "headers", headers)
|
59
|
+
if host_prefix is not None:
|
60
|
+
pulumi.set(__self__, "host_prefix", host_prefix)
|
61
|
+
if host_regex is not None:
|
62
|
+
pulumi.set(__self__, "host_regex", host_regex)
|
63
|
+
if port is not None:
|
64
|
+
pulumi.set(__self__, "port", port)
|
65
|
+
if prefix is not None:
|
66
|
+
pulumi.set(__self__, "prefix", prefix)
|
67
|
+
if regex is not None:
|
68
|
+
pulumi.set(__self__, "regex", regex)
|
69
|
+
if replace_prefix is not None:
|
70
|
+
pulumi.set(__self__, "replace_prefix", replace_prefix)
|
71
|
+
if replica is not None:
|
72
|
+
pulumi.set(__self__, "replica", replica)
|
73
|
+
|
74
|
+
@property
|
75
|
+
@pulumi.getter(name="domainLink")
|
76
|
+
def domain_link(self) -> pulumi.Input[builtins.str]:
|
77
|
+
"""
|
78
|
+
The self link of the domain to add the route to.
|
79
|
+
"""
|
80
|
+
return pulumi.get(self, "domain_link")
|
81
|
+
|
82
|
+
@domain_link.setter
|
83
|
+
def domain_link(self, value: pulumi.Input[builtins.str]):
|
84
|
+
pulumi.set(self, "domain_link", value)
|
85
|
+
|
86
|
+
@property
|
87
|
+
@pulumi.getter(name="workloadLink")
|
88
|
+
def workload_link(self) -> pulumi.Input[builtins.str]:
|
89
|
+
"""
|
90
|
+
The link of the workload to map the prefix to.
|
91
|
+
"""
|
92
|
+
return pulumi.get(self, "workload_link")
|
93
|
+
|
94
|
+
@workload_link.setter
|
95
|
+
def workload_link(self, value: pulumi.Input[builtins.str]):
|
96
|
+
pulumi.set(self, "workload_link", value)
|
97
|
+
|
98
|
+
@property
|
99
|
+
@pulumi.getter(name="domainPort")
|
100
|
+
def domain_port(self) -> Optional[pulumi.Input[builtins.int]]:
|
101
|
+
"""
|
102
|
+
The port the route corresponds to. Default: 443
|
103
|
+
"""
|
104
|
+
return pulumi.get(self, "domain_port")
|
105
|
+
|
106
|
+
@domain_port.setter
|
107
|
+
def domain_port(self, value: Optional[pulumi.Input[builtins.int]]):
|
108
|
+
pulumi.set(self, "domain_port", value)
|
109
|
+
|
110
|
+
@property
|
111
|
+
@pulumi.getter
|
112
|
+
def headers(self) -> Optional[pulumi.Input['DomainRouteHeadersArgs']]:
|
113
|
+
"""
|
114
|
+
Modify the headers for all http requests for this route.
|
115
|
+
"""
|
116
|
+
return pulumi.get(self, "headers")
|
117
|
+
|
118
|
+
@headers.setter
|
119
|
+
def headers(self, value: Optional[pulumi.Input['DomainRouteHeadersArgs']]):
|
120
|
+
pulumi.set(self, "headers", value)
|
121
|
+
|
122
|
+
@property
|
123
|
+
@pulumi.getter(name="hostPrefix")
|
124
|
+
def host_prefix(self) -> Optional[pulumi.Input[builtins.str]]:
|
125
|
+
"""
|
126
|
+
This option allows forwarding traffic for different host headers to different workloads. This will only be used when the
|
127
|
+
target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on
|
128
|
+
Slack or at support@controlplane.com for additional details.
|
129
|
+
"""
|
130
|
+
return pulumi.get(self, "host_prefix")
|
131
|
+
|
132
|
+
@host_prefix.setter
|
133
|
+
def host_prefix(self, value: Optional[pulumi.Input[builtins.str]]):
|
134
|
+
pulumi.set(self, "host_prefix", value)
|
135
|
+
|
136
|
+
@property
|
137
|
+
@pulumi.getter(name="hostRegex")
|
138
|
+
def host_regex(self) -> Optional[pulumi.Input[builtins.str]]:
|
139
|
+
"""
|
140
|
+
A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and
|
141
|
+
the Domain is configure for wildcard support. Contact your account manager for details.
|
142
|
+
"""
|
143
|
+
return pulumi.get(self, "host_regex")
|
144
|
+
|
145
|
+
@host_regex.setter
|
146
|
+
def host_regex(self, value: Optional[pulumi.Input[builtins.str]]):
|
147
|
+
pulumi.set(self, "host_regex", value)
|
148
|
+
|
149
|
+
@property
|
150
|
+
@pulumi.getter
|
151
|
+
def port(self) -> Optional[pulumi.Input[builtins.int]]:
|
152
|
+
"""
|
153
|
+
For the linked workload, the port to route traffic to.
|
154
|
+
"""
|
155
|
+
return pulumi.get(self, "port")
|
156
|
+
|
157
|
+
@port.setter
|
158
|
+
def port(self, value: Optional[pulumi.Input[builtins.int]]):
|
159
|
+
pulumi.set(self, "port", value)
|
160
|
+
|
161
|
+
@property
|
162
|
+
@pulumi.getter
|
163
|
+
def prefix(self) -> Optional[pulumi.Input[builtins.str]]:
|
164
|
+
"""
|
165
|
+
The path will match any unmatched path prefixes for the subdomain.
|
166
|
+
"""
|
167
|
+
return pulumi.get(self, "prefix")
|
168
|
+
|
169
|
+
@prefix.setter
|
170
|
+
def prefix(self, value: Optional[pulumi.Input[builtins.str]]):
|
171
|
+
pulumi.set(self, "prefix", value)
|
172
|
+
|
173
|
+
@property
|
174
|
+
@pulumi.getter
|
175
|
+
def regex(self) -> Optional[pulumi.Input[builtins.str]]:
|
176
|
+
"""
|
177
|
+
Used to match URI paths. Uses the google re2 regex syntax.
|
178
|
+
"""
|
179
|
+
return pulumi.get(self, "regex")
|
180
|
+
|
181
|
+
@regex.setter
|
182
|
+
def regex(self, value: Optional[pulumi.Input[builtins.str]]):
|
183
|
+
pulumi.set(self, "regex", value)
|
184
|
+
|
185
|
+
@property
|
186
|
+
@pulumi.getter(name="replacePrefix")
|
187
|
+
def replace_prefix(self) -> Optional[pulumi.Input[builtins.str]]:
|
188
|
+
"""
|
189
|
+
A path prefix can be configured to be replaced when forwarding the request to the Workload.
|
190
|
+
"""
|
191
|
+
return pulumi.get(self, "replace_prefix")
|
192
|
+
|
193
|
+
@replace_prefix.setter
|
194
|
+
def replace_prefix(self, value: Optional[pulumi.Input[builtins.str]]):
|
195
|
+
pulumi.set(self, "replace_prefix", value)
|
196
|
+
|
197
|
+
@property
|
198
|
+
@pulumi.getter
|
199
|
+
def replica(self) -> Optional[pulumi.Input[builtins.int]]:
|
200
|
+
"""
|
201
|
+
The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
|
202
|
+
"""
|
203
|
+
return pulumi.get(self, "replica")
|
204
|
+
|
205
|
+
@replica.setter
|
206
|
+
def replica(self, value: Optional[pulumi.Input[builtins.int]]):
|
207
|
+
pulumi.set(self, "replica", value)
|
208
|
+
|
209
|
+
|
210
|
+
@pulumi.input_type
|
211
|
+
class _DomainRouteState:
|
212
|
+
def __init__(__self__, *,
|
213
|
+
domain_link: Optional[pulumi.Input[builtins.str]] = None,
|
214
|
+
domain_port: Optional[pulumi.Input[builtins.int]] = None,
|
215
|
+
headers: Optional[pulumi.Input['DomainRouteHeadersArgs']] = None,
|
216
|
+
host_prefix: Optional[pulumi.Input[builtins.str]] = None,
|
217
|
+
host_regex: Optional[pulumi.Input[builtins.str]] = None,
|
218
|
+
port: Optional[pulumi.Input[builtins.int]] = None,
|
219
|
+
prefix: Optional[pulumi.Input[builtins.str]] = None,
|
220
|
+
regex: Optional[pulumi.Input[builtins.str]] = None,
|
221
|
+
replace_prefix: Optional[pulumi.Input[builtins.str]] = None,
|
222
|
+
replica: Optional[pulumi.Input[builtins.int]] = None,
|
223
|
+
workload_link: Optional[pulumi.Input[builtins.str]] = None):
|
224
|
+
"""
|
225
|
+
Input properties used for looking up and filtering DomainRoute resources.
|
226
|
+
:param pulumi.Input[builtins.str] domain_link: The self link of the domain to add the route to.
|
227
|
+
:param pulumi.Input[builtins.int] domain_port: The port the route corresponds to. Default: 443
|
228
|
+
:param pulumi.Input['DomainRouteHeadersArgs'] headers: Modify the headers for all http requests for this route.
|
229
|
+
:param pulumi.Input[builtins.str] host_prefix: This option allows forwarding traffic for different host headers to different workloads. This will only be used when the
|
230
|
+
target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on
|
231
|
+
Slack or at support@controlplane.com for additional details.
|
232
|
+
:param pulumi.Input[builtins.str] host_regex: A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and
|
233
|
+
the Domain is configure for wildcard support. Contact your account manager for details.
|
234
|
+
:param pulumi.Input[builtins.int] port: For the linked workload, the port to route traffic to.
|
235
|
+
:param pulumi.Input[builtins.str] prefix: The path will match any unmatched path prefixes for the subdomain.
|
236
|
+
:param pulumi.Input[builtins.str] regex: Used to match URI paths. Uses the google re2 regex syntax.
|
237
|
+
:param pulumi.Input[builtins.str] replace_prefix: A path prefix can be configured to be replaced when forwarding the request to the Workload.
|
238
|
+
:param pulumi.Input[builtins.int] replica: The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
|
239
|
+
:param pulumi.Input[builtins.str] workload_link: The link of the workload to map the prefix to.
|
240
|
+
"""
|
241
|
+
if domain_link is not None:
|
242
|
+
pulumi.set(__self__, "domain_link", domain_link)
|
243
|
+
if domain_port is not None:
|
244
|
+
pulumi.set(__self__, "domain_port", domain_port)
|
245
|
+
if headers is not None:
|
246
|
+
pulumi.set(__self__, "headers", headers)
|
247
|
+
if host_prefix is not None:
|
248
|
+
pulumi.set(__self__, "host_prefix", host_prefix)
|
249
|
+
if host_regex is not None:
|
250
|
+
pulumi.set(__self__, "host_regex", host_regex)
|
251
|
+
if port is not None:
|
252
|
+
pulumi.set(__self__, "port", port)
|
253
|
+
if prefix is not None:
|
254
|
+
pulumi.set(__self__, "prefix", prefix)
|
255
|
+
if regex is not None:
|
256
|
+
pulumi.set(__self__, "regex", regex)
|
257
|
+
if replace_prefix is not None:
|
258
|
+
pulumi.set(__self__, "replace_prefix", replace_prefix)
|
259
|
+
if replica is not None:
|
260
|
+
pulumi.set(__self__, "replica", replica)
|
261
|
+
if workload_link is not None:
|
262
|
+
pulumi.set(__self__, "workload_link", workload_link)
|
263
|
+
|
264
|
+
@property
|
265
|
+
@pulumi.getter(name="domainLink")
|
266
|
+
def domain_link(self) -> Optional[pulumi.Input[builtins.str]]:
|
267
|
+
"""
|
268
|
+
The self link of the domain to add the route to.
|
269
|
+
"""
|
270
|
+
return pulumi.get(self, "domain_link")
|
271
|
+
|
272
|
+
@domain_link.setter
|
273
|
+
def domain_link(self, value: Optional[pulumi.Input[builtins.str]]):
|
274
|
+
pulumi.set(self, "domain_link", value)
|
275
|
+
|
276
|
+
@property
|
277
|
+
@pulumi.getter(name="domainPort")
|
278
|
+
def domain_port(self) -> Optional[pulumi.Input[builtins.int]]:
|
279
|
+
"""
|
280
|
+
The port the route corresponds to. Default: 443
|
281
|
+
"""
|
282
|
+
return pulumi.get(self, "domain_port")
|
283
|
+
|
284
|
+
@domain_port.setter
|
285
|
+
def domain_port(self, value: Optional[pulumi.Input[builtins.int]]):
|
286
|
+
pulumi.set(self, "domain_port", value)
|
287
|
+
|
288
|
+
@property
|
289
|
+
@pulumi.getter
|
290
|
+
def headers(self) -> Optional[pulumi.Input['DomainRouteHeadersArgs']]:
|
291
|
+
"""
|
292
|
+
Modify the headers for all http requests for this route.
|
293
|
+
"""
|
294
|
+
return pulumi.get(self, "headers")
|
295
|
+
|
296
|
+
@headers.setter
|
297
|
+
def headers(self, value: Optional[pulumi.Input['DomainRouteHeadersArgs']]):
|
298
|
+
pulumi.set(self, "headers", value)
|
299
|
+
|
300
|
+
@property
|
301
|
+
@pulumi.getter(name="hostPrefix")
|
302
|
+
def host_prefix(self) -> Optional[pulumi.Input[builtins.str]]:
|
303
|
+
"""
|
304
|
+
This option allows forwarding traffic for different host headers to different workloads. This will only be used when the
|
305
|
+
target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on
|
306
|
+
Slack or at support@controlplane.com for additional details.
|
307
|
+
"""
|
308
|
+
return pulumi.get(self, "host_prefix")
|
309
|
+
|
310
|
+
@host_prefix.setter
|
311
|
+
def host_prefix(self, value: Optional[pulumi.Input[builtins.str]]):
|
312
|
+
pulumi.set(self, "host_prefix", value)
|
313
|
+
|
314
|
+
@property
|
315
|
+
@pulumi.getter(name="hostRegex")
|
316
|
+
def host_regex(self) -> Optional[pulumi.Input[builtins.str]]:
|
317
|
+
"""
|
318
|
+
A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and
|
319
|
+
the Domain is configure for wildcard support. Contact your account manager for details.
|
320
|
+
"""
|
321
|
+
return pulumi.get(self, "host_regex")
|
322
|
+
|
323
|
+
@host_regex.setter
|
324
|
+
def host_regex(self, value: Optional[pulumi.Input[builtins.str]]):
|
325
|
+
pulumi.set(self, "host_regex", value)
|
326
|
+
|
327
|
+
@property
|
328
|
+
@pulumi.getter
|
329
|
+
def port(self) -> Optional[pulumi.Input[builtins.int]]:
|
330
|
+
"""
|
331
|
+
For the linked workload, the port to route traffic to.
|
332
|
+
"""
|
333
|
+
return pulumi.get(self, "port")
|
334
|
+
|
335
|
+
@port.setter
|
336
|
+
def port(self, value: Optional[pulumi.Input[builtins.int]]):
|
337
|
+
pulumi.set(self, "port", value)
|
338
|
+
|
339
|
+
@property
|
340
|
+
@pulumi.getter
|
341
|
+
def prefix(self) -> Optional[pulumi.Input[builtins.str]]:
|
342
|
+
"""
|
343
|
+
The path will match any unmatched path prefixes for the subdomain.
|
344
|
+
"""
|
345
|
+
return pulumi.get(self, "prefix")
|
346
|
+
|
347
|
+
@prefix.setter
|
348
|
+
def prefix(self, value: Optional[pulumi.Input[builtins.str]]):
|
349
|
+
pulumi.set(self, "prefix", value)
|
350
|
+
|
351
|
+
@property
|
352
|
+
@pulumi.getter
|
353
|
+
def regex(self) -> Optional[pulumi.Input[builtins.str]]:
|
354
|
+
"""
|
355
|
+
Used to match URI paths. Uses the google re2 regex syntax.
|
356
|
+
"""
|
357
|
+
return pulumi.get(self, "regex")
|
358
|
+
|
359
|
+
@regex.setter
|
360
|
+
def regex(self, value: Optional[pulumi.Input[builtins.str]]):
|
361
|
+
pulumi.set(self, "regex", value)
|
362
|
+
|
363
|
+
@property
|
364
|
+
@pulumi.getter(name="replacePrefix")
|
365
|
+
def replace_prefix(self) -> Optional[pulumi.Input[builtins.str]]:
|
366
|
+
"""
|
367
|
+
A path prefix can be configured to be replaced when forwarding the request to the Workload.
|
368
|
+
"""
|
369
|
+
return pulumi.get(self, "replace_prefix")
|
370
|
+
|
371
|
+
@replace_prefix.setter
|
372
|
+
def replace_prefix(self, value: Optional[pulumi.Input[builtins.str]]):
|
373
|
+
pulumi.set(self, "replace_prefix", value)
|
374
|
+
|
375
|
+
@property
|
376
|
+
@pulumi.getter
|
377
|
+
def replica(self) -> Optional[pulumi.Input[builtins.int]]:
|
378
|
+
"""
|
379
|
+
The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
|
380
|
+
"""
|
381
|
+
return pulumi.get(self, "replica")
|
382
|
+
|
383
|
+
@replica.setter
|
384
|
+
def replica(self, value: Optional[pulumi.Input[builtins.int]]):
|
385
|
+
pulumi.set(self, "replica", value)
|
386
|
+
|
387
|
+
@property
|
388
|
+
@pulumi.getter(name="workloadLink")
|
389
|
+
def workload_link(self) -> Optional[pulumi.Input[builtins.str]]:
|
390
|
+
"""
|
391
|
+
The link of the workload to map the prefix to.
|
392
|
+
"""
|
393
|
+
return pulumi.get(self, "workload_link")
|
394
|
+
|
395
|
+
@workload_link.setter
|
396
|
+
def workload_link(self, value: Optional[pulumi.Input[builtins.str]]):
|
397
|
+
pulumi.set(self, "workload_link", value)
|
398
|
+
|
399
|
+
|
400
|
+
@pulumi.type_token("cpln:index/domainRoute:DomainRoute")
|
401
|
+
class DomainRoute(pulumi.CustomResource):
|
402
|
+
@overload
|
403
|
+
def __init__(__self__,
|
404
|
+
resource_name: str,
|
405
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
406
|
+
domain_link: Optional[pulumi.Input[builtins.str]] = None,
|
407
|
+
domain_port: Optional[pulumi.Input[builtins.int]] = None,
|
408
|
+
headers: Optional[pulumi.Input[Union['DomainRouteHeadersArgs', 'DomainRouteHeadersArgsDict']]] = None,
|
409
|
+
host_prefix: Optional[pulumi.Input[builtins.str]] = None,
|
410
|
+
host_regex: Optional[pulumi.Input[builtins.str]] = None,
|
411
|
+
port: Optional[pulumi.Input[builtins.int]] = None,
|
412
|
+
prefix: Optional[pulumi.Input[builtins.str]] = None,
|
413
|
+
regex: Optional[pulumi.Input[builtins.str]] = None,
|
414
|
+
replace_prefix: Optional[pulumi.Input[builtins.str]] = None,
|
415
|
+
replica: Optional[pulumi.Input[builtins.int]] = None,
|
416
|
+
workload_link: Optional[pulumi.Input[builtins.str]] = None,
|
417
|
+
__props__=None):
|
418
|
+
"""
|
419
|
+
Create a DomainRoute resource with the given unique name, props, and options.
|
420
|
+
:param str resource_name: The name of the resource.
|
421
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
422
|
+
:param pulumi.Input[builtins.str] domain_link: The self link of the domain to add the route to.
|
423
|
+
:param pulumi.Input[builtins.int] domain_port: The port the route corresponds to. Default: 443
|
424
|
+
:param pulumi.Input[Union['DomainRouteHeadersArgs', 'DomainRouteHeadersArgsDict']] headers: Modify the headers for all http requests for this route.
|
425
|
+
:param pulumi.Input[builtins.str] host_prefix: This option allows forwarding traffic for different host headers to different workloads. This will only be used when the
|
426
|
+
target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on
|
427
|
+
Slack or at support@controlplane.com for additional details.
|
428
|
+
:param pulumi.Input[builtins.str] host_regex: A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and
|
429
|
+
the Domain is configure for wildcard support. Contact your account manager for details.
|
430
|
+
:param pulumi.Input[builtins.int] port: For the linked workload, the port to route traffic to.
|
431
|
+
:param pulumi.Input[builtins.str] prefix: The path will match any unmatched path prefixes for the subdomain.
|
432
|
+
:param pulumi.Input[builtins.str] regex: Used to match URI paths. Uses the google re2 regex syntax.
|
433
|
+
:param pulumi.Input[builtins.str] replace_prefix: A path prefix can be configured to be replaced when forwarding the request to the Workload.
|
434
|
+
:param pulumi.Input[builtins.int] replica: The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
|
435
|
+
:param pulumi.Input[builtins.str] workload_link: The link of the workload to map the prefix to.
|
436
|
+
"""
|
437
|
+
...
|
438
|
+
@overload
|
439
|
+
def __init__(__self__,
|
440
|
+
resource_name: str,
|
441
|
+
args: DomainRouteArgs,
|
442
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
443
|
+
"""
|
444
|
+
Create a DomainRoute resource with the given unique name, props, and options.
|
445
|
+
:param str resource_name: The name of the resource.
|
446
|
+
:param DomainRouteArgs args: The arguments to use to populate this resource's properties.
|
447
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
448
|
+
"""
|
449
|
+
...
|
450
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
451
|
+
resource_args, opts = _utilities.get_resource_args_opts(DomainRouteArgs, pulumi.ResourceOptions, *args, **kwargs)
|
452
|
+
if resource_args is not None:
|
453
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
454
|
+
else:
|
455
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
456
|
+
|
457
|
+
def _internal_init(__self__,
|
458
|
+
resource_name: str,
|
459
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
460
|
+
domain_link: Optional[pulumi.Input[builtins.str]] = None,
|
461
|
+
domain_port: Optional[pulumi.Input[builtins.int]] = None,
|
462
|
+
headers: Optional[pulumi.Input[Union['DomainRouteHeadersArgs', 'DomainRouteHeadersArgsDict']]] = None,
|
463
|
+
host_prefix: Optional[pulumi.Input[builtins.str]] = None,
|
464
|
+
host_regex: Optional[pulumi.Input[builtins.str]] = None,
|
465
|
+
port: Optional[pulumi.Input[builtins.int]] = None,
|
466
|
+
prefix: Optional[pulumi.Input[builtins.str]] = None,
|
467
|
+
regex: Optional[pulumi.Input[builtins.str]] = None,
|
468
|
+
replace_prefix: Optional[pulumi.Input[builtins.str]] = None,
|
469
|
+
replica: Optional[pulumi.Input[builtins.int]] = None,
|
470
|
+
workload_link: Optional[pulumi.Input[builtins.str]] = None,
|
471
|
+
__props__=None):
|
472
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
473
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
474
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
475
|
+
if opts.id is None:
|
476
|
+
if __props__ is not None:
|
477
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
478
|
+
__props__ = DomainRouteArgs.__new__(DomainRouteArgs)
|
479
|
+
|
480
|
+
if domain_link is None and not opts.urn:
|
481
|
+
raise TypeError("Missing required property 'domain_link'")
|
482
|
+
__props__.__dict__["domain_link"] = domain_link
|
483
|
+
__props__.__dict__["domain_port"] = domain_port
|
484
|
+
__props__.__dict__["headers"] = headers
|
485
|
+
__props__.__dict__["host_prefix"] = host_prefix
|
486
|
+
__props__.__dict__["host_regex"] = host_regex
|
487
|
+
__props__.__dict__["port"] = port
|
488
|
+
__props__.__dict__["prefix"] = prefix
|
489
|
+
__props__.__dict__["regex"] = regex
|
490
|
+
__props__.__dict__["replace_prefix"] = replace_prefix
|
491
|
+
__props__.__dict__["replica"] = replica
|
492
|
+
if workload_link is None and not opts.urn:
|
493
|
+
raise TypeError("Missing required property 'workload_link'")
|
494
|
+
__props__.__dict__["workload_link"] = workload_link
|
495
|
+
super(DomainRoute, __self__).__init__(
|
496
|
+
'cpln:index/domainRoute:DomainRoute',
|
497
|
+
resource_name,
|
498
|
+
__props__,
|
499
|
+
opts)
|
500
|
+
|
501
|
+
@staticmethod
|
502
|
+
def get(resource_name: str,
|
503
|
+
id: pulumi.Input[str],
|
504
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
505
|
+
domain_link: Optional[pulumi.Input[builtins.str]] = None,
|
506
|
+
domain_port: Optional[pulumi.Input[builtins.int]] = None,
|
507
|
+
headers: Optional[pulumi.Input[Union['DomainRouteHeadersArgs', 'DomainRouteHeadersArgsDict']]] = None,
|
508
|
+
host_prefix: Optional[pulumi.Input[builtins.str]] = None,
|
509
|
+
host_regex: Optional[pulumi.Input[builtins.str]] = None,
|
510
|
+
port: Optional[pulumi.Input[builtins.int]] = None,
|
511
|
+
prefix: Optional[pulumi.Input[builtins.str]] = None,
|
512
|
+
regex: Optional[pulumi.Input[builtins.str]] = None,
|
513
|
+
replace_prefix: Optional[pulumi.Input[builtins.str]] = None,
|
514
|
+
replica: Optional[pulumi.Input[builtins.int]] = None,
|
515
|
+
workload_link: Optional[pulumi.Input[builtins.str]] = None) -> 'DomainRoute':
|
516
|
+
"""
|
517
|
+
Get an existing DomainRoute resource's state with the given name, id, and optional extra
|
518
|
+
properties used to qualify the lookup.
|
519
|
+
|
520
|
+
:param str resource_name: The unique name of the resulting resource.
|
521
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
522
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
523
|
+
:param pulumi.Input[builtins.str] domain_link: The self link of the domain to add the route to.
|
524
|
+
:param pulumi.Input[builtins.int] domain_port: The port the route corresponds to. Default: 443
|
525
|
+
:param pulumi.Input[Union['DomainRouteHeadersArgs', 'DomainRouteHeadersArgsDict']] headers: Modify the headers for all http requests for this route.
|
526
|
+
:param pulumi.Input[builtins.str] host_prefix: This option allows forwarding traffic for different host headers to different workloads. This will only be used when the
|
527
|
+
target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on
|
528
|
+
Slack or at support@controlplane.com for additional details.
|
529
|
+
:param pulumi.Input[builtins.str] host_regex: A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and
|
530
|
+
the Domain is configure for wildcard support. Contact your account manager for details.
|
531
|
+
:param pulumi.Input[builtins.int] port: For the linked workload, the port to route traffic to.
|
532
|
+
:param pulumi.Input[builtins.str] prefix: The path will match any unmatched path prefixes for the subdomain.
|
533
|
+
:param pulumi.Input[builtins.str] regex: Used to match URI paths. Uses the google re2 regex syntax.
|
534
|
+
:param pulumi.Input[builtins.str] replace_prefix: A path prefix can be configured to be replaced when forwarding the request to the Workload.
|
535
|
+
:param pulumi.Input[builtins.int] replica: The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
|
536
|
+
:param pulumi.Input[builtins.str] workload_link: The link of the workload to map the prefix to.
|
537
|
+
"""
|
538
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
539
|
+
|
540
|
+
__props__ = _DomainRouteState.__new__(_DomainRouteState)
|
541
|
+
|
542
|
+
__props__.__dict__["domain_link"] = domain_link
|
543
|
+
__props__.__dict__["domain_port"] = domain_port
|
544
|
+
__props__.__dict__["headers"] = headers
|
545
|
+
__props__.__dict__["host_prefix"] = host_prefix
|
546
|
+
__props__.__dict__["host_regex"] = host_regex
|
547
|
+
__props__.__dict__["port"] = port
|
548
|
+
__props__.__dict__["prefix"] = prefix
|
549
|
+
__props__.__dict__["regex"] = regex
|
550
|
+
__props__.__dict__["replace_prefix"] = replace_prefix
|
551
|
+
__props__.__dict__["replica"] = replica
|
552
|
+
__props__.__dict__["workload_link"] = workload_link
|
553
|
+
return DomainRoute(resource_name, opts=opts, __props__=__props__)
|
554
|
+
|
555
|
+
@property
|
556
|
+
@pulumi.getter(name="domainLink")
|
557
|
+
def domain_link(self) -> pulumi.Output[builtins.str]:
|
558
|
+
"""
|
559
|
+
The self link of the domain to add the route to.
|
560
|
+
"""
|
561
|
+
return pulumi.get(self, "domain_link")
|
562
|
+
|
563
|
+
@property
|
564
|
+
@pulumi.getter(name="domainPort")
|
565
|
+
def domain_port(self) -> pulumi.Output[builtins.int]:
|
566
|
+
"""
|
567
|
+
The port the route corresponds to. Default: 443
|
568
|
+
"""
|
569
|
+
return pulumi.get(self, "domain_port")
|
570
|
+
|
571
|
+
@property
|
572
|
+
@pulumi.getter
|
573
|
+
def headers(self) -> pulumi.Output[Optional['outputs.DomainRouteHeaders']]:
|
574
|
+
"""
|
575
|
+
Modify the headers for all http requests for this route.
|
576
|
+
"""
|
577
|
+
return pulumi.get(self, "headers")
|
578
|
+
|
579
|
+
@property
|
580
|
+
@pulumi.getter(name="hostPrefix")
|
581
|
+
def host_prefix(self) -> pulumi.Output[Optional[builtins.str]]:
|
582
|
+
"""
|
583
|
+
This option allows forwarding traffic for different host headers to different workloads. This will only be used when the
|
584
|
+
target GVC has dedicated load balancing enabled and the Domain is configured for wildcard support. Please contact us on
|
585
|
+
Slack or at support@controlplane.com for additional details.
|
586
|
+
"""
|
587
|
+
return pulumi.get(self, "host_prefix")
|
588
|
+
|
589
|
+
@property
|
590
|
+
@pulumi.getter(name="hostRegex")
|
591
|
+
def host_regex(self) -> pulumi.Output[Optional[builtins.str]]:
|
592
|
+
"""
|
593
|
+
A regex to match the host header. This will only be used when the target GVC has dedicated load balancing enabled and
|
594
|
+
the Domain is configure for wildcard support. Contact your account manager for details.
|
595
|
+
"""
|
596
|
+
return pulumi.get(self, "host_regex")
|
597
|
+
|
598
|
+
@property
|
599
|
+
@pulumi.getter
|
600
|
+
def port(self) -> pulumi.Output[Optional[builtins.int]]:
|
601
|
+
"""
|
602
|
+
For the linked workload, the port to route traffic to.
|
603
|
+
"""
|
604
|
+
return pulumi.get(self, "port")
|
605
|
+
|
606
|
+
@property
|
607
|
+
@pulumi.getter
|
608
|
+
def prefix(self) -> pulumi.Output[Optional[builtins.str]]:
|
609
|
+
"""
|
610
|
+
The path will match any unmatched path prefixes for the subdomain.
|
611
|
+
"""
|
612
|
+
return pulumi.get(self, "prefix")
|
613
|
+
|
614
|
+
@property
|
615
|
+
@pulumi.getter
|
616
|
+
def regex(self) -> pulumi.Output[Optional[builtins.str]]:
|
617
|
+
"""
|
618
|
+
Used to match URI paths. Uses the google re2 regex syntax.
|
619
|
+
"""
|
620
|
+
return pulumi.get(self, "regex")
|
621
|
+
|
622
|
+
@property
|
623
|
+
@pulumi.getter(name="replacePrefix")
|
624
|
+
def replace_prefix(self) -> pulumi.Output[Optional[builtins.str]]:
|
625
|
+
"""
|
626
|
+
A path prefix can be configured to be replaced when forwarding the request to the Workload.
|
627
|
+
"""
|
628
|
+
return pulumi.get(self, "replace_prefix")
|
629
|
+
|
630
|
+
@property
|
631
|
+
@pulumi.getter
|
632
|
+
def replica(self) -> pulumi.Output[Optional[builtins.int]]:
|
633
|
+
"""
|
634
|
+
The replica number of a stateful workload to route to. If not provided, traffic will be routed to all replicas.
|
635
|
+
"""
|
636
|
+
return pulumi.get(self, "replica")
|
637
|
+
|
638
|
+
@property
|
639
|
+
@pulumi.getter(name="workloadLink")
|
640
|
+
def workload_link(self) -> pulumi.Output[builtins.str]:
|
641
|
+
"""
|
642
|
+
The link of the workload to map the prefix to.
|
643
|
+
"""
|
644
|
+
return pulumi.get(self, "workload_link")
|
645
|
+
|