pulumiverse-scaleway 1.17.0__py3-none-any.whl → 1.18.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.
Potentially problematic release.
This version of pulumiverse-scaleway might be problematic. Click here for more details.
- pulumiverse_scaleway/__init__.py +9 -0
- pulumiverse_scaleway/_inputs.py +133 -107
- pulumiverse_scaleway/account_project.py +17 -17
- pulumiverse_scaleway/account_ssh_key.py +8 -4
- pulumiverse_scaleway/container.py +146 -160
- pulumiverse_scaleway/container_cron.py +42 -77
- pulumiverse_scaleway/container_domain.py +30 -24
- pulumiverse_scaleway/container_namespace.py +42 -42
- pulumiverse_scaleway/container_token.py +36 -38
- pulumiverse_scaleway/container_trigger.py +45 -43
- pulumiverse_scaleway/function.py +112 -154
- pulumiverse_scaleway/function_cron.py +42 -60
- pulumiverse_scaleway/function_domain.py +56 -47
- pulumiverse_scaleway/function_namespace.py +49 -49
- pulumiverse_scaleway/function_token.py +36 -38
- pulumiverse_scaleway/function_trigger.py +45 -43
- pulumiverse_scaleway/get_account_project.py +14 -8
- pulumiverse_scaleway/get_account_ssh_key.py +14 -10
- pulumiverse_scaleway/get_availability_zones.py +17 -9
- pulumiverse_scaleway/get_container.py +50 -30
- pulumiverse_scaleway/get_container_namespace.py +26 -16
- pulumiverse_scaleway/get_function.py +20 -12
- pulumiverse_scaleway/get_function_namespace.py +14 -14
- pulumiverse_scaleway/get_object_bucket.py +22 -10
- pulumiverse_scaleway/get_object_bucket_policy.py +15 -9
- pulumiverse_scaleway/get_tem_domain.py +12 -1
- pulumiverse_scaleway/instance_server.py +32 -0
- pulumiverse_scaleway/object_bucket.py +67 -81
- pulumiverse_scaleway/object_bucket_acl.py +21 -17
- pulumiverse_scaleway/object_bucket_lock_configuration.py +21 -19
- pulumiverse_scaleway/object_bucket_policy.py +10 -8
- pulumiverse_scaleway/object_bucket_website_configuration.py +24 -22
- pulumiverse_scaleway/object_item.py +78 -62
- pulumiverse_scaleway/outputs.py +102 -73
- pulumiverse_scaleway/pulumi-plugin.json +1 -1
- pulumiverse_scaleway/sdb_database.py +26 -22
- pulumiverse_scaleway/tem_domain.py +75 -0
- pulumiverse_scaleway/vpc_private_network.py +2 -2
- pulumiverse_scaleway/vpc_route.py +577 -0
- {pulumiverse_scaleway-1.17.0.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/METADATA +1 -1
- {pulumiverse_scaleway-1.17.0.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/RECORD +43 -42
- {pulumiverse_scaleway-1.17.0.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/WHEEL +1 -1
- {pulumiverse_scaleway-1.17.0.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/top_level.txt +0 -0
|
@@ -27,13 +27,11 @@ class FunctionCronArgs:
|
|
|
27
27
|
"""
|
|
28
28
|
The set of arguments for constructing a FunctionCron resource.
|
|
29
29
|
:param pulumi.Input[str] args: The key-value mapping to define arguments that will be passed to your function’s event object
|
|
30
|
-
|
|
31
|
-
:param pulumi.Input[str]
|
|
32
|
-
:param pulumi.Input[str]
|
|
33
|
-
executed.
|
|
34
|
-
:param pulumi.Input[str] name: The name of the cron. If not provided, the name is generated.
|
|
30
|
+
:param pulumi.Input[str] function_id: The unique identifier of the function to link to your CRON trigger.
|
|
31
|
+
:param pulumi.Input[str] schedule: CRON format string (refer to the [CRON schedule reference](https://www.scaleway.com/en/docs/serverless/functions/reference-content/cron-schedules/) for more information).
|
|
32
|
+
:param pulumi.Input[str] name: The name of the function CRON trigger. If not provided, a random name is generated.
|
|
35
33
|
:param pulumi.Input[str] region: `region`) The region
|
|
36
|
-
in
|
|
34
|
+
in which the function was created.
|
|
37
35
|
"""
|
|
38
36
|
pulumi.set(__self__, "args", args)
|
|
39
37
|
pulumi.set(__self__, "function_id", function_id)
|
|
@@ -48,7 +46,6 @@ class FunctionCronArgs:
|
|
|
48
46
|
def args(self) -> pulumi.Input[str]:
|
|
49
47
|
"""
|
|
50
48
|
The key-value mapping to define arguments that will be passed to your function’s event object
|
|
51
|
-
during
|
|
52
49
|
"""
|
|
53
50
|
return pulumi.get(self, "args")
|
|
54
51
|
|
|
@@ -60,7 +57,7 @@ class FunctionCronArgs:
|
|
|
60
57
|
@pulumi.getter(name="functionId")
|
|
61
58
|
def function_id(self) -> pulumi.Input[str]:
|
|
62
59
|
"""
|
|
63
|
-
The function
|
|
60
|
+
The unique identifier of the function to link to your CRON trigger.
|
|
64
61
|
"""
|
|
65
62
|
return pulumi.get(self, "function_id")
|
|
66
63
|
|
|
@@ -72,8 +69,7 @@ class FunctionCronArgs:
|
|
|
72
69
|
@pulumi.getter
|
|
73
70
|
def schedule(self) -> pulumi.Input[str]:
|
|
74
71
|
"""
|
|
75
|
-
|
|
76
|
-
executed.
|
|
72
|
+
CRON format string (refer to the [CRON schedule reference](https://www.scaleway.com/en/docs/serverless/functions/reference-content/cron-schedules/) for more information).
|
|
77
73
|
"""
|
|
78
74
|
return pulumi.get(self, "schedule")
|
|
79
75
|
|
|
@@ -85,7 +81,7 @@ class FunctionCronArgs:
|
|
|
85
81
|
@pulumi.getter
|
|
86
82
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
87
83
|
"""
|
|
88
|
-
The name of the
|
|
84
|
+
The name of the function CRON trigger. If not provided, a random name is generated.
|
|
89
85
|
"""
|
|
90
86
|
return pulumi.get(self, "name")
|
|
91
87
|
|
|
@@ -98,7 +94,7 @@ class FunctionCronArgs:
|
|
|
98
94
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
99
95
|
"""
|
|
100
96
|
`region`) The region
|
|
101
|
-
in
|
|
97
|
+
in which the function was created.
|
|
102
98
|
"""
|
|
103
99
|
return pulumi.get(self, "region")
|
|
104
100
|
|
|
@@ -119,14 +115,12 @@ class _FunctionCronState:
|
|
|
119
115
|
"""
|
|
120
116
|
Input properties used for looking up and filtering FunctionCron resources.
|
|
121
117
|
:param pulumi.Input[str] args: The key-value mapping to define arguments that will be passed to your function’s event object
|
|
122
|
-
|
|
123
|
-
:param pulumi.Input[str]
|
|
124
|
-
:param pulumi.Input[str] name: The name of the cron. If not provided, the name is generated.
|
|
118
|
+
:param pulumi.Input[str] function_id: The unique identifier of the function to link to your CRON trigger.
|
|
119
|
+
:param pulumi.Input[str] name: The name of the function CRON trigger. If not provided, a random name is generated.
|
|
125
120
|
:param pulumi.Input[str] region: `region`) The region
|
|
126
|
-
in
|
|
127
|
-
:param pulumi.Input[str] schedule:
|
|
128
|
-
|
|
129
|
-
:param pulumi.Input[str] status: The cron status.
|
|
121
|
+
in which the function was created.
|
|
122
|
+
:param pulumi.Input[str] schedule: CRON format string (refer to the [CRON schedule reference](https://www.scaleway.com/en/docs/serverless/functions/reference-content/cron-schedules/) for more information).
|
|
123
|
+
:param pulumi.Input[str] status: The CRON status.
|
|
130
124
|
"""
|
|
131
125
|
if args is not None:
|
|
132
126
|
pulumi.set(__self__, "args", args)
|
|
@@ -146,7 +140,6 @@ class _FunctionCronState:
|
|
|
146
140
|
def args(self) -> Optional[pulumi.Input[str]]:
|
|
147
141
|
"""
|
|
148
142
|
The key-value mapping to define arguments that will be passed to your function’s event object
|
|
149
|
-
during
|
|
150
143
|
"""
|
|
151
144
|
return pulumi.get(self, "args")
|
|
152
145
|
|
|
@@ -158,7 +151,7 @@ class _FunctionCronState:
|
|
|
158
151
|
@pulumi.getter(name="functionId")
|
|
159
152
|
def function_id(self) -> Optional[pulumi.Input[str]]:
|
|
160
153
|
"""
|
|
161
|
-
The function
|
|
154
|
+
The unique identifier of the function to link to your CRON trigger.
|
|
162
155
|
"""
|
|
163
156
|
return pulumi.get(self, "function_id")
|
|
164
157
|
|
|
@@ -170,7 +163,7 @@ class _FunctionCronState:
|
|
|
170
163
|
@pulumi.getter
|
|
171
164
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
172
165
|
"""
|
|
173
|
-
The name of the
|
|
166
|
+
The name of the function CRON trigger. If not provided, a random name is generated.
|
|
174
167
|
"""
|
|
175
168
|
return pulumi.get(self, "name")
|
|
176
169
|
|
|
@@ -183,7 +176,7 @@ class _FunctionCronState:
|
|
|
183
176
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
184
177
|
"""
|
|
185
178
|
`region`) The region
|
|
186
|
-
in
|
|
179
|
+
in which the function was created.
|
|
187
180
|
"""
|
|
188
181
|
return pulumi.get(self, "region")
|
|
189
182
|
|
|
@@ -195,8 +188,7 @@ class _FunctionCronState:
|
|
|
195
188
|
@pulumi.getter
|
|
196
189
|
def schedule(self) -> Optional[pulumi.Input[str]]:
|
|
197
190
|
"""
|
|
198
|
-
|
|
199
|
-
executed.
|
|
191
|
+
CRON format string (refer to the [CRON schedule reference](https://www.scaleway.com/en/docs/serverless/functions/reference-content/cron-schedules/) for more information).
|
|
200
192
|
"""
|
|
201
193
|
return pulumi.get(self, "schedule")
|
|
202
194
|
|
|
@@ -208,7 +200,7 @@ class _FunctionCronState:
|
|
|
208
200
|
@pulumi.getter
|
|
209
201
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
210
202
|
"""
|
|
211
|
-
The
|
|
203
|
+
The CRON status.
|
|
212
204
|
"""
|
|
213
205
|
return pulumi.get(self, "status")
|
|
214
206
|
|
|
@@ -229,16 +221,14 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
229
221
|
schedule: Optional[pulumi.Input[str]] = None,
|
|
230
222
|
__props__=None):
|
|
231
223
|
"""
|
|
232
|
-
|
|
224
|
+
The `FunctionCron` resource allows you to create and manage CRON triggers for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
|
|
233
225
|
|
|
234
|
-
|
|
235
|
-
check [functions-limitations](https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-limitations/).
|
|
236
|
-
|
|
237
|
-
You can check also
|
|
238
|
-
our [functions cron api documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#crons-942bf4).
|
|
226
|
+
Refer to the Functions CRON triggers [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/add-trigger-to-a-function/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-triggers-list-all-triggers) for more information.
|
|
239
227
|
|
|
240
228
|
## Example Usage
|
|
241
229
|
|
|
230
|
+
The following command allows you to add a CRON trigger to a Serverless Function.
|
|
231
|
+
|
|
242
232
|
```python
|
|
243
233
|
import pulumi
|
|
244
234
|
import json
|
|
@@ -268,7 +258,7 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
268
258
|
|
|
269
259
|
## Import
|
|
270
260
|
|
|
271
|
-
|
|
261
|
+
Function Cron can be imported using `{region}/{id}`, as shown below:
|
|
272
262
|
|
|
273
263
|
bash
|
|
274
264
|
|
|
@@ -279,13 +269,11 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
279
269
|
:param str resource_name: The name of the resource.
|
|
280
270
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
281
271
|
:param pulumi.Input[str] args: The key-value mapping to define arguments that will be passed to your function’s event object
|
|
282
|
-
|
|
283
|
-
:param pulumi.Input[str]
|
|
284
|
-
:param pulumi.Input[str] name: The name of the cron. If not provided, the name is generated.
|
|
272
|
+
:param pulumi.Input[str] function_id: The unique identifier of the function to link to your CRON trigger.
|
|
273
|
+
:param pulumi.Input[str] name: The name of the function CRON trigger. If not provided, a random name is generated.
|
|
285
274
|
:param pulumi.Input[str] region: `region`) The region
|
|
286
|
-
in
|
|
287
|
-
:param pulumi.Input[str] schedule:
|
|
288
|
-
executed.
|
|
275
|
+
in which the function was created.
|
|
276
|
+
:param pulumi.Input[str] schedule: CRON format string (refer to the [CRON schedule reference](https://www.scaleway.com/en/docs/serverless/functions/reference-content/cron-schedules/) for more information).
|
|
289
277
|
"""
|
|
290
278
|
...
|
|
291
279
|
@overload
|
|
@@ -294,16 +282,14 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
294
282
|
args: FunctionCronArgs,
|
|
295
283
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
296
284
|
"""
|
|
297
|
-
|
|
285
|
+
The `FunctionCron` resource allows you to create and manage CRON triggers for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
|
|
298
286
|
|
|
299
|
-
|
|
300
|
-
check [functions-limitations](https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-limitations/).
|
|
301
|
-
|
|
302
|
-
You can check also
|
|
303
|
-
our [functions cron api documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#crons-942bf4).
|
|
287
|
+
Refer to the Functions CRON triggers [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/add-trigger-to-a-function/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-triggers-list-all-triggers) for more information.
|
|
304
288
|
|
|
305
289
|
## Example Usage
|
|
306
290
|
|
|
291
|
+
The following command allows you to add a CRON trigger to a Serverless Function.
|
|
292
|
+
|
|
307
293
|
```python
|
|
308
294
|
import pulumi
|
|
309
295
|
import json
|
|
@@ -333,7 +319,7 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
333
319
|
|
|
334
320
|
## Import
|
|
335
321
|
|
|
336
|
-
|
|
322
|
+
Function Cron can be imported using `{region}/{id}`, as shown below:
|
|
337
323
|
|
|
338
324
|
bash
|
|
339
325
|
|
|
@@ -406,14 +392,12 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
406
392
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
407
393
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
408
394
|
:param pulumi.Input[str] args: The key-value mapping to define arguments that will be passed to your function’s event object
|
|
409
|
-
|
|
410
|
-
:param pulumi.Input[str]
|
|
411
|
-
:param pulumi.Input[str] name: The name of the cron. If not provided, the name is generated.
|
|
395
|
+
:param pulumi.Input[str] function_id: The unique identifier of the function to link to your CRON trigger.
|
|
396
|
+
:param pulumi.Input[str] name: The name of the function CRON trigger. If not provided, a random name is generated.
|
|
412
397
|
:param pulumi.Input[str] region: `region`) The region
|
|
413
|
-
in
|
|
414
|
-
:param pulumi.Input[str] schedule:
|
|
415
|
-
|
|
416
|
-
:param pulumi.Input[str] status: The cron status.
|
|
398
|
+
in which the function was created.
|
|
399
|
+
:param pulumi.Input[str] schedule: CRON format string (refer to the [CRON schedule reference](https://www.scaleway.com/en/docs/serverless/functions/reference-content/cron-schedules/) for more information).
|
|
400
|
+
:param pulumi.Input[str] status: The CRON status.
|
|
417
401
|
"""
|
|
418
402
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
419
403
|
|
|
@@ -432,7 +416,6 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
432
416
|
def args(self) -> pulumi.Output[str]:
|
|
433
417
|
"""
|
|
434
418
|
The key-value mapping to define arguments that will be passed to your function’s event object
|
|
435
|
-
during
|
|
436
419
|
"""
|
|
437
420
|
return pulumi.get(self, "args")
|
|
438
421
|
|
|
@@ -440,7 +423,7 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
440
423
|
@pulumi.getter(name="functionId")
|
|
441
424
|
def function_id(self) -> pulumi.Output[str]:
|
|
442
425
|
"""
|
|
443
|
-
The function
|
|
426
|
+
The unique identifier of the function to link to your CRON trigger.
|
|
444
427
|
"""
|
|
445
428
|
return pulumi.get(self, "function_id")
|
|
446
429
|
|
|
@@ -448,7 +431,7 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
448
431
|
@pulumi.getter
|
|
449
432
|
def name(self) -> pulumi.Output[str]:
|
|
450
433
|
"""
|
|
451
|
-
The name of the
|
|
434
|
+
The name of the function CRON trigger. If not provided, a random name is generated.
|
|
452
435
|
"""
|
|
453
436
|
return pulumi.get(self, "name")
|
|
454
437
|
|
|
@@ -457,7 +440,7 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
457
440
|
def region(self) -> pulumi.Output[str]:
|
|
458
441
|
"""
|
|
459
442
|
`region`) The region
|
|
460
|
-
in
|
|
443
|
+
in which the function was created.
|
|
461
444
|
"""
|
|
462
445
|
return pulumi.get(self, "region")
|
|
463
446
|
|
|
@@ -465,8 +448,7 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
465
448
|
@pulumi.getter
|
|
466
449
|
def schedule(self) -> pulumi.Output[str]:
|
|
467
450
|
"""
|
|
468
|
-
|
|
469
|
-
executed.
|
|
451
|
+
CRON format string (refer to the [CRON schedule reference](https://www.scaleway.com/en/docs/serverless/functions/reference-content/cron-schedules/) for more information).
|
|
470
452
|
"""
|
|
471
453
|
return pulumi.get(self, "schedule")
|
|
472
454
|
|
|
@@ -474,7 +456,7 @@ class FunctionCron(pulumi.CustomResource):
|
|
|
474
456
|
@pulumi.getter
|
|
475
457
|
def status(self) -> pulumi.Output[str]:
|
|
476
458
|
"""
|
|
477
|
-
The
|
|
459
|
+
The CRON status.
|
|
478
460
|
"""
|
|
479
461
|
return pulumi.get(self, "status")
|
|
480
462
|
|
|
@@ -24,12 +24,13 @@ class FunctionDomainArgs:
|
|
|
24
24
|
region: Optional[pulumi.Input[str]] = None):
|
|
25
25
|
"""
|
|
26
26
|
The set of arguments for constructing a FunctionDomain resource.
|
|
27
|
-
:param pulumi.Input[str] function_id: The
|
|
28
|
-
:param pulumi.Input[str] hostname: The hostname
|
|
29
|
-
You should use a CNAME domain record that point to your native function `domain_name` for it.
|
|
27
|
+
:param pulumi.Input[str] function_id: The unique identifier of the function.
|
|
28
|
+
:param pulumi.Input[str] hostname: The hostname with a CNAME record.
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
We recommend you use a CNAME domain record that point to your native function `domain_name` for it.
|
|
31
|
+
|
|
32
|
+
> **Important** Updating the `function_id` or `hostname` arguments will recreate the domain.
|
|
33
|
+
:param pulumi.Input[str] region: (Defaults to provider `region`) The region in which the domain was created.
|
|
33
34
|
"""
|
|
34
35
|
pulumi.set(__self__, "function_id", function_id)
|
|
35
36
|
pulumi.set(__self__, "hostname", hostname)
|
|
@@ -40,7 +41,7 @@ class FunctionDomainArgs:
|
|
|
40
41
|
@pulumi.getter(name="functionId")
|
|
41
42
|
def function_id(self) -> pulumi.Input[str]:
|
|
42
43
|
"""
|
|
43
|
-
The
|
|
44
|
+
The unique identifier of the function.
|
|
44
45
|
"""
|
|
45
46
|
return pulumi.get(self, "function_id")
|
|
46
47
|
|
|
@@ -52,10 +53,11 @@ class FunctionDomainArgs:
|
|
|
52
53
|
@pulumi.getter
|
|
53
54
|
def hostname(self) -> pulumi.Input[str]:
|
|
54
55
|
"""
|
|
55
|
-
The hostname
|
|
56
|
-
|
|
56
|
+
The hostname with a CNAME record.
|
|
57
|
+
|
|
58
|
+
We recommend you use a CNAME domain record that point to your native function `domain_name` for it.
|
|
57
59
|
|
|
58
|
-
> **Important**
|
|
60
|
+
> **Important** Updating the `function_id` or `hostname` arguments will recreate the domain.
|
|
59
61
|
"""
|
|
60
62
|
return pulumi.get(self, "hostname")
|
|
61
63
|
|
|
@@ -67,7 +69,7 @@ class FunctionDomainArgs:
|
|
|
67
69
|
@pulumi.getter
|
|
68
70
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
69
71
|
"""
|
|
70
|
-
(Defaults to provider `region`) The region in
|
|
72
|
+
(Defaults to provider `region`) The region in which the domain was created.
|
|
71
73
|
"""
|
|
72
74
|
return pulumi.get(self, "region")
|
|
73
75
|
|
|
@@ -85,13 +87,14 @@ class _FunctionDomainState:
|
|
|
85
87
|
url: Optional[pulumi.Input[str]] = None):
|
|
86
88
|
"""
|
|
87
89
|
Input properties used for looking up and filtering FunctionDomain resources.
|
|
88
|
-
:param pulumi.Input[str] function_id: The
|
|
89
|
-
:param pulumi.Input[str] hostname: The hostname
|
|
90
|
-
|
|
90
|
+
:param pulumi.Input[str] function_id: The unique identifier of the function.
|
|
91
|
+
:param pulumi.Input[str] hostname: The hostname with a CNAME record.
|
|
92
|
+
|
|
93
|
+
We recommend you use a CNAME domain record that point to your native function `domain_name` for it.
|
|
91
94
|
|
|
92
|
-
> **Important**
|
|
93
|
-
:param pulumi.Input[str] region: (Defaults to provider `region`) The region in
|
|
94
|
-
:param pulumi.Input[str] url: The URL
|
|
95
|
+
> **Important** Updating the `function_id` or `hostname` arguments will recreate the domain.
|
|
96
|
+
:param pulumi.Input[str] region: (Defaults to provider `region`) The region in which the domain was created.
|
|
97
|
+
:param pulumi.Input[str] url: The URL used to query the function.
|
|
95
98
|
"""
|
|
96
99
|
if function_id is not None:
|
|
97
100
|
pulumi.set(__self__, "function_id", function_id)
|
|
@@ -106,7 +109,7 @@ class _FunctionDomainState:
|
|
|
106
109
|
@pulumi.getter(name="functionId")
|
|
107
110
|
def function_id(self) -> Optional[pulumi.Input[str]]:
|
|
108
111
|
"""
|
|
109
|
-
The
|
|
112
|
+
The unique identifier of the function.
|
|
110
113
|
"""
|
|
111
114
|
return pulumi.get(self, "function_id")
|
|
112
115
|
|
|
@@ -118,10 +121,11 @@ class _FunctionDomainState:
|
|
|
118
121
|
@pulumi.getter
|
|
119
122
|
def hostname(self) -> Optional[pulumi.Input[str]]:
|
|
120
123
|
"""
|
|
121
|
-
The hostname
|
|
122
|
-
You should use a CNAME domain record that point to your native function `domain_name` for it.
|
|
124
|
+
The hostname with a CNAME record.
|
|
123
125
|
|
|
124
|
-
|
|
126
|
+
We recommend you use a CNAME domain record that point to your native function `domain_name` for it.
|
|
127
|
+
|
|
128
|
+
> **Important** Updating the `function_id` or `hostname` arguments will recreate the domain.
|
|
125
129
|
"""
|
|
126
130
|
return pulumi.get(self, "hostname")
|
|
127
131
|
|
|
@@ -133,7 +137,7 @@ class _FunctionDomainState:
|
|
|
133
137
|
@pulumi.getter
|
|
134
138
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
135
139
|
"""
|
|
136
|
-
(Defaults to provider `region`) The region in
|
|
140
|
+
(Defaults to provider `region`) The region in which the domain was created.
|
|
137
141
|
"""
|
|
138
142
|
return pulumi.get(self, "region")
|
|
139
143
|
|
|
@@ -145,7 +149,7 @@ class _FunctionDomainState:
|
|
|
145
149
|
@pulumi.getter
|
|
146
150
|
def url(self) -> Optional[pulumi.Input[str]]:
|
|
147
151
|
"""
|
|
148
|
-
The URL
|
|
152
|
+
The URL used to query the function.
|
|
149
153
|
"""
|
|
150
154
|
return pulumi.get(self, "url")
|
|
151
155
|
|
|
@@ -164,12 +168,13 @@ class FunctionDomain(pulumi.CustomResource):
|
|
|
164
168
|
region: Optional[pulumi.Input[str]] = None,
|
|
165
169
|
__props__=None):
|
|
166
170
|
"""
|
|
167
|
-
|
|
168
|
-
|
|
171
|
+
The `FunctionDomain` resource allows you to create and manage domain name bindings for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
|
|
172
|
+
|
|
173
|
+
Refer to the Functions domain [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/add-a-custom-domain-name-to-a-function/) and the [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-domains-list-all-domain-name-bindings) for more information.
|
|
169
174
|
|
|
170
175
|
## Example Usage
|
|
171
176
|
|
|
172
|
-
|
|
177
|
+
This command allows to bind a custom domain name to a function.
|
|
173
178
|
|
|
174
179
|
```python
|
|
175
180
|
import pulumi
|
|
@@ -191,7 +196,7 @@ class FunctionDomain(pulumi.CustomResource):
|
|
|
191
196
|
|
|
192
197
|
## Import
|
|
193
198
|
|
|
194
|
-
|
|
199
|
+
Function domain binding can be imported using `{region}/{id}`, as shown below:
|
|
195
200
|
|
|
196
201
|
bash
|
|
197
202
|
|
|
@@ -201,12 +206,13 @@ class FunctionDomain(pulumi.CustomResource):
|
|
|
201
206
|
|
|
202
207
|
:param str resource_name: The name of the resource.
|
|
203
208
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
204
|
-
:param pulumi.Input[str] function_id: The
|
|
205
|
-
:param pulumi.Input[str] hostname: The hostname
|
|
206
|
-
You should use a CNAME domain record that point to your native function `domain_name` for it.
|
|
209
|
+
:param pulumi.Input[str] function_id: The unique identifier of the function.
|
|
210
|
+
:param pulumi.Input[str] hostname: The hostname with a CNAME record.
|
|
207
211
|
|
|
208
|
-
|
|
209
|
-
|
|
212
|
+
We recommend you use a CNAME domain record that point to your native function `domain_name` for it.
|
|
213
|
+
|
|
214
|
+
> **Important** Updating the `function_id` or `hostname` arguments will recreate the domain.
|
|
215
|
+
:param pulumi.Input[str] region: (Defaults to provider `region`) The region in which the domain was created.
|
|
210
216
|
"""
|
|
211
217
|
...
|
|
212
218
|
@overload
|
|
@@ -215,12 +221,13 @@ class FunctionDomain(pulumi.CustomResource):
|
|
|
215
221
|
args: FunctionDomainArgs,
|
|
216
222
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
217
223
|
"""
|
|
218
|
-
|
|
219
|
-
|
|
224
|
+
The `FunctionDomain` resource allows you to create and manage domain name bindings for Scaleway [Serverless Functions](https://www.scaleway.com/en/docs/serverless/functions/).
|
|
225
|
+
|
|
226
|
+
Refer to the Functions domain [documentation](https://www.scaleway.com/en/docs/serverless/functions/how-to/add-a-custom-domain-name-to-a-function/) and the [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/#path-domains-list-all-domain-name-bindings) for more information.
|
|
220
227
|
|
|
221
228
|
## Example Usage
|
|
222
229
|
|
|
223
|
-
|
|
230
|
+
This command allows to bind a custom domain name to a function.
|
|
224
231
|
|
|
225
232
|
```python
|
|
226
233
|
import pulumi
|
|
@@ -242,7 +249,7 @@ class FunctionDomain(pulumi.CustomResource):
|
|
|
242
249
|
|
|
243
250
|
## Import
|
|
244
251
|
|
|
245
|
-
|
|
252
|
+
Function domain binding can be imported using `{region}/{id}`, as shown below:
|
|
246
253
|
|
|
247
254
|
bash
|
|
248
255
|
|
|
@@ -306,13 +313,14 @@ class FunctionDomain(pulumi.CustomResource):
|
|
|
306
313
|
:param str resource_name: The unique name of the resulting resource.
|
|
307
314
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
308
315
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
309
|
-
:param pulumi.Input[str] function_id: The
|
|
310
|
-
:param pulumi.Input[str] hostname: The hostname
|
|
311
|
-
You should use a CNAME domain record that point to your native function `domain_name` for it.
|
|
316
|
+
:param pulumi.Input[str] function_id: The unique identifier of the function.
|
|
317
|
+
:param pulumi.Input[str] hostname: The hostname with a CNAME record.
|
|
312
318
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
319
|
+
We recommend you use a CNAME domain record that point to your native function `domain_name` for it.
|
|
320
|
+
|
|
321
|
+
> **Important** Updating the `function_id` or `hostname` arguments will recreate the domain.
|
|
322
|
+
:param pulumi.Input[str] region: (Defaults to provider `region`) The region in which the domain was created.
|
|
323
|
+
:param pulumi.Input[str] url: The URL used to query the function.
|
|
316
324
|
"""
|
|
317
325
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
318
326
|
|
|
@@ -328,7 +336,7 @@ class FunctionDomain(pulumi.CustomResource):
|
|
|
328
336
|
@pulumi.getter(name="functionId")
|
|
329
337
|
def function_id(self) -> pulumi.Output[str]:
|
|
330
338
|
"""
|
|
331
|
-
The
|
|
339
|
+
The unique identifier of the function.
|
|
332
340
|
"""
|
|
333
341
|
return pulumi.get(self, "function_id")
|
|
334
342
|
|
|
@@ -336,10 +344,11 @@ class FunctionDomain(pulumi.CustomResource):
|
|
|
336
344
|
@pulumi.getter
|
|
337
345
|
def hostname(self) -> pulumi.Output[str]:
|
|
338
346
|
"""
|
|
339
|
-
The hostname
|
|
340
|
-
|
|
347
|
+
The hostname with a CNAME record.
|
|
348
|
+
|
|
349
|
+
We recommend you use a CNAME domain record that point to your native function `domain_name` for it.
|
|
341
350
|
|
|
342
|
-
> **Important**
|
|
351
|
+
> **Important** Updating the `function_id` or `hostname` arguments will recreate the domain.
|
|
343
352
|
"""
|
|
344
353
|
return pulumi.get(self, "hostname")
|
|
345
354
|
|
|
@@ -347,7 +356,7 @@ class FunctionDomain(pulumi.CustomResource):
|
|
|
347
356
|
@pulumi.getter
|
|
348
357
|
def region(self) -> pulumi.Output[str]:
|
|
349
358
|
"""
|
|
350
|
-
(Defaults to provider `region`) The region in
|
|
359
|
+
(Defaults to provider `region`) The region in which the domain was created.
|
|
351
360
|
"""
|
|
352
361
|
return pulumi.get(self, "region")
|
|
353
362
|
|
|
@@ -355,7 +364,7 @@ class FunctionDomain(pulumi.CustomResource):
|
|
|
355
364
|
@pulumi.getter
|
|
356
365
|
def url(self) -> pulumi.Output[str]:
|
|
357
366
|
"""
|
|
358
|
-
The URL
|
|
367
|
+
The URL used to query the function.
|
|
359
368
|
"""
|
|
360
369
|
return pulumi.get(self, "url")
|
|
361
370
|
|