cdktf-cdktf-provider-upcloud 15.8.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.
- cdktf_cdktf_provider_upcloud/__init__.py +247 -0
- cdktf_cdktf_provider_upcloud/_jsii/__init__.py +45 -0
- cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@15.8.0.jsii.tgz +0 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_hosts/__init__.py +894 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_ip_addresses/__init__.py +633 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_kubernetes_cluster/__init__.py +384 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_load_balancer_dns_challenge_domain/__init__.py +319 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_mysql_sessions/__init__.py +853 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_opensearch_indices/__init__.py +717 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_postgresql_sessions/__init__.py +1084 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_valkey_sessions/__init__.py +898 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_object_storage_policies/__init__.py +647 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_managed_object_storage_regions/__init__.py +600 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_networks/__init__.py +1093 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_storage/__init__.py +725 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_tags/__init__.py +558 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_zone/__init__.py +421 -0
- cdktf_cdktf_provider_upcloud/data_upcloud_zones/__init__.py +364 -0
- cdktf_cdktf_provider_upcloud/file_storage/__init__.py +1683 -0
- cdktf_cdktf_provider_upcloud/firewall_rules/__init__.py +1233 -0
- cdktf_cdktf_provider_upcloud/floating_ip_address/__init__.py +552 -0
- cdktf_cdktf_provider_upcloud/gateway/__init__.py +1167 -0
- cdktf_cdktf_provider_upcloud/gateway_connection/__init__.py +1299 -0
- cdktf_cdktf_provider_upcloud/gateway_connection_tunnel/__init__.py +1357 -0
- cdktf_cdktf_provider_upcloud/kubernetes_cluster/__init__.py +801 -0
- cdktf_cdktf_provider_upcloud/kubernetes_node_group/__init__.py +2674 -0
- cdktf_cdktf_provider_upcloud/loadbalancer/__init__.py +2113 -0
- cdktf_cdktf_provider_upcloud/loadbalancer_backend/__init__.py +1426 -0
- cdktf_cdktf_provider_upcloud/loadbalancer_backend_tls_config/__init__.py +442 -0
- cdktf_cdktf_provider_upcloud/loadbalancer_dynamic_backend_member/__init__.py +633 -0
- cdktf_cdktf_provider_upcloud/loadbalancer_dynamic_certificate_bundle/__init__.py +459 -0
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend/__init__.py +1290 -0
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend_rule/__init__.py +11486 -0
- cdktf_cdktf_provider_upcloud/loadbalancer_frontend_tls_config/__init__.py +442 -0
- cdktf_cdktf_provider_upcloud/loadbalancer_manual_certificate_bundle/__init__.py +504 -0
- cdktf_cdktf_provider_upcloud/loadbalancer_resolver/__init__.py +659 -0
- cdktf_cdktf_provider_upcloud/loadbalancer_static_backend_member/__init__.py +633 -0
- cdktf_cdktf_provider_upcloud/managed_database_logical_database/__init__.py +536 -0
- cdktf_cdktf_provider_upcloud/managed_database_mysql/__init__.py +4644 -0
- cdktf_cdktf_provider_upcloud/managed_database_opensearch/__init__.py +13812 -0
- cdktf_cdktf_provider_upcloud/managed_database_postgresql/__init__.py +7734 -0
- cdktf_cdktf_provider_upcloud/managed_database_user/__init__.py +1541 -0
- cdktf_cdktf_provider_upcloud/managed_database_valkey/__init__.py +3355 -0
- cdktf_cdktf_provider_upcloud/managed_object_storage/__init__.py +1198 -0
- cdktf_cdktf_provider_upcloud/managed_object_storage_bucket/__init__.py +409 -0
- cdktf_cdktf_provider_upcloud/managed_object_storage_custom_domain/__init__.py +446 -0
- cdktf_cdktf_provider_upcloud/managed_object_storage_policy/__init__.py +521 -0
- cdktf_cdktf_provider_upcloud/managed_object_storage_user/__init__.py +454 -0
- cdktf_cdktf_provider_upcloud/managed_object_storage_user_access_key/__init__.py +505 -0
- cdktf_cdktf_provider_upcloud/managed_object_storage_user_policy/__init__.py +485 -0
- cdktf_cdktf_provider_upcloud/network/__init__.py +1554 -0
- cdktf_cdktf_provider_upcloud/network_peering/__init__.py +1084 -0
- cdktf_cdktf_provider_upcloud/provider/__init__.py +544 -0
- cdktf_cdktf_provider_upcloud/py.typed +1 -0
- cdktf_cdktf_provider_upcloud/router/__init__.py +1030 -0
- cdktf_cdktf_provider_upcloud/server/__init__.py +4542 -0
- cdktf_cdktf_provider_upcloud/server_group/__init__.py +571 -0
- cdktf_cdktf_provider_upcloud/storage/__init__.py +1850 -0
- cdktf_cdktf_provider_upcloud/storage_backup/__init__.py +483 -0
- cdktf_cdktf_provider_upcloud/storage_template/__init__.py +478 -0
- cdktf_cdktf_provider_upcloud/tag/__init__.py +493 -0
- cdktf_cdktf_provider_upcloud-15.8.0.dist-info/LICENSE +355 -0
- cdktf_cdktf_provider_upcloud-15.8.0.dist-info/METADATA +120 -0
- cdktf_cdktf_provider_upcloud-15.8.0.dist-info/RECORD +66 -0
- cdktf_cdktf_provider_upcloud-15.8.0.dist-info/WHEEL +5 -0
- cdktf_cdktf_provider_upcloud-15.8.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
r'''
|
|
2
|
+
# `provider`
|
|
3
|
+
|
|
4
|
+
Refer to the Terraform Registry for docs: [`upcloud`](https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs).
|
|
5
|
+
'''
|
|
6
|
+
from pkgutil import extend_path
|
|
7
|
+
__path__ = extend_path(__path__, __name__)
|
|
8
|
+
|
|
9
|
+
import abc
|
|
10
|
+
import builtins
|
|
11
|
+
import datetime
|
|
12
|
+
import enum
|
|
13
|
+
import typing
|
|
14
|
+
|
|
15
|
+
import jsii
|
|
16
|
+
import publication
|
|
17
|
+
import typing_extensions
|
|
18
|
+
|
|
19
|
+
import typeguard
|
|
20
|
+
from importlib.metadata import version as _metadata_package_version
|
|
21
|
+
TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
|
|
22
|
+
|
|
23
|
+
def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
|
|
24
|
+
if TYPEGUARD_MAJOR_VERSION <= 2:
|
|
25
|
+
return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
|
|
26
|
+
else:
|
|
27
|
+
if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
|
|
28
|
+
pass
|
|
29
|
+
else:
|
|
30
|
+
if TYPEGUARD_MAJOR_VERSION == 3:
|
|
31
|
+
typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
|
|
32
|
+
typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
|
|
33
|
+
else:
|
|
34
|
+
typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
|
|
35
|
+
|
|
36
|
+
from .._jsii import *
|
|
37
|
+
|
|
38
|
+
import cdktf as _cdktf_9a9027ec
|
|
39
|
+
import constructs as _constructs_77d1e7e8
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class UpcloudProvider(
|
|
43
|
+
_cdktf_9a9027ec.TerraformProvider,
|
|
44
|
+
metaclass=jsii.JSIIMeta,
|
|
45
|
+
jsii_type="@cdktf/provider-upcloud.provider.UpcloudProvider",
|
|
46
|
+
):
|
|
47
|
+
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs upcloud}.'''
|
|
48
|
+
|
|
49
|
+
def __init__(
|
|
50
|
+
self,
|
|
51
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
52
|
+
id: builtins.str,
|
|
53
|
+
*,
|
|
54
|
+
alias: typing.Optional[builtins.str] = None,
|
|
55
|
+
password: typing.Optional[builtins.str] = None,
|
|
56
|
+
request_timeout_sec: typing.Optional[jsii.Number] = None,
|
|
57
|
+
retry_max: typing.Optional[jsii.Number] = None,
|
|
58
|
+
retry_wait_max_sec: typing.Optional[jsii.Number] = None,
|
|
59
|
+
retry_wait_min_sec: typing.Optional[jsii.Number] = None,
|
|
60
|
+
token: typing.Optional[builtins.str] = None,
|
|
61
|
+
username: typing.Optional[builtins.str] = None,
|
|
62
|
+
) -> None:
|
|
63
|
+
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs upcloud} Resource.
|
|
64
|
+
|
|
65
|
+
:param scope: The scope in which to define this construct.
|
|
66
|
+
:param id: The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
67
|
+
:param alias: Alias name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#alias UpcloudProvider#alias}
|
|
68
|
+
:param password: Password for UpCloud API user. Can also be configured using the ``UPCLOUD_PASSWORD`` environment variable. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#password UpcloudProvider#password}
|
|
69
|
+
:param request_timeout_sec: The duration (in seconds) that the provider waits for an HTTP request towards UpCloud API to complete. Defaults to 120 seconds Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#request_timeout_sec UpcloudProvider#request_timeout_sec}
|
|
70
|
+
:param retry_max: Maximum number of retries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#retry_max UpcloudProvider#retry_max}
|
|
71
|
+
:param retry_wait_max_sec: Maximum time to wait between retries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#retry_wait_max_sec UpcloudProvider#retry_wait_max_sec}
|
|
72
|
+
:param retry_wait_min_sec: Minimum time to wait between retries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#retry_wait_min_sec UpcloudProvider#retry_wait_min_sec}
|
|
73
|
+
:param token: Token for authenticating to UpCloud API. Can also be configured using the ``UPCLOUD_TOKEN`` environment variable or using the system keyring. Use ``upctl account login`` command to save a token to the system keyring. (EXPERIMENTAL) Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#token UpcloudProvider#token}
|
|
74
|
+
:param username: UpCloud username with API access. Can also be configured using the ``UPCLOUD_USERNAME`` environment variable. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#username UpcloudProvider#username}
|
|
75
|
+
'''
|
|
76
|
+
if __debug__:
|
|
77
|
+
type_hints = typing.get_type_hints(_typecheckingstub__786d7492fb6ccdc4fc75b22452f182f0009c6f7041f055f198f8ab4750003c16)
|
|
78
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
79
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
80
|
+
config = UpcloudProviderConfig(
|
|
81
|
+
alias=alias,
|
|
82
|
+
password=password,
|
|
83
|
+
request_timeout_sec=request_timeout_sec,
|
|
84
|
+
retry_max=retry_max,
|
|
85
|
+
retry_wait_max_sec=retry_wait_max_sec,
|
|
86
|
+
retry_wait_min_sec=retry_wait_min_sec,
|
|
87
|
+
token=token,
|
|
88
|
+
username=username,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
jsii.create(self.__class__, self, [scope, id, config])
|
|
92
|
+
|
|
93
|
+
@jsii.member(jsii_name="generateConfigForImport")
|
|
94
|
+
@builtins.classmethod
|
|
95
|
+
def generate_config_for_import(
|
|
96
|
+
cls,
|
|
97
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
98
|
+
import_to_id: builtins.str,
|
|
99
|
+
import_from_id: builtins.str,
|
|
100
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
101
|
+
) -> _cdktf_9a9027ec.ImportableResource:
|
|
102
|
+
'''Generates CDKTF code for importing a UpcloudProvider resource upon running "cdktf plan ".
|
|
103
|
+
|
|
104
|
+
:param scope: The scope in which to define this construct.
|
|
105
|
+
:param import_to_id: The construct id used in the generated config for the UpcloudProvider to import.
|
|
106
|
+
:param import_from_id: The id of the existing UpcloudProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#import import section} in the documentation of this resource for the id to use
|
|
107
|
+
:param provider: ? Optional instance of the provider where the UpcloudProvider to import is found.
|
|
108
|
+
'''
|
|
109
|
+
if __debug__:
|
|
110
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1628005c128e139344030e5187700e17d5703e65a1ed60eb45ad4f09bac925d5)
|
|
111
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
112
|
+
check_type(argname="argument import_to_id", value=import_to_id, expected_type=type_hints["import_to_id"])
|
|
113
|
+
check_type(argname="argument import_from_id", value=import_from_id, expected_type=type_hints["import_from_id"])
|
|
114
|
+
check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
|
|
115
|
+
return typing.cast(_cdktf_9a9027ec.ImportableResource, jsii.sinvoke(cls, "generateConfigForImport", [scope, import_to_id, import_from_id, provider]))
|
|
116
|
+
|
|
117
|
+
@jsii.member(jsii_name="resetAlias")
|
|
118
|
+
def reset_alias(self) -> None:
|
|
119
|
+
return typing.cast(None, jsii.invoke(self, "resetAlias", []))
|
|
120
|
+
|
|
121
|
+
@jsii.member(jsii_name="resetPassword")
|
|
122
|
+
def reset_password(self) -> None:
|
|
123
|
+
return typing.cast(None, jsii.invoke(self, "resetPassword", []))
|
|
124
|
+
|
|
125
|
+
@jsii.member(jsii_name="resetRequestTimeoutSec")
|
|
126
|
+
def reset_request_timeout_sec(self) -> None:
|
|
127
|
+
return typing.cast(None, jsii.invoke(self, "resetRequestTimeoutSec", []))
|
|
128
|
+
|
|
129
|
+
@jsii.member(jsii_name="resetRetryMax")
|
|
130
|
+
def reset_retry_max(self) -> None:
|
|
131
|
+
return typing.cast(None, jsii.invoke(self, "resetRetryMax", []))
|
|
132
|
+
|
|
133
|
+
@jsii.member(jsii_name="resetRetryWaitMaxSec")
|
|
134
|
+
def reset_retry_wait_max_sec(self) -> None:
|
|
135
|
+
return typing.cast(None, jsii.invoke(self, "resetRetryWaitMaxSec", []))
|
|
136
|
+
|
|
137
|
+
@jsii.member(jsii_name="resetRetryWaitMinSec")
|
|
138
|
+
def reset_retry_wait_min_sec(self) -> None:
|
|
139
|
+
return typing.cast(None, jsii.invoke(self, "resetRetryWaitMinSec", []))
|
|
140
|
+
|
|
141
|
+
@jsii.member(jsii_name="resetToken")
|
|
142
|
+
def reset_token(self) -> None:
|
|
143
|
+
return typing.cast(None, jsii.invoke(self, "resetToken", []))
|
|
144
|
+
|
|
145
|
+
@jsii.member(jsii_name="resetUsername")
|
|
146
|
+
def reset_username(self) -> None:
|
|
147
|
+
return typing.cast(None, jsii.invoke(self, "resetUsername", []))
|
|
148
|
+
|
|
149
|
+
@jsii.member(jsii_name="synthesizeAttributes")
|
|
150
|
+
def _synthesize_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
151
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeAttributes", []))
|
|
152
|
+
|
|
153
|
+
@jsii.member(jsii_name="synthesizeHclAttributes")
|
|
154
|
+
def _synthesize_hcl_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
155
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeHclAttributes", []))
|
|
156
|
+
|
|
157
|
+
@jsii.python.classproperty
|
|
158
|
+
@jsii.member(jsii_name="tfResourceType")
|
|
159
|
+
def TF_RESOURCE_TYPE(cls) -> builtins.str:
|
|
160
|
+
return typing.cast(builtins.str, jsii.sget(cls, "tfResourceType"))
|
|
161
|
+
|
|
162
|
+
@builtins.property
|
|
163
|
+
@jsii.member(jsii_name="aliasInput")
|
|
164
|
+
def alias_input(self) -> typing.Optional[builtins.str]:
|
|
165
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "aliasInput"))
|
|
166
|
+
|
|
167
|
+
@builtins.property
|
|
168
|
+
@jsii.member(jsii_name="passwordInput")
|
|
169
|
+
def password_input(self) -> typing.Optional[builtins.str]:
|
|
170
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "passwordInput"))
|
|
171
|
+
|
|
172
|
+
@builtins.property
|
|
173
|
+
@jsii.member(jsii_name="requestTimeoutSecInput")
|
|
174
|
+
def request_timeout_sec_input(self) -> typing.Optional[jsii.Number]:
|
|
175
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "requestTimeoutSecInput"))
|
|
176
|
+
|
|
177
|
+
@builtins.property
|
|
178
|
+
@jsii.member(jsii_name="retryMaxInput")
|
|
179
|
+
def retry_max_input(self) -> typing.Optional[jsii.Number]:
|
|
180
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "retryMaxInput"))
|
|
181
|
+
|
|
182
|
+
@builtins.property
|
|
183
|
+
@jsii.member(jsii_name="retryWaitMaxSecInput")
|
|
184
|
+
def retry_wait_max_sec_input(self) -> typing.Optional[jsii.Number]:
|
|
185
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "retryWaitMaxSecInput"))
|
|
186
|
+
|
|
187
|
+
@builtins.property
|
|
188
|
+
@jsii.member(jsii_name="retryWaitMinSecInput")
|
|
189
|
+
def retry_wait_min_sec_input(self) -> typing.Optional[jsii.Number]:
|
|
190
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "retryWaitMinSecInput"))
|
|
191
|
+
|
|
192
|
+
@builtins.property
|
|
193
|
+
@jsii.member(jsii_name="tokenInput")
|
|
194
|
+
def token_input(self) -> typing.Optional[builtins.str]:
|
|
195
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "tokenInput"))
|
|
196
|
+
|
|
197
|
+
@builtins.property
|
|
198
|
+
@jsii.member(jsii_name="usernameInput")
|
|
199
|
+
def username_input(self) -> typing.Optional[builtins.str]:
|
|
200
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "usernameInput"))
|
|
201
|
+
|
|
202
|
+
@builtins.property
|
|
203
|
+
@jsii.member(jsii_name="alias")
|
|
204
|
+
def alias(self) -> typing.Optional[builtins.str]:
|
|
205
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "alias"))
|
|
206
|
+
|
|
207
|
+
@alias.setter
|
|
208
|
+
def alias(self, value: typing.Optional[builtins.str]) -> None:
|
|
209
|
+
if __debug__:
|
|
210
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e945ae0cadd024f4b089068aefbe16b016f51e1f64cc6f1e8850982caaae4a34)
|
|
211
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
212
|
+
jsii.set(self, "alias", value) # pyright: ignore[reportArgumentType]
|
|
213
|
+
|
|
214
|
+
@builtins.property
|
|
215
|
+
@jsii.member(jsii_name="password")
|
|
216
|
+
def password(self) -> typing.Optional[builtins.str]:
|
|
217
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "password"))
|
|
218
|
+
|
|
219
|
+
@password.setter
|
|
220
|
+
def password(self, value: typing.Optional[builtins.str]) -> None:
|
|
221
|
+
if __debug__:
|
|
222
|
+
type_hints = typing.get_type_hints(_typecheckingstub__7468e4559193a961ddd25362db32f9c861bcc46838550615e263ebc1a73453cc)
|
|
223
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
224
|
+
jsii.set(self, "password", value) # pyright: ignore[reportArgumentType]
|
|
225
|
+
|
|
226
|
+
@builtins.property
|
|
227
|
+
@jsii.member(jsii_name="requestTimeoutSec")
|
|
228
|
+
def request_timeout_sec(self) -> typing.Optional[jsii.Number]:
|
|
229
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "requestTimeoutSec"))
|
|
230
|
+
|
|
231
|
+
@request_timeout_sec.setter
|
|
232
|
+
def request_timeout_sec(self, value: typing.Optional[jsii.Number]) -> None:
|
|
233
|
+
if __debug__:
|
|
234
|
+
type_hints = typing.get_type_hints(_typecheckingstub__287057d3016cfed3607f43e0805d362c5d2f2ee791a47dbdd378f3bbe989604b)
|
|
235
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
236
|
+
jsii.set(self, "requestTimeoutSec", value) # pyright: ignore[reportArgumentType]
|
|
237
|
+
|
|
238
|
+
@builtins.property
|
|
239
|
+
@jsii.member(jsii_name="retryMax")
|
|
240
|
+
def retry_max(self) -> typing.Optional[jsii.Number]:
|
|
241
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "retryMax"))
|
|
242
|
+
|
|
243
|
+
@retry_max.setter
|
|
244
|
+
def retry_max(self, value: typing.Optional[jsii.Number]) -> None:
|
|
245
|
+
if __debug__:
|
|
246
|
+
type_hints = typing.get_type_hints(_typecheckingstub__5e4a81c76bc2199b17a918d1471a4c63e1c00ecb3f395413787eba9b56b6498b)
|
|
247
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
248
|
+
jsii.set(self, "retryMax", value) # pyright: ignore[reportArgumentType]
|
|
249
|
+
|
|
250
|
+
@builtins.property
|
|
251
|
+
@jsii.member(jsii_name="retryWaitMaxSec")
|
|
252
|
+
def retry_wait_max_sec(self) -> typing.Optional[jsii.Number]:
|
|
253
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "retryWaitMaxSec"))
|
|
254
|
+
|
|
255
|
+
@retry_wait_max_sec.setter
|
|
256
|
+
def retry_wait_max_sec(self, value: typing.Optional[jsii.Number]) -> None:
|
|
257
|
+
if __debug__:
|
|
258
|
+
type_hints = typing.get_type_hints(_typecheckingstub__b81aaca05e740634c669da4f51e9846126f057b96daa7a573168193975e920ed)
|
|
259
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
260
|
+
jsii.set(self, "retryWaitMaxSec", value) # pyright: ignore[reportArgumentType]
|
|
261
|
+
|
|
262
|
+
@builtins.property
|
|
263
|
+
@jsii.member(jsii_name="retryWaitMinSec")
|
|
264
|
+
def retry_wait_min_sec(self) -> typing.Optional[jsii.Number]:
|
|
265
|
+
return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "retryWaitMinSec"))
|
|
266
|
+
|
|
267
|
+
@retry_wait_min_sec.setter
|
|
268
|
+
def retry_wait_min_sec(self, value: typing.Optional[jsii.Number]) -> None:
|
|
269
|
+
if __debug__:
|
|
270
|
+
type_hints = typing.get_type_hints(_typecheckingstub__49c748eec266d9d5bc8e7a25a10e42de6548f3fcf8b2fadc433e055280bc7303)
|
|
271
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
272
|
+
jsii.set(self, "retryWaitMinSec", value) # pyright: ignore[reportArgumentType]
|
|
273
|
+
|
|
274
|
+
@builtins.property
|
|
275
|
+
@jsii.member(jsii_name="token")
|
|
276
|
+
def token(self) -> typing.Optional[builtins.str]:
|
|
277
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "token"))
|
|
278
|
+
|
|
279
|
+
@token.setter
|
|
280
|
+
def token(self, value: typing.Optional[builtins.str]) -> None:
|
|
281
|
+
if __debug__:
|
|
282
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d29a5224d1a254258edc7ad8071e53f50ce334f5e5f9c3f72c0124ec933a3924)
|
|
283
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
284
|
+
jsii.set(self, "token", value) # pyright: ignore[reportArgumentType]
|
|
285
|
+
|
|
286
|
+
@builtins.property
|
|
287
|
+
@jsii.member(jsii_name="username")
|
|
288
|
+
def username(self) -> typing.Optional[builtins.str]:
|
|
289
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "username"))
|
|
290
|
+
|
|
291
|
+
@username.setter
|
|
292
|
+
def username(self, value: typing.Optional[builtins.str]) -> None:
|
|
293
|
+
if __debug__:
|
|
294
|
+
type_hints = typing.get_type_hints(_typecheckingstub__73bdbfe36f31accc3b6a6dcba3205f0ac50aaaa3f363bff894bdc84e137fc234)
|
|
295
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
296
|
+
jsii.set(self, "username", value) # pyright: ignore[reportArgumentType]
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
@jsii.data_type(
|
|
300
|
+
jsii_type="@cdktf/provider-upcloud.provider.UpcloudProviderConfig",
|
|
301
|
+
jsii_struct_bases=[],
|
|
302
|
+
name_mapping={
|
|
303
|
+
"alias": "alias",
|
|
304
|
+
"password": "password",
|
|
305
|
+
"request_timeout_sec": "requestTimeoutSec",
|
|
306
|
+
"retry_max": "retryMax",
|
|
307
|
+
"retry_wait_max_sec": "retryWaitMaxSec",
|
|
308
|
+
"retry_wait_min_sec": "retryWaitMinSec",
|
|
309
|
+
"token": "token",
|
|
310
|
+
"username": "username",
|
|
311
|
+
},
|
|
312
|
+
)
|
|
313
|
+
class UpcloudProviderConfig:
|
|
314
|
+
def __init__(
|
|
315
|
+
self,
|
|
316
|
+
*,
|
|
317
|
+
alias: typing.Optional[builtins.str] = None,
|
|
318
|
+
password: typing.Optional[builtins.str] = None,
|
|
319
|
+
request_timeout_sec: typing.Optional[jsii.Number] = None,
|
|
320
|
+
retry_max: typing.Optional[jsii.Number] = None,
|
|
321
|
+
retry_wait_max_sec: typing.Optional[jsii.Number] = None,
|
|
322
|
+
retry_wait_min_sec: typing.Optional[jsii.Number] = None,
|
|
323
|
+
token: typing.Optional[builtins.str] = None,
|
|
324
|
+
username: typing.Optional[builtins.str] = None,
|
|
325
|
+
) -> None:
|
|
326
|
+
'''
|
|
327
|
+
:param alias: Alias name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#alias UpcloudProvider#alias}
|
|
328
|
+
:param password: Password for UpCloud API user. Can also be configured using the ``UPCLOUD_PASSWORD`` environment variable. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#password UpcloudProvider#password}
|
|
329
|
+
:param request_timeout_sec: The duration (in seconds) that the provider waits for an HTTP request towards UpCloud API to complete. Defaults to 120 seconds Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#request_timeout_sec UpcloudProvider#request_timeout_sec}
|
|
330
|
+
:param retry_max: Maximum number of retries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#retry_max UpcloudProvider#retry_max}
|
|
331
|
+
:param retry_wait_max_sec: Maximum time to wait between retries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#retry_wait_max_sec UpcloudProvider#retry_wait_max_sec}
|
|
332
|
+
:param retry_wait_min_sec: Minimum time to wait between retries. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#retry_wait_min_sec UpcloudProvider#retry_wait_min_sec}
|
|
333
|
+
:param token: Token for authenticating to UpCloud API. Can also be configured using the ``UPCLOUD_TOKEN`` environment variable or using the system keyring. Use ``upctl account login`` command to save a token to the system keyring. (EXPERIMENTAL) Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#token UpcloudProvider#token}
|
|
334
|
+
:param username: UpCloud username with API access. Can also be configured using the ``UPCLOUD_USERNAME`` environment variable. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#username UpcloudProvider#username}
|
|
335
|
+
'''
|
|
336
|
+
if __debug__:
|
|
337
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e59a8dbe0e889be0d58fa19f6443e5c6def71ffe937d944a0b10dbe3c74b4005)
|
|
338
|
+
check_type(argname="argument alias", value=alias, expected_type=type_hints["alias"])
|
|
339
|
+
check_type(argname="argument password", value=password, expected_type=type_hints["password"])
|
|
340
|
+
check_type(argname="argument request_timeout_sec", value=request_timeout_sec, expected_type=type_hints["request_timeout_sec"])
|
|
341
|
+
check_type(argname="argument retry_max", value=retry_max, expected_type=type_hints["retry_max"])
|
|
342
|
+
check_type(argname="argument retry_wait_max_sec", value=retry_wait_max_sec, expected_type=type_hints["retry_wait_max_sec"])
|
|
343
|
+
check_type(argname="argument retry_wait_min_sec", value=retry_wait_min_sec, expected_type=type_hints["retry_wait_min_sec"])
|
|
344
|
+
check_type(argname="argument token", value=token, expected_type=type_hints["token"])
|
|
345
|
+
check_type(argname="argument username", value=username, expected_type=type_hints["username"])
|
|
346
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
347
|
+
if alias is not None:
|
|
348
|
+
self._values["alias"] = alias
|
|
349
|
+
if password is not None:
|
|
350
|
+
self._values["password"] = password
|
|
351
|
+
if request_timeout_sec is not None:
|
|
352
|
+
self._values["request_timeout_sec"] = request_timeout_sec
|
|
353
|
+
if retry_max is not None:
|
|
354
|
+
self._values["retry_max"] = retry_max
|
|
355
|
+
if retry_wait_max_sec is not None:
|
|
356
|
+
self._values["retry_wait_max_sec"] = retry_wait_max_sec
|
|
357
|
+
if retry_wait_min_sec is not None:
|
|
358
|
+
self._values["retry_wait_min_sec"] = retry_wait_min_sec
|
|
359
|
+
if token is not None:
|
|
360
|
+
self._values["token"] = token
|
|
361
|
+
if username is not None:
|
|
362
|
+
self._values["username"] = username
|
|
363
|
+
|
|
364
|
+
@builtins.property
|
|
365
|
+
def alias(self) -> typing.Optional[builtins.str]:
|
|
366
|
+
'''Alias name.
|
|
367
|
+
|
|
368
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#alias UpcloudProvider#alias}
|
|
369
|
+
'''
|
|
370
|
+
result = self._values.get("alias")
|
|
371
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
372
|
+
|
|
373
|
+
@builtins.property
|
|
374
|
+
def password(self) -> typing.Optional[builtins.str]:
|
|
375
|
+
'''Password for UpCloud API user. Can also be configured using the ``UPCLOUD_PASSWORD`` environment variable.
|
|
376
|
+
|
|
377
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#password UpcloudProvider#password}
|
|
378
|
+
'''
|
|
379
|
+
result = self._values.get("password")
|
|
380
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
381
|
+
|
|
382
|
+
@builtins.property
|
|
383
|
+
def request_timeout_sec(self) -> typing.Optional[jsii.Number]:
|
|
384
|
+
'''The duration (in seconds) that the provider waits for an HTTP request towards UpCloud API to complete.
|
|
385
|
+
|
|
386
|
+
Defaults to 120 seconds
|
|
387
|
+
|
|
388
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#request_timeout_sec UpcloudProvider#request_timeout_sec}
|
|
389
|
+
'''
|
|
390
|
+
result = self._values.get("request_timeout_sec")
|
|
391
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
392
|
+
|
|
393
|
+
@builtins.property
|
|
394
|
+
def retry_max(self) -> typing.Optional[jsii.Number]:
|
|
395
|
+
'''Maximum number of retries.
|
|
396
|
+
|
|
397
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#retry_max UpcloudProvider#retry_max}
|
|
398
|
+
'''
|
|
399
|
+
result = self._values.get("retry_max")
|
|
400
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
401
|
+
|
|
402
|
+
@builtins.property
|
|
403
|
+
def retry_wait_max_sec(self) -> typing.Optional[jsii.Number]:
|
|
404
|
+
'''Maximum time to wait between retries.
|
|
405
|
+
|
|
406
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#retry_wait_max_sec UpcloudProvider#retry_wait_max_sec}
|
|
407
|
+
'''
|
|
408
|
+
result = self._values.get("retry_wait_max_sec")
|
|
409
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
410
|
+
|
|
411
|
+
@builtins.property
|
|
412
|
+
def retry_wait_min_sec(self) -> typing.Optional[jsii.Number]:
|
|
413
|
+
'''Minimum time to wait between retries.
|
|
414
|
+
|
|
415
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#retry_wait_min_sec UpcloudProvider#retry_wait_min_sec}
|
|
416
|
+
'''
|
|
417
|
+
result = self._values.get("retry_wait_min_sec")
|
|
418
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
419
|
+
|
|
420
|
+
@builtins.property
|
|
421
|
+
def token(self) -> typing.Optional[builtins.str]:
|
|
422
|
+
'''Token for authenticating to UpCloud API.
|
|
423
|
+
|
|
424
|
+
Can also be configured using the ``UPCLOUD_TOKEN`` environment variable or using the system keyring. Use ``upctl account login`` command to save a token to the system keyring. (EXPERIMENTAL)
|
|
425
|
+
|
|
426
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#token UpcloudProvider#token}
|
|
427
|
+
'''
|
|
428
|
+
result = self._values.get("token")
|
|
429
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
430
|
+
|
|
431
|
+
@builtins.property
|
|
432
|
+
def username(self) -> typing.Optional[builtins.str]:
|
|
433
|
+
'''UpCloud username with API access. Can also be configured using the ``UPCLOUD_USERNAME`` environment variable.
|
|
434
|
+
|
|
435
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs#username UpcloudProvider#username}
|
|
436
|
+
'''
|
|
437
|
+
result = self._values.get("username")
|
|
438
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
439
|
+
|
|
440
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
441
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
442
|
+
|
|
443
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
444
|
+
return not (rhs == self)
|
|
445
|
+
|
|
446
|
+
def __repr__(self) -> str:
|
|
447
|
+
return "UpcloudProviderConfig(%s)" % ", ".join(
|
|
448
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
449
|
+
)
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
__all__ = [
|
|
453
|
+
"UpcloudProvider",
|
|
454
|
+
"UpcloudProviderConfig",
|
|
455
|
+
]
|
|
456
|
+
|
|
457
|
+
publication.publish()
|
|
458
|
+
|
|
459
|
+
def _typecheckingstub__786d7492fb6ccdc4fc75b22452f182f0009c6f7041f055f198f8ab4750003c16(
|
|
460
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
461
|
+
id: builtins.str,
|
|
462
|
+
*,
|
|
463
|
+
alias: typing.Optional[builtins.str] = None,
|
|
464
|
+
password: typing.Optional[builtins.str] = None,
|
|
465
|
+
request_timeout_sec: typing.Optional[jsii.Number] = None,
|
|
466
|
+
retry_max: typing.Optional[jsii.Number] = None,
|
|
467
|
+
retry_wait_max_sec: typing.Optional[jsii.Number] = None,
|
|
468
|
+
retry_wait_min_sec: typing.Optional[jsii.Number] = None,
|
|
469
|
+
token: typing.Optional[builtins.str] = None,
|
|
470
|
+
username: typing.Optional[builtins.str] = None,
|
|
471
|
+
) -> None:
|
|
472
|
+
"""Type checking stubs"""
|
|
473
|
+
pass
|
|
474
|
+
|
|
475
|
+
def _typecheckingstub__1628005c128e139344030e5187700e17d5703e65a1ed60eb45ad4f09bac925d5(
|
|
476
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
477
|
+
import_to_id: builtins.str,
|
|
478
|
+
import_from_id: builtins.str,
|
|
479
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
480
|
+
) -> None:
|
|
481
|
+
"""Type checking stubs"""
|
|
482
|
+
pass
|
|
483
|
+
|
|
484
|
+
def _typecheckingstub__e945ae0cadd024f4b089068aefbe16b016f51e1f64cc6f1e8850982caaae4a34(
|
|
485
|
+
value: typing.Optional[builtins.str],
|
|
486
|
+
) -> None:
|
|
487
|
+
"""Type checking stubs"""
|
|
488
|
+
pass
|
|
489
|
+
|
|
490
|
+
def _typecheckingstub__7468e4559193a961ddd25362db32f9c861bcc46838550615e263ebc1a73453cc(
|
|
491
|
+
value: typing.Optional[builtins.str],
|
|
492
|
+
) -> None:
|
|
493
|
+
"""Type checking stubs"""
|
|
494
|
+
pass
|
|
495
|
+
|
|
496
|
+
def _typecheckingstub__287057d3016cfed3607f43e0805d362c5d2f2ee791a47dbdd378f3bbe989604b(
|
|
497
|
+
value: typing.Optional[jsii.Number],
|
|
498
|
+
) -> None:
|
|
499
|
+
"""Type checking stubs"""
|
|
500
|
+
pass
|
|
501
|
+
|
|
502
|
+
def _typecheckingstub__5e4a81c76bc2199b17a918d1471a4c63e1c00ecb3f395413787eba9b56b6498b(
|
|
503
|
+
value: typing.Optional[jsii.Number],
|
|
504
|
+
) -> None:
|
|
505
|
+
"""Type checking stubs"""
|
|
506
|
+
pass
|
|
507
|
+
|
|
508
|
+
def _typecheckingstub__b81aaca05e740634c669da4f51e9846126f057b96daa7a573168193975e920ed(
|
|
509
|
+
value: typing.Optional[jsii.Number],
|
|
510
|
+
) -> None:
|
|
511
|
+
"""Type checking stubs"""
|
|
512
|
+
pass
|
|
513
|
+
|
|
514
|
+
def _typecheckingstub__49c748eec266d9d5bc8e7a25a10e42de6548f3fcf8b2fadc433e055280bc7303(
|
|
515
|
+
value: typing.Optional[jsii.Number],
|
|
516
|
+
) -> None:
|
|
517
|
+
"""Type checking stubs"""
|
|
518
|
+
pass
|
|
519
|
+
|
|
520
|
+
def _typecheckingstub__d29a5224d1a254258edc7ad8071e53f50ce334f5e5f9c3f72c0124ec933a3924(
|
|
521
|
+
value: typing.Optional[builtins.str],
|
|
522
|
+
) -> None:
|
|
523
|
+
"""Type checking stubs"""
|
|
524
|
+
pass
|
|
525
|
+
|
|
526
|
+
def _typecheckingstub__73bdbfe36f31accc3b6a6dcba3205f0ac50aaaa3f363bff894bdc84e137fc234(
|
|
527
|
+
value: typing.Optional[builtins.str],
|
|
528
|
+
) -> None:
|
|
529
|
+
"""Type checking stubs"""
|
|
530
|
+
pass
|
|
531
|
+
|
|
532
|
+
def _typecheckingstub__e59a8dbe0e889be0d58fa19f6443e5c6def71ffe937d944a0b10dbe3c74b4005(
|
|
533
|
+
*,
|
|
534
|
+
alias: typing.Optional[builtins.str] = None,
|
|
535
|
+
password: typing.Optional[builtins.str] = None,
|
|
536
|
+
request_timeout_sec: typing.Optional[jsii.Number] = None,
|
|
537
|
+
retry_max: typing.Optional[jsii.Number] = None,
|
|
538
|
+
retry_wait_max_sec: typing.Optional[jsii.Number] = None,
|
|
539
|
+
retry_wait_min_sec: typing.Optional[jsii.Number] = None,
|
|
540
|
+
token: typing.Optional[builtins.str] = None,
|
|
541
|
+
username: typing.Optional[builtins.str] = None,
|
|
542
|
+
) -> None:
|
|
543
|
+
"""Type checking stubs"""
|
|
544
|
+
pass
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|