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,725 @@
|
|
|
1
|
+
r'''
|
|
2
|
+
# `data_upcloud_storage`
|
|
3
|
+
|
|
4
|
+
Refer to the Terraform Registry for docs: [`data_upcloud_storage`](https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage).
|
|
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 DataUpcloudStorage(
|
|
43
|
+
_cdktf_9a9027ec.TerraformDataSource,
|
|
44
|
+
metaclass=jsii.JSIIMeta,
|
|
45
|
+
jsii_type="@cdktf/provider-upcloud.dataUpcloudStorage.DataUpcloudStorage",
|
|
46
|
+
):
|
|
47
|
+
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage upcloud_storage}.'''
|
|
48
|
+
|
|
49
|
+
def __init__(
|
|
50
|
+
self,
|
|
51
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
52
|
+
id_: builtins.str,
|
|
53
|
+
*,
|
|
54
|
+
access_type: typing.Optional[builtins.str] = None,
|
|
55
|
+
id: typing.Optional[builtins.str] = None,
|
|
56
|
+
most_recent: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
57
|
+
name: typing.Optional[builtins.str] = None,
|
|
58
|
+
name_regex: typing.Optional[builtins.str] = None,
|
|
59
|
+
title: typing.Optional[builtins.str] = None,
|
|
60
|
+
type: typing.Optional[builtins.str] = None,
|
|
61
|
+
zone: typing.Optional[builtins.str] = None,
|
|
62
|
+
connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
63
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
|
64
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
|
65
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
|
66
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
67
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
68
|
+
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,
|
|
69
|
+
) -> None:
|
|
70
|
+
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage upcloud_storage} Data Source.
|
|
71
|
+
|
|
72
|
+
:param scope: The scope in which to define this construct.
|
|
73
|
+
:param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
74
|
+
:param access_type: The access type of the storage, ``public`` or ``private``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#access_type DataUpcloudStorage#access_type}
|
|
75
|
+
:param id: UUID of the storage. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#id DataUpcloudStorage#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.
|
|
76
|
+
:param most_recent: If more than one result is returned, use the most recent storage. This is only useful with private storages. Public storages might give unpredictable results. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#most_recent DataUpcloudStorage#most_recent}
|
|
77
|
+
:param name: Exact name of the storage (same as title). Deprecated, use ``title`` instead. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#name DataUpcloudStorage#name}
|
|
78
|
+
:param name_regex: Use regular expression to match storage name. Deprecated, use exact title or UUID instead. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#name_regex DataUpcloudStorage#name_regex}
|
|
79
|
+
:param title: The title of the storage. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#title DataUpcloudStorage#title}
|
|
80
|
+
:param type: The type of the storage. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#type DataUpcloudStorage#type}
|
|
81
|
+
:param zone: The zone the storage is in, e.g. ``de-fra1``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#zone DataUpcloudStorage#zone}
|
|
82
|
+
:param connection:
|
|
83
|
+
:param count:
|
|
84
|
+
:param depends_on:
|
|
85
|
+
:param for_each:
|
|
86
|
+
:param lifecycle:
|
|
87
|
+
:param provider:
|
|
88
|
+
:param provisioners:
|
|
89
|
+
'''
|
|
90
|
+
if __debug__:
|
|
91
|
+
type_hints = typing.get_type_hints(_typecheckingstub__039ab20792080076b79d7c009c33daad19d751b6de0de5df5c5d3102c2e2d077)
|
|
92
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
93
|
+
check_type(argname="argument id_", value=id_, expected_type=type_hints["id_"])
|
|
94
|
+
config = DataUpcloudStorageConfig(
|
|
95
|
+
access_type=access_type,
|
|
96
|
+
id=id,
|
|
97
|
+
most_recent=most_recent,
|
|
98
|
+
name=name,
|
|
99
|
+
name_regex=name_regex,
|
|
100
|
+
title=title,
|
|
101
|
+
type=type,
|
|
102
|
+
zone=zone,
|
|
103
|
+
connection=connection,
|
|
104
|
+
count=count,
|
|
105
|
+
depends_on=depends_on,
|
|
106
|
+
for_each=for_each,
|
|
107
|
+
lifecycle=lifecycle,
|
|
108
|
+
provider=provider,
|
|
109
|
+
provisioners=provisioners,
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
jsii.create(self.__class__, self, [scope, id_, config])
|
|
113
|
+
|
|
114
|
+
@jsii.member(jsii_name="generateConfigForImport")
|
|
115
|
+
@builtins.classmethod
|
|
116
|
+
def generate_config_for_import(
|
|
117
|
+
cls,
|
|
118
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
119
|
+
import_to_id: builtins.str,
|
|
120
|
+
import_from_id: builtins.str,
|
|
121
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
122
|
+
) -> _cdktf_9a9027ec.ImportableResource:
|
|
123
|
+
'''Generates CDKTF code for importing a DataUpcloudStorage resource upon running "cdktf plan ".
|
|
124
|
+
|
|
125
|
+
:param scope: The scope in which to define this construct.
|
|
126
|
+
:param import_to_id: The construct id used in the generated config for the DataUpcloudStorage to import.
|
|
127
|
+
:param import_from_id: The id of the existing DataUpcloudStorage that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#import import section} in the documentation of this resource for the id to use
|
|
128
|
+
:param provider: ? Optional instance of the provider where the DataUpcloudStorage to import is found.
|
|
129
|
+
'''
|
|
130
|
+
if __debug__:
|
|
131
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fe49471c2556ea60a922246f93ed9840ed2c8313f5a730d8f2457e5c12661703)
|
|
132
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
133
|
+
check_type(argname="argument import_to_id", value=import_to_id, expected_type=type_hints["import_to_id"])
|
|
134
|
+
check_type(argname="argument import_from_id", value=import_from_id, expected_type=type_hints["import_from_id"])
|
|
135
|
+
check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
|
|
136
|
+
return typing.cast(_cdktf_9a9027ec.ImportableResource, jsii.sinvoke(cls, "generateConfigForImport", [scope, import_to_id, import_from_id, provider]))
|
|
137
|
+
|
|
138
|
+
@jsii.member(jsii_name="resetAccessType")
|
|
139
|
+
def reset_access_type(self) -> None:
|
|
140
|
+
return typing.cast(None, jsii.invoke(self, "resetAccessType", []))
|
|
141
|
+
|
|
142
|
+
@jsii.member(jsii_name="resetId")
|
|
143
|
+
def reset_id(self) -> None:
|
|
144
|
+
return typing.cast(None, jsii.invoke(self, "resetId", []))
|
|
145
|
+
|
|
146
|
+
@jsii.member(jsii_name="resetMostRecent")
|
|
147
|
+
def reset_most_recent(self) -> None:
|
|
148
|
+
return typing.cast(None, jsii.invoke(self, "resetMostRecent", []))
|
|
149
|
+
|
|
150
|
+
@jsii.member(jsii_name="resetName")
|
|
151
|
+
def reset_name(self) -> None:
|
|
152
|
+
return typing.cast(None, jsii.invoke(self, "resetName", []))
|
|
153
|
+
|
|
154
|
+
@jsii.member(jsii_name="resetNameRegex")
|
|
155
|
+
def reset_name_regex(self) -> None:
|
|
156
|
+
return typing.cast(None, jsii.invoke(self, "resetNameRegex", []))
|
|
157
|
+
|
|
158
|
+
@jsii.member(jsii_name="resetTitle")
|
|
159
|
+
def reset_title(self) -> None:
|
|
160
|
+
return typing.cast(None, jsii.invoke(self, "resetTitle", []))
|
|
161
|
+
|
|
162
|
+
@jsii.member(jsii_name="resetType")
|
|
163
|
+
def reset_type(self) -> None:
|
|
164
|
+
return typing.cast(None, jsii.invoke(self, "resetType", []))
|
|
165
|
+
|
|
166
|
+
@jsii.member(jsii_name="resetZone")
|
|
167
|
+
def reset_zone(self) -> None:
|
|
168
|
+
return typing.cast(None, jsii.invoke(self, "resetZone", []))
|
|
169
|
+
|
|
170
|
+
@jsii.member(jsii_name="synthesizeAttributes")
|
|
171
|
+
def _synthesize_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
172
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeAttributes", []))
|
|
173
|
+
|
|
174
|
+
@jsii.member(jsii_name="synthesizeHclAttributes")
|
|
175
|
+
def _synthesize_hcl_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
176
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeHclAttributes", []))
|
|
177
|
+
|
|
178
|
+
@jsii.python.classproperty
|
|
179
|
+
@jsii.member(jsii_name="tfResourceType")
|
|
180
|
+
def TF_RESOURCE_TYPE(cls) -> builtins.str:
|
|
181
|
+
return typing.cast(builtins.str, jsii.sget(cls, "tfResourceType"))
|
|
182
|
+
|
|
183
|
+
@builtins.property
|
|
184
|
+
@jsii.member(jsii_name="encrypt")
|
|
185
|
+
def encrypt(self) -> _cdktf_9a9027ec.IResolvable:
|
|
186
|
+
return typing.cast(_cdktf_9a9027ec.IResolvable, jsii.get(self, "encrypt"))
|
|
187
|
+
|
|
188
|
+
@builtins.property
|
|
189
|
+
@jsii.member(jsii_name="labels")
|
|
190
|
+
def labels(self) -> _cdktf_9a9027ec.StringMap:
|
|
191
|
+
return typing.cast(_cdktf_9a9027ec.StringMap, jsii.get(self, "labels"))
|
|
192
|
+
|
|
193
|
+
@builtins.property
|
|
194
|
+
@jsii.member(jsii_name="size")
|
|
195
|
+
def size(self) -> jsii.Number:
|
|
196
|
+
return typing.cast(jsii.Number, jsii.get(self, "size"))
|
|
197
|
+
|
|
198
|
+
@builtins.property
|
|
199
|
+
@jsii.member(jsii_name="state")
|
|
200
|
+
def state(self) -> builtins.str:
|
|
201
|
+
return typing.cast(builtins.str, jsii.get(self, "state"))
|
|
202
|
+
|
|
203
|
+
@builtins.property
|
|
204
|
+
@jsii.member(jsii_name="systemLabels")
|
|
205
|
+
def system_labels(self) -> _cdktf_9a9027ec.StringMap:
|
|
206
|
+
return typing.cast(_cdktf_9a9027ec.StringMap, jsii.get(self, "systemLabels"))
|
|
207
|
+
|
|
208
|
+
@builtins.property
|
|
209
|
+
@jsii.member(jsii_name="tier")
|
|
210
|
+
def tier(self) -> builtins.str:
|
|
211
|
+
return typing.cast(builtins.str, jsii.get(self, "tier"))
|
|
212
|
+
|
|
213
|
+
@builtins.property
|
|
214
|
+
@jsii.member(jsii_name="accessTypeInput")
|
|
215
|
+
def access_type_input(self) -> typing.Optional[builtins.str]:
|
|
216
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "accessTypeInput"))
|
|
217
|
+
|
|
218
|
+
@builtins.property
|
|
219
|
+
@jsii.member(jsii_name="idInput")
|
|
220
|
+
def id_input(self) -> typing.Optional[builtins.str]:
|
|
221
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "idInput"))
|
|
222
|
+
|
|
223
|
+
@builtins.property
|
|
224
|
+
@jsii.member(jsii_name="mostRecentInput")
|
|
225
|
+
def most_recent_input(
|
|
226
|
+
self,
|
|
227
|
+
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
228
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], jsii.get(self, "mostRecentInput"))
|
|
229
|
+
|
|
230
|
+
@builtins.property
|
|
231
|
+
@jsii.member(jsii_name="nameInput")
|
|
232
|
+
def name_input(self) -> typing.Optional[builtins.str]:
|
|
233
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "nameInput"))
|
|
234
|
+
|
|
235
|
+
@builtins.property
|
|
236
|
+
@jsii.member(jsii_name="nameRegexInput")
|
|
237
|
+
def name_regex_input(self) -> typing.Optional[builtins.str]:
|
|
238
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "nameRegexInput"))
|
|
239
|
+
|
|
240
|
+
@builtins.property
|
|
241
|
+
@jsii.member(jsii_name="titleInput")
|
|
242
|
+
def title_input(self) -> typing.Optional[builtins.str]:
|
|
243
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "titleInput"))
|
|
244
|
+
|
|
245
|
+
@builtins.property
|
|
246
|
+
@jsii.member(jsii_name="typeInput")
|
|
247
|
+
def type_input(self) -> typing.Optional[builtins.str]:
|
|
248
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "typeInput"))
|
|
249
|
+
|
|
250
|
+
@builtins.property
|
|
251
|
+
@jsii.member(jsii_name="zoneInput")
|
|
252
|
+
def zone_input(self) -> typing.Optional[builtins.str]:
|
|
253
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "zoneInput"))
|
|
254
|
+
|
|
255
|
+
@builtins.property
|
|
256
|
+
@jsii.member(jsii_name="accessType")
|
|
257
|
+
def access_type(self) -> builtins.str:
|
|
258
|
+
return typing.cast(builtins.str, jsii.get(self, "accessType"))
|
|
259
|
+
|
|
260
|
+
@access_type.setter
|
|
261
|
+
def access_type(self, value: builtins.str) -> None:
|
|
262
|
+
if __debug__:
|
|
263
|
+
type_hints = typing.get_type_hints(_typecheckingstub__33a17fd731db18ae4bb90beca899131e843209ac3c5cccfc043a919889bc49e5)
|
|
264
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
265
|
+
jsii.set(self, "accessType", value) # pyright: ignore[reportArgumentType]
|
|
266
|
+
|
|
267
|
+
@builtins.property
|
|
268
|
+
@jsii.member(jsii_name="id")
|
|
269
|
+
def id(self) -> builtins.str:
|
|
270
|
+
return typing.cast(builtins.str, jsii.get(self, "id"))
|
|
271
|
+
|
|
272
|
+
@id.setter
|
|
273
|
+
def id(self, value: builtins.str) -> None:
|
|
274
|
+
if __debug__:
|
|
275
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1f88182489362c6672aa9f6d00c5016afe28b9c3a4413d599f2a21acb38b435e)
|
|
276
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
277
|
+
jsii.set(self, "id", value) # pyright: ignore[reportArgumentType]
|
|
278
|
+
|
|
279
|
+
@builtins.property
|
|
280
|
+
@jsii.member(jsii_name="mostRecent")
|
|
281
|
+
def most_recent(self) -> typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]:
|
|
282
|
+
return typing.cast(typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable], jsii.get(self, "mostRecent"))
|
|
283
|
+
|
|
284
|
+
@most_recent.setter
|
|
285
|
+
def most_recent(
|
|
286
|
+
self,
|
|
287
|
+
value: typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable],
|
|
288
|
+
) -> None:
|
|
289
|
+
if __debug__:
|
|
290
|
+
type_hints = typing.get_type_hints(_typecheckingstub__8ece074a74d70b09f152385956c784df201601a4b697aac64b691e8510dec1c8)
|
|
291
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
292
|
+
jsii.set(self, "mostRecent", value) # pyright: ignore[reportArgumentType]
|
|
293
|
+
|
|
294
|
+
@builtins.property
|
|
295
|
+
@jsii.member(jsii_name="name")
|
|
296
|
+
def name(self) -> builtins.str:
|
|
297
|
+
return typing.cast(builtins.str, jsii.get(self, "name"))
|
|
298
|
+
|
|
299
|
+
@name.setter
|
|
300
|
+
def name(self, value: builtins.str) -> None:
|
|
301
|
+
if __debug__:
|
|
302
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9c86622743a1ef20d15a14886822a90e7a58cd286e60227ec46cc8b6473d94f3)
|
|
303
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
304
|
+
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
305
|
+
|
|
306
|
+
@builtins.property
|
|
307
|
+
@jsii.member(jsii_name="nameRegex")
|
|
308
|
+
def name_regex(self) -> builtins.str:
|
|
309
|
+
return typing.cast(builtins.str, jsii.get(self, "nameRegex"))
|
|
310
|
+
|
|
311
|
+
@name_regex.setter
|
|
312
|
+
def name_regex(self, value: builtins.str) -> None:
|
|
313
|
+
if __debug__:
|
|
314
|
+
type_hints = typing.get_type_hints(_typecheckingstub__600d8c2c85159f4e28c67546470c51a0ddbb2df44c08205f3c9b3cc9ab49ccc5)
|
|
315
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
316
|
+
jsii.set(self, "nameRegex", value) # pyright: ignore[reportArgumentType]
|
|
317
|
+
|
|
318
|
+
@builtins.property
|
|
319
|
+
@jsii.member(jsii_name="title")
|
|
320
|
+
def title(self) -> builtins.str:
|
|
321
|
+
return typing.cast(builtins.str, jsii.get(self, "title"))
|
|
322
|
+
|
|
323
|
+
@title.setter
|
|
324
|
+
def title(self, value: builtins.str) -> None:
|
|
325
|
+
if __debug__:
|
|
326
|
+
type_hints = typing.get_type_hints(_typecheckingstub__e4dd32457dd3eee86af11d3e9a0d67c12d8393235ad5106bea1047f08a485ad0)
|
|
327
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
328
|
+
jsii.set(self, "title", value) # pyright: ignore[reportArgumentType]
|
|
329
|
+
|
|
330
|
+
@builtins.property
|
|
331
|
+
@jsii.member(jsii_name="type")
|
|
332
|
+
def type(self) -> builtins.str:
|
|
333
|
+
return typing.cast(builtins.str, jsii.get(self, "type"))
|
|
334
|
+
|
|
335
|
+
@type.setter
|
|
336
|
+
def type(self, value: builtins.str) -> None:
|
|
337
|
+
if __debug__:
|
|
338
|
+
type_hints = typing.get_type_hints(_typecheckingstub__252f54234afff9bedab90401e88af6110a25dc97f86fb7a091b34b24cb3b1fb5)
|
|
339
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
340
|
+
jsii.set(self, "type", value) # pyright: ignore[reportArgumentType]
|
|
341
|
+
|
|
342
|
+
@builtins.property
|
|
343
|
+
@jsii.member(jsii_name="zone")
|
|
344
|
+
def zone(self) -> builtins.str:
|
|
345
|
+
return typing.cast(builtins.str, jsii.get(self, "zone"))
|
|
346
|
+
|
|
347
|
+
@zone.setter
|
|
348
|
+
def zone(self, value: builtins.str) -> None:
|
|
349
|
+
if __debug__:
|
|
350
|
+
type_hints = typing.get_type_hints(_typecheckingstub__35e5a88025b5a62639c370fc1242b547dab1664b575a9a7f43e1a78ce1ab0739)
|
|
351
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
352
|
+
jsii.set(self, "zone", value) # pyright: ignore[reportArgumentType]
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
@jsii.data_type(
|
|
356
|
+
jsii_type="@cdktf/provider-upcloud.dataUpcloudStorage.DataUpcloudStorageConfig",
|
|
357
|
+
jsii_struct_bases=[_cdktf_9a9027ec.TerraformMetaArguments],
|
|
358
|
+
name_mapping={
|
|
359
|
+
"connection": "connection",
|
|
360
|
+
"count": "count",
|
|
361
|
+
"depends_on": "dependsOn",
|
|
362
|
+
"for_each": "forEach",
|
|
363
|
+
"lifecycle": "lifecycle",
|
|
364
|
+
"provider": "provider",
|
|
365
|
+
"provisioners": "provisioners",
|
|
366
|
+
"access_type": "accessType",
|
|
367
|
+
"id": "id",
|
|
368
|
+
"most_recent": "mostRecent",
|
|
369
|
+
"name": "name",
|
|
370
|
+
"name_regex": "nameRegex",
|
|
371
|
+
"title": "title",
|
|
372
|
+
"type": "type",
|
|
373
|
+
"zone": "zone",
|
|
374
|
+
},
|
|
375
|
+
)
|
|
376
|
+
class DataUpcloudStorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
377
|
+
def __init__(
|
|
378
|
+
self,
|
|
379
|
+
*,
|
|
380
|
+
connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
381
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
|
382
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
|
383
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
|
384
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
385
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
386
|
+
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,
|
|
387
|
+
access_type: typing.Optional[builtins.str] = None,
|
|
388
|
+
id: typing.Optional[builtins.str] = None,
|
|
389
|
+
most_recent: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
390
|
+
name: typing.Optional[builtins.str] = None,
|
|
391
|
+
name_regex: typing.Optional[builtins.str] = None,
|
|
392
|
+
title: typing.Optional[builtins.str] = None,
|
|
393
|
+
type: typing.Optional[builtins.str] = None,
|
|
394
|
+
zone: typing.Optional[builtins.str] = None,
|
|
395
|
+
) -> None:
|
|
396
|
+
'''
|
|
397
|
+
:param connection:
|
|
398
|
+
:param count:
|
|
399
|
+
:param depends_on:
|
|
400
|
+
:param for_each:
|
|
401
|
+
:param lifecycle:
|
|
402
|
+
:param provider:
|
|
403
|
+
:param provisioners:
|
|
404
|
+
:param access_type: The access type of the storage, ``public`` or ``private``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#access_type DataUpcloudStorage#access_type}
|
|
405
|
+
:param id: UUID of the storage. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#id DataUpcloudStorage#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.
|
|
406
|
+
:param most_recent: If more than one result is returned, use the most recent storage. This is only useful with private storages. Public storages might give unpredictable results. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#most_recent DataUpcloudStorage#most_recent}
|
|
407
|
+
:param name: Exact name of the storage (same as title). Deprecated, use ``title`` instead. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#name DataUpcloudStorage#name}
|
|
408
|
+
:param name_regex: Use regular expression to match storage name. Deprecated, use exact title or UUID instead. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#name_regex DataUpcloudStorage#name_regex}
|
|
409
|
+
:param title: The title of the storage. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#title DataUpcloudStorage#title}
|
|
410
|
+
:param type: The type of the storage. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#type DataUpcloudStorage#type}
|
|
411
|
+
:param zone: The zone the storage is in, e.g. ``de-fra1``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#zone DataUpcloudStorage#zone}
|
|
412
|
+
'''
|
|
413
|
+
if isinstance(lifecycle, dict):
|
|
414
|
+
lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
|
|
415
|
+
if __debug__:
|
|
416
|
+
type_hints = typing.get_type_hints(_typecheckingstub__fa213ec8cd9f5546c1b7692a48e06c0e229e1891b7e5764746b86f4855fb3298)
|
|
417
|
+
check_type(argname="argument connection", value=connection, expected_type=type_hints["connection"])
|
|
418
|
+
check_type(argname="argument count", value=count, expected_type=type_hints["count"])
|
|
419
|
+
check_type(argname="argument depends_on", value=depends_on, expected_type=type_hints["depends_on"])
|
|
420
|
+
check_type(argname="argument for_each", value=for_each, expected_type=type_hints["for_each"])
|
|
421
|
+
check_type(argname="argument lifecycle", value=lifecycle, expected_type=type_hints["lifecycle"])
|
|
422
|
+
check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
|
|
423
|
+
check_type(argname="argument provisioners", value=provisioners, expected_type=type_hints["provisioners"])
|
|
424
|
+
check_type(argname="argument access_type", value=access_type, expected_type=type_hints["access_type"])
|
|
425
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
426
|
+
check_type(argname="argument most_recent", value=most_recent, expected_type=type_hints["most_recent"])
|
|
427
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
428
|
+
check_type(argname="argument name_regex", value=name_regex, expected_type=type_hints["name_regex"])
|
|
429
|
+
check_type(argname="argument title", value=title, expected_type=type_hints["title"])
|
|
430
|
+
check_type(argname="argument type", value=type, expected_type=type_hints["type"])
|
|
431
|
+
check_type(argname="argument zone", value=zone, expected_type=type_hints["zone"])
|
|
432
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
433
|
+
if connection is not None:
|
|
434
|
+
self._values["connection"] = connection
|
|
435
|
+
if count is not None:
|
|
436
|
+
self._values["count"] = count
|
|
437
|
+
if depends_on is not None:
|
|
438
|
+
self._values["depends_on"] = depends_on
|
|
439
|
+
if for_each is not None:
|
|
440
|
+
self._values["for_each"] = for_each
|
|
441
|
+
if lifecycle is not None:
|
|
442
|
+
self._values["lifecycle"] = lifecycle
|
|
443
|
+
if provider is not None:
|
|
444
|
+
self._values["provider"] = provider
|
|
445
|
+
if provisioners is not None:
|
|
446
|
+
self._values["provisioners"] = provisioners
|
|
447
|
+
if access_type is not None:
|
|
448
|
+
self._values["access_type"] = access_type
|
|
449
|
+
if id is not None:
|
|
450
|
+
self._values["id"] = id
|
|
451
|
+
if most_recent is not None:
|
|
452
|
+
self._values["most_recent"] = most_recent
|
|
453
|
+
if name is not None:
|
|
454
|
+
self._values["name"] = name
|
|
455
|
+
if name_regex is not None:
|
|
456
|
+
self._values["name_regex"] = name_regex
|
|
457
|
+
if title is not None:
|
|
458
|
+
self._values["title"] = title
|
|
459
|
+
if type is not None:
|
|
460
|
+
self._values["type"] = type
|
|
461
|
+
if zone is not None:
|
|
462
|
+
self._values["zone"] = zone
|
|
463
|
+
|
|
464
|
+
@builtins.property
|
|
465
|
+
def connection(
|
|
466
|
+
self,
|
|
467
|
+
) -> typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]]:
|
|
468
|
+
'''
|
|
469
|
+
:stability: experimental
|
|
470
|
+
'''
|
|
471
|
+
result = self._values.get("connection")
|
|
472
|
+
return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]], result)
|
|
473
|
+
|
|
474
|
+
@builtins.property
|
|
475
|
+
def count(
|
|
476
|
+
self,
|
|
477
|
+
) -> typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]]:
|
|
478
|
+
'''
|
|
479
|
+
:stability: experimental
|
|
480
|
+
'''
|
|
481
|
+
result = self._values.get("count")
|
|
482
|
+
return typing.cast(typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]], result)
|
|
483
|
+
|
|
484
|
+
@builtins.property
|
|
485
|
+
def depends_on(
|
|
486
|
+
self,
|
|
487
|
+
) -> typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]]:
|
|
488
|
+
'''
|
|
489
|
+
:stability: experimental
|
|
490
|
+
'''
|
|
491
|
+
result = self._values.get("depends_on")
|
|
492
|
+
return typing.cast(typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]], result)
|
|
493
|
+
|
|
494
|
+
@builtins.property
|
|
495
|
+
def for_each(self) -> typing.Optional[_cdktf_9a9027ec.ITerraformIterator]:
|
|
496
|
+
'''
|
|
497
|
+
:stability: experimental
|
|
498
|
+
'''
|
|
499
|
+
result = self._values.get("for_each")
|
|
500
|
+
return typing.cast(typing.Optional[_cdktf_9a9027ec.ITerraformIterator], result)
|
|
501
|
+
|
|
502
|
+
@builtins.property
|
|
503
|
+
def lifecycle(self) -> typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle]:
|
|
504
|
+
'''
|
|
505
|
+
:stability: experimental
|
|
506
|
+
'''
|
|
507
|
+
result = self._values.get("lifecycle")
|
|
508
|
+
return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle], result)
|
|
509
|
+
|
|
510
|
+
@builtins.property
|
|
511
|
+
def provider(self) -> typing.Optional[_cdktf_9a9027ec.TerraformProvider]:
|
|
512
|
+
'''
|
|
513
|
+
:stability: experimental
|
|
514
|
+
'''
|
|
515
|
+
result = self._values.get("provider")
|
|
516
|
+
return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformProvider], result)
|
|
517
|
+
|
|
518
|
+
@builtins.property
|
|
519
|
+
def provisioners(
|
|
520
|
+
self,
|
|
521
|
+
) -> typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]]:
|
|
522
|
+
'''
|
|
523
|
+
:stability: experimental
|
|
524
|
+
'''
|
|
525
|
+
result = self._values.get("provisioners")
|
|
526
|
+
return typing.cast(typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]], result)
|
|
527
|
+
|
|
528
|
+
@builtins.property
|
|
529
|
+
def access_type(self) -> typing.Optional[builtins.str]:
|
|
530
|
+
'''The access type of the storage, ``public`` or ``private``.
|
|
531
|
+
|
|
532
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#access_type DataUpcloudStorage#access_type}
|
|
533
|
+
'''
|
|
534
|
+
result = self._values.get("access_type")
|
|
535
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
536
|
+
|
|
537
|
+
@builtins.property
|
|
538
|
+
def id(self) -> typing.Optional[builtins.str]:
|
|
539
|
+
'''UUID of the storage.
|
|
540
|
+
|
|
541
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#id DataUpcloudStorage#id}
|
|
542
|
+
|
|
543
|
+
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
544
|
+
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.
|
|
545
|
+
'''
|
|
546
|
+
result = self._values.get("id")
|
|
547
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
548
|
+
|
|
549
|
+
@builtins.property
|
|
550
|
+
def most_recent(
|
|
551
|
+
self,
|
|
552
|
+
) -> typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]]:
|
|
553
|
+
'''If more than one result is returned, use the most recent storage.
|
|
554
|
+
|
|
555
|
+
This is only useful with private storages. Public storages might give unpredictable results.
|
|
556
|
+
|
|
557
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#most_recent DataUpcloudStorage#most_recent}
|
|
558
|
+
'''
|
|
559
|
+
result = self._values.get("most_recent")
|
|
560
|
+
return typing.cast(typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]], result)
|
|
561
|
+
|
|
562
|
+
@builtins.property
|
|
563
|
+
def name(self) -> typing.Optional[builtins.str]:
|
|
564
|
+
'''Exact name of the storage (same as title). Deprecated, use ``title`` instead.
|
|
565
|
+
|
|
566
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#name DataUpcloudStorage#name}
|
|
567
|
+
'''
|
|
568
|
+
result = self._values.get("name")
|
|
569
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
570
|
+
|
|
571
|
+
@builtins.property
|
|
572
|
+
def name_regex(self) -> typing.Optional[builtins.str]:
|
|
573
|
+
'''Use regular expression to match storage name. Deprecated, use exact title or UUID instead.
|
|
574
|
+
|
|
575
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#name_regex DataUpcloudStorage#name_regex}
|
|
576
|
+
'''
|
|
577
|
+
result = self._values.get("name_regex")
|
|
578
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
579
|
+
|
|
580
|
+
@builtins.property
|
|
581
|
+
def title(self) -> typing.Optional[builtins.str]:
|
|
582
|
+
'''The title of the storage.
|
|
583
|
+
|
|
584
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#title DataUpcloudStorage#title}
|
|
585
|
+
'''
|
|
586
|
+
result = self._values.get("title")
|
|
587
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
588
|
+
|
|
589
|
+
@builtins.property
|
|
590
|
+
def type(self) -> typing.Optional[builtins.str]:
|
|
591
|
+
'''The type of the storage.
|
|
592
|
+
|
|
593
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#type DataUpcloudStorage#type}
|
|
594
|
+
'''
|
|
595
|
+
result = self._values.get("type")
|
|
596
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
597
|
+
|
|
598
|
+
@builtins.property
|
|
599
|
+
def zone(self) -> typing.Optional[builtins.str]:
|
|
600
|
+
'''The zone the storage is in, e.g. ``de-fra1``.
|
|
601
|
+
|
|
602
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/data-sources/storage#zone DataUpcloudStorage#zone}
|
|
603
|
+
'''
|
|
604
|
+
result = self._values.get("zone")
|
|
605
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
606
|
+
|
|
607
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
608
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
609
|
+
|
|
610
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
611
|
+
return not (rhs == self)
|
|
612
|
+
|
|
613
|
+
def __repr__(self) -> str:
|
|
614
|
+
return "DataUpcloudStorageConfig(%s)" % ", ".join(
|
|
615
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
616
|
+
)
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
__all__ = [
|
|
620
|
+
"DataUpcloudStorage",
|
|
621
|
+
"DataUpcloudStorageConfig",
|
|
622
|
+
]
|
|
623
|
+
|
|
624
|
+
publication.publish()
|
|
625
|
+
|
|
626
|
+
def _typecheckingstub__039ab20792080076b79d7c009c33daad19d751b6de0de5df5c5d3102c2e2d077(
|
|
627
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
628
|
+
id_: builtins.str,
|
|
629
|
+
*,
|
|
630
|
+
access_type: typing.Optional[builtins.str] = None,
|
|
631
|
+
id: typing.Optional[builtins.str] = None,
|
|
632
|
+
most_recent: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
633
|
+
name: typing.Optional[builtins.str] = None,
|
|
634
|
+
name_regex: typing.Optional[builtins.str] = None,
|
|
635
|
+
title: typing.Optional[builtins.str] = None,
|
|
636
|
+
type: typing.Optional[builtins.str] = None,
|
|
637
|
+
zone: typing.Optional[builtins.str] = None,
|
|
638
|
+
connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
639
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
|
640
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
|
641
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
|
642
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
643
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
644
|
+
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,
|
|
645
|
+
) -> None:
|
|
646
|
+
"""Type checking stubs"""
|
|
647
|
+
pass
|
|
648
|
+
|
|
649
|
+
def _typecheckingstub__fe49471c2556ea60a922246f93ed9840ed2c8313f5a730d8f2457e5c12661703(
|
|
650
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
651
|
+
import_to_id: builtins.str,
|
|
652
|
+
import_from_id: builtins.str,
|
|
653
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
654
|
+
) -> None:
|
|
655
|
+
"""Type checking stubs"""
|
|
656
|
+
pass
|
|
657
|
+
|
|
658
|
+
def _typecheckingstub__33a17fd731db18ae4bb90beca899131e843209ac3c5cccfc043a919889bc49e5(
|
|
659
|
+
value: builtins.str,
|
|
660
|
+
) -> None:
|
|
661
|
+
"""Type checking stubs"""
|
|
662
|
+
pass
|
|
663
|
+
|
|
664
|
+
def _typecheckingstub__1f88182489362c6672aa9f6d00c5016afe28b9c3a4413d599f2a21acb38b435e(
|
|
665
|
+
value: builtins.str,
|
|
666
|
+
) -> None:
|
|
667
|
+
"""Type checking stubs"""
|
|
668
|
+
pass
|
|
669
|
+
|
|
670
|
+
def _typecheckingstub__8ece074a74d70b09f152385956c784df201601a4b697aac64b691e8510dec1c8(
|
|
671
|
+
value: typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable],
|
|
672
|
+
) -> None:
|
|
673
|
+
"""Type checking stubs"""
|
|
674
|
+
pass
|
|
675
|
+
|
|
676
|
+
def _typecheckingstub__9c86622743a1ef20d15a14886822a90e7a58cd286e60227ec46cc8b6473d94f3(
|
|
677
|
+
value: builtins.str,
|
|
678
|
+
) -> None:
|
|
679
|
+
"""Type checking stubs"""
|
|
680
|
+
pass
|
|
681
|
+
|
|
682
|
+
def _typecheckingstub__600d8c2c85159f4e28c67546470c51a0ddbb2df44c08205f3c9b3cc9ab49ccc5(
|
|
683
|
+
value: builtins.str,
|
|
684
|
+
) -> None:
|
|
685
|
+
"""Type checking stubs"""
|
|
686
|
+
pass
|
|
687
|
+
|
|
688
|
+
def _typecheckingstub__e4dd32457dd3eee86af11d3e9a0d67c12d8393235ad5106bea1047f08a485ad0(
|
|
689
|
+
value: builtins.str,
|
|
690
|
+
) -> None:
|
|
691
|
+
"""Type checking stubs"""
|
|
692
|
+
pass
|
|
693
|
+
|
|
694
|
+
def _typecheckingstub__252f54234afff9bedab90401e88af6110a25dc97f86fb7a091b34b24cb3b1fb5(
|
|
695
|
+
value: builtins.str,
|
|
696
|
+
) -> None:
|
|
697
|
+
"""Type checking stubs"""
|
|
698
|
+
pass
|
|
699
|
+
|
|
700
|
+
def _typecheckingstub__35e5a88025b5a62639c370fc1242b547dab1664b575a9a7f43e1a78ce1ab0739(
|
|
701
|
+
value: builtins.str,
|
|
702
|
+
) -> None:
|
|
703
|
+
"""Type checking stubs"""
|
|
704
|
+
pass
|
|
705
|
+
|
|
706
|
+
def _typecheckingstub__fa213ec8cd9f5546c1b7692a48e06c0e229e1891b7e5764746b86f4855fb3298(
|
|
707
|
+
*,
|
|
708
|
+
connection: typing.Optional[typing.Union[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.WinrmProvisionerConnection, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
709
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
|
710
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
|
711
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
|
712
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
713
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
714
|
+
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,
|
|
715
|
+
access_type: typing.Optional[builtins.str] = None,
|
|
716
|
+
id: typing.Optional[builtins.str] = None,
|
|
717
|
+
most_recent: typing.Optional[typing.Union[builtins.bool, _cdktf_9a9027ec.IResolvable]] = None,
|
|
718
|
+
name: typing.Optional[builtins.str] = None,
|
|
719
|
+
name_regex: typing.Optional[builtins.str] = None,
|
|
720
|
+
title: typing.Optional[builtins.str] = None,
|
|
721
|
+
type: typing.Optional[builtins.str] = None,
|
|
722
|
+
zone: typing.Optional[builtins.str] = None,
|
|
723
|
+
) -> None:
|
|
724
|
+
"""Type checking stubs"""
|
|
725
|
+
pass
|