cdktf-cdktf-provider-upcloud 14.4.0__py3-none-any.whl → 14.5.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 +3 -3
- cdktf_cdktf_provider_upcloud/_jsii/__init__.py +2 -2
- cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@14.5.0.jsii.tgz +0 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_hosts/__init__.py +7 -7
- cdktf_cdktf_provider_upcloud/data_upcloud_ip_addresses/__init__.py +7 -7
- cdktf_cdktf_provider_upcloud/data_upcloud_kubernetes_cluster/__init__.py +7 -7
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_mysql_sessions/__init__.py +22 -22
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_opensearch_indices/__init__.py +13 -13
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_postgresql_sessions/__init__.py +30 -30
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_redis_sessions/__init__.py +22 -22
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_object_storage_policies/__init__.py +10 -10
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_object_storage_regions/__init__.py +7 -7
- cdktf_cdktf_provider_upcloud/data_upcloud_networks/__init__.py +13 -13
- cdktf_cdktf_provider_upcloud/data_upcloud_storage/__init__.py +25 -25
- cdktf_cdktf_provider_upcloud/data_upcloud_tags/__init__.py +7 -7
- cdktf_cdktf_provider_upcloud/data_upcloud_zone/__init__.py +41 -29
- cdktf_cdktf_provider_upcloud/data_upcloud_zones/__init__.py +10 -10
- cdktf_cdktf_provider_upcloud/firewall_rules/__init__.py +41 -41
- cdktf_cdktf_provider_upcloud/floating_ip_address/__init__.py +19 -19
- cdktf_cdktf_provider_upcloud/gateway/__init__.py +37 -37
- cdktf_cdktf_provider_upcloud/gateway_connection/__init__.py +39 -34
- cdktf_cdktf_provider_upcloud/gateway_connection_tunnel/__init__.py +66 -61
- cdktf_cdktf_provider_upcloud/kubernetes_cluster/__init__.py +34 -34
- cdktf_cdktf_provider_upcloud/kubernetes_node_group/__init__.py +65 -65
- cdktf_cdktf_provider_upcloud/loadbalancer/__init__.py +42 -42
- cdktf_cdktf_provider_upcloud/loadbalancer_backend/__init__.py +64 -64
- cdktf_cdktf_provider_upcloud/loadbalancer_backend_tls_config/__init__.py +16 -16
- cdktf_cdktf_provider_upcloud/loadbalancer_dynamic_backend_member/__init__.py +28 -28
- cdktf_cdktf_provider_upcloud/loadbalancer_dynamic_certificate_bundle/__init__.py +16 -16
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend/__init__.py +39 -39
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend_rule/__init__.py +193 -193
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend_tls_config/__init__.py +16 -16
- cdktf_cdktf_provider_upcloud/loadbalancer_manual_certificate_bundle/__init__.py +19 -19
- cdktf_cdktf_provider_upcloud/loadbalancer_resolver/__init__.py +31 -31
- cdktf_cdktf_provider_upcloud/loadbalancer_static_backend_member/__init__.py +28 -28
- cdktf_cdktf_provider_upcloud/managed_database_logical_database/__init__.py +19 -19
- cdktf_cdktf_provider_upcloud/managed_database_mysql/__init__.py +189 -189
- cdktf_cdktf_provider_upcloud/managed_database_opensearch/__init__.py +330 -330
- cdktf_cdktf_provider_upcloud/managed_database_postgresql/__init__.py +345 -345
- cdktf_cdktf_provider_upcloud/managed_database_redis/__init__.py +117 -117
- cdktf_cdktf_provider_upcloud/managed_database_user/__init__.py +50 -50
- cdktf_cdktf_provider_upcloud/managed_object_storage/__init__.py +30 -30
- cdktf_cdktf_provider_upcloud/managed_object_storage_policy/__init__.py +19 -19
- cdktf_cdktf_provider_upcloud/managed_object_storage_user/__init__.py +13 -13
- cdktf_cdktf_provider_upcloud/managed_object_storage_user_access_key/__init__.py +16 -16
- cdktf_cdktf_provider_upcloud/managed_object_storage_user_policy/__init__.py +16 -16
- cdktf_cdktf_provider_upcloud/network/__init__.py +79 -30
- cdktf_cdktf_provider_upcloud/network_peering/__init__.py +23 -23
- cdktf_cdktf_provider_upcloud/object_storage/__init__.py +30 -30
- cdktf_cdktf_provider_upcloud/provider/__init__.py +25 -25
- cdktf_cdktf_provider_upcloud/router/__init__.py +19 -19
- cdktf_cdktf_provider_upcloud/server/__init__.py +153 -153
- cdktf_cdktf_provider_upcloud/server_group/__init__.py +22 -22
- cdktf_cdktf_provider_upcloud/storage/__init__.py +58 -58
- cdktf_cdktf_provider_upcloud/tag/__init__.py +16 -16
- {cdktf_cdktf_provider_upcloud-14.4.0.dist-info → cdktf_cdktf_provider_upcloud-14.5.0.dist-info}/METADATA +4 -4
- cdktf_cdktf_provider_upcloud-14.5.0.dist-info/RECORD +61 -0
- cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@14.4.0.jsii.tgz +0 -0
- cdktf_cdktf_provider_upcloud-14.4.0.dist-info/RECORD +0 -61
- {cdktf_cdktf_provider_upcloud-14.4.0.dist-info → cdktf_cdktf_provider_upcloud-14.5.0.dist-info}/LICENSE +0 -0
- {cdktf_cdktf_provider_upcloud-14.4.0.dist-info → cdktf_cdktf_provider_upcloud-14.5.0.dist-info}/WHEEL +0 -0
- {cdktf_cdktf_provider_upcloud-14.4.0.dist-info → cdktf_cdktf_provider_upcloud-14.5.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 Registry for docs: [`upcloud_server_group`](https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
4
|
+
Refer to the Terraform Registry for docs: [`upcloud_server_group`](https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group).
|
|
5
5
|
'''
|
|
6
6
|
from pkgutil import extend_path
|
|
7
7
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -29,7 +29,7 @@ class ServerGroup(
|
|
|
29
29
|
metaclass=jsii.JSIIMeta,
|
|
30
30
|
jsii_type="@cdktf/provider-upcloud.serverGroup.ServerGroup",
|
|
31
31
|
):
|
|
32
|
-
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
32
|
+
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group upcloud_server_group}.'''
|
|
33
33
|
|
|
34
34
|
def __init__(
|
|
35
35
|
self,
|
|
@@ -50,16 +50,16 @@ class ServerGroup(
|
|
|
50
50
|
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
51
51
|
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,
|
|
52
52
|
) -> None:
|
|
53
|
-
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
53
|
+
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group upcloud_server_group} Resource.
|
|
54
54
|
|
|
55
55
|
:param scope: The scope in which to define this construct.
|
|
56
56
|
:param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
57
|
-
:param title: Title of your server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
58
|
-
: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` 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 effect on 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/5.
|
|
59
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
60
|
-
:param labels: Key-value pairs to classify the server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
61
|
-
:param members: UUIDs of the servers that are members of this group. Servers can also be attached to the server group via ``server_group`` property of ``upcloud_server``. See also ``track_members`` property. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
62
|
-
:param track_members: Controls if members of the server group are being tracked in this resource. Set to ``false`` when using ``server_group`` property of ``upcloud_server`` to attach servers to the server group to avoid delayed state updates. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
57
|
+
:param title: Title of your server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#title ServerGroup#title}
|
|
58
|
+
: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` 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 effect on 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/5.5.0/docs/resources/server_group#anti_affinity_policy ServerGroup#anti_affinity_policy}
|
|
59
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.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.
|
|
60
|
+
:param labels: Key-value pairs to classify the server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#labels ServerGroup#labels}
|
|
61
|
+
:param members: UUIDs of the servers that are members of this group. Servers can also be attached to the server group via ``server_group`` property of ``upcloud_server``. See also ``track_members`` property. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#members ServerGroup#members}
|
|
62
|
+
:param track_members: Controls if members of the server group are being tracked in this resource. Set to ``false`` when using ``server_group`` property of ``upcloud_server`` to attach servers to the server group to avoid delayed state updates. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#track_members ServerGroup#track_members}
|
|
63
63
|
:param connection:
|
|
64
64
|
:param count:
|
|
65
65
|
:param depends_on:
|
|
@@ -103,7 +103,7 @@ class ServerGroup(
|
|
|
103
103
|
|
|
104
104
|
:param scope: The scope in which to define this construct.
|
|
105
105
|
:param import_to_id: The construct id used in the generated config for the ServerGroup to import.
|
|
106
|
-
:param import_from_id: The id of the existing ServerGroup that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
106
|
+
:param import_from_id: The id of the existing ServerGroup that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#import import section} in the documentation of this resource for the id to use
|
|
107
107
|
:param provider: ? Optional instance of the provider where the ServerGroup to import is found.
|
|
108
108
|
'''
|
|
109
109
|
if __debug__:
|
|
@@ -302,12 +302,12 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
302
302
|
:param lifecycle:
|
|
303
303
|
:param provider:
|
|
304
304
|
:param provisioners:
|
|
305
|
-
:param title: Title of your server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
306
|
-
: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` 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 effect on 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/5.
|
|
307
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
308
|
-
:param labels: Key-value pairs to classify the server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
309
|
-
:param members: UUIDs of the servers that are members of this group. Servers can also be attached to the server group via ``server_group`` property of ``upcloud_server``. See also ``track_members`` property. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
310
|
-
:param track_members: Controls if members of the server group are being tracked in this resource. Set to ``false`` when using ``server_group`` property of ``upcloud_server`` to attach servers to the server group to avoid delayed state updates. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
305
|
+
:param title: Title of your server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#title ServerGroup#title}
|
|
306
|
+
: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` 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 effect on 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/5.5.0/docs/resources/server_group#anti_affinity_policy ServerGroup#anti_affinity_policy}
|
|
307
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.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.
|
|
308
|
+
:param labels: Key-value pairs to classify the server group. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#labels ServerGroup#labels}
|
|
309
|
+
:param members: UUIDs of the servers that are members of this group. Servers can also be attached to the server group via ``server_group`` property of ``upcloud_server``. See also ``track_members`` property. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#members ServerGroup#members}
|
|
310
|
+
:param track_members: Controls if members of the server group are being tracked in this resource. Set to ``false`` when using ``server_group`` property of ``upcloud_server`` to attach servers to the server group to avoid delayed state updates. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#track_members ServerGroup#track_members}
|
|
311
311
|
'''
|
|
312
312
|
if isinstance(lifecycle, dict):
|
|
313
313
|
lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
|
|
@@ -422,7 +422,7 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
422
422
|
def title(self) -> builtins.str:
|
|
423
423
|
'''Title of your server group.
|
|
424
424
|
|
|
425
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
425
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#title ServerGroup#title}
|
|
426
426
|
'''
|
|
427
427
|
result = self._values.get("title")
|
|
428
428
|
assert result is not None, "Required property 'title' is missing"
|
|
@@ -446,14 +446,14 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
446
446
|
policies in server group are not met, you need to manually restart the servers in said group,
|
|
447
447
|
for example via API, UpCloud Control Panel or upctl (UpCloud CLI)
|
|
448
448
|
|
|
449
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
449
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#anti_affinity_policy ServerGroup#anti_affinity_policy}
|
|
450
450
|
'''
|
|
451
451
|
result = self._values.get("anti_affinity_policy")
|
|
452
452
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
453
453
|
|
|
454
454
|
@builtins.property
|
|
455
455
|
def id(self) -> typing.Optional[builtins.str]:
|
|
456
|
-
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
456
|
+
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#id ServerGroup#id}.
|
|
457
457
|
|
|
458
458
|
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
459
459
|
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.
|
|
@@ -465,7 +465,7 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
465
465
|
def labels(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
466
466
|
'''Key-value pairs to classify the server group.
|
|
467
467
|
|
|
468
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
468
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#labels ServerGroup#labels}
|
|
469
469
|
'''
|
|
470
470
|
result = self._values.get("labels")
|
|
471
471
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
@@ -476,7 +476,7 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
476
476
|
|
|
477
477
|
Servers can also be attached to the server group via ``server_group`` property of ``upcloud_server``. See also ``track_members`` property.
|
|
478
478
|
|
|
479
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
479
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#members ServerGroup#members}
|
|
480
480
|
'''
|
|
481
481
|
result = self._values.get("members")
|
|
482
482
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
@@ -489,7 +489,7 @@ class ServerGroupConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
489
489
|
|
|
490
490
|
Set to ``false`` when using ``server_group`` property of ``upcloud_server`` to attach servers to the server group to avoid delayed state updates.
|
|
491
491
|
|
|
492
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
492
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/server_group#track_members ServerGroup#track_members}
|
|
493
493
|
'''
|
|
494
494
|
result = self._values.get("track_members")
|
|
495
495
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'''
|
|
2
2
|
# `upcloud_storage`
|
|
3
3
|
|
|
4
|
-
Refer to the Terraform Registry for docs: [`upcloud_storage`](https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
4
|
+
Refer to the Terraform Registry for docs: [`upcloud_storage`](https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage).
|
|
5
5
|
'''
|
|
6
6
|
from pkgutil import extend_path
|
|
7
7
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -29,7 +29,7 @@ class Storage(
|
|
|
29
29
|
metaclass=jsii.JSIIMeta,
|
|
30
30
|
jsii_type="@cdktf/provider-upcloud.storage.Storage",
|
|
31
31
|
):
|
|
32
|
-
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
32
|
+
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage upcloud_storage}.'''
|
|
33
33
|
|
|
34
34
|
def __init__(
|
|
35
35
|
self,
|
|
@@ -55,21 +55,21 @@ class Storage(
|
|
|
55
55
|
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
56
56
|
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,
|
|
57
57
|
) -> None:
|
|
58
|
-
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
58
|
+
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage upcloud_storage} Resource.
|
|
59
59
|
|
|
60
60
|
:param scope: The scope in which to define this construct.
|
|
61
61
|
:param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
62
|
-
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
63
|
-
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
64
|
-
: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/5.
|
|
65
|
-
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
66
|
-
:param clone: clone block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
67
|
-
: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/5.
|
|
68
|
-
:param encrypt: Sets if the storage is encrypted at rest. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
69
|
-
: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/5.
|
|
70
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
71
|
-
:param import_: import block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
72
|
-
:param tier: The storage tier to use. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
62
|
+
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#size Storage#size}
|
|
63
|
+
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#title Storage#title}
|
|
64
|
+
: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/5.5.0/docs/resources/storage#zone Storage#zone}
|
|
65
|
+
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#backup_rule Storage#backup_rule}
|
|
66
|
+
:param clone: clone block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#clone Storage#clone}
|
|
67
|
+
: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/5.5.0/docs/resources/storage#delete_autoresize_backup Storage#delete_autoresize_backup}
|
|
68
|
+
:param encrypt: Sets if the storage is encrypted at rest. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#encrypt Storage#encrypt}
|
|
69
|
+
: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/5.5.0/docs/resources/storage#filesystem_autoresize Storage#filesystem_autoresize}
|
|
70
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.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.
|
|
71
|
+
:param import_: import block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#import Storage#import}
|
|
72
|
+
:param tier: The storage tier to use. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#tier Storage#tier}
|
|
73
73
|
:param connection:
|
|
74
74
|
:param count:
|
|
75
75
|
:param depends_on:
|
|
@@ -118,7 +118,7 @@ class Storage(
|
|
|
118
118
|
|
|
119
119
|
:param scope: The scope in which to define this construct.
|
|
120
120
|
:param import_to_id: The construct id used in the generated config for the Storage to import.
|
|
121
|
-
:param import_from_id: The id of the existing Storage that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
121
|
+
:param import_from_id: The id of the existing Storage that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#import import section} in the documentation of this resource for the id to use
|
|
122
122
|
:param provider: ? Optional instance of the provider where the Storage to import is found.
|
|
123
123
|
'''
|
|
124
124
|
if __debug__:
|
|
@@ -138,9 +138,9 @@ class Storage(
|
|
|
138
138
|
time: builtins.str,
|
|
139
139
|
) -> None:
|
|
140
140
|
'''
|
|
141
|
-
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
142
|
-
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
143
|
-
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
141
|
+
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#interval Storage#interval}
|
|
142
|
+
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#retention Storage#retention}
|
|
143
|
+
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#time Storage#time}
|
|
144
144
|
'''
|
|
145
145
|
value = StorageBackupRule(interval=interval, retention=retention, time=time)
|
|
146
146
|
|
|
@@ -149,7 +149,7 @@ class Storage(
|
|
|
149
149
|
@jsii.member(jsii_name="putClone")
|
|
150
150
|
def put_clone(self, *, id: builtins.str) -> None:
|
|
151
151
|
'''
|
|
152
|
-
:param id: The unique identifier of the storage/template to clone. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
152
|
+
:param id: The unique identifier of the storage/template to clone. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.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.
|
|
153
153
|
'''
|
|
154
154
|
value = StorageClone(id=id)
|
|
155
155
|
|
|
@@ -164,9 +164,9 @@ class Storage(
|
|
|
164
164
|
source_hash: typing.Optional[builtins.str] = None,
|
|
165
165
|
) -> None:
|
|
166
166
|
'''
|
|
167
|
-
: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/5.
|
|
168
|
-
: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/5.
|
|
169
|
-
: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/5.
|
|
167
|
+
: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/5.5.0/docs/resources/storage#source Storage#source}
|
|
168
|
+
: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/5.5.0/docs/resources/storage#source_location Storage#source_location}
|
|
169
|
+
: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/5.5.0/docs/resources/storage#source_hash Storage#source_hash}
|
|
170
170
|
'''
|
|
171
171
|
value = StorageImport(
|
|
172
172
|
source=source, source_location=source_location, source_hash=source_hash
|
|
@@ -419,9 +419,9 @@ class StorageBackupRule:
|
|
|
419
419
|
time: builtins.str,
|
|
420
420
|
) -> None:
|
|
421
421
|
'''
|
|
422
|
-
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
423
|
-
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
424
|
-
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
422
|
+
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#interval Storage#interval}
|
|
423
|
+
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#retention Storage#retention}
|
|
424
|
+
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#time Storage#time}
|
|
425
425
|
'''
|
|
426
426
|
if __debug__:
|
|
427
427
|
type_hints = typing.get_type_hints(_typecheckingstub__eee27a48ad2ef9945a89867effeeb18fc1f477a3f16c16ee7e3dc286b6d8319e)
|
|
@@ -438,7 +438,7 @@ class StorageBackupRule:
|
|
|
438
438
|
def interval(self) -> builtins.str:
|
|
439
439
|
'''The weekday when the backup is created.
|
|
440
440
|
|
|
441
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
441
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#interval Storage#interval}
|
|
442
442
|
'''
|
|
443
443
|
result = self._values.get("interval")
|
|
444
444
|
assert result is not None, "Required property 'interval' is missing"
|
|
@@ -448,7 +448,7 @@ class StorageBackupRule:
|
|
|
448
448
|
def retention(self) -> jsii.Number:
|
|
449
449
|
'''The number of days before a backup is automatically deleted.
|
|
450
450
|
|
|
451
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
451
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#retention Storage#retention}
|
|
452
452
|
'''
|
|
453
453
|
result = self._values.get("retention")
|
|
454
454
|
assert result is not None, "Required property 'retention' is missing"
|
|
@@ -458,7 +458,7 @@ class StorageBackupRule:
|
|
|
458
458
|
def time(self) -> builtins.str:
|
|
459
459
|
'''The time of day when the backup is created.
|
|
460
460
|
|
|
461
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
461
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#time Storage#time}
|
|
462
462
|
'''
|
|
463
463
|
result = self._values.get("time")
|
|
464
464
|
assert result is not None, "Required property 'time' is missing"
|
|
@@ -568,7 +568,7 @@ class StorageBackupRuleOutputReference(
|
|
|
568
568
|
class StorageClone:
|
|
569
569
|
def __init__(self, *, id: builtins.str) -> None:
|
|
570
570
|
'''
|
|
571
|
-
:param id: The unique identifier of the storage/template to clone. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
571
|
+
:param id: The unique identifier of the storage/template to clone. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.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.
|
|
572
572
|
'''
|
|
573
573
|
if __debug__:
|
|
574
574
|
type_hints = typing.get_type_hints(_typecheckingstub__efe8b26017a7929b77162de356dd088dc3adf3b5cf8edbcdd06aee07e255d1e2)
|
|
@@ -581,7 +581,7 @@ class StorageClone:
|
|
|
581
581
|
def id(self) -> builtins.str:
|
|
582
582
|
'''The unique identifier of the storage/template to clone.
|
|
583
583
|
|
|
584
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
584
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#id Storage#id}
|
|
585
585
|
|
|
586
586
|
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
587
587
|
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.
|
|
@@ -707,17 +707,17 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
707
707
|
:param lifecycle:
|
|
708
708
|
:param provider:
|
|
709
709
|
:param provisioners:
|
|
710
|
-
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
711
|
-
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
712
|
-
: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/5.
|
|
713
|
-
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
714
|
-
:param clone: clone block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
715
|
-
: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/5.
|
|
716
|
-
:param encrypt: Sets if the storage is encrypted at rest. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
717
|
-
: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/5.
|
|
718
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
719
|
-
:param import_: import block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
720
|
-
:param tier: The storage tier to use. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
710
|
+
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#size Storage#size}
|
|
711
|
+
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#title Storage#title}
|
|
712
|
+
: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/5.5.0/docs/resources/storage#zone Storage#zone}
|
|
713
|
+
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#backup_rule Storage#backup_rule}
|
|
714
|
+
:param clone: clone block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#clone Storage#clone}
|
|
715
|
+
: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/5.5.0/docs/resources/storage#delete_autoresize_backup Storage#delete_autoresize_backup}
|
|
716
|
+
:param encrypt: Sets if the storage is encrypted at rest. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#encrypt Storage#encrypt}
|
|
717
|
+
: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/5.5.0/docs/resources/storage#filesystem_autoresize Storage#filesystem_autoresize}
|
|
718
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.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.
|
|
719
|
+
:param import_: import block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#import Storage#import}
|
|
720
|
+
:param tier: The storage tier to use. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#tier Storage#tier}
|
|
721
721
|
'''
|
|
722
722
|
if isinstance(lifecycle, dict):
|
|
723
723
|
lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
|
|
@@ -851,7 +851,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
851
851
|
def size(self) -> jsii.Number:
|
|
852
852
|
'''The size of the storage in gigabytes.
|
|
853
853
|
|
|
854
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
854
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#size Storage#size}
|
|
855
855
|
'''
|
|
856
856
|
result = self._values.get("size")
|
|
857
857
|
assert result is not None, "Required property 'size' is missing"
|
|
@@ -861,7 +861,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
861
861
|
def title(self) -> builtins.str:
|
|
862
862
|
'''A short, informative description.
|
|
863
863
|
|
|
864
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
864
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#title Storage#title}
|
|
865
865
|
'''
|
|
866
866
|
result = self._values.get("title")
|
|
867
867
|
assert result is not None, "Required property 'title' is missing"
|
|
@@ -871,7 +871,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
871
871
|
def zone(self) -> builtins.str:
|
|
872
872
|
'''The zone in which the storage will be created, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``.
|
|
873
873
|
|
|
874
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
874
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#zone Storage#zone}
|
|
875
875
|
'''
|
|
876
876
|
result = self._values.get("zone")
|
|
877
877
|
assert result is not None, "Required property 'zone' is missing"
|
|
@@ -881,7 +881,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
881
881
|
def backup_rule(self) -> typing.Optional[StorageBackupRule]:
|
|
882
882
|
'''backup_rule block.
|
|
883
883
|
|
|
884
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
884
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#backup_rule Storage#backup_rule}
|
|
885
885
|
'''
|
|
886
886
|
result = self._values.get("backup_rule")
|
|
887
887
|
return typing.cast(typing.Optional[StorageBackupRule], result)
|
|
@@ -890,7 +890,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
890
890
|
def clone(self) -> typing.Optional[StorageClone]:
|
|
891
891
|
'''clone block.
|
|
892
892
|
|
|
893
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
893
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#clone Storage#clone}
|
|
894
894
|
'''
|
|
895
895
|
result = self._values.get("clone")
|
|
896
896
|
return typing.cast(typing.Optional[StorageClone], result)
|
|
@@ -901,7 +901,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
901
901
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
902
902
|
'''If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
|
|
903
903
|
|
|
904
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
904
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#delete_autoresize_backup Storage#delete_autoresize_backup}
|
|
905
905
|
'''
|
|
906
906
|
result = self._values.get("delete_autoresize_backup")
|
|
907
907
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -912,7 +912,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
912
912
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
913
913
|
'''Sets if the storage is encrypted at rest.
|
|
914
914
|
|
|
915
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
915
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#encrypt Storage#encrypt}
|
|
916
916
|
'''
|
|
917
917
|
result = self._values.get("encrypt")
|
|
918
918
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -927,14 +927,14 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
927
927
|
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).
|
|
928
928
|
Taking and keeping backups incure costs.
|
|
929
929
|
|
|
930
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
930
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#filesystem_autoresize Storage#filesystem_autoresize}
|
|
931
931
|
'''
|
|
932
932
|
result = self._values.get("filesystem_autoresize")
|
|
933
933
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
934
934
|
|
|
935
935
|
@builtins.property
|
|
936
936
|
def id(self) -> typing.Optional[builtins.str]:
|
|
937
|
-
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
937
|
+
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#id Storage#id}.
|
|
938
938
|
|
|
939
939
|
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
940
940
|
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.
|
|
@@ -946,7 +946,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
946
946
|
def import_(self) -> typing.Optional["StorageImport"]:
|
|
947
947
|
'''import block.
|
|
948
948
|
|
|
949
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
949
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#import Storage#import}
|
|
950
950
|
'''
|
|
951
951
|
result = self._values.get("import_")
|
|
952
952
|
return typing.cast(typing.Optional["StorageImport"], result)
|
|
@@ -955,7 +955,7 @@ class StorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
955
955
|
def tier(self) -> typing.Optional[builtins.str]:
|
|
956
956
|
'''The storage tier to use.
|
|
957
957
|
|
|
958
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
958
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#tier Storage#tier}
|
|
959
959
|
'''
|
|
960
960
|
result = self._values.get("tier")
|
|
961
961
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -990,9 +990,9 @@ class StorageImport:
|
|
|
990
990
|
source_hash: typing.Optional[builtins.str] = None,
|
|
991
991
|
) -> None:
|
|
992
992
|
'''
|
|
993
|
-
: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/5.
|
|
994
|
-
: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/5.
|
|
995
|
-
: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/5.
|
|
993
|
+
: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/5.5.0/docs/resources/storage#source Storage#source}
|
|
994
|
+
: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/5.5.0/docs/resources/storage#source_location Storage#source_location}
|
|
995
|
+
: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/5.5.0/docs/resources/storage#source_hash Storage#source_hash}
|
|
996
996
|
'''
|
|
997
997
|
if __debug__:
|
|
998
998
|
type_hints = typing.get_type_hints(_typecheckingstub__57190dc28106231e6a3ad0101dea1fddce123659be23a411969999c2b12e5aef)
|
|
@@ -1010,7 +1010,7 @@ class StorageImport:
|
|
|
1010
1010
|
def source(self) -> builtins.str:
|
|
1011
1011
|
'''The mode of the import task. One of ``http_import`` or ``direct_upload``.
|
|
1012
1012
|
|
|
1013
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
1013
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#source Storage#source}
|
|
1014
1014
|
'''
|
|
1015
1015
|
result = self._values.get("source")
|
|
1016
1016
|
assert result is not None, "Required property 'source' is missing"
|
|
@@ -1020,7 +1020,7 @@ class StorageImport:
|
|
|
1020
1020
|
def source_location(self) -> builtins.str:
|
|
1021
1021
|
'''The location of the file to import. For ``http_import`` an accessible URL for ``direct_upload`` a local file.
|
|
1022
1022
|
|
|
1023
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
1023
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#source_location Storage#source_location}
|
|
1024
1024
|
'''
|
|
1025
1025
|
result = self._values.get("source_location")
|
|
1026
1026
|
assert result is not None, "Required property 'source_location' is missing"
|
|
@@ -1030,7 +1030,7 @@ class StorageImport:
|
|
|
1030
1030
|
def source_hash(self) -> typing.Optional[builtins.str]:
|
|
1031
1031
|
'''For ``direct_upload``; an optional hash of the file to upload.
|
|
1032
1032
|
|
|
1033
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
1033
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/storage#source_hash Storage#source_hash}
|
|
1034
1034
|
'''
|
|
1035
1035
|
result = self._values.get("source_hash")
|
|
1036
1036
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'''
|
|
2
2
|
# `upcloud_tag`
|
|
3
3
|
|
|
4
|
-
Refer to the Terraform Registry for docs: [`upcloud_tag`](https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
4
|
+
Refer to the Terraform Registry for docs: [`upcloud_tag`](https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag).
|
|
5
5
|
'''
|
|
6
6
|
from pkgutil import extend_path
|
|
7
7
|
__path__ = extend_path(__path__, __name__)
|
|
@@ -29,7 +29,7 @@ class Tag(
|
|
|
29
29
|
metaclass=jsii.JSIIMeta,
|
|
30
30
|
jsii_type="@cdktf/provider-upcloud.tag.Tag",
|
|
31
31
|
):
|
|
32
|
-
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
32
|
+
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag upcloud_tag}.'''
|
|
33
33
|
|
|
34
34
|
def __init__(
|
|
35
35
|
self,
|
|
@@ -48,14 +48,14 @@ class Tag(
|
|
|
48
48
|
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
49
49
|
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,
|
|
50
50
|
) -> None:
|
|
51
|
-
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
51
|
+
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag upcloud_tag} Resource.
|
|
52
52
|
|
|
53
53
|
:param scope: The scope in which to define this construct.
|
|
54
54
|
:param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
55
|
-
:param name: The value representing the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
56
|
-
:param description: Free form text representing the meaning of the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
57
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
58
|
-
:param servers: A collection of servers that have been assigned the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
55
|
+
:param name: The value representing the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#name Tag#name}
|
|
56
|
+
:param description: Free form text representing the meaning of the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#description Tag#description}
|
|
57
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#id Tag#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.
|
|
58
|
+
:param servers: A collection of servers that have been assigned the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#servers Tag#servers}
|
|
59
59
|
:param connection:
|
|
60
60
|
:param count:
|
|
61
61
|
:param depends_on:
|
|
@@ -97,7 +97,7 @@ class Tag(
|
|
|
97
97
|
|
|
98
98
|
:param scope: The scope in which to define this construct.
|
|
99
99
|
:param import_to_id: The construct id used in the generated config for the Tag to import.
|
|
100
|
-
:param import_from_id: The id of the existing Tag that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
100
|
+
:param import_from_id: The id of the existing Tag that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#import import section} in the documentation of this resource for the id to use
|
|
101
101
|
:param provider: ? Optional instance of the provider where the Tag to import is found.
|
|
102
102
|
'''
|
|
103
103
|
if __debug__:
|
|
@@ -243,10 +243,10 @@ class TagConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
243
243
|
:param lifecycle:
|
|
244
244
|
:param provider:
|
|
245
245
|
:param provisioners:
|
|
246
|
-
:param name: The value representing the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
247
|
-
:param description: Free form text representing the meaning of the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
248
|
-
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
249
|
-
:param servers: A collection of servers that have been assigned the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
246
|
+
:param name: The value representing the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#name Tag#name}
|
|
247
|
+
:param description: Free form text representing the meaning of the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#description Tag#description}
|
|
248
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#id Tag#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.
|
|
249
|
+
:param servers: A collection of servers that have been assigned the tag. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#servers Tag#servers}
|
|
250
250
|
'''
|
|
251
251
|
if isinstance(lifecycle, dict):
|
|
252
252
|
lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
|
|
@@ -355,7 +355,7 @@ class TagConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
355
355
|
def name(self) -> builtins.str:
|
|
356
356
|
'''The value representing the tag.
|
|
357
357
|
|
|
358
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
358
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#name Tag#name}
|
|
359
359
|
'''
|
|
360
360
|
result = self._values.get("name")
|
|
361
361
|
assert result is not None, "Required property 'name' is missing"
|
|
@@ -365,14 +365,14 @@ class TagConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
365
365
|
def description(self) -> typing.Optional[builtins.str]:
|
|
366
366
|
'''Free form text representing the meaning of the tag.
|
|
367
367
|
|
|
368
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
368
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#description Tag#description}
|
|
369
369
|
'''
|
|
370
370
|
result = self._values.get("description")
|
|
371
371
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
372
372
|
|
|
373
373
|
@builtins.property
|
|
374
374
|
def id(self) -> typing.Optional[builtins.str]:
|
|
375
|
-
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
375
|
+
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#id Tag#id}.
|
|
376
376
|
|
|
377
377
|
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
378
378
|
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.
|
|
@@ -384,7 +384,7 @@ class TagConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
384
384
|
def servers(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
385
385
|
'''A collection of servers that have been assigned the tag.
|
|
386
386
|
|
|
387
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.
|
|
387
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.5.0/docs/resources/tag#servers Tag#servers}
|
|
388
388
|
'''
|
|
389
389
|
result = self._values.get("servers")
|
|
390
390
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|