pulumiverse-scaleway 1.17.0a1730194779__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.0a1730194779.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/METADATA +1 -1
- {pulumiverse_scaleway-1.17.0a1730194779.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/RECORD +43 -42
- {pulumiverse_scaleway-1.17.0a1730194779.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/WHEEL +1 -1
- {pulumiverse_scaleway-1.17.0a1730194779.dist-info → pulumiverse_scaleway-1.18.0.dist-info}/top_level.txt +0 -0
|
@@ -31,11 +31,11 @@ class ContainerNamespaceArgs:
|
|
|
31
31
|
:param pulumi.Input[str] description: The description of the namespace.
|
|
32
32
|
:param pulumi.Input[bool] destroy_registry: Destroy registry on deletion
|
|
33
33
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The environment variables of the namespace.
|
|
34
|
-
:param pulumi.Input[str] name: The unique name of the
|
|
34
|
+
:param pulumi.Input[str] name: The unique name of the Containers namespace.
|
|
35
35
|
|
|
36
|
-
> **Important** Updates to `name` will recreate the namespace.
|
|
37
|
-
:param pulumi.Input[str] project_id: `project_id`) The
|
|
38
|
-
:param pulumi.Input[str] region: `region`). The region in which the namespace
|
|
36
|
+
> **Important** Updates to the `name` argument will recreate the namespace.
|
|
37
|
+
:param pulumi.Input[str] project_id: `project_id`) The unique identifier of the project that contains the namespace.
|
|
38
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
39
39
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The secret environment variables of the namespace.
|
|
40
40
|
"""
|
|
41
41
|
if description is not None:
|
|
@@ -97,9 +97,9 @@ class ContainerNamespaceArgs:
|
|
|
97
97
|
@pulumi.getter
|
|
98
98
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
99
99
|
"""
|
|
100
|
-
The unique name of the
|
|
100
|
+
The unique name of the Containers namespace.
|
|
101
101
|
|
|
102
|
-
> **Important** Updates to `name` will recreate the namespace.
|
|
102
|
+
> **Important** Updates to the `name` argument will recreate the namespace.
|
|
103
103
|
"""
|
|
104
104
|
return pulumi.get(self, "name")
|
|
105
105
|
|
|
@@ -111,7 +111,7 @@ class ContainerNamespaceArgs:
|
|
|
111
111
|
@pulumi.getter(name="projectId")
|
|
112
112
|
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
113
113
|
"""
|
|
114
|
-
`project_id`) The
|
|
114
|
+
`project_id`) The unique identifier of the project that contains the namespace.
|
|
115
115
|
"""
|
|
116
116
|
return pulumi.get(self, "project_id")
|
|
117
117
|
|
|
@@ -123,7 +123,7 @@ class ContainerNamespaceArgs:
|
|
|
123
123
|
@pulumi.getter
|
|
124
124
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
125
125
|
"""
|
|
126
|
-
`region`). The region in which the namespace
|
|
126
|
+
`region`). The region in which the namespace is created.
|
|
127
127
|
"""
|
|
128
128
|
return pulumi.get(self, "region")
|
|
129
129
|
|
|
@@ -162,12 +162,12 @@ class _ContainerNamespaceState:
|
|
|
162
162
|
:param pulumi.Input[str] description: The description of the namespace.
|
|
163
163
|
:param pulumi.Input[bool] destroy_registry: Destroy registry on deletion
|
|
164
164
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The environment variables of the namespace.
|
|
165
|
-
:param pulumi.Input[str] name: The unique name of the
|
|
165
|
+
:param pulumi.Input[str] name: The unique name of the Containers namespace.
|
|
166
166
|
|
|
167
|
-
> **Important** Updates to `name` will recreate the namespace.
|
|
168
|
-
:param pulumi.Input[str] organization_id: The
|
|
169
|
-
:param pulumi.Input[str] project_id: `project_id`) The
|
|
170
|
-
:param pulumi.Input[str] region: `region`). The region in which the namespace
|
|
167
|
+
> **Important** Updates to the `name` argument will recreate the namespace.
|
|
168
|
+
:param pulumi.Input[str] organization_id: The Organization ID with which the namespace is associated.
|
|
169
|
+
:param pulumi.Input[str] project_id: `project_id`) The unique identifier of the project that contains the namespace.
|
|
170
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
171
171
|
:param pulumi.Input[str] registry_endpoint: The registry endpoint of the namespace.
|
|
172
172
|
:param pulumi.Input[str] registry_namespace_id: The registry namespace ID of the namespace.
|
|
173
173
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The secret environment variables of the namespace.
|
|
@@ -237,9 +237,9 @@ class _ContainerNamespaceState:
|
|
|
237
237
|
@pulumi.getter
|
|
238
238
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
239
239
|
"""
|
|
240
|
-
The unique name of the
|
|
240
|
+
The unique name of the Containers namespace.
|
|
241
241
|
|
|
242
|
-
> **Important** Updates to `name` will recreate the namespace.
|
|
242
|
+
> **Important** Updates to the `name` argument will recreate the namespace.
|
|
243
243
|
"""
|
|
244
244
|
return pulumi.get(self, "name")
|
|
245
245
|
|
|
@@ -251,7 +251,7 @@ class _ContainerNamespaceState:
|
|
|
251
251
|
@pulumi.getter(name="organizationId")
|
|
252
252
|
def organization_id(self) -> Optional[pulumi.Input[str]]:
|
|
253
253
|
"""
|
|
254
|
-
The
|
|
254
|
+
The Organization ID with which the namespace is associated.
|
|
255
255
|
"""
|
|
256
256
|
return pulumi.get(self, "organization_id")
|
|
257
257
|
|
|
@@ -263,7 +263,7 @@ class _ContainerNamespaceState:
|
|
|
263
263
|
@pulumi.getter(name="projectId")
|
|
264
264
|
def project_id(self) -> Optional[pulumi.Input[str]]:
|
|
265
265
|
"""
|
|
266
|
-
`project_id`) The
|
|
266
|
+
`project_id`) The unique identifier of the project that contains the namespace.
|
|
267
267
|
"""
|
|
268
268
|
return pulumi.get(self, "project_id")
|
|
269
269
|
|
|
@@ -275,7 +275,7 @@ class _ContainerNamespaceState:
|
|
|
275
275
|
@pulumi.getter
|
|
276
276
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
277
277
|
"""
|
|
278
|
-
`region`). The region in which the namespace
|
|
278
|
+
`region`). The region in which the namespace is created.
|
|
279
279
|
"""
|
|
280
280
|
return pulumi.get(self, "region")
|
|
281
281
|
|
|
@@ -334,12 +334,12 @@ class ContainerNamespace(pulumi.CustomResource):
|
|
|
334
334
|
secret_environment_variables: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
335
335
|
__props__=None):
|
|
336
336
|
"""
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
The `ContainerNamespace` resource allows you to
|
|
338
|
+
for Scaleway [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
|
339
339
|
|
|
340
|
-
|
|
340
|
+
Refer to the Containers namespace [documentation](https://www.scaleway.com/en/docs/serverless/containers/how-to/create-a-containers-namespace/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-namespaces-list-all-your-namespaces) for more information.
|
|
341
341
|
|
|
342
|
-
|
|
342
|
+
## Example Usage
|
|
343
343
|
|
|
344
344
|
```python
|
|
345
345
|
import pulumi
|
|
@@ -352,7 +352,7 @@ class ContainerNamespace(pulumi.CustomResource):
|
|
|
352
352
|
|
|
353
353
|
## Import
|
|
354
354
|
|
|
355
|
-
|
|
355
|
+
Containers namespaces can be imported using `{region}/{id}`, as shown below:
|
|
356
356
|
|
|
357
357
|
bash
|
|
358
358
|
|
|
@@ -365,11 +365,11 @@ class ContainerNamespace(pulumi.CustomResource):
|
|
|
365
365
|
:param pulumi.Input[str] description: The description of the namespace.
|
|
366
366
|
:param pulumi.Input[bool] destroy_registry: Destroy registry on deletion
|
|
367
367
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The environment variables of the namespace.
|
|
368
|
-
:param pulumi.Input[str] name: The unique name of the
|
|
368
|
+
:param pulumi.Input[str] name: The unique name of the Containers namespace.
|
|
369
369
|
|
|
370
|
-
> **Important** Updates to `name` will recreate the namespace.
|
|
371
|
-
:param pulumi.Input[str] project_id: `project_id`) The
|
|
372
|
-
:param pulumi.Input[str] region: `region`). The region in which the namespace
|
|
370
|
+
> **Important** Updates to the `name` argument will recreate the namespace.
|
|
371
|
+
:param pulumi.Input[str] project_id: `project_id`) The unique identifier of the project that contains the namespace.
|
|
372
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
373
373
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The secret environment variables of the namespace.
|
|
374
374
|
"""
|
|
375
375
|
...
|
|
@@ -379,12 +379,12 @@ class ContainerNamespace(pulumi.CustomResource):
|
|
|
379
379
|
args: Optional[ContainerNamespaceArgs] = None,
|
|
380
380
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
381
381
|
"""
|
|
382
|
-
|
|
383
|
-
|
|
382
|
+
The `ContainerNamespace` resource allows you to
|
|
383
|
+
for Scaleway [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
|
384
384
|
|
|
385
|
-
|
|
385
|
+
Refer to the Containers namespace [documentation](https://www.scaleway.com/en/docs/serverless/containers/how-to/create-a-containers-namespace/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-namespaces-list-all-your-namespaces) for more information.
|
|
386
386
|
|
|
387
|
-
|
|
387
|
+
## Example Usage
|
|
388
388
|
|
|
389
389
|
```python
|
|
390
390
|
import pulumi
|
|
@@ -397,7 +397,7 @@ class ContainerNamespace(pulumi.CustomResource):
|
|
|
397
397
|
|
|
398
398
|
## Import
|
|
399
399
|
|
|
400
|
-
|
|
400
|
+
Containers namespaces can be imported using `{region}/{id}`, as shown below:
|
|
401
401
|
|
|
402
402
|
bash
|
|
403
403
|
|
|
@@ -478,12 +478,12 @@ class ContainerNamespace(pulumi.CustomResource):
|
|
|
478
478
|
:param pulumi.Input[str] description: The description of the namespace.
|
|
479
479
|
:param pulumi.Input[bool] destroy_registry: Destroy registry on deletion
|
|
480
480
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] environment_variables: The environment variables of the namespace.
|
|
481
|
-
:param pulumi.Input[str] name: The unique name of the
|
|
481
|
+
:param pulumi.Input[str] name: The unique name of the Containers namespace.
|
|
482
482
|
|
|
483
|
-
> **Important** Updates to `name` will recreate the namespace.
|
|
484
|
-
:param pulumi.Input[str] organization_id: The
|
|
485
|
-
:param pulumi.Input[str] project_id: `project_id`) The
|
|
486
|
-
:param pulumi.Input[str] region: `region`). The region in which the namespace
|
|
483
|
+
> **Important** Updates to the `name` argument will recreate the namespace.
|
|
484
|
+
:param pulumi.Input[str] organization_id: The Organization ID with which the namespace is associated.
|
|
485
|
+
:param pulumi.Input[str] project_id: `project_id`) The unique identifier of the project that contains the namespace.
|
|
486
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
487
487
|
:param pulumi.Input[str] registry_endpoint: The registry endpoint of the namespace.
|
|
488
488
|
:param pulumi.Input[str] registry_namespace_id: The registry namespace ID of the namespace.
|
|
489
489
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] secret_environment_variables: The secret environment variables of the namespace.
|
|
@@ -533,9 +533,9 @@ class ContainerNamespace(pulumi.CustomResource):
|
|
|
533
533
|
@pulumi.getter
|
|
534
534
|
def name(self) -> pulumi.Output[str]:
|
|
535
535
|
"""
|
|
536
|
-
The unique name of the
|
|
536
|
+
The unique name of the Containers namespace.
|
|
537
537
|
|
|
538
|
-
> **Important** Updates to `name` will recreate the namespace.
|
|
538
|
+
> **Important** Updates to the `name` argument will recreate the namespace.
|
|
539
539
|
"""
|
|
540
540
|
return pulumi.get(self, "name")
|
|
541
541
|
|
|
@@ -543,7 +543,7 @@ class ContainerNamespace(pulumi.CustomResource):
|
|
|
543
543
|
@pulumi.getter(name="organizationId")
|
|
544
544
|
def organization_id(self) -> pulumi.Output[str]:
|
|
545
545
|
"""
|
|
546
|
-
The
|
|
546
|
+
The Organization ID with which the namespace is associated.
|
|
547
547
|
"""
|
|
548
548
|
return pulumi.get(self, "organization_id")
|
|
549
549
|
|
|
@@ -551,7 +551,7 @@ class ContainerNamespace(pulumi.CustomResource):
|
|
|
551
551
|
@pulumi.getter(name="projectId")
|
|
552
552
|
def project_id(self) -> pulumi.Output[str]:
|
|
553
553
|
"""
|
|
554
|
-
`project_id`) The
|
|
554
|
+
`project_id`) The unique identifier of the project that contains the namespace.
|
|
555
555
|
"""
|
|
556
556
|
return pulumi.get(self, "project_id")
|
|
557
557
|
|
|
@@ -559,7 +559,7 @@ class ContainerNamespace(pulumi.CustomResource):
|
|
|
559
559
|
@pulumi.getter
|
|
560
560
|
def region(self) -> pulumi.Output[str]:
|
|
561
561
|
"""
|
|
562
|
-
`region`). The region in which the namespace
|
|
562
|
+
`region`). The region in which the namespace is created.
|
|
563
563
|
"""
|
|
564
564
|
return pulumi.get(self, "region")
|
|
565
565
|
|
|
@@ -26,15 +26,15 @@ class ContainerTokenArgs:
|
|
|
26
26
|
region: Optional[pulumi.Input[str]] = None):
|
|
27
27
|
"""
|
|
28
28
|
The set of arguments for constructing a ContainerToken resource.
|
|
29
|
-
:param pulumi.Input[str] container_id: The
|
|
29
|
+
:param pulumi.Input[str] container_id: The unique identifier of the container.
|
|
30
30
|
|
|
31
31
|
> Only one of `namespace_id` or `container_id` must be set.
|
|
32
32
|
:param pulumi.Input[str] description: The description of the token.
|
|
33
33
|
:param pulumi.Input[str] expires_at: The expiration date of the token.
|
|
34
|
-
:param pulumi.Input[str] namespace_id: The
|
|
35
|
-
:param pulumi.Input[str] region: `region`). The region in which the namespace
|
|
34
|
+
:param pulumi.Input[str] namespace_id: The unique identifier of the Containers namespace.
|
|
35
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
36
36
|
|
|
37
|
-
> **Important**
|
|
37
|
+
> **Important** Updating any of the arguments above will recreate the token.
|
|
38
38
|
"""
|
|
39
39
|
if container_id is not None:
|
|
40
40
|
pulumi.set(__self__, "container_id", container_id)
|
|
@@ -51,7 +51,7 @@ class ContainerTokenArgs:
|
|
|
51
51
|
@pulumi.getter(name="containerId")
|
|
52
52
|
def container_id(self) -> Optional[pulumi.Input[str]]:
|
|
53
53
|
"""
|
|
54
|
-
The
|
|
54
|
+
The unique identifier of the container.
|
|
55
55
|
|
|
56
56
|
> Only one of `namespace_id` or `container_id` must be set.
|
|
57
57
|
"""
|
|
@@ -89,7 +89,7 @@ class ContainerTokenArgs:
|
|
|
89
89
|
@pulumi.getter(name="namespaceId")
|
|
90
90
|
def namespace_id(self) -> Optional[pulumi.Input[str]]:
|
|
91
91
|
"""
|
|
92
|
-
The
|
|
92
|
+
The unique identifier of the Containers namespace.
|
|
93
93
|
"""
|
|
94
94
|
return pulumi.get(self, "namespace_id")
|
|
95
95
|
|
|
@@ -101,9 +101,9 @@ class ContainerTokenArgs:
|
|
|
101
101
|
@pulumi.getter
|
|
102
102
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
103
103
|
"""
|
|
104
|
-
`region`). The region in which the namespace
|
|
104
|
+
`region`). The region in which the namespace is created.
|
|
105
105
|
|
|
106
|
-
> **Important**
|
|
106
|
+
> **Important** Updating any of the arguments above will recreate the token.
|
|
107
107
|
"""
|
|
108
108
|
return pulumi.get(self, "region")
|
|
109
109
|
|
|
@@ -123,15 +123,15 @@ class _ContainerTokenState:
|
|
|
123
123
|
token: Optional[pulumi.Input[str]] = None):
|
|
124
124
|
"""
|
|
125
125
|
Input properties used for looking up and filtering ContainerToken resources.
|
|
126
|
-
:param pulumi.Input[str] container_id: The
|
|
126
|
+
:param pulumi.Input[str] container_id: The unique identifier of the container.
|
|
127
127
|
|
|
128
128
|
> Only one of `namespace_id` or `container_id` must be set.
|
|
129
129
|
:param pulumi.Input[str] description: The description of the token.
|
|
130
130
|
:param pulumi.Input[str] expires_at: The expiration date of the token.
|
|
131
|
-
:param pulumi.Input[str] namespace_id: The
|
|
132
|
-
:param pulumi.Input[str] region: `region`). The region in which the namespace
|
|
131
|
+
:param pulumi.Input[str] namespace_id: The unique identifier of the Containers namespace.
|
|
132
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
133
133
|
|
|
134
|
-
> **Important**
|
|
134
|
+
> **Important** Updating any of the arguments above will recreate the token.
|
|
135
135
|
:param pulumi.Input[str] token: The token.
|
|
136
136
|
"""
|
|
137
137
|
if container_id is not None:
|
|
@@ -151,7 +151,7 @@ class _ContainerTokenState:
|
|
|
151
151
|
@pulumi.getter(name="containerId")
|
|
152
152
|
def container_id(self) -> Optional[pulumi.Input[str]]:
|
|
153
153
|
"""
|
|
154
|
-
The
|
|
154
|
+
The unique identifier of the container.
|
|
155
155
|
|
|
156
156
|
> Only one of `namespace_id` or `container_id` must be set.
|
|
157
157
|
"""
|
|
@@ -189,7 +189,7 @@ class _ContainerTokenState:
|
|
|
189
189
|
@pulumi.getter(name="namespaceId")
|
|
190
190
|
def namespace_id(self) -> Optional[pulumi.Input[str]]:
|
|
191
191
|
"""
|
|
192
|
-
The
|
|
192
|
+
The unique identifier of the Containers namespace.
|
|
193
193
|
"""
|
|
194
194
|
return pulumi.get(self, "namespace_id")
|
|
195
195
|
|
|
@@ -201,9 +201,9 @@ class _ContainerTokenState:
|
|
|
201
201
|
@pulumi.getter
|
|
202
202
|
def region(self) -> Optional[pulumi.Input[str]]:
|
|
203
203
|
"""
|
|
204
|
-
`region`). The region in which the namespace
|
|
204
|
+
`region`). The region in which the namespace is created.
|
|
205
205
|
|
|
206
|
-
> **Important**
|
|
206
|
+
> **Important** Updating any of the arguments above will recreate the token.
|
|
207
207
|
"""
|
|
208
208
|
return pulumi.get(self, "region")
|
|
209
209
|
|
|
@@ -236,12 +236,11 @@ class ContainerToken(pulumi.CustomResource):
|
|
|
236
236
|
region: Optional[pulumi.Input[str]] = None,
|
|
237
237
|
__props__=None):
|
|
238
238
|
"""
|
|
239
|
-
|
|
240
|
-
For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#tokens-26b085).
|
|
239
|
+
The `ContainerToken` resource allows you to create and manage authentication tokens for Scaleway [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
|
241
240
|
|
|
242
|
-
|
|
241
|
+
Refer to the Containers tokens [documentation](https://www.scaleway.com/en/docs/serverless/containers/how-to/create-auth-token-from-console/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-tokens-list-all-tokens) for more information.
|
|
243
242
|
|
|
244
|
-
|
|
243
|
+
## Example Usage
|
|
245
244
|
|
|
246
245
|
```python
|
|
247
246
|
import pulumi
|
|
@@ -259,7 +258,7 @@ class ContainerToken(pulumi.CustomResource):
|
|
|
259
258
|
|
|
260
259
|
## Import
|
|
261
260
|
|
|
262
|
-
Tokens can be imported using
|
|
261
|
+
Tokens can be imported using `{region}/{id}`, as shown below:
|
|
263
262
|
|
|
264
263
|
bash
|
|
265
264
|
|
|
@@ -269,15 +268,15 @@ class ContainerToken(pulumi.CustomResource):
|
|
|
269
268
|
|
|
270
269
|
:param str resource_name: The name of the resource.
|
|
271
270
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
272
|
-
:param pulumi.Input[str] container_id: The
|
|
271
|
+
:param pulumi.Input[str] container_id: The unique identifier of the container.
|
|
273
272
|
|
|
274
273
|
> Only one of `namespace_id` or `container_id` must be set.
|
|
275
274
|
:param pulumi.Input[str] description: The description of the token.
|
|
276
275
|
:param pulumi.Input[str] expires_at: The expiration date of the token.
|
|
277
|
-
:param pulumi.Input[str] namespace_id: The
|
|
278
|
-
:param pulumi.Input[str] region: `region`). The region in which the namespace
|
|
276
|
+
:param pulumi.Input[str] namespace_id: The unique identifier of the Containers namespace.
|
|
277
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
279
278
|
|
|
280
|
-
> **Important**
|
|
279
|
+
> **Important** Updating any of the arguments above will recreate the token.
|
|
281
280
|
"""
|
|
282
281
|
...
|
|
283
282
|
@overload
|
|
@@ -286,12 +285,11 @@ class ContainerToken(pulumi.CustomResource):
|
|
|
286
285
|
args: Optional[ContainerTokenArgs] = None,
|
|
287
286
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
288
287
|
"""
|
|
289
|
-
|
|
290
|
-
For more information see [the documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#tokens-26b085).
|
|
288
|
+
The `ContainerToken` resource allows you to create and manage authentication tokens for Scaleway [Serverless Containers](https://www.scaleway.com/en/docs/serverless/containers/).
|
|
291
289
|
|
|
292
|
-
|
|
290
|
+
Refer to the Containers tokens [documentation](https://www.scaleway.com/en/docs/serverless/containers/how-to/create-auth-token-from-console/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-containers/#path-tokens-list-all-tokens) for more information.
|
|
293
291
|
|
|
294
|
-
|
|
292
|
+
## Example Usage
|
|
295
293
|
|
|
296
294
|
```python
|
|
297
295
|
import pulumi
|
|
@@ -309,7 +307,7 @@ class ContainerToken(pulumi.CustomResource):
|
|
|
309
307
|
|
|
310
308
|
## Import
|
|
311
309
|
|
|
312
|
-
Tokens can be imported using
|
|
310
|
+
Tokens can be imported using `{region}/{id}`, as shown below:
|
|
313
311
|
|
|
314
312
|
bash
|
|
315
313
|
|
|
@@ -377,15 +375,15 @@ class ContainerToken(pulumi.CustomResource):
|
|
|
377
375
|
:param str resource_name: The unique name of the resulting resource.
|
|
378
376
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
379
377
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
380
|
-
:param pulumi.Input[str] container_id: The
|
|
378
|
+
:param pulumi.Input[str] container_id: The unique identifier of the container.
|
|
381
379
|
|
|
382
380
|
> Only one of `namespace_id` or `container_id` must be set.
|
|
383
381
|
:param pulumi.Input[str] description: The description of the token.
|
|
384
382
|
:param pulumi.Input[str] expires_at: The expiration date of the token.
|
|
385
|
-
:param pulumi.Input[str] namespace_id: The
|
|
386
|
-
:param pulumi.Input[str] region: `region`). The region in which the namespace
|
|
383
|
+
:param pulumi.Input[str] namespace_id: The unique identifier of the Containers namespace.
|
|
384
|
+
:param pulumi.Input[str] region: `region`). The region in which the namespace is created.
|
|
387
385
|
|
|
388
|
-
> **Important**
|
|
386
|
+
> **Important** Updating any of the arguments above will recreate the token.
|
|
389
387
|
:param pulumi.Input[str] token: The token.
|
|
390
388
|
"""
|
|
391
389
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -404,7 +402,7 @@ class ContainerToken(pulumi.CustomResource):
|
|
|
404
402
|
@pulumi.getter(name="containerId")
|
|
405
403
|
def container_id(self) -> pulumi.Output[Optional[str]]:
|
|
406
404
|
"""
|
|
407
|
-
The
|
|
405
|
+
The unique identifier of the container.
|
|
408
406
|
|
|
409
407
|
> Only one of `namespace_id` or `container_id` must be set.
|
|
410
408
|
"""
|
|
@@ -430,7 +428,7 @@ class ContainerToken(pulumi.CustomResource):
|
|
|
430
428
|
@pulumi.getter(name="namespaceId")
|
|
431
429
|
def namespace_id(self) -> pulumi.Output[Optional[str]]:
|
|
432
430
|
"""
|
|
433
|
-
The
|
|
431
|
+
The unique identifier of the Containers namespace.
|
|
434
432
|
"""
|
|
435
433
|
return pulumi.get(self, "namespace_id")
|
|
436
434
|
|
|
@@ -438,9 +436,9 @@ class ContainerToken(pulumi.CustomResource):
|
|
|
438
436
|
@pulumi.getter
|
|
439
437
|
def region(self) -> pulumi.Output[str]:
|
|
440
438
|
"""
|
|
441
|
-
`region`). The region in which the namespace
|
|
439
|
+
`region`). The region in which the namespace is created.
|
|
442
440
|
|
|
443
|
-
> **Important**
|
|
441
|
+
> **Important** Updating any of the arguments above will recreate the token.
|
|
444
442
|
"""
|
|
445
443
|
return pulumi.get(self, "region")
|
|
446
444
|
|