cdktf-cdktf-provider-upcloud 11.0.2__py3-none-any.whl → 11.1.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 +13 -15
- cdktf_cdktf_provider_upcloud/_jsii/__init__.py +2 -2
- cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@11.1.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_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 +10 -10
- 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 +28 -28
- cdktf_cdktf_provider_upcloud/kubernetes_cluster/__init__.py +28 -28
- cdktf_cdktf_provider_upcloud/kubernetes_node_group/__init__.py +47 -47
- cdktf_cdktf_provider_upcloud/loadbalancer/__init__.py +36 -36
- cdktf_cdktf_provider_upcloud/loadbalancer_backend/__init__.py +280 -52
- cdktf_cdktf_provider_upcloud/loadbalancer_backend_tls_config/__init__.py +463 -0
- 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 +89 -36
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend_rule/__init__.py +165 -165
- 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 +225 -172
- cdktf_cdktf_provider_upcloud/managed_database_opensearch/__init__.py +73 -73
- cdktf_cdktf_provider_upcloud/managed_database_postgresql/__init__.py +342 -289
- cdktf_cdktf_provider_upcloud/managed_database_redis/__init__.py +150 -97
- cdktf_cdktf_provider_upcloud/managed_database_user/__init__.py +50 -50
- cdktf_cdktf_provider_upcloud/managed_object_storage/__init__.py +73 -30
- cdktf_cdktf_provider_upcloud/managed_object_storage_user_access_key/__init__.py +19 -19
- cdktf_cdktf_provider_upcloud/network/__init__.py +40 -40
- cdktf_cdktf_provider_upcloud/object_storage/__init__.py +30 -30
- cdktf_cdktf_provider_upcloud/provider/__init__.py +71 -22
- cdktf_cdktf_provider_upcloud/router/__init__.py +19 -19
- cdktf_cdktf_provider_upcloud/server/__init__.py +282 -138
- cdktf_cdktf_provider_upcloud/server_group/__init__.py +19 -19
- cdktf_cdktf_provider_upcloud/storage/__init__.py +55 -55
- cdktf_cdktf_provider_upcloud/tag/__init__.py +16 -16
- {cdktf_cdktf_provider_upcloud-11.0.2.dist-info → cdktf_cdktf_provider_upcloud-11.1.0.dist-info}/METADATA +14 -18
- cdktf_cdktf_provider_upcloud-11.1.0.dist-info/RECORD +54 -0
- {cdktf_cdktf_provider_upcloud-11.0.2.dist-info → cdktf_cdktf_provider_upcloud-11.1.0.dist-info}/WHEEL +1 -1
- cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@11.0.2.jsii.tgz +0 -0
- cdktf_cdktf_provider_upcloud-11.0.2.dist-info/RECORD +0 -53
- {cdktf_cdktf_provider_upcloud-11.0.2.dist-info → cdktf_cdktf_provider_upcloud-11.1.0.dist-info}/LICENSE +0 -0
- {cdktf_cdktf_provider_upcloud-11.0.2.dist-info → cdktf_cdktf_provider_upcloud-11.1.0.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'''
|
|
2
2
|
# `upcloud_server`
|
|
3
3
|
|
|
4
|
-
Refer to the Terraform Registory for docs: [`upcloud_server`](https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
4
|
+
Refer to the Terraform Registory for docs: [`upcloud_server`](https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server).
|
|
5
5
|
'''
|
|
6
6
|
import abc
|
|
7
7
|
import builtins
|
|
@@ -26,7 +26,7 @@ class Server(
|
|
|
26
26
|
metaclass=jsii.JSIIMeta,
|
|
27
27
|
jsii_type="@cdktf/provider-upcloud.server.Server",
|
|
28
28
|
):
|
|
29
|
-
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
29
|
+
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server upcloud_server}.'''
|
|
30
30
|
|
|
31
31
|
def __init__(
|
|
32
32
|
self,
|
|
@@ -36,6 +36,7 @@ class Server(
|
|
|
36
36
|
hostname: builtins.str,
|
|
37
37
|
network_interface: typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union["ServerNetworkInterface", typing.Dict[builtins.str, typing.Any]]]],
|
|
38
38
|
zone: builtins.str,
|
|
39
|
+
boot_order: typing.Optional[builtins.str] = None,
|
|
39
40
|
cpu: typing.Optional[jsii.Number] = None,
|
|
40
41
|
firewall: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
41
42
|
host: typing.Optional[jsii.Number] = None,
|
|
@@ -62,31 +63,32 @@ class Server(
|
|
|
62
63
|
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
63
64
|
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,
|
|
64
65
|
) -> None:
|
|
65
|
-
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
66
|
+
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server upcloud_server} Resource.
|
|
66
67
|
|
|
67
68
|
:param scope: The scope in which to define this construct.
|
|
68
69
|
:param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
69
|
-
:param hostname: A valid domain name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
70
|
-
:param network_interface: network_interface block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
71
|
-
:param zone: The zone in which the server will be hosted, 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/3.
|
|
72
|
-
:param
|
|
73
|
-
:param
|
|
74
|
-
:param
|
|
75
|
-
:param
|
|
76
|
-
:param
|
|
77
|
-
:param
|
|
78
|
-
:param
|
|
79
|
-
:param
|
|
80
|
-
:param
|
|
81
|
-
:param
|
|
82
|
-
:param
|
|
83
|
-
:param
|
|
84
|
-
:param
|
|
85
|
-
:param
|
|
86
|
-
:param
|
|
87
|
-
:param
|
|
88
|
-
:param
|
|
89
|
-
:param
|
|
70
|
+
:param hostname: A valid domain name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#hostname Server#hostname}
|
|
71
|
+
:param network_interface: network_interface block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#network_interface Server#network_interface}
|
|
72
|
+
:param zone: The zone in which the server will be hosted, 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/3.3.0/docs/resources/server#zone Server#zone}
|
|
73
|
+
:param boot_order: The boot device order, ``cdrom``|``disk``|``network`` or comma separated combination of those values. Defaults to ``disk``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#boot_order Server#boot_order}
|
|
74
|
+
:param cpu: The number of CPU for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#cpu Server#cpu}
|
|
75
|
+
:param firewall: Are firewall rules active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#firewall Server#firewall}
|
|
76
|
+
:param host: Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#host Server#host}
|
|
77
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#id Server#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.
|
|
78
|
+
:param labels: Key-value pairs to classify the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#labels Server#labels}
|
|
79
|
+
:param login: login block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#login Server#login}
|
|
80
|
+
:param mem: The size of memory for the server (in megabytes). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#mem Server#mem}
|
|
81
|
+
:param metadata: Is the metadata service active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#metadata Server#metadata}
|
|
82
|
+
:param nic_model: The model of the server's network interfaces. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#nic_model Server#nic_model}
|
|
83
|
+
:param plan: The pricing plan used for the server. You can list available server plans with ``upctl server plans``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
84
|
+
:param simple_backup: simple_backup block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#simple_backup Server#simple_backup}
|
|
85
|
+
:param storage_devices: storage_devices block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage_devices Server#storage_devices}
|
|
86
|
+
:param tags: The server related tags. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#tags Server#tags}
|
|
87
|
+
:param template: template block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#template Server#template}
|
|
88
|
+
:param timezone: A timezone identifier, e.g. ``Europe/Helsinki``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#timezone Server#timezone}
|
|
89
|
+
:param title: A short, informational description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
90
|
+
:param user_data: Defines URL for a server setup script, or the script body itself. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user_data Server#user_data}
|
|
91
|
+
:param video_model: The model of the server's video interface. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#video_model Server#video_model}
|
|
90
92
|
:param connection:
|
|
91
93
|
:param count:
|
|
92
94
|
:param depends_on:
|
|
@@ -103,6 +105,7 @@ class Server(
|
|
|
103
105
|
hostname=hostname,
|
|
104
106
|
network_interface=network_interface,
|
|
105
107
|
zone=zone,
|
|
108
|
+
boot_order=boot_order,
|
|
106
109
|
cpu=cpu,
|
|
107
110
|
firewall=firewall,
|
|
108
111
|
host=host,
|
|
@@ -145,7 +148,7 @@ class Server(
|
|
|
145
148
|
|
|
146
149
|
:param scope: The scope in which to define this construct.
|
|
147
150
|
:param import_to_id: The construct id used in the generated config for the Server to import.
|
|
148
|
-
:param import_from_id: The id of the existing Server that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
151
|
+
:param import_from_id: The id of the existing Server that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#import import section} in the documentation of this resource for the id to use
|
|
149
152
|
:param provider: ? Optional instance of the provider where the Server to import is found.
|
|
150
153
|
'''
|
|
151
154
|
if __debug__:
|
|
@@ -166,10 +169,10 @@ class Server(
|
|
|
166
169
|
user: typing.Optional[builtins.str] = None,
|
|
167
170
|
) -> None:
|
|
168
171
|
'''
|
|
169
|
-
:param create_password: Indicates a password should be create to allow access. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
170
|
-
:param keys: A list of ssh keys to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
171
|
-
:param password_delivery: The delivery method for the server's root password (one of ``none``, ``email`` or ``sms``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
172
|
-
:param user: Username to be create to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
172
|
+
:param create_password: Indicates a password should be create to allow access. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#create_password Server#create_password}
|
|
173
|
+
:param keys: A list of ssh keys to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#keys Server#keys}
|
|
174
|
+
:param password_delivery: The delivery method for the server's root password (one of ``none``, ``email`` or ``sms``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#password_delivery Server#password_delivery}
|
|
175
|
+
:param user: Username to be create to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user Server#user}
|
|
173
176
|
'''
|
|
174
177
|
value = ServerLogin(
|
|
175
178
|
create_password=create_password,
|
|
@@ -196,8 +199,8 @@ class Server(
|
|
|
196
199
|
@jsii.member(jsii_name="putSimpleBackup")
|
|
197
200
|
def put_simple_backup(self, *, plan: builtins.str, time: builtins.str) -> None:
|
|
198
201
|
'''
|
|
199
|
-
:param plan: Simple backup plan. Accepted values: daily, dailies, weeklies, monthlies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
200
|
-
:param time: Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
202
|
+
:param plan: Simple backup plan. Accepted values: daily, dailies, weeklies, monthlies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
203
|
+
:param time: Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
201
204
|
'''
|
|
202
205
|
value = ServerSimpleBackup(plan=plan, time=time)
|
|
203
206
|
|
|
@@ -222,6 +225,7 @@ class Server(
|
|
|
222
225
|
*,
|
|
223
226
|
storage: builtins.str,
|
|
224
227
|
address: typing.Optional[builtins.str] = None,
|
|
228
|
+
address_position: typing.Optional[builtins.str] = None,
|
|
225
229
|
backup_rule: typing.Optional[typing.Union["ServerTemplateBackupRule", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
226
230
|
delete_autoresize_backup: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
227
231
|
filesystem_autoresize: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
@@ -229,17 +233,19 @@ class Server(
|
|
|
229
233
|
title: typing.Optional[builtins.str] = None,
|
|
230
234
|
) -> None:
|
|
231
235
|
'''
|
|
232
|
-
:param storage: A valid storage UUID or template name. You can list available public templates with ``upctl storage list --public --template`` and available private templates with ``upctl storage list --template``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
233
|
-
:param address: The device address the storage will be attached to.
|
|
234
|
-
:param
|
|
235
|
-
:param
|
|
236
|
-
:param
|
|
237
|
-
:param
|
|
238
|
-
:param
|
|
236
|
+
:param storage: A valid storage UUID or template name. You can list available public templates with ``upctl storage list --public --template`` and available private templates with ``upctl storage list --template``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage Server#storage}
|
|
237
|
+
:param address: The device address the storage will be attached to (``scsi``|``virtio``|``ide``). Leave ``address_position`` field empty to auto-select next available address from that bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address Server#address}
|
|
238
|
+
:param address_position: The device position in the given bus (defined via field ``address``). For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address_position Server#address_position}
|
|
239
|
+
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#backup_rule Server#backup_rule}
|
|
240
|
+
: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/3.3.0/docs/resources/server#delete_autoresize_backup Server#delete_autoresize_backup}
|
|
241
|
+
:param filesystem_autoresize: If set to true, provider will attempt to resize partition and filesystem when the size of template 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/3.3.0/docs/resources/server#filesystem_autoresize Server#filesystem_autoresize}
|
|
242
|
+
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#size Server#size}
|
|
243
|
+
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
239
244
|
'''
|
|
240
245
|
value = ServerTemplate(
|
|
241
246
|
storage=storage,
|
|
242
247
|
address=address,
|
|
248
|
+
address_position=address_position,
|
|
243
249
|
backup_rule=backup_rule,
|
|
244
250
|
delete_autoresize_backup=delete_autoresize_backup,
|
|
245
251
|
filesystem_autoresize=filesystem_autoresize,
|
|
@@ -249,6 +255,10 @@ class Server(
|
|
|
249
255
|
|
|
250
256
|
return typing.cast(None, jsii.invoke(self, "putTemplate", [value]))
|
|
251
257
|
|
|
258
|
+
@jsii.member(jsii_name="resetBootOrder")
|
|
259
|
+
def reset_boot_order(self) -> None:
|
|
260
|
+
return typing.cast(None, jsii.invoke(self, "resetBootOrder", []))
|
|
261
|
+
|
|
252
262
|
@jsii.member(jsii_name="resetCpu")
|
|
253
263
|
def reset_cpu(self) -> None:
|
|
254
264
|
return typing.cast(None, jsii.invoke(self, "resetCpu", []))
|
|
@@ -355,6 +365,11 @@ class Server(
|
|
|
355
365
|
def template(self) -> "ServerTemplateOutputReference":
|
|
356
366
|
return typing.cast("ServerTemplateOutputReference", jsii.get(self, "template"))
|
|
357
367
|
|
|
368
|
+
@builtins.property
|
|
369
|
+
@jsii.member(jsii_name="bootOrderInput")
|
|
370
|
+
def boot_order_input(self) -> typing.Optional[builtins.str]:
|
|
371
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "bootOrderInput"))
|
|
372
|
+
|
|
358
373
|
@builtins.property
|
|
359
374
|
@jsii.member(jsii_name="cpuInput")
|
|
360
375
|
def cpu_input(self) -> typing.Optional[jsii.Number]:
|
|
@@ -470,6 +485,18 @@ class Server(
|
|
|
470
485
|
def zone_input(self) -> typing.Optional[builtins.str]:
|
|
471
486
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "zoneInput"))
|
|
472
487
|
|
|
488
|
+
@builtins.property
|
|
489
|
+
@jsii.member(jsii_name="bootOrder")
|
|
490
|
+
def boot_order(self) -> builtins.str:
|
|
491
|
+
return typing.cast(builtins.str, jsii.get(self, "bootOrder"))
|
|
492
|
+
|
|
493
|
+
@boot_order.setter
|
|
494
|
+
def boot_order(self, value: builtins.str) -> None:
|
|
495
|
+
if __debug__:
|
|
496
|
+
type_hints = typing.get_type_hints(_typecheckingstub__f3c840f2e6e25ab81a562249038283c68d1c9227ca4e4942e8d91d710b04c5bf)
|
|
497
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
498
|
+
jsii.set(self, "bootOrder", value)
|
|
499
|
+
|
|
473
500
|
@builtins.property
|
|
474
501
|
@jsii.member(jsii_name="cpu")
|
|
475
502
|
def cpu(self) -> jsii.Number:
|
|
@@ -683,6 +710,7 @@ class Server(
|
|
|
683
710
|
"hostname": "hostname",
|
|
684
711
|
"network_interface": "networkInterface",
|
|
685
712
|
"zone": "zone",
|
|
713
|
+
"boot_order": "bootOrder",
|
|
686
714
|
"cpu": "cpu",
|
|
687
715
|
"firewall": "firewall",
|
|
688
716
|
"host": "host",
|
|
@@ -717,6 +745,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
717
745
|
hostname: builtins.str,
|
|
718
746
|
network_interface: typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union["ServerNetworkInterface", typing.Dict[builtins.str, typing.Any]]]],
|
|
719
747
|
zone: builtins.str,
|
|
748
|
+
boot_order: typing.Optional[builtins.str] = None,
|
|
720
749
|
cpu: typing.Optional[jsii.Number] = None,
|
|
721
750
|
firewall: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
722
751
|
host: typing.Optional[jsii.Number] = None,
|
|
@@ -744,27 +773,28 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
744
773
|
:param lifecycle:
|
|
745
774
|
:param provider:
|
|
746
775
|
:param provisioners:
|
|
747
|
-
:param hostname: A valid domain name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
748
|
-
:param network_interface: network_interface block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
749
|
-
:param zone: The zone in which the server will be hosted, 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/3.
|
|
750
|
-
:param
|
|
751
|
-
:param
|
|
752
|
-
:param
|
|
753
|
-
:param
|
|
754
|
-
:param
|
|
755
|
-
:param
|
|
756
|
-
:param
|
|
757
|
-
:param
|
|
758
|
-
:param
|
|
759
|
-
:param
|
|
760
|
-
:param
|
|
761
|
-
:param
|
|
762
|
-
:param
|
|
763
|
-
:param
|
|
764
|
-
:param
|
|
765
|
-
:param
|
|
766
|
-
:param
|
|
767
|
-
:param
|
|
776
|
+
:param hostname: A valid domain name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#hostname Server#hostname}
|
|
777
|
+
:param network_interface: network_interface block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#network_interface Server#network_interface}
|
|
778
|
+
:param zone: The zone in which the server will be hosted, 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/3.3.0/docs/resources/server#zone Server#zone}
|
|
779
|
+
:param boot_order: The boot device order, ``cdrom``|``disk``|``network`` or comma separated combination of those values. Defaults to ``disk``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#boot_order Server#boot_order}
|
|
780
|
+
:param cpu: The number of CPU for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#cpu Server#cpu}
|
|
781
|
+
:param firewall: Are firewall rules active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#firewall Server#firewall}
|
|
782
|
+
:param host: Use this to start the VM on a specific host. Refers to value from host -attribute. Only available for private cloud hosts Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#host Server#host}
|
|
783
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#id Server#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.
|
|
784
|
+
:param labels: Key-value pairs to classify the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#labels Server#labels}
|
|
785
|
+
:param login: login block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#login Server#login}
|
|
786
|
+
:param mem: The size of memory for the server (in megabytes). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#mem Server#mem}
|
|
787
|
+
:param metadata: Is the metadata service active for the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#metadata Server#metadata}
|
|
788
|
+
:param nic_model: The model of the server's network interfaces. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#nic_model Server#nic_model}
|
|
789
|
+
:param plan: The pricing plan used for the server. You can list available server plans with ``upctl server plans``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
790
|
+
:param simple_backup: simple_backup block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#simple_backup Server#simple_backup}
|
|
791
|
+
:param storage_devices: storage_devices block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage_devices Server#storage_devices}
|
|
792
|
+
:param tags: The server related tags. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#tags Server#tags}
|
|
793
|
+
:param template: template block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#template Server#template}
|
|
794
|
+
:param timezone: A timezone identifier, e.g. ``Europe/Helsinki``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#timezone Server#timezone}
|
|
795
|
+
:param title: A short, informational description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
796
|
+
:param user_data: Defines URL for a server setup script, or the script body itself. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user_data Server#user_data}
|
|
797
|
+
:param video_model: The model of the server's video interface. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#video_model Server#video_model}
|
|
768
798
|
'''
|
|
769
799
|
if isinstance(lifecycle, dict):
|
|
770
800
|
lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
|
|
@@ -786,6 +816,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
786
816
|
check_type(argname="argument hostname", value=hostname, expected_type=type_hints["hostname"])
|
|
787
817
|
check_type(argname="argument network_interface", value=network_interface, expected_type=type_hints["network_interface"])
|
|
788
818
|
check_type(argname="argument zone", value=zone, expected_type=type_hints["zone"])
|
|
819
|
+
check_type(argname="argument boot_order", value=boot_order, expected_type=type_hints["boot_order"])
|
|
789
820
|
check_type(argname="argument cpu", value=cpu, expected_type=type_hints["cpu"])
|
|
790
821
|
check_type(argname="argument firewall", value=firewall, expected_type=type_hints["firewall"])
|
|
791
822
|
check_type(argname="argument host", value=host, expected_type=type_hints["host"])
|
|
@@ -823,6 +854,8 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
823
854
|
self._values["provider"] = provider
|
|
824
855
|
if provisioners is not None:
|
|
825
856
|
self._values["provisioners"] = provisioners
|
|
857
|
+
if boot_order is not None:
|
|
858
|
+
self._values["boot_order"] = boot_order
|
|
826
859
|
if cpu is not None:
|
|
827
860
|
self._values["cpu"] = cpu
|
|
828
861
|
if firewall is not None:
|
|
@@ -928,7 +961,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
928
961
|
def hostname(self) -> builtins.str:
|
|
929
962
|
'''A valid domain name.
|
|
930
963
|
|
|
931
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
964
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#hostname Server#hostname}
|
|
932
965
|
'''
|
|
933
966
|
result = self._values.get("hostname")
|
|
934
967
|
assert result is not None, "Required property 'hostname' is missing"
|
|
@@ -940,7 +973,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
940
973
|
) -> typing.Union[_cdktf_9a9027ec.IResolvable, typing.List["ServerNetworkInterface"]]:
|
|
941
974
|
'''network_interface block.
|
|
942
975
|
|
|
943
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
976
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#network_interface Server#network_interface}
|
|
944
977
|
'''
|
|
945
978
|
result = self._values.get("network_interface")
|
|
946
979
|
assert result is not None, "Required property 'network_interface' is missing"
|
|
@@ -950,17 +983,26 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
950
983
|
def zone(self) -> builtins.str:
|
|
951
984
|
'''The zone in which the server will be hosted, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``.
|
|
952
985
|
|
|
953
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
986
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#zone Server#zone}
|
|
954
987
|
'''
|
|
955
988
|
result = self._values.get("zone")
|
|
956
989
|
assert result is not None, "Required property 'zone' is missing"
|
|
957
990
|
return typing.cast(builtins.str, result)
|
|
958
991
|
|
|
992
|
+
@builtins.property
|
|
993
|
+
def boot_order(self) -> typing.Optional[builtins.str]:
|
|
994
|
+
'''The boot device order, ``cdrom``|``disk``|``network`` or comma separated combination of those values. Defaults to ``disk``.
|
|
995
|
+
|
|
996
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#boot_order Server#boot_order}
|
|
997
|
+
'''
|
|
998
|
+
result = self._values.get("boot_order")
|
|
999
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1000
|
+
|
|
959
1001
|
@builtins.property
|
|
960
1002
|
def cpu(self) -> typing.Optional[jsii.Number]:
|
|
961
1003
|
'''The number of CPU for the server.
|
|
962
1004
|
|
|
963
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1005
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#cpu Server#cpu}
|
|
964
1006
|
'''
|
|
965
1007
|
result = self._values.get("cpu")
|
|
966
1008
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
@@ -971,7 +1013,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
971
1013
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
972
1014
|
'''Are firewall rules active for the server.
|
|
973
1015
|
|
|
974
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1016
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#firewall Server#firewall}
|
|
975
1017
|
'''
|
|
976
1018
|
result = self._values.get("firewall")
|
|
977
1019
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -982,14 +1024,14 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
982
1024
|
|
|
983
1025
|
Refers to value from host -attribute. Only available for private cloud hosts
|
|
984
1026
|
|
|
985
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1027
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#host Server#host}
|
|
986
1028
|
'''
|
|
987
1029
|
result = self._values.get("host")
|
|
988
1030
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
989
1031
|
|
|
990
1032
|
@builtins.property
|
|
991
1033
|
def id(self) -> typing.Optional[builtins.str]:
|
|
992
|
-
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1034
|
+
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#id Server#id}.
|
|
993
1035
|
|
|
994
1036
|
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
995
1037
|
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.
|
|
@@ -1001,7 +1043,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1001
1043
|
def labels(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
1002
1044
|
'''Key-value pairs to classify the server.
|
|
1003
1045
|
|
|
1004
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1046
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#labels Server#labels}
|
|
1005
1047
|
'''
|
|
1006
1048
|
result = self._values.get("labels")
|
|
1007
1049
|
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
@@ -1010,7 +1052,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1010
1052
|
def login(self) -> typing.Optional["ServerLogin"]:
|
|
1011
1053
|
'''login block.
|
|
1012
1054
|
|
|
1013
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1055
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#login Server#login}
|
|
1014
1056
|
'''
|
|
1015
1057
|
result = self._values.get("login")
|
|
1016
1058
|
return typing.cast(typing.Optional["ServerLogin"], result)
|
|
@@ -1019,7 +1061,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1019
1061
|
def mem(self) -> typing.Optional[jsii.Number]:
|
|
1020
1062
|
'''The size of memory for the server (in megabytes).
|
|
1021
1063
|
|
|
1022
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1064
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#mem Server#mem}
|
|
1023
1065
|
'''
|
|
1024
1066
|
result = self._values.get("mem")
|
|
1025
1067
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
@@ -1030,7 +1072,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1030
1072
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
1031
1073
|
'''Is the metadata service active for the server.
|
|
1032
1074
|
|
|
1033
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1075
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#metadata Server#metadata}
|
|
1034
1076
|
'''
|
|
1035
1077
|
result = self._values.get("metadata")
|
|
1036
1078
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -1039,7 +1081,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1039
1081
|
def nic_model(self) -> typing.Optional[builtins.str]:
|
|
1040
1082
|
'''The model of the server's network interfaces.
|
|
1041
1083
|
|
|
1042
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1084
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#nic_model Server#nic_model}
|
|
1043
1085
|
'''
|
|
1044
1086
|
result = self._values.get("nic_model")
|
|
1045
1087
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1048,7 +1090,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1048
1090
|
def plan(self) -> typing.Optional[builtins.str]:
|
|
1049
1091
|
'''The pricing plan used for the server. You can list available server plans with ``upctl server plans``.
|
|
1050
1092
|
|
|
1051
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1093
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
1052
1094
|
'''
|
|
1053
1095
|
result = self._values.get("plan")
|
|
1054
1096
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1057,7 +1099,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1057
1099
|
def simple_backup(self) -> typing.Optional["ServerSimpleBackup"]:
|
|
1058
1100
|
'''simple_backup block.
|
|
1059
1101
|
|
|
1060
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1102
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#simple_backup Server#simple_backup}
|
|
1061
1103
|
'''
|
|
1062
1104
|
result = self._values.get("simple_backup")
|
|
1063
1105
|
return typing.cast(typing.Optional["ServerSimpleBackup"], result)
|
|
@@ -1068,7 +1110,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1068
1110
|
) -> typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List["ServerStorageDevices"]]]:
|
|
1069
1111
|
'''storage_devices block.
|
|
1070
1112
|
|
|
1071
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1113
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage_devices Server#storage_devices}
|
|
1072
1114
|
'''
|
|
1073
1115
|
result = self._values.get("storage_devices")
|
|
1074
1116
|
return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List["ServerStorageDevices"]]], result)
|
|
@@ -1077,7 +1119,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1077
1119
|
def tags(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
1078
1120
|
'''The server related tags.
|
|
1079
1121
|
|
|
1080
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1122
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#tags Server#tags}
|
|
1081
1123
|
'''
|
|
1082
1124
|
result = self._values.get("tags")
|
|
1083
1125
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
@@ -1086,7 +1128,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1086
1128
|
def template(self) -> typing.Optional["ServerTemplate"]:
|
|
1087
1129
|
'''template block.
|
|
1088
1130
|
|
|
1089
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1131
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#template Server#template}
|
|
1090
1132
|
'''
|
|
1091
1133
|
result = self._values.get("template")
|
|
1092
1134
|
return typing.cast(typing.Optional["ServerTemplate"], result)
|
|
@@ -1095,7 +1137,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1095
1137
|
def timezone(self) -> typing.Optional[builtins.str]:
|
|
1096
1138
|
'''A timezone identifier, e.g. ``Europe/Helsinki``.
|
|
1097
1139
|
|
|
1098
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1140
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#timezone Server#timezone}
|
|
1099
1141
|
'''
|
|
1100
1142
|
result = self._values.get("timezone")
|
|
1101
1143
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1104,7 +1146,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1104
1146
|
def title(self) -> typing.Optional[builtins.str]:
|
|
1105
1147
|
'''A short, informational description.
|
|
1106
1148
|
|
|
1107
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1149
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
1108
1150
|
'''
|
|
1109
1151
|
result = self._values.get("title")
|
|
1110
1152
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1113,7 +1155,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1113
1155
|
def user_data(self) -> typing.Optional[builtins.str]:
|
|
1114
1156
|
'''Defines URL for a server setup script, or the script body itself.
|
|
1115
1157
|
|
|
1116
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1158
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user_data Server#user_data}
|
|
1117
1159
|
'''
|
|
1118
1160
|
result = self._values.get("user_data")
|
|
1119
1161
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1122,7 +1164,7 @@ class ServerConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
|
1122
1164
|
def video_model(self) -> typing.Optional[builtins.str]:
|
|
1123
1165
|
'''The model of the server's video interface.
|
|
1124
1166
|
|
|
1125
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1167
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#video_model Server#video_model}
|
|
1126
1168
|
'''
|
|
1127
1169
|
result = self._values.get("video_model")
|
|
1128
1170
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1159,10 +1201,10 @@ class ServerLogin:
|
|
|
1159
1201
|
user: typing.Optional[builtins.str] = None,
|
|
1160
1202
|
) -> None:
|
|
1161
1203
|
'''
|
|
1162
|
-
:param create_password: Indicates a password should be create to allow access. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1163
|
-
:param keys: A list of ssh keys to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1164
|
-
:param password_delivery: The delivery method for the server's root password (one of ``none``, ``email`` or ``sms``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1165
|
-
:param user: Username to be create to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1204
|
+
:param create_password: Indicates a password should be create to allow access. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#create_password Server#create_password}
|
|
1205
|
+
:param keys: A list of ssh keys to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#keys Server#keys}
|
|
1206
|
+
:param password_delivery: The delivery method for the server's root password (one of ``none``, ``email`` or ``sms``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#password_delivery Server#password_delivery}
|
|
1207
|
+
:param user: Username to be create to access the server. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user Server#user}
|
|
1166
1208
|
'''
|
|
1167
1209
|
if __debug__:
|
|
1168
1210
|
type_hints = typing.get_type_hints(_typecheckingstub__ba39a2ee1d911b76fb74554613ea114a5a572a0bf44aae12941ef4644ef7377a)
|
|
@@ -1186,7 +1228,7 @@ class ServerLogin:
|
|
|
1186
1228
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
1187
1229
|
'''Indicates a password should be create to allow access.
|
|
1188
1230
|
|
|
1189
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1231
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#create_password Server#create_password}
|
|
1190
1232
|
'''
|
|
1191
1233
|
result = self._values.get("create_password")
|
|
1192
1234
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -1195,7 +1237,7 @@ class ServerLogin:
|
|
|
1195
1237
|
def keys(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
1196
1238
|
'''A list of ssh keys to access the server.
|
|
1197
1239
|
|
|
1198
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1240
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#keys Server#keys}
|
|
1199
1241
|
'''
|
|
1200
1242
|
result = self._values.get("keys")
|
|
1201
1243
|
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
@@ -1204,7 +1246,7 @@ class ServerLogin:
|
|
|
1204
1246
|
def password_delivery(self) -> typing.Optional[builtins.str]:
|
|
1205
1247
|
'''The delivery method for the server's root password (one of ``none``, ``email`` or ``sms``).
|
|
1206
1248
|
|
|
1207
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1249
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#password_delivery Server#password_delivery}
|
|
1208
1250
|
'''
|
|
1209
1251
|
result = self._values.get("password_delivery")
|
|
1210
1252
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1213,7 +1255,7 @@ class ServerLogin:
|
|
|
1213
1255
|
def user(self) -> typing.Optional[builtins.str]:
|
|
1214
1256
|
'''Username to be create to access the server.
|
|
1215
1257
|
|
|
1216
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1258
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#user Server#user}
|
|
1217
1259
|
'''
|
|
1218
1260
|
result = self._values.get("user")
|
|
1219
1261
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1378,12 +1420,12 @@ class ServerNetworkInterface:
|
|
|
1378
1420
|
source_ip_filtering: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
1379
1421
|
) -> None:
|
|
1380
1422
|
'''
|
|
1381
|
-
:param type: Network interface type. For private network interfaces, a network must be specified with an existing network id. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1382
|
-
:param bootable: ``true`` if this interface should be used for network booting. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1383
|
-
:param ip_address: The assigned IP address. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1384
|
-
:param ip_address_family: The IP address type of this interface (one of ``IPv4`` or ``IPv6``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1385
|
-
:param network: The unique ID of a network to attach this network to. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1386
|
-
:param source_ip_filtering: ``true`` if source IP should be filtered. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1423
|
+
:param type: Network interface type. For private network interfaces, a network must be specified with an existing network id. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#type Server#type}
|
|
1424
|
+
:param bootable: ``true`` if this interface should be used for network booting. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#bootable Server#bootable}
|
|
1425
|
+
:param ip_address: The assigned IP address. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#ip_address Server#ip_address}
|
|
1426
|
+
:param ip_address_family: The IP address type of this interface (one of ``IPv4`` or ``IPv6``). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#ip_address_family Server#ip_address_family}
|
|
1427
|
+
:param network: The unique ID of a network to attach this network to. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#network Server#network}
|
|
1428
|
+
:param source_ip_filtering: ``true`` if source IP should be filtered. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#source_ip_filtering Server#source_ip_filtering}
|
|
1387
1429
|
'''
|
|
1388
1430
|
if __debug__:
|
|
1389
1431
|
type_hints = typing.get_type_hints(_typecheckingstub__fd495e0f43b555636347e658837821c13810606782b5f840f155acbfbcf8b7ea)
|
|
@@ -1411,7 +1453,7 @@ class ServerNetworkInterface:
|
|
|
1411
1453
|
def type(self) -> builtins.str:
|
|
1412
1454
|
'''Network interface type. For private network interfaces, a network must be specified with an existing network id.
|
|
1413
1455
|
|
|
1414
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1456
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#type Server#type}
|
|
1415
1457
|
'''
|
|
1416
1458
|
result = self._values.get("type")
|
|
1417
1459
|
assert result is not None, "Required property 'type' is missing"
|
|
@@ -1423,7 +1465,7 @@ class ServerNetworkInterface:
|
|
|
1423
1465
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
1424
1466
|
'''``true`` if this interface should be used for network booting.
|
|
1425
1467
|
|
|
1426
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1468
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#bootable Server#bootable}
|
|
1427
1469
|
'''
|
|
1428
1470
|
result = self._values.get("bootable")
|
|
1429
1471
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -1432,7 +1474,7 @@ class ServerNetworkInterface:
|
|
|
1432
1474
|
def ip_address(self) -> typing.Optional[builtins.str]:
|
|
1433
1475
|
'''The assigned IP address.
|
|
1434
1476
|
|
|
1435
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1477
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#ip_address Server#ip_address}
|
|
1436
1478
|
'''
|
|
1437
1479
|
result = self._values.get("ip_address")
|
|
1438
1480
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1441,7 +1483,7 @@ class ServerNetworkInterface:
|
|
|
1441
1483
|
def ip_address_family(self) -> typing.Optional[builtins.str]:
|
|
1442
1484
|
'''The IP address type of this interface (one of ``IPv4`` or ``IPv6``).
|
|
1443
1485
|
|
|
1444
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1486
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#ip_address_family Server#ip_address_family}
|
|
1445
1487
|
'''
|
|
1446
1488
|
result = self._values.get("ip_address_family")
|
|
1447
1489
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1450,7 +1492,7 @@ class ServerNetworkInterface:
|
|
|
1450
1492
|
def network(self) -> typing.Optional[builtins.str]:
|
|
1451
1493
|
'''The unique ID of a network to attach this network to.
|
|
1452
1494
|
|
|
1453
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1495
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#network Server#network}
|
|
1454
1496
|
'''
|
|
1455
1497
|
result = self._values.get("network")
|
|
1456
1498
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -1461,7 +1503,7 @@ class ServerNetworkInterface:
|
|
|
1461
1503
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
1462
1504
|
'''``true`` if source IP should be filtered.
|
|
1463
1505
|
|
|
1464
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1506
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#source_ip_filtering Server#source_ip_filtering}
|
|
1465
1507
|
'''
|
|
1466
1508
|
result = self._values.get("source_ip_filtering")
|
|
1467
1509
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -1764,8 +1806,8 @@ class ServerNetworkInterfaceOutputReference(
|
|
|
1764
1806
|
class ServerSimpleBackup:
|
|
1765
1807
|
def __init__(self, *, plan: builtins.str, time: builtins.str) -> None:
|
|
1766
1808
|
'''
|
|
1767
|
-
:param plan: Simple backup plan. Accepted values: daily, dailies, weeklies, monthlies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1768
|
-
:param time: Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1809
|
+
:param plan: Simple backup plan. Accepted values: daily, dailies, weeklies, monthlies. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
1810
|
+
:param time: Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
1769
1811
|
'''
|
|
1770
1812
|
if __debug__:
|
|
1771
1813
|
type_hints = typing.get_type_hints(_typecheckingstub__e0bd20cac4bdde3b91171ae0bf44e53e9583617261eaf0793a175a7d8da3cee3)
|
|
@@ -1780,7 +1822,7 @@ class ServerSimpleBackup:
|
|
|
1780
1822
|
def plan(self) -> builtins.str:
|
|
1781
1823
|
'''Simple backup plan. Accepted values: daily, dailies, weeklies, monthlies.
|
|
1782
1824
|
|
|
1783
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1825
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#plan Server#plan}
|
|
1784
1826
|
'''
|
|
1785
1827
|
result = self._values.get("plan")
|
|
1786
1828
|
assert result is not None, "Required property 'plan' is missing"
|
|
@@ -1790,7 +1832,7 @@ class ServerSimpleBackup:
|
|
|
1790
1832
|
def time(self) -> builtins.str:
|
|
1791
1833
|
'''Time of the day at which backup will be taken. Should be provided in a hhmm format (e.g. 2230).
|
|
1792
1834
|
|
|
1793
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1835
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
1794
1836
|
'''
|
|
1795
1837
|
result = self._values.get("time")
|
|
1796
1838
|
assert result is not None, "Required property 'time' is missing"
|
|
@@ -1878,7 +1920,12 @@ class ServerSimpleBackupOutputReference(
|
|
|
1878
1920
|
@jsii.data_type(
|
|
1879
1921
|
jsii_type="@cdktf/provider-upcloud.server.ServerStorageDevices",
|
|
1880
1922
|
jsii_struct_bases=[],
|
|
1881
|
-
name_mapping={
|
|
1923
|
+
name_mapping={
|
|
1924
|
+
"storage": "storage",
|
|
1925
|
+
"address": "address",
|
|
1926
|
+
"address_position": "addressPosition",
|
|
1927
|
+
"type": "type",
|
|
1928
|
+
},
|
|
1882
1929
|
)
|
|
1883
1930
|
class ServerStorageDevices:
|
|
1884
1931
|
def __init__(
|
|
@@ -1886,23 +1933,28 @@ class ServerStorageDevices:
|
|
|
1886
1933
|
*,
|
|
1887
1934
|
storage: builtins.str,
|
|
1888
1935
|
address: typing.Optional[builtins.str] = None,
|
|
1936
|
+
address_position: typing.Optional[builtins.str] = None,
|
|
1889
1937
|
type: typing.Optional[builtins.str] = None,
|
|
1890
1938
|
) -> None:
|
|
1891
1939
|
'''
|
|
1892
|
-
:param storage: A valid storage UUID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1893
|
-
:param address: The device address the storage will be attached to.
|
|
1894
|
-
:param
|
|
1940
|
+
:param storage: A valid storage UUID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage Server#storage}
|
|
1941
|
+
:param address: The device address the storage will be attached to (``scsi``|``virtio``|``ide``). Leave ``address_position`` field empty to auto-select next available address from that bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address Server#address}
|
|
1942
|
+
:param address_position: The device position in the given bus (defined via field ``address``). For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address_position Server#address_position}
|
|
1943
|
+
:param type: The device type the storage will be attached as. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#type Server#type}
|
|
1895
1944
|
'''
|
|
1896
1945
|
if __debug__:
|
|
1897
1946
|
type_hints = typing.get_type_hints(_typecheckingstub__deefc3ca26ddd4529dd49d665d0a7e4d178ed9e318d7a6ed318fe000f57713ea)
|
|
1898
1947
|
check_type(argname="argument storage", value=storage, expected_type=type_hints["storage"])
|
|
1899
1948
|
check_type(argname="argument address", value=address, expected_type=type_hints["address"])
|
|
1949
|
+
check_type(argname="argument address_position", value=address_position, expected_type=type_hints["address_position"])
|
|
1900
1950
|
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
1901
1951
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
1902
1952
|
"storage": storage,
|
|
1903
1953
|
}
|
|
1904
1954
|
if address is not None:
|
|
1905
1955
|
self._values["address"] = address
|
|
1956
|
+
if address_position is not None:
|
|
1957
|
+
self._values["address_position"] = address_position
|
|
1906
1958
|
if type is not None:
|
|
1907
1959
|
self._values["type"] = type
|
|
1908
1960
|
|
|
@@ -1910,7 +1962,7 @@ class ServerStorageDevices:
|
|
|
1910
1962
|
def storage(self) -> builtins.str:
|
|
1911
1963
|
'''A valid storage UUID.
|
|
1912
1964
|
|
|
1913
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1965
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage Server#storage}
|
|
1914
1966
|
'''
|
|
1915
1967
|
result = self._values.get("storage")
|
|
1916
1968
|
assert result is not None, "Required property 'storage' is missing"
|
|
@@ -1918,20 +1970,31 @@ class ServerStorageDevices:
|
|
|
1918
1970
|
|
|
1919
1971
|
@builtins.property
|
|
1920
1972
|
def address(self) -> typing.Optional[builtins.str]:
|
|
1921
|
-
'''The device address the storage will be attached to.
|
|
1973
|
+
'''The device address the storage will be attached to (``scsi``|``virtio``|``ide``).
|
|
1922
1974
|
|
|
1923
|
-
|
|
1975
|
+
Leave ``address_position`` field empty to auto-select next available address from that bus.
|
|
1924
1976
|
|
|
1925
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1977
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address Server#address}
|
|
1926
1978
|
'''
|
|
1927
1979
|
result = self._values.get("address")
|
|
1928
1980
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1929
1981
|
|
|
1982
|
+
@builtins.property
|
|
1983
|
+
def address_position(self) -> typing.Optional[builtins.str]:
|
|
1984
|
+
'''The device position in the given bus (defined via field ``address``).
|
|
1985
|
+
|
|
1986
|
+
For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus.
|
|
1987
|
+
|
|
1988
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address_position Server#address_position}
|
|
1989
|
+
'''
|
|
1990
|
+
result = self._values.get("address_position")
|
|
1991
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
1992
|
+
|
|
1930
1993
|
@builtins.property
|
|
1931
1994
|
def type(self) -> typing.Optional[builtins.str]:
|
|
1932
1995
|
'''The device type the storage will be attached as.
|
|
1933
1996
|
|
|
1934
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
1997
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#type Server#type}
|
|
1935
1998
|
'''
|
|
1936
1999
|
result = self._values.get("type")
|
|
1937
2000
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -2068,6 +2131,10 @@ class ServerStorageDevicesOutputReference(
|
|
|
2068
2131
|
def reset_address(self) -> None:
|
|
2069
2132
|
return typing.cast(None, jsii.invoke(self, "resetAddress", []))
|
|
2070
2133
|
|
|
2134
|
+
@jsii.member(jsii_name="resetAddressPosition")
|
|
2135
|
+
def reset_address_position(self) -> None:
|
|
2136
|
+
return typing.cast(None, jsii.invoke(self, "resetAddressPosition", []))
|
|
2137
|
+
|
|
2071
2138
|
@jsii.member(jsii_name="resetType")
|
|
2072
2139
|
def reset_type(self) -> None:
|
|
2073
2140
|
return typing.cast(None, jsii.invoke(self, "resetType", []))
|
|
@@ -2077,6 +2144,11 @@ class ServerStorageDevicesOutputReference(
|
|
|
2077
2144
|
def address_input(self) -> typing.Optional[builtins.str]:
|
|
2078
2145
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "addressInput"))
|
|
2079
2146
|
|
|
2147
|
+
@builtins.property
|
|
2148
|
+
@jsii.member(jsii_name="addressPositionInput")
|
|
2149
|
+
def address_position_input(self) -> typing.Optional[builtins.str]:
|
|
2150
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "addressPositionInput"))
|
|
2151
|
+
|
|
2080
2152
|
@builtins.property
|
|
2081
2153
|
@jsii.member(jsii_name="storageInput")
|
|
2082
2154
|
def storage_input(self) -> typing.Optional[builtins.str]:
|
|
@@ -2099,6 +2171,18 @@ class ServerStorageDevicesOutputReference(
|
|
|
2099
2171
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2100
2172
|
jsii.set(self, "address", value)
|
|
2101
2173
|
|
|
2174
|
+
@builtins.property
|
|
2175
|
+
@jsii.member(jsii_name="addressPosition")
|
|
2176
|
+
def address_position(self) -> builtins.str:
|
|
2177
|
+
return typing.cast(builtins.str, jsii.get(self, "addressPosition"))
|
|
2178
|
+
|
|
2179
|
+
@address_position.setter
|
|
2180
|
+
def address_position(self, value: builtins.str) -> None:
|
|
2181
|
+
if __debug__:
|
|
2182
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e9594909c5df17e870cfac7d21659b828b0ba741b08d1e83df1ec3cd1122f262)
|
|
2183
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2184
|
+
jsii.set(self, "addressPosition", value)
|
|
2185
|
+
|
|
2102
2186
|
@builtins.property
|
|
2103
2187
|
@jsii.member(jsii_name="storage")
|
|
2104
2188
|
def storage(self) -> builtins.str:
|
|
@@ -2147,6 +2231,7 @@ class ServerStorageDevicesOutputReference(
|
|
|
2147
2231
|
name_mapping={
|
|
2148
2232
|
"storage": "storage",
|
|
2149
2233
|
"address": "address",
|
|
2234
|
+
"address_position": "addressPosition",
|
|
2150
2235
|
"backup_rule": "backupRule",
|
|
2151
2236
|
"delete_autoresize_backup": "deleteAutoresizeBackup",
|
|
2152
2237
|
"filesystem_autoresize": "filesystemAutoresize",
|
|
@@ -2160,6 +2245,7 @@ class ServerTemplate:
|
|
|
2160
2245
|
*,
|
|
2161
2246
|
storage: builtins.str,
|
|
2162
2247
|
address: typing.Optional[builtins.str] = None,
|
|
2248
|
+
address_position: typing.Optional[builtins.str] = None,
|
|
2163
2249
|
backup_rule: typing.Optional[typing.Union["ServerTemplateBackupRule", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2164
2250
|
delete_autoresize_backup: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
2165
2251
|
filesystem_autoresize: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
@@ -2167,13 +2253,14 @@ class ServerTemplate:
|
|
|
2167
2253
|
title: typing.Optional[builtins.str] = None,
|
|
2168
2254
|
) -> None:
|
|
2169
2255
|
'''
|
|
2170
|
-
:param storage: A valid storage UUID or template name. You can list available public templates with ``upctl storage list --public --template`` and available private templates with ``upctl storage list --template``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2171
|
-
:param address: The device address the storage will be attached to.
|
|
2172
|
-
:param
|
|
2173
|
-
:param
|
|
2174
|
-
:param
|
|
2175
|
-
:param
|
|
2176
|
-
:param
|
|
2256
|
+
:param storage: A valid storage UUID or template name. You can list available public templates with ``upctl storage list --public --template`` and available private templates with ``upctl storage list --template``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage Server#storage}
|
|
2257
|
+
:param address: The device address the storage will be attached to (``scsi``|``virtio``|``ide``). Leave ``address_position`` field empty to auto-select next available address from that bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address Server#address}
|
|
2258
|
+
:param address_position: The device position in the given bus (defined via field ``address``). For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address_position Server#address_position}
|
|
2259
|
+
:param backup_rule: backup_rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#backup_rule Server#backup_rule}
|
|
2260
|
+
: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/3.3.0/docs/resources/server#delete_autoresize_backup Server#delete_autoresize_backup}
|
|
2261
|
+
:param filesystem_autoresize: If set to true, provider will attempt to resize partition and filesystem when the size of template 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/3.3.0/docs/resources/server#filesystem_autoresize Server#filesystem_autoresize}
|
|
2262
|
+
:param size: The size of the storage in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#size Server#size}
|
|
2263
|
+
:param title: A short, informative description. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
2177
2264
|
'''
|
|
2178
2265
|
if isinstance(backup_rule, dict):
|
|
2179
2266
|
backup_rule = ServerTemplateBackupRule(**backup_rule)
|
|
@@ -2181,6 +2268,7 @@ class ServerTemplate:
|
|
|
2181
2268
|
type_hints = typing.get_type_hints(_typecheckingstub__2a85c384316c005f9127a81fcbc356ef71508b188a9b9433bf88b08a22e08cad)
|
|
2182
2269
|
check_type(argname="argument storage", value=storage, expected_type=type_hints["storage"])
|
|
2183
2270
|
check_type(argname="argument address", value=address, expected_type=type_hints["address"])
|
|
2271
|
+
check_type(argname="argument address_position", value=address_position, expected_type=type_hints["address_position"])
|
|
2184
2272
|
check_type(argname="argument backup_rule", value=backup_rule, expected_type=type_hints["backup_rule"])
|
|
2185
2273
|
check_type(argname="argument delete_autoresize_backup", value=delete_autoresize_backup, expected_type=type_hints["delete_autoresize_backup"])
|
|
2186
2274
|
check_type(argname="argument filesystem_autoresize", value=filesystem_autoresize, expected_type=type_hints["filesystem_autoresize"])
|
|
@@ -2191,6 +2279,8 @@ class ServerTemplate:
|
|
|
2191
2279
|
}
|
|
2192
2280
|
if address is not None:
|
|
2193
2281
|
self._values["address"] = address
|
|
2282
|
+
if address_position is not None:
|
|
2283
|
+
self._values["address_position"] = address_position
|
|
2194
2284
|
if backup_rule is not None:
|
|
2195
2285
|
self._values["backup_rule"] = backup_rule
|
|
2196
2286
|
if delete_autoresize_backup is not None:
|
|
@@ -2208,7 +2298,7 @@ class ServerTemplate:
|
|
|
2208
2298
|
|
|
2209
2299
|
You can list available public templates with ``upctl storage list --public --template`` and available private templates with ``upctl storage list --template``.
|
|
2210
2300
|
|
|
2211
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2301
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#storage Server#storage}
|
|
2212
2302
|
'''
|
|
2213
2303
|
result = self._values.get("storage")
|
|
2214
2304
|
assert result is not None, "Required property 'storage' is missing"
|
|
@@ -2216,20 +2306,31 @@ class ServerTemplate:
|
|
|
2216
2306
|
|
|
2217
2307
|
@builtins.property
|
|
2218
2308
|
def address(self) -> typing.Optional[builtins.str]:
|
|
2219
|
-
'''The device address the storage will be attached to.
|
|
2309
|
+
'''The device address the storage will be attached to (``scsi``|``virtio``|``ide``).
|
|
2220
2310
|
|
|
2221
|
-
|
|
2311
|
+
Leave ``address_position`` field empty to auto-select next available address from that bus.
|
|
2222
2312
|
|
|
2223
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2313
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address Server#address}
|
|
2224
2314
|
'''
|
|
2225
2315
|
result = self._values.get("address")
|
|
2226
2316
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
2227
2317
|
|
|
2318
|
+
@builtins.property
|
|
2319
|
+
def address_position(self) -> typing.Optional[builtins.str]:
|
|
2320
|
+
'''The device position in the given bus (defined via field ``address``).
|
|
2321
|
+
|
|
2322
|
+
For example ``0:0``, or ``0``. Leave empty to auto-select next available address in the given bus.
|
|
2323
|
+
|
|
2324
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#address_position Server#address_position}
|
|
2325
|
+
'''
|
|
2326
|
+
result = self._values.get("address_position")
|
|
2327
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
2328
|
+
|
|
2228
2329
|
@builtins.property
|
|
2229
2330
|
def backup_rule(self) -> typing.Optional["ServerTemplateBackupRule"]:
|
|
2230
2331
|
'''backup_rule block.
|
|
2231
2332
|
|
|
2232
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2333
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#backup_rule Server#backup_rule}
|
|
2233
2334
|
'''
|
|
2234
2335
|
result = self._values.get("backup_rule")
|
|
2235
2336
|
return typing.cast(typing.Optional["ServerTemplateBackupRule"], result)
|
|
@@ -2240,7 +2341,7 @@ class ServerTemplate:
|
|
|
2240
2341
|
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
2241
2342
|
'''If set to true, the backup taken before the partition and filesystem resize attempt will be deleted immediately after success.
|
|
2242
2343
|
|
|
2243
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2344
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#delete_autoresize_backup Server#delete_autoresize_backup}
|
|
2244
2345
|
'''
|
|
2245
2346
|
result = self._values.get("delete_autoresize_backup")
|
|
2246
2347
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -2255,7 +2356,7 @@ class ServerTemplate:
|
|
|
2255
2356
|
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).
|
|
2256
2357
|
Taking and keeping backups incure costs.
|
|
2257
2358
|
|
|
2258
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2359
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#filesystem_autoresize Server#filesystem_autoresize}
|
|
2259
2360
|
'''
|
|
2260
2361
|
result = self._values.get("filesystem_autoresize")
|
|
2261
2362
|
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
@@ -2264,7 +2365,7 @@ class ServerTemplate:
|
|
|
2264
2365
|
def size(self) -> typing.Optional[jsii.Number]:
|
|
2265
2366
|
'''The size of the storage in gigabytes.
|
|
2266
2367
|
|
|
2267
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2368
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#size Server#size}
|
|
2268
2369
|
'''
|
|
2269
2370
|
result = self._values.get("size")
|
|
2270
2371
|
return typing.cast(typing.Optional[jsii.Number], result)
|
|
@@ -2273,7 +2374,7 @@ class ServerTemplate:
|
|
|
2273
2374
|
def title(self) -> typing.Optional[builtins.str]:
|
|
2274
2375
|
'''A short, informative description.
|
|
2275
2376
|
|
|
2276
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2377
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#title Server#title}
|
|
2277
2378
|
'''
|
|
2278
2379
|
result = self._values.get("title")
|
|
2279
2380
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
@@ -2304,9 +2405,9 @@ class ServerTemplateBackupRule:
|
|
|
2304
2405
|
time: builtins.str,
|
|
2305
2406
|
) -> None:
|
|
2306
2407
|
'''
|
|
2307
|
-
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2308
|
-
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2309
|
-
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2408
|
+
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#interval Server#interval}
|
|
2409
|
+
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#retention Server#retention}
|
|
2410
|
+
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
2310
2411
|
'''
|
|
2311
2412
|
if __debug__:
|
|
2312
2413
|
type_hints = typing.get_type_hints(_typecheckingstub__0da849dc75d0030fd1866a13a6da5cd60acc32df054d4b38c21875c14c699895)
|
|
@@ -2323,7 +2424,7 @@ class ServerTemplateBackupRule:
|
|
|
2323
2424
|
def interval(self) -> builtins.str:
|
|
2324
2425
|
'''The weekday when the backup is created.
|
|
2325
2426
|
|
|
2326
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2427
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#interval Server#interval}
|
|
2327
2428
|
'''
|
|
2328
2429
|
result = self._values.get("interval")
|
|
2329
2430
|
assert result is not None, "Required property 'interval' is missing"
|
|
@@ -2333,7 +2434,7 @@ class ServerTemplateBackupRule:
|
|
|
2333
2434
|
def retention(self) -> jsii.Number:
|
|
2334
2435
|
'''The number of days before a backup is automatically deleted.
|
|
2335
2436
|
|
|
2336
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2437
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#retention Server#retention}
|
|
2337
2438
|
'''
|
|
2338
2439
|
result = self._values.get("retention")
|
|
2339
2440
|
assert result is not None, "Required property 'retention' is missing"
|
|
@@ -2343,7 +2444,7 @@ class ServerTemplateBackupRule:
|
|
|
2343
2444
|
def time(self) -> builtins.str:
|
|
2344
2445
|
'''The time of day when the backup is created.
|
|
2345
2446
|
|
|
2346
|
-
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2447
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
2347
2448
|
'''
|
|
2348
2449
|
result = self._values.get("time")
|
|
2349
2450
|
assert result is not None, "Required property 'time' is missing"
|
|
@@ -2474,9 +2575,9 @@ class ServerTemplateOutputReference(
|
|
|
2474
2575
|
time: builtins.str,
|
|
2475
2576
|
) -> None:
|
|
2476
2577
|
'''
|
|
2477
|
-
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2478
|
-
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2479
|
-
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.
|
|
2578
|
+
:param interval: The weekday when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#interval Server#interval}
|
|
2579
|
+
:param retention: The number of days before a backup is automatically deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#retention Server#retention}
|
|
2580
|
+
:param time: The time of day when the backup is created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/3.3.0/docs/resources/server#time Server#time}
|
|
2480
2581
|
'''
|
|
2481
2582
|
value = ServerTemplateBackupRule(
|
|
2482
2583
|
interval=interval, retention=retention, time=time
|
|
@@ -2488,6 +2589,10 @@ class ServerTemplateOutputReference(
|
|
|
2488
2589
|
def reset_address(self) -> None:
|
|
2489
2590
|
return typing.cast(None, jsii.invoke(self, "resetAddress", []))
|
|
2490
2591
|
|
|
2592
|
+
@jsii.member(jsii_name="resetAddressPosition")
|
|
2593
|
+
def reset_address_position(self) -> None:
|
|
2594
|
+
return typing.cast(None, jsii.invoke(self, "resetAddressPosition", []))
|
|
2595
|
+
|
|
2491
2596
|
@jsii.member(jsii_name="resetBackupRule")
|
|
2492
2597
|
def reset_backup_rule(self) -> None:
|
|
2493
2598
|
return typing.cast(None, jsii.invoke(self, "resetBackupRule", []))
|
|
@@ -2528,6 +2633,11 @@ class ServerTemplateOutputReference(
|
|
|
2528
2633
|
def address_input(self) -> typing.Optional[builtins.str]:
|
|
2529
2634
|
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "addressInput"))
|
|
2530
2635
|
|
|
2636
|
+
@builtins.property
|
|
2637
|
+
@jsii.member(jsii_name="addressPositionInput")
|
|
2638
|
+
def address_position_input(self) -> typing.Optional[builtins.str]:
|
|
2639
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "addressPositionInput"))
|
|
2640
|
+
|
|
2531
2641
|
@builtins.property
|
|
2532
2642
|
@jsii.member(jsii_name="backupRuleInput")
|
|
2533
2643
|
def backup_rule_input(self) -> typing.Optional[ServerTemplateBackupRule]:
|
|
@@ -2574,6 +2684,18 @@ class ServerTemplateOutputReference(
|
|
|
2574
2684
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2575
2685
|
jsii.set(self, "address", value)
|
|
2576
2686
|
|
|
2687
|
+
@builtins.property
|
|
2688
|
+
@jsii.member(jsii_name="addressPosition")
|
|
2689
|
+
def address_position(self) -> builtins.str:
|
|
2690
|
+
return typing.cast(builtins.str, jsii.get(self, "addressPosition"))
|
|
2691
|
+
|
|
2692
|
+
@address_position.setter
|
|
2693
|
+
def address_position(self, value: builtins.str) -> None:
|
|
2694
|
+
if __debug__:
|
|
2695
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d7f194b15a6e592fba7d22facc1980c421e81ee6e2c1c3fff097e573cbe6b7be)
|
|
2696
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
2697
|
+
jsii.set(self, "addressPosition", value)
|
|
2698
|
+
|
|
2577
2699
|
@builtins.property
|
|
2578
2700
|
@jsii.member(jsii_name="deleteAutoresizeBackup")
|
|
2579
2701
|
def delete_autoresize_backup(
|
|
@@ -2685,6 +2807,7 @@ def _typecheckingstub__6b83690e478f8730a1b183dfb2bf71b179dc55ba8028fd8cc73841eff
|
|
|
2685
2807
|
hostname: builtins.str,
|
|
2686
2808
|
network_interface: typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union[ServerNetworkInterface, typing.Dict[builtins.str, typing.Any]]]],
|
|
2687
2809
|
zone: builtins.str,
|
|
2810
|
+
boot_order: typing.Optional[builtins.str] = None,
|
|
2688
2811
|
cpu: typing.Optional[jsii.Number] = None,
|
|
2689
2812
|
firewall: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
2690
2813
|
host: typing.Optional[jsii.Number] = None,
|
|
@@ -2735,6 +2858,12 @@ def _typecheckingstub__e2c4cd707e662e8744252abfd6f62940a96bcdfc90c7389a218eb5a2a
|
|
|
2735
2858
|
"""Type checking stubs"""
|
|
2736
2859
|
pass
|
|
2737
2860
|
|
|
2861
|
+
def _typecheckingstub__f3c840f2e6e25ab81a562249038283c68d1c9227ca4e4942e8d91d710b04c5bf(
|
|
2862
|
+
value: builtins.str,
|
|
2863
|
+
) -> None:
|
|
2864
|
+
"""Type checking stubs"""
|
|
2865
|
+
pass
|
|
2866
|
+
|
|
2738
2867
|
def _typecheckingstub__c0bf29acd3dd45353eecfc5a63f6040bd66f55ef883a41491d92f1bdbe810a40(
|
|
2739
2868
|
value: jsii.Number,
|
|
2740
2869
|
) -> None:
|
|
@@ -2843,6 +2972,7 @@ def _typecheckingstub__ea0c30195fdb4e86d473d86dcc3b49fe1de4f105b946dcc2035464e29
|
|
|
2843
2972
|
hostname: builtins.str,
|
|
2844
2973
|
network_interface: typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union[ServerNetworkInterface, typing.Dict[builtins.str, typing.Any]]]],
|
|
2845
2974
|
zone: builtins.str,
|
|
2975
|
+
boot_order: typing.Optional[builtins.str] = None,
|
|
2846
2976
|
cpu: typing.Optional[jsii.Number] = None,
|
|
2847
2977
|
firewall: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
2848
2978
|
host: typing.Optional[jsii.Number] = None,
|
|
@@ -3050,6 +3180,7 @@ def _typecheckingstub__deefc3ca26ddd4529dd49d665d0a7e4d178ed9e318d7a6ed318fe000f
|
|
|
3050
3180
|
*,
|
|
3051
3181
|
storage: builtins.str,
|
|
3052
3182
|
address: typing.Optional[builtins.str] = None,
|
|
3183
|
+
address_position: typing.Optional[builtins.str] = None,
|
|
3053
3184
|
type: typing.Optional[builtins.str] = None,
|
|
3054
3185
|
) -> None:
|
|
3055
3186
|
"""Type checking stubs"""
|
|
@@ -3108,6 +3239,12 @@ def _typecheckingstub__77d5b7c93220faaf6dd9467054774e5725fd8a75225556068d9412f77
|
|
|
3108
3239
|
"""Type checking stubs"""
|
|
3109
3240
|
pass
|
|
3110
3241
|
|
|
3242
|
+
def _typecheckingstub__e9594909c5df17e870cfac7d21659b828b0ba741b08d1e83df1ec3cd1122f262(
|
|
3243
|
+
value: builtins.str,
|
|
3244
|
+
) -> None:
|
|
3245
|
+
"""Type checking stubs"""
|
|
3246
|
+
pass
|
|
3247
|
+
|
|
3111
3248
|
def _typecheckingstub__9014362108e66a3d08ae0f2e9738528cfc887bea97394f5c9b3dbc053ab6d4e5(
|
|
3112
3249
|
value: builtins.str,
|
|
3113
3250
|
) -> None:
|
|
@@ -3130,6 +3267,7 @@ def _typecheckingstub__2a85c384316c005f9127a81fcbc356ef71508b188a9b9433bf88b08a2
|
|
|
3130
3267
|
*,
|
|
3131
3268
|
storage: builtins.str,
|
|
3132
3269
|
address: typing.Optional[builtins.str] = None,
|
|
3270
|
+
address_position: typing.Optional[builtins.str] = None,
|
|
3133
3271
|
backup_rule: typing.Optional[typing.Union[ServerTemplateBackupRule, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
3134
3272
|
delete_autoresize_backup: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
3135
3273
|
filesystem_autoresize: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
@@ -3192,6 +3330,12 @@ def _typecheckingstub__8ec88e6f0117f5a01bf0be4edaac88182f98191d5898e18968a024f2c
|
|
|
3192
3330
|
"""Type checking stubs"""
|
|
3193
3331
|
pass
|
|
3194
3332
|
|
|
3333
|
+
def _typecheckingstub__d7f194b15a6e592fba7d22facc1980c421e81ee6e2c1c3fff097e573cbe6b7be(
|
|
3334
|
+
value: builtins.str,
|
|
3335
|
+
) -> None:
|
|
3336
|
+
"""Type checking stubs"""
|
|
3337
|
+
pass
|
|
3338
|
+
|
|
3195
3339
|
def _typecheckingstub__c856e0710f9cda94f9f1271c085ee9d4a1499307057c893c123eafc72fc313e7(
|
|
3196
3340
|
value: typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable],
|
|
3197
3341
|
) -> None:
|