cdktf-cdktf-provider-upcloud 6.0.2__py3-none-any.whl → 7.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.
Potentially problematic release.
This version of cdktf-cdktf-provider-upcloud might be problematic. Click here for more details.
- cdktf_cdktf_provider_upcloud/__init__.py +4 -0
- cdktf_cdktf_provider_upcloud/_jsii/__init__.py +2 -2
- cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@7.0.0.jsii.tgz +0 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_hosts/__init__.py +6 -6
- cdktf_cdktf_provider_upcloud/data_upcloud_ip_addresses/__init__.py +6 -6
- cdktf_cdktf_provider_upcloud/data_upcloud_kubernetes_cluster/__init__.py +6 -6
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_opensearch_indices/__init__.py +662 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_networks/__init__.py +12 -12
- cdktf_cdktf_provider_upcloud/data_upcloud_storage/__init__.py +25 -25
- cdktf_cdktf_provider_upcloud/data_upcloud_tags/__init__.py +6 -6
- cdktf_cdktf_provider_upcloud/data_upcloud_zone/__init__.py +9 -9
- cdktf_cdktf_provider_upcloud/data_upcloud_zones/__init__.py +9 -9
- cdktf_cdktf_provider_upcloud/firewall_rules/__init__.py +40 -40
- cdktf_cdktf_provider_upcloud/floating_ip_address/__init__.py +19 -19
- cdktf_cdktf_provider_upcloud/gateway/__init__.py +27 -27
- cdktf_cdktf_provider_upcloud/kubernetes_cluster/__init__.py +78 -20
- cdktf_cdktf_provider_upcloud/kubernetes_node_group/__init__.py +44 -44
- cdktf_cdktf_provider_upcloud/loadbalancer/__init__.py +36 -36
- cdktf_cdktf_provider_upcloud/loadbalancer_backend/__init__.py +48 -48
- cdktf_cdktf_provider_upcloud/loadbalancer_dynamic_backend_member/__init__.py +27 -27
- cdktf_cdktf_provider_upcloud/loadbalancer_dynamic_certificate_bundle/__init__.py +15 -15
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend/__init__.py +35 -35
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend_rule/__init__.py +164 -164
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend_tls_config/__init__.py +15 -15
- cdktf_cdktf_provider_upcloud/loadbalancer_manual_certificate_bundle/__init__.py +18 -18
- cdktf_cdktf_provider_upcloud/loadbalancer_resolver/__init__.py +30 -30
- cdktf_cdktf_provider_upcloud/loadbalancer_static_backend_member/__init__.py +27 -27
- cdktf_cdktf_provider_upcloud/managed_database_logical_database/__init__.py +18 -18
- cdktf_cdktf_provider_upcloud/managed_database_mysql/__init__.py +175 -173
- cdktf_cdktf_provider_upcloud/managed_database_opensearch/__init__.py +2017 -0
- cdktf_cdktf_provider_upcloud/managed_database_postgresql/__init__.py +292 -290
- cdktf_cdktf_provider_upcloud/managed_database_redis/__init__.py +100 -98
- cdktf_cdktf_provider_upcloud/managed_database_user/__init__.py +529 -39
- cdktf_cdktf_provider_upcloud/network/__init__.py +37 -37
- cdktf_cdktf_provider_upcloud/object_storage/__init__.py +30 -30
- cdktf_cdktf_provider_upcloud/provider/__init__.py +21 -21
- cdktf_cdktf_provider_upcloud/router/__init__.py +9 -9
- cdktf_cdktf_provider_upcloud/server/__init__.py +265 -124
- cdktf_cdktf_provider_upcloud/server_group/__init__.py +57 -59
- cdktf_cdktf_provider_upcloud/storage/__init__.py +55 -55
- cdktf_cdktf_provider_upcloud/tag/__init__.py +15 -15
- {cdktf_cdktf_provider_upcloud-6.0.2.dist-info → cdktf_cdktf_provider_upcloud-7.0.0.dist-info}/METADATA +3 -3
- cdktf_cdktf_provider_upcloud-7.0.0.dist-info/RECORD +47 -0
- cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@6.0.2.jsii.tgz +0 -0
- cdktf_cdktf_provider_upcloud-6.0.2.dist-info/RECORD +0 -45
- {cdktf_cdktf_provider_upcloud-6.0.2.dist-info → cdktf_cdktf_provider_upcloud-7.0.0.dist-info}/LICENSE +0 -0
- {cdktf_cdktf_provider_upcloud-6.0.2.dist-info → cdktf_cdktf_provider_upcloud-7.0.0.dist-info}/WHEEL +0 -0
- {cdktf_cdktf_provider_upcloud-6.0.2.dist-info → cdktf_cdktf_provider_upcloud-7.0.0.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'''
|
|
2
2
|
# `upcloud_server_group`
|
|
3
3
|
|
|
4
|
-
Refer to the Terraform Registory for docs: [`upcloud_server_group`](https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
4
|
+
Refer to the Terraform Registory for docs: [`upcloud_server_group`](https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group).
|
|
5
5
|
'''
|
|
6
6
|
import abc
|
|
7
7
|
import builtins
|
|
@@ -26,7 +26,7 @@ class ServerGroup(
|
|
|
26
26
|
metaclass=jsii.JSIIMeta,
|
|
27
27
|
jsii_type="@cdktf/provider-upcloud.serverGroup.ServerGroup",
|
|
28
28
|
):
|
|
29
|
-
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
29
|
+
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group upcloud_server_group}.'''
|
|
30
30
|
|
|
31
31
|
def __init__(
|
|
32
32
|
self,
|
|
@@ -34,7 +34,7 @@ class ServerGroup(
|
|
|
34
34
|
id_: builtins.str,
|
|
35
35
|
*,
|
|
36
36
|
title: builtins.str,
|
|
37
|
-
|
|
37
|
+
anti_affinity_policy: typing.Optional[builtins.str] = None,
|
|
38
38
|
id: typing.Optional[builtins.str] = None,
|
|
39
39
|
labels: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
40
40
|
members: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -46,15 +46,15 @@ class ServerGroup(
|
|
|
46
46
|
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
47
47
|
provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
|
48
48
|
) -> None:
|
|
49
|
-
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
49
|
+
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group upcloud_server_group} Resource.
|
|
50
50
|
|
|
51
51
|
:param scope: The scope in which to define this construct.
|
|
52
52
|
:param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
53
|
-
:param title: Title of your server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
54
|
-
:param
|
|
55
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
56
|
-
:param labels: Key-value pairs to classify the server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
57
|
-
:param members: UUIDs of the servers that are members of this group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
53
|
+
:param title: Title of your server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#title ServerGroup#title}
|
|
54
|
+
:param anti_affinity_policy: Defines if a server group is an anti-affinity group. Setting this to "strict" or yes" will result in all servers in the group being placed on separate compute hosts. The value can be "strict", "yes" or "no". "strict" refers to strict policy doesn't allow servers in the same server group to be on the same host "yes" refers to best-effort policy and tries to put servers on different hosts, but this is not guaranteed "no" refers to having no policy and thus no affect server host affinity To verify if the anti-affinity policies are met by requesting a server group details from API. For more information please see UpCloud API documentation on server groups. Plese also note that anti-affinity policies are only applied on server start. This means that if anti-affinity policies in server group are not met, you need to manually restart the servers in said group, for example via API, UpCloud Control Panel or upctl (UpCloud CLI) Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#anti_affinity_policy ServerGroup#anti_affinity_policy}
|
|
55
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#id ServerGroup#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
56
|
+
:param labels: Key-value pairs to classify the server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#labels ServerGroup#labels}
|
|
57
|
+
:param members: UUIDs of the servers that are members of this group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#members ServerGroup#members}
|
|
58
58
|
:param connection:
|
|
59
59
|
:param count:
|
|
60
60
|
:param depends_on:
|
|
@@ -69,7 +69,7 @@ class ServerGroup(
|
|
|
69
69
|
check_type(argname="argument id_", value=id_, expected_type=type_hints["id_"])
|
|
70
70
|
config = ServerGroupConfig(
|
|
71
71
|
title=title,
|
|
72
|
-
|
|
72
|
+
anti_affinity_policy=anti_affinity_policy,
|
|
73
73
|
id=id,
|
|
74
74
|
labels=labels,
|
|
75
75
|
members=members,
|
|
@@ -84,9 +84,9 @@ class ServerGroup(
|
|
|
84
84
|
|
|
85
85
|
jsii.create(self.__class__, self, [scope, id_, config])
|
|
86
86
|
|
|
87
|
-
@jsii.member(jsii_name="
|
|
88
|
-
def
|
|
89
|
-
return typing.cast(None, jsii.invoke(self, "
|
|
87
|
+
@jsii.member(jsii_name="resetAntiAffinityPolicy")
|
|
88
|
+
def reset_anti_affinity_policy(self) -> None:
|
|
89
|
+
return typing.cast(None, jsii.invoke(self, "resetAntiAffinityPolicy", []))
|
|
90
90
|
|
|
91
91
|
@jsii.member(jsii_name="resetId")
|
|
92
92
|
def reset_id(self) -> None:
|
|
@@ -110,11 +110,9 @@ class ServerGroup(
|
|
|
110
110
|
return typing.cast(builtins.str, jsii.sget(cls, "tfResourceType"))
|
|
111
111
|
|
|
112
112
|
@builtins.property
|
|
113
|
-
@jsii.member(jsii_name="
|
|
114
|
-
def
|
|
115
|
-
self,
|
|
116
|
-
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
117
|
-
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], jsii.get(self, "antiAffinityInput"))
|
|
113
|
+
@jsii.member(jsii_name="antiAffinityPolicyInput")
|
|
114
|
+
def anti_affinity_policy_input(self) -> typing.Optional[builtins.str]:
|
|
115
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "antiAffinityPolicyInput"))
|
|
118
116
|
|
|
119
117
|
@builtins.property
|
|
120
118
|
@jsii.member(jsii_name="idInput")
|
|
@@ -139,19 +137,16 @@ class ServerGroup(
|
|
|
139
137
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "titleInput"))
|
|
140
138
|
|
|
141
139
|
@builtins.property
|
|
142
|
-
@jsii.member(jsii_name="
|
|
143
|
-
def
|
|
144
|
-
return typing.cast(
|
|
140
|
+
@jsii.member(jsii_name="antiAffinityPolicy")
|
|
141
|
+
def anti_affinity_policy(self) -> builtins.str:
|
|
142
|
+
return typing.cast(builtins.str, jsii.get(self, "antiAffinityPolicy"))
|
|
145
143
|
|
|
146
|
-
@
|
|
147
|
-
def
|
|
148
|
-
self,
|
|
149
|
-
value: typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable],
|
|
150
|
-
) -> None:
|
|
144
|
+
@anti_affinity_policy.setter
|
|
145
|
+
def anti_affinity_policy(self, value: builtins.str) -> None:
|
|
151
146
|
if __debug__:
|
|
152
|
-
type_hints = typing.get_type_hints(
|
|
147
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4390bd2492fd3d3bbedd7c19e60d04383672093eba56d821ee968f23e93bf140)
|
|
153
148
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
154
|
-
jsii.set(self, "
|
|
149
|
+
jsii.set(self, "antiAffinityPolicy", value)
|
|
155
150
|
|
|
156
151
|
@builtins.property
|
|
157
152
|
@jsii.member(jsii_name="id")
|
|
@@ -214,7 +209,7 @@ class ServerGroup(
|
|
|
214
209
|
"provider": "provider",
|
|
215
210
|
"provisioners": "provisioners",
|
|
216
211
|
"title": "title",
|
|
217
|
-
"
|
|
212
|
+
"anti_affinity_policy": "antiAffinityPolicy",
|
|
218
213
|
"id": "id",
|
|
219
214
|
"labels": "labels",
|
|
220
215
|
"members": "members",
|
|
@@ -232,7 +227,7 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
232
227
|
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
233
228
|
provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
|
234
229
|
title: builtins.str,
|
|
235
|
-
|
|
230
|
+
anti_affinity_policy: typing.Optional[builtins.str] = None,
|
|
236
231
|
id: typing.Optional[builtins.str] = None,
|
|
237
232
|
labels: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
238
233
|
members: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -245,11 +240,11 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
245
240
|
:param lifecycle:
|
|
246
241
|
:param provider:
|
|
247
242
|
:param provisioners:
|
|
248
|
-
:param title: Title of your server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
249
|
-
:param
|
|
250
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
251
|
-
:param labels: Key-value pairs to classify the server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
252
|
-
:param members: UUIDs of the servers that are members of this group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
243
|
+
:param title: Title of your server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#title ServerGroup#title}
|
|
244
|
+
:param anti_affinity_policy: Defines if a server group is an anti-affinity group. Setting this to "strict" or yes" will result in all servers in the group being placed on separate compute hosts. The value can be "strict", "yes" or "no". "strict" refers to strict policy doesn't allow servers in the same server group to be on the same host "yes" refers to best-effort policy and tries to put servers on different hosts, but this is not guaranteed "no" refers to having no policy and thus no affect server host affinity To verify if the anti-affinity policies are met by requesting a server group details from API. For more information please see UpCloud API documentation on server groups. Plese also note that anti-affinity policies are only applied on server start. This means that if anti-affinity policies in server group are not met, you need to manually restart the servers in said group, for example via API, UpCloud Control Panel or upctl (UpCloud CLI) Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#anti_affinity_policy ServerGroup#anti_affinity_policy}
|
|
245
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#id ServerGroup#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
246
|
+
:param labels: Key-value pairs to classify the server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#labels ServerGroup#labels}
|
|
247
|
+
:param members: UUIDs of the servers that are members of this group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#members ServerGroup#members}
|
|
253
248
|
'''
|
|
254
249
|
if isinstance(lifecycle, dict):
|
|
255
250
|
lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
|
|
@@ -263,7 +258,7 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
263
258
|
check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
|
|
264
259
|
check_type(argname="argument provisioners", value=provisioners, expected_type=type_hints["provisioners"])
|
|
265
260
|
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
266
|
-
check_type(argname="argument
|
|
261
|
+
check_type(argname="argument anti_affinity_policy", value=anti_affinity_policy, expected_type=type_hints["anti_affinity_policy"])
|
|
267
262
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
268
263
|
check_type(argname="argument labels", value=labels, expected_type=type_hints["labels"])
|
|
269
264
|
check_type(argname="argument members", value=members, expected_type=type_hints["members"])
|
|
@@ -284,8 +279,8 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
284
279
|
self._values["provider"] = provider
|
|
285
280
|
if provisioners is not None:
|
|
286
281
|
self._values["provisioners"] = provisioners
|
|
287
|
-
if
|
|
288
|
-
self._values["
|
|
282
|
+
if anti_affinity_policy is not None:
|
|
283
|
+
self._values["anti_affinity_policy"] = anti_affinity_policy
|
|
289
284
|
if id is not None:
|
|
290
285
|
self._values["id"] = id
|
|
291
286
|
if labels is not None:
|
|
@@ -361,35 +356,38 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
361
356
|
def title(self) -> builtins.str:
|
|
362
357
|
'''Title of your server group.
|
|
363
358
|
|
|
364
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
359
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#title ServerGroup#title}
|
|
365
360
|
'''
|
|
366
361
|
result = self._values.get("title")
|
|
367
362
|
assert result is not None, "Required property 'title' is missing"
|
|
368
363
|
return typing.cast(builtins.str, result)
|
|
369
364
|
|
|
370
365
|
@builtins.property
|
|
371
|
-
def
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
366
|
+
def anti_affinity_policy(self) -> typing.Optional[builtins.str]:
|
|
367
|
+
'''Defines if a server group is an anti-affinity group.
|
|
368
|
+
|
|
369
|
+
Setting this to "strict" or yes" will
|
|
370
|
+
result in all servers in the group being placed on separate compute hosts. The value can be "strict", "yes" or "no".
|
|
371
|
+
|
|
372
|
+
"strict" refers to strict policy doesn't allow servers in the same server group to be on the same host
|
|
373
|
+
"yes" refers to best-effort policy and tries to put servers on different hosts, but this is not guaranteed
|
|
374
|
+
"no" refers to having no policy and thus no affect server host affinity
|
|
375
|
+
|
|
376
|
+
To verify if the anti-affinity policies are met by requesting a server group details from API. For more information
|
|
377
|
+
please see UpCloud API documentation on server groups.
|
|
378
|
+
|
|
381
379
|
Plese also note that anti-affinity policies are only applied on server start. This means that if anti-affinity
|
|
382
380
|
policies in server group are not met, you need to manually restart the servers in said group,
|
|
383
381
|
for example via API, UpCloud Control Panel or upctl (UpCloud CLI)
|
|
384
382
|
|
|
385
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
383
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#anti_affinity_policy ServerGroup#anti_affinity_policy}
|
|
386
384
|
'''
|
|
387
|
-
result = self._values.get("
|
|
388
|
-
return typing.cast(typing.Optional[
|
|
385
|
+
result = self._values.get("anti_affinity_policy")
|
|
386
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
389
387
|
|
|
390
388
|
@builtins.property
|
|
391
389
|
def id(self) -> typing.Optional[builtins.str]:
|
|
392
|
-
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
390
|
+
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#id ServerGroup#id}.
|
|
393
391
|
|
|
394
392
|
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
395
393
|
If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
@@ -401,7 +399,7 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
401
399
|
def labels(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
402
400
|
'''Key-value pairs to classify the server group.
|
|
403
401
|
|
|
404
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
402
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#labels ServerGroup#labels}
|
|
405
403
|
'''
|
|
406
404
|
result = self._values.get("labels")
|
|
407
405
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
@@ -410,7 +408,7 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
410
408
|
def members(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
411
409
|
'''UUIDs of the servers that are members of this group.
|
|
412
410
|
|
|
413
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
411
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/server_group#members ServerGroup#members}
|
|
414
412
|
'''
|
|
415
413
|
result = self._values.get("members")
|
|
416
414
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
@@ -439,7 +437,7 @@ def _typecheckingstub__e7bb9d997cccb31358151de22cea5fb9ccb45e5e867434b036acb120a
|
|
|
439
437
|
id_: builtins.str,
|
|
440
438
|
*,
|
|
441
439
|
title: builtins.str,
|
|
442
|
-
|
|
440
|
+
anti_affinity_policy: typing.Optional[builtins.str] = None,
|
|
443
441
|
id: typing.Optional[builtins.str] = None,
|
|
444
442
|
labels: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
445
443
|
members: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -454,8 +452,8 @@ def _typecheckingstub__e7bb9d997cccb31358151de22cea5fb9ccb45e5e867434b036acb120a
|
|
|
454
452
|
"""Type checking stubs"""
|
|
455
453
|
pass
|
|
456
454
|
|
|
457
|
-
def
|
|
458
|
-
value:
|
|
455
|
+
def _typecheckingstub__4390bd2492fd3d3bbedd7c19e60d04383672093eba56d821ee968f23e93bf140(
|
|
456
|
+
value: builtins.str,
|
|
459
457
|
) -> None:
|
|
460
458
|
"""Type checking stubs"""
|
|
461
459
|
pass
|
|
@@ -494,7 +492,7 @@ def _typecheckingstub__b403df006cfad85b18163ab30df327c027139a019345d554635499f60
|
|
|
494
492
|
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
495
493
|
provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
|
496
494
|
title: builtins.str,
|
|
497
|
-
|
|
495
|
+
anti_affinity_policy: typing.Optional[builtins.str] = None,
|
|
498
496
|
id: typing.Optional[builtins.str] = None,
|
|
499
497
|
labels: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
500
498
|
members: typing.Optional[typing.Sequence[builtins.str]] = None,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'''
|
|
2
2
|
# `upcloud_storage`
|
|
3
3
|
|
|
4
|
-
Refer to the Terraform Registory for docs: [`upcloud_storage`](https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
4
|
+
Refer to the Terraform Registory for docs: [`upcloud_storage`](https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage).
|
|
5
5
|
'''
|
|
6
6
|
import abc
|
|
7
7
|
import builtins
|
|
@@ -26,7 +26,7 @@ class Storage(
|
|
|
26
26
|
metaclass=jsii.JSIIMeta,
|
|
27
27
|
jsii_type="@cdktf/provider-upcloud.storage.Storage",
|
|
28
28
|
):
|
|
29
|
-
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
29
|
+
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage upcloud_storage}.'''
|
|
30
30
|
|
|
31
31
|
def __init__(
|
|
32
32
|
self,
|
|
@@ -51,20 +51,20 @@ class Storage(
|
|
|
51
51
|
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
52
52
|
provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
|
53
53
|
) -> None:
|
|
54
|
-
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
54
|
+
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage upcloud_storage} Resource.
|
|
55
55
|
|
|
56
56
|
:param scope: The scope in which to define this construct.
|
|
57
57
|
:param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
58
|
-
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
59
|
-
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
60
|
-
:param zone: The zone in which the storage will be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
61
|
-
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
62
|
-
:param clone: clone block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
63
|
-
:param delete_autoresize_backup: If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
64
|
-
:param filesystem_autoresize: If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
65
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
66
|
-
:param import_: import block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
67
|
-
:param tier: The storage tier to use. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
58
|
+
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#size Storage#size}
|
|
59
|
+
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#title Storage#title}
|
|
60
|
+
:param zone: The zone in which the storage will be created, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#zone Storage#zone}
|
|
61
|
+
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#backup_rule Storage#backup_rule}
|
|
62
|
+
:param clone: clone block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#clone Storage#clone}
|
|
63
|
+
:param delete_autoresize_backup: If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#delete_autoresize_backup Storage#delete_autoresize_backup}
|
|
64
|
+
:param filesystem_autoresize: If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#filesystem_autoresize Storage#filesystem_autoresize}
|
|
65
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#id Storage#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
66
|
+
:param import_: import block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#import Storage#import}
|
|
67
|
+
:param tier: The storage tier to use. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#tier Storage#tier}
|
|
68
68
|
:param connection:
|
|
69
69
|
:param count:
|
|
70
70
|
:param depends_on:
|
|
@@ -108,9 +108,9 @@ class Storage(
|
|
|
108
108
|
time: builtins.str,
|
|
109
109
|
) -> None:
|
|
110
110
|
'''
|
|
111
|
-
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
112
|
-
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
113
|
-
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
111
|
+
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#interval Storage#interval}
|
|
112
|
+
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#retention Storage#retention}
|
|
113
|
+
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#time Storage#time}
|
|
114
114
|
'''
|
|
115
115
|
value = StorageBackupRule(interval=interval, retention=retention, time=time)
|
|
116
116
|
|
|
@@ -119,7 +119,7 @@ class Storage(
|
|
|
119
119
|
@jsii.member(jsii_name="putClone")
|
|
120
120
|
def put_clone(self, *, id: builtins.str) -> None:
|
|
121
121
|
'''
|
|
122
|
-
:param id: The unique identifier of the storage/template to clone. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
122
|
+
:param id: The unique identifier of the storage/template to clone. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#id Storage#id} Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
123
123
|
'''
|
|
124
124
|
value = StorageClone(id=id)
|
|
125
125
|
|
|
@@ -134,9 +134,9 @@ class Storage(
|
|
|
134
134
|
source_hash: typing.Optional[builtins.str] = None,
|
|
135
135
|
) -> None:
|
|
136
136
|
'''
|
|
137
|
-
:param source: The mode of the import task. One of ``http_import`` or ``direct_upload``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
138
|
-
:param source_location: The location of the file to import. For ``http_import`` an accessible URL for ``direct_upload`` a local file. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
139
|
-
:param source_hash: For ``direct_upload``; an optional hash of the file to upload. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
137
|
+
:param source: The mode of the import task. One of ``http_import`` or ``direct_upload``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#source Storage#source}
|
|
138
|
+
:param source_location: The location of the file to import. For ``http_import`` an accessible URL for ``direct_upload`` a local file. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#source_location Storage#source_location}
|
|
139
|
+
:param source_hash: For ``direct_upload``; an optional hash of the file to upload. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#source_hash Storage#source_hash}
|
|
140
140
|
'''
|
|
141
141
|
value = StorageImport(
|
|
142
142
|
source=source, source_location=source_location, source_hash=source_hash
|
|
@@ -359,9 +359,9 @@ class StorageBackupRule:
|
|
|
359
359
|
time: builtins.str,
|
|
360
360
|
) -> None:
|
|
361
361
|
'''
|
|
362
|
-
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
363
|
-
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
364
|
-
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
362
|
+
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#interval Storage#interval}
|
|
363
|
+
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#retention Storage#retention}
|
|
364
|
+
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#time Storage#time}
|
|
365
365
|
'''
|
|
366
366
|
if __debug__:
|
|
367
367
|
type_hints = typing.get_type_hints(_typecheckingstub__eee27a48ad2ef9945a89867effeeb18fc1f477a3f16c16ee7e3dc286b6d8319e)
|
|
@@ -378,7 +378,7 @@ class StorageBackupRule:
|
|
|
378
378
|
def interval(self) -> builtins.str:
|
|
379
379
|
'''The weekday when the backup is created.
|
|
380
380
|
|
|
381
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
381
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#interval Storage#interval}
|
|
382
382
|
'''
|
|
383
383
|
result = self._values.get("interval")
|
|
384
384
|
assert result is not None, "Required property 'interval' is missing"
|
|
@@ -388,7 +388,7 @@ class StorageBackupRule:
|
|
|
388
388
|
def retention(self) -> jsii.Number:
|
|
389
389
|
'''The number of days before a backup is automatically deleted.
|
|
390
390
|
|
|
391
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
391
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#retention Storage#retention}
|
|
392
392
|
'''
|
|
393
393
|
result = self._values.get("retention")
|
|
394
394
|
assert result is not None, "Required property 'retention' is missing"
|
|
@@ -398,7 +398,7 @@ class StorageBackupRule:
|
|
|
398
398
|
def time(self) -> builtins.str:
|
|
399
399
|
'''The time of day when the backup is created.
|
|
400
400
|
|
|
401
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
401
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#time Storage#time}
|
|
402
402
|
'''
|
|
403
403
|
result = self._values.get("time")
|
|
404
404
|
assert result is not None, "Required property 'time' is missing"
|
|
@@ -508,7 +508,7 @@ class StorageBackupRuleOutputReference(
|
|
|
508
508
|
class StorageClone:
|
|
509
509
|
def __init__(self, *, id: builtins.str) -> None:
|
|
510
510
|
'''
|
|
511
|
-
:param id: The unique identifier of the storage/template to clone. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
511
|
+
:param id: The unique identifier of the storage/template to clone. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#id Storage#id} Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
512
512
|
'''
|
|
513
513
|
if __debug__:
|
|
514
514
|
type_hints = typing.get_type_hints(_typecheckingstub__efe8b26017a7929b77162de356dd088dc3adf3b5cf8edbcdd06aee07e255d1e2)
|
|
@@ -521,7 +521,7 @@ class StorageClone:
|
|
|
521
521
|
def id(self) -> builtins.str:
|
|
522
522
|
'''The unique identifier of the storage/template to clone.
|
|
523
523
|
|
|
524
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
524
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#id Storage#id}
|
|
525
525
|
|
|
526
526
|
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
527
527
|
If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
@@ -645,16 +645,16 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
645
645
|
:param lifecycle:
|
|
646
646
|
:param provider:
|
|
647
647
|
:param provisioners:
|
|
648
|
-
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
649
|
-
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
650
|
-
:param zone: The zone in which the storage will be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
651
|
-
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
652
|
-
:param clone: clone block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
653
|
-
:param delete_autoresize_backup: If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
654
|
-
:param filesystem_autoresize: If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
655
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
656
|
-
:param import_: import block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
657
|
-
:param tier: The storage tier to use. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
648
|
+
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#size Storage#size}
|
|
649
|
+
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#title Storage#title}
|
|
650
|
+
:param zone: The zone in which the storage will be created, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#zone Storage#zone}
|
|
651
|
+
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#backup_rule Storage#backup_rule}
|
|
652
|
+
:param clone: clone block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#clone Storage#clone}
|
|
653
|
+
:param delete_autoresize_backup: If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#delete_autoresize_backup Storage#delete_autoresize_backup}
|
|
654
|
+
:param filesystem_autoresize: If set to true, provider will attempt to resize partition and filesystem when the size of the storage changes. Please note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true). Taking and keeping backups incure costs. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#filesystem_autoresize Storage#filesystem_autoresize}
|
|
655
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#id Storage#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
656
|
+
:param import_: import block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#import Storage#import}
|
|
657
|
+
:param tier: The storage tier to use. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#tier Storage#tier}
|
|
658
658
|
'''
|
|
659
659
|
if isinstance(lifecycle, dict):
|
|
660
660
|
lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
|
|
@@ -785,7 +785,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
785
785
|
def size(self) -> jsii.Number:
|
|
786
786
|
'''The size of the storage in gigabytes.
|
|
787
787
|
|
|
788
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
788
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#size Storage#size}
|
|
789
789
|
'''
|
|
790
790
|
result = self._values.get("size")
|
|
791
791
|
assert result is not None, "Required property 'size' is missing"
|
|
@@ -795,7 +795,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
795
795
|
def title(self) -> builtins.str:
|
|
796
796
|
'''A short, informative description.
|
|
797
797
|
|
|
798
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
798
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#title Storage#title}
|
|
799
799
|
'''
|
|
800
800
|
result = self._values.get("title")
|
|
801
801
|
assert result is not None, "Required property 'title' is missing"
|
|
@@ -803,9 +803,9 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
803
803
|
|
|
804
804
|
@builtins.property
|
|
805
805
|
def zone(self) -> builtins.str:
|
|
806
|
-
'''The zone in which the storage will be created.
|
|
806
|
+
'''The zone in which the storage will be created, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``.
|
|
807
807
|
|
|
808
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
808
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#zone Storage#zone}
|
|
809
809
|
'''
|
|
810
810
|
result = self._values.get("zone")
|
|
811
811
|
assert result is not None, "Required property 'zone' is missing"
|
|
@@ -815,7 +815,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
815
815
|
def backup_rule(self) -> typing.Optional[StorageBackupRule]:
|
|
816
816
|
'''backup_rule block.
|
|
817
817
|
|
|
818
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
818
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#backup_rule Storage#backup_rule}
|
|
819
819
|
'''
|
|
820
820
|
result = self._values.get("backup_rule")
|
|
821
821
|
return typing.cast(typing.Optional[StorageBackupRule], result)
|
|
@@ -824,7 +824,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
824
824
|
def clone(self) -> typing.Optional[StorageClone]:
|
|
825
825
|
'''clone block.
|
|
826
826
|
|
|
827
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
827
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#clone Storage#clone}
|
|
828
828
|
'''
|
|
829
829
|
result = self._values.get("clone")
|
|
830
830
|
return typing.cast(typing.Optional[StorageClone], result)
|
|
@@ -835,7 +835,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
835
835
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
836
836
|
'''If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
|
|
837
837
|
|
|
838
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
838
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#delete_autoresize_backup Storage#delete_autoresize_backup}
|
|
839
839
|
'''
|
|
840
840
|
result = self._values.get("delete_autoresize_backup")
|
|
841
841
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -850,14 +850,14 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
850
850
|
to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept (unless delete_autoresize_backup option is set to true).
|
|
851
851
|
Taking and keeping backups incure costs.
|
|
852
852
|
|
|
853
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
853
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#filesystem_autoresize Storage#filesystem_autoresize}
|
|
854
854
|
'''
|
|
855
855
|
result = self._values.get("filesystem_autoresize")
|
|
856
856
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
857
857
|
|
|
858
858
|
@builtins.property
|
|
859
859
|
def id(self) -> typing.Optional[builtins.str]:
|
|
860
|
-
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
860
|
+
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#id Storage#id}.
|
|
861
861
|
|
|
862
862
|
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
863
863
|
If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
@@ -869,7 +869,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
869
869
|
def import_(self) -> typing.Optional["StorageImport"]:
|
|
870
870
|
'''import block.
|
|
871
871
|
|
|
872
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
872
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#import Storage#import}
|
|
873
873
|
'''
|
|
874
874
|
result = self._values.get("import_")
|
|
875
875
|
return typing.cast(typing.Optional["StorageImport"], result)
|
|
@@ -878,7 +878,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
878
878
|
def tier(self) -> typing.Optional[builtins.str]:
|
|
879
879
|
'''The storage tier to use.
|
|
880
880
|
|
|
881
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
881
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#tier Storage#tier}
|
|
882
882
|
'''
|
|
883
883
|
result = self._values.get("tier")
|
|
884
884
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -913,9 +913,9 @@ class StorageImport:
|
|
|
913
913
|
source_hash: typing.Optional[builtins.str] = None,
|
|
914
914
|
) -> None:
|
|
915
915
|
'''
|
|
916
|
-
:param source: The mode of the import task. One of ``http_import`` or ``direct_upload``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
917
|
-
:param source_location: The location of the file to import. For ``http_import`` an accessible URL for ``direct_upload`` a local file. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
918
|
-
:param source_hash: For ``direct_upload``; an optional hash of the file to upload. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
916
|
+
:param source: The mode of the import task. One of ``http_import`` or ``direct_upload``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#source Storage#source}
|
|
917
|
+
:param source_location: The location of the file to import. For ``http_import`` an accessible URL for ``direct_upload`` a local file. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#source_location Storage#source_location}
|
|
918
|
+
:param source_hash: For ``direct_upload``; an optional hash of the file to upload. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#source_hash Storage#source_hash}
|
|
919
919
|
'''
|
|
920
920
|
if __debug__:
|
|
921
921
|
type_hints = typing.get_type_hints(_typecheckingstub__57190dc28106231e6a3ad0101dea1fddce123659be23a411969999c2b12e5aef)
|
|
@@ -933,7 +933,7 @@ class StorageImport:
|
|
|
933
933
|
def source(self) -> builtins.str:
|
|
934
934
|
'''The mode of the import task. One of ``http_import`` or ``direct_upload``.
|
|
935
935
|
|
|
936
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
936
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#source Storage#source}
|
|
937
937
|
'''
|
|
938
938
|
result = self._values.get("source")
|
|
939
939
|
assert result is not None, "Required property 'source' is missing"
|
|
@@ -943,7 +943,7 @@ class StorageImport:
|
|
|
943
943
|
def source_location(self) -> builtins.str:
|
|
944
944
|
'''The location of the file to import. For ``http_import`` an accessible URL for ``direct_upload`` a local file.
|
|
945
945
|
|
|
946
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
946
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#source_location Storage#source_location}
|
|
947
947
|
'''
|
|
948
948
|
result = self._values.get("source_location")
|
|
949
949
|
assert result is not None, "Required property 'source_location' is missing"
|
|
@@ -953,7 +953,7 @@ class StorageImport:
|
|
|
953
953
|
def source_hash(self) -> typing.Optional[builtins.str]:
|
|
954
954
|
'''For ``direct_upload``; an optional hash of the file to upload.
|
|
955
955
|
|
|
956
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.
|
|
956
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/2.11.0/docs/resources/storage#source_hash Storage#source_hash}
|
|
957
957
|
'''
|
|
958
958
|
result = self._values.get("source_hash")
|
|
959
959
|
return typing.cast(typing.Optional[builtins.str], result)
|