cdktf-cdktf-provider-upcloud 15.5.0__py3-none-any.whl → 15.6.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.

Files changed (69) hide show
  1. cdktf_cdktf_provider_upcloud/__init__.py +3 -5
  2. cdktf_cdktf_provider_upcloud/_jsii/__init__.py +2 -2
  3. cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@15.6.0.jsii.tgz +0 -0
  4. cdktf_cdktf_provider_upcloud/data_upcloud_hosts/__init__.py +9 -9
  5. cdktf_cdktf_provider_upcloud/data_upcloud_ip_addresses/__init__.py +7 -7
  6. cdktf_cdktf_provider_upcloud/data_upcloud_kubernetes_cluster/__init__.py +7 -7
  7. cdktf_cdktf_provider_upcloud/data_upcloud_load_balancer_dns_challenge_domain/__init__.py +4 -4
  8. cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_mysql_sessions/__init__.py +22 -22
  9. cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_opensearch_indices/__init__.py +13 -13
  10. cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_postgresql_sessions/__init__.py +30 -30
  11. cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_redis_sessions/__init__.py +22 -22
  12. cdktf_cdktf_provider_upcloud/data_upcloud_managed_database_valkey_sessions/__init__.py +22 -22
  13. cdktf_cdktf_provider_upcloud/data_upcloud_managed_object_storage_policies/__init__.py +10 -10
  14. cdktf_cdktf_provider_upcloud/data_upcloud_managed_object_storage_regions/__init__.py +7 -7
  15. cdktf_cdktf_provider_upcloud/data_upcloud_networks/__init__.py +13 -13
  16. cdktf_cdktf_provider_upcloud/data_upcloud_storage/__init__.py +28 -28
  17. cdktf_cdktf_provider_upcloud/data_upcloud_tags/__init__.py +7 -7
  18. cdktf_cdktf_provider_upcloud/data_upcloud_zone/__init__.py +10 -10
  19. cdktf_cdktf_provider_upcloud/data_upcloud_zones/__init__.py +7 -7
  20. cdktf_cdktf_provider_upcloud/firewall_rules/__init__.py +38 -38
  21. cdktf_cdktf_provider_upcloud/floating_ip_address/__init__.py +19 -19
  22. cdktf_cdktf_provider_upcloud/gateway/__init__.py +37 -37
  23. cdktf_cdktf_provider_upcloud/gateway_connection/__init__.py +34 -34
  24. cdktf_cdktf_provider_upcloud/gateway_connection_tunnel/__init__.py +61 -61
  25. cdktf_cdktf_provider_upcloud/kubernetes_cluster/__init__.py +34 -34
  26. cdktf_cdktf_provider_upcloud/kubernetes_node_group/__init__.py +72 -72
  27. cdktf_cdktf_provider_upcloud/loadbalancer/__init__.py +46 -46
  28. cdktf_cdktf_provider_upcloud/loadbalancer_backend/__init__.py +46 -46
  29. cdktf_cdktf_provider_upcloud/loadbalancer_backend_tls_config/__init__.py +13 -13
  30. cdktf_cdktf_provider_upcloud/loadbalancer_dynamic_backend_member/__init__.py +25 -25
  31. cdktf_cdktf_provider_upcloud/loadbalancer_dynamic_certificate_bundle/__init__.py +13 -13
  32. cdktf_cdktf_provider_upcloud/loadbalancer_frontend/__init__.py +33 -33
  33. cdktf_cdktf_provider_upcloud/loadbalancer_frontend_rule/__init__.py +228 -228
  34. cdktf_cdktf_provider_upcloud/loadbalancer_frontend_tls_config/__init__.py +13 -13
  35. cdktf_cdktf_provider_upcloud/loadbalancer_manual_certificate_bundle/__init__.py +16 -16
  36. cdktf_cdktf_provider_upcloud/loadbalancer_resolver/__init__.py +28 -28
  37. cdktf_cdktf_provider_upcloud/loadbalancer_static_backend_member/__init__.py +25 -25
  38. cdktf_cdktf_provider_upcloud/managed_database_logical_database/__init__.py +19 -19
  39. cdktf_cdktf_provider_upcloud/managed_database_mysql/__init__.py +260 -211
  40. cdktf_cdktf_provider_upcloud/managed_database_opensearch/__init__.py +650 -601
  41. cdktf_cdktf_provider_upcloud/managed_database_postgresql/__init__.py +416 -367
  42. cdktf_cdktf_provider_upcloud/managed_database_redis/__init__.py +180 -133
  43. cdktf_cdktf_provider_upcloud/managed_database_user/__init__.py +65 -65
  44. cdktf_cdktf_provider_upcloud/managed_database_valkey/__init__.py +183 -136
  45. cdktf_cdktf_provider_upcloud/managed_object_storage/__init__.py +30 -30
  46. cdktf_cdktf_provider_upcloud/managed_object_storage_bucket/__init__.py +10 -10
  47. cdktf_cdktf_provider_upcloud/managed_object_storage_custom_domain/__init__.py +13 -13
  48. cdktf_cdktf_provider_upcloud/managed_object_storage_policy/__init__.py +16 -16
  49. cdktf_cdktf_provider_upcloud/managed_object_storage_user/__init__.py +13 -13
  50. cdktf_cdktf_provider_upcloud/managed_object_storage_user_access_key/__init__.py +16 -16
  51. cdktf_cdktf_provider_upcloud/managed_object_storage_user_policy/__init__.py +16 -16
  52. cdktf_cdktf_provider_upcloud/network/__init__.py +50 -50
  53. cdktf_cdktf_provider_upcloud/network_peering/__init__.py +23 -23
  54. cdktf_cdktf_provider_upcloud/provider/__init__.py +28 -28
  55. cdktf_cdktf_provider_upcloud/router/__init__.py +19 -19
  56. cdktf_cdktf_provider_upcloud/server/__init__.py +139 -139
  57. cdktf_cdktf_provider_upcloud/server_group/__init__.py +19 -19
  58. cdktf_cdktf_provider_upcloud/storage/__init__.py +51 -51
  59. cdktf_cdktf_provider_upcloud/storage_backup/__init__.py +13 -13
  60. cdktf_cdktf_provider_upcloud/storage_template/__init__.py +13 -13
  61. cdktf_cdktf_provider_upcloud/tag/__init__.py +16 -16
  62. {cdktf_cdktf_provider_upcloud-15.5.0.dist-info → cdktf_cdktf_provider_upcloud-15.6.0.dist-info}/METADATA +5 -5
  63. cdktf_cdktf_provider_upcloud-15.6.0.dist-info/RECORD +67 -0
  64. cdktf_cdktf_provider_upcloud/_jsii/provider-upcloud@15.5.0.jsii.tgz +0 -0
  65. cdktf_cdktf_provider_upcloud/object_storage/__init__.py +0 -966
  66. cdktf_cdktf_provider_upcloud-15.5.0.dist-info/RECORD +0 -68
  67. {cdktf_cdktf_provider_upcloud-15.5.0.dist-info → cdktf_cdktf_provider_upcloud-15.6.0.dist-info}/LICENSE +0 -0
  68. {cdktf_cdktf_provider_upcloud-15.5.0.dist-info → cdktf_cdktf_provider_upcloud-15.6.0.dist-info}/WHEEL +0 -0
  69. {cdktf_cdktf_provider_upcloud-15.5.0.dist-info → cdktf_cdktf_provider_upcloud-15.6.0.dist-info}/top_level.txt +0 -0
@@ -1,966 +0,0 @@
1
- r'''
2
- # `upcloud_object_storage`
3
-
4
- Refer to the Terraform Registry for docs: [`upcloud_object_storage`](https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_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 ObjectStorage(
43
- _cdktf_9a9027ec.TerraformResource,
44
- metaclass=jsii.JSIIMeta,
45
- jsii_type="@cdktf/provider-upcloud.objectStorage.ObjectStorage",
46
- ):
47
- '''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage upcloud_object_storage}.'''
48
-
49
- def __init__(
50
- self,
51
- scope: _constructs_77d1e7e8.Construct,
52
- id_: builtins.str,
53
- *,
54
- access_key: builtins.str,
55
- name: builtins.str,
56
- secret_key: builtins.str,
57
- size: jsii.Number,
58
- zone: builtins.str,
59
- bucket: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union["ObjectStorageBucket", typing.Dict[builtins.str, typing.Any]]]]] = None,
60
- description: typing.Optional[builtins.str] = None,
61
- id: 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.28.0/docs/resources/object_storage upcloud_object_storage} Resource.
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_key: The access key used to identify user. Can be set to an empty string, which will tell the provider to get the access key from environment variable. The environment variable should be "UPCLOUD_OBJECT_STORAGE_ACCESS_KEY_{name}". {name} is the name given to object storage instance (so not the resource label), it should be all uppercased and all dashes (-) should be replaced with underscores (_). For example, object storage named "my-files" would use environment variable named "UPCLOUD_OBJECT_STORAGE_ACCESS_KEY_MY_FILES". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#access_key ObjectStorage#access_key}
75
- :param name: The name of the object storage instance to be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#name ObjectStorage#name}
76
- :param secret_key: The secret key used to authenticate user. Can be set to an empty string, which will tell the provider to get the secret key from environment variable. The environment variable should be "UPCLOUD_OBJECT_STORAGE_SECRET_KEY_{name}". {name} is the name given to object storage instance (so not the resource label), it should be all uppercased and all dashes (-) should be replaced with underscores (_). For example, object storage named "my-files" would use environment variable named "UPCLOUD_OBJECT_STORAGE_SECRET_KEY_MY_FILES". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#secret_key ObjectStorage#secret_key}
77
- :param size: The size of the object storage instance in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#size ObjectStorage#size}
78
- :param zone: The zone in which the object storage instance will be created, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#zone ObjectStorage#zone}
79
- :param bucket: bucket block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#bucket ObjectStorage#bucket}
80
- :param description: The description of the object storage instance to be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#description ObjectStorage#description}
81
- :param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#id ObjectStorage#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.
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__e0023614946f41c7d987ea6a52270bcd3905f2d3b0f23fd11f9df9d74feabac0)
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 = ObjectStorageConfig(
95
- access_key=access_key,
96
- name=name,
97
- secret_key=secret_key,
98
- size=size,
99
- zone=zone,
100
- bucket=bucket,
101
- description=description,
102
- id=id,
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 ObjectStorage 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 ObjectStorage to import.
127
- :param import_from_id: The id of the existing ObjectStorage that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_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 ObjectStorage to import is found.
129
- '''
130
- if __debug__:
131
- type_hints = typing.get_type_hints(_typecheckingstub__045c39fd88a9eb7b1b51f3971ec5551c10d4f02c1446a07eb3695c390ba4d194)
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="putBucket")
139
- def put_bucket(
140
- self,
141
- value: typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union["ObjectStorageBucket", typing.Dict[builtins.str, typing.Any]]]],
142
- ) -> None:
143
- '''
144
- :param value: -
145
- '''
146
- if __debug__:
147
- type_hints = typing.get_type_hints(_typecheckingstub__62672839a416cab93eea2bede064d506d8d2fb6bf77afd2d87bcf6343ba04c5a)
148
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
149
- return typing.cast(None, jsii.invoke(self, "putBucket", [value]))
150
-
151
- @jsii.member(jsii_name="resetBucket")
152
- def reset_bucket(self) -> None:
153
- return typing.cast(None, jsii.invoke(self, "resetBucket", []))
154
-
155
- @jsii.member(jsii_name="resetDescription")
156
- def reset_description(self) -> None:
157
- return typing.cast(None, jsii.invoke(self, "resetDescription", []))
158
-
159
- @jsii.member(jsii_name="resetId")
160
- def reset_id(self) -> None:
161
- return typing.cast(None, jsii.invoke(self, "resetId", []))
162
-
163
- @jsii.member(jsii_name="synthesizeAttributes")
164
- def _synthesize_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
165
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeAttributes", []))
166
-
167
- @jsii.member(jsii_name="synthesizeHclAttributes")
168
- def _synthesize_hcl_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
169
- return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeHclAttributes", []))
170
-
171
- @jsii.python.classproperty
172
- @jsii.member(jsii_name="tfResourceType")
173
- def TF_RESOURCE_TYPE(cls) -> builtins.str:
174
- return typing.cast(builtins.str, jsii.sget(cls, "tfResourceType"))
175
-
176
- @builtins.property
177
- @jsii.member(jsii_name="bucket")
178
- def bucket(self) -> "ObjectStorageBucketList":
179
- return typing.cast("ObjectStorageBucketList", jsii.get(self, "bucket"))
180
-
181
- @builtins.property
182
- @jsii.member(jsii_name="created")
183
- def created(self) -> builtins.str:
184
- return typing.cast(builtins.str, jsii.get(self, "created"))
185
-
186
- @builtins.property
187
- @jsii.member(jsii_name="state")
188
- def state(self) -> builtins.str:
189
- return typing.cast(builtins.str, jsii.get(self, "state"))
190
-
191
- @builtins.property
192
- @jsii.member(jsii_name="url")
193
- def url(self) -> builtins.str:
194
- return typing.cast(builtins.str, jsii.get(self, "url"))
195
-
196
- @builtins.property
197
- @jsii.member(jsii_name="usedSpace")
198
- def used_space(self) -> jsii.Number:
199
- return typing.cast(jsii.Number, jsii.get(self, "usedSpace"))
200
-
201
- @builtins.property
202
- @jsii.member(jsii_name="accessKeyInput")
203
- def access_key_input(self) -> typing.Optional[builtins.str]:
204
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "accessKeyInput"))
205
-
206
- @builtins.property
207
- @jsii.member(jsii_name="bucketInput")
208
- def bucket_input(
209
- self,
210
- ) -> typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List["ObjectStorageBucket"]]]:
211
- return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List["ObjectStorageBucket"]]], jsii.get(self, "bucketInput"))
212
-
213
- @builtins.property
214
- @jsii.member(jsii_name="descriptionInput")
215
- def description_input(self) -> typing.Optional[builtins.str]:
216
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "descriptionInput"))
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="nameInput")
225
- def name_input(self) -> typing.Optional[builtins.str]:
226
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "nameInput"))
227
-
228
- @builtins.property
229
- @jsii.member(jsii_name="secretKeyInput")
230
- def secret_key_input(self) -> typing.Optional[builtins.str]:
231
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "secretKeyInput"))
232
-
233
- @builtins.property
234
- @jsii.member(jsii_name="sizeInput")
235
- def size_input(self) -> typing.Optional[jsii.Number]:
236
- return typing.cast(typing.Optional[jsii.Number], jsii.get(self, "sizeInput"))
237
-
238
- @builtins.property
239
- @jsii.member(jsii_name="zoneInput")
240
- def zone_input(self) -> typing.Optional[builtins.str]:
241
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "zoneInput"))
242
-
243
- @builtins.property
244
- @jsii.member(jsii_name="accessKey")
245
- def access_key(self) -> builtins.str:
246
- return typing.cast(builtins.str, jsii.get(self, "accessKey"))
247
-
248
- @access_key.setter
249
- def access_key(self, value: builtins.str) -> None:
250
- if __debug__:
251
- type_hints = typing.get_type_hints(_typecheckingstub__c2c48d9634a939fa4715f38d855d3a0f84061e86d1078ea8995a530224dbb946)
252
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
253
- jsii.set(self, "accessKey", value) # pyright: ignore[reportArgumentType]
254
-
255
- @builtins.property
256
- @jsii.member(jsii_name="description")
257
- def description(self) -> builtins.str:
258
- return typing.cast(builtins.str, jsii.get(self, "description"))
259
-
260
- @description.setter
261
- def description(self, value: builtins.str) -> None:
262
- if __debug__:
263
- type_hints = typing.get_type_hints(_typecheckingstub__f084b9014d0259d5f99fd734b220494f028ea5f5bb178a54f4d2eda9f27175ce)
264
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
265
- jsii.set(self, "description", 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__23a1bbcc4b1cfff8c5220bc404c03c1e4a704319ad6489beef2642032e4c9ea9)
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="name")
281
- def name(self) -> builtins.str:
282
- return typing.cast(builtins.str, jsii.get(self, "name"))
283
-
284
- @name.setter
285
- def name(self, value: builtins.str) -> None:
286
- if __debug__:
287
- type_hints = typing.get_type_hints(_typecheckingstub__3e6a877dd2bb113dc638910735d90c13e7036a8dc61f7507dc1df6d30b968d94)
288
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
289
- jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
290
-
291
- @builtins.property
292
- @jsii.member(jsii_name="secretKey")
293
- def secret_key(self) -> builtins.str:
294
- return typing.cast(builtins.str, jsii.get(self, "secretKey"))
295
-
296
- @secret_key.setter
297
- def secret_key(self, value: builtins.str) -> None:
298
- if __debug__:
299
- type_hints = typing.get_type_hints(_typecheckingstub__c287efcb8a264fcd9d9285b2c45a8fd21fe6c50115519909f4b59c4280bee7ca)
300
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
301
- jsii.set(self, "secretKey", value) # pyright: ignore[reportArgumentType]
302
-
303
- @builtins.property
304
- @jsii.member(jsii_name="size")
305
- def size(self) -> jsii.Number:
306
- return typing.cast(jsii.Number, jsii.get(self, "size"))
307
-
308
- @size.setter
309
- def size(self, value: jsii.Number) -> None:
310
- if __debug__:
311
- type_hints = typing.get_type_hints(_typecheckingstub__5f987a53bec8f280c64ed71abaf58676a5cd1f5c61536ef171055e26945fba63)
312
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
313
- jsii.set(self, "size", value) # pyright: ignore[reportArgumentType]
314
-
315
- @builtins.property
316
- @jsii.member(jsii_name="zone")
317
- def zone(self) -> builtins.str:
318
- return typing.cast(builtins.str, jsii.get(self, "zone"))
319
-
320
- @zone.setter
321
- def zone(self, value: builtins.str) -> None:
322
- if __debug__:
323
- type_hints = typing.get_type_hints(_typecheckingstub__2f89f1d7a7095397cfdd6d480e0edeaf25f15143cf87f7e6e910a21c4a4bab2d)
324
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
325
- jsii.set(self, "zone", value) # pyright: ignore[reportArgumentType]
326
-
327
-
328
- @jsii.data_type(
329
- jsii_type="@cdktf/provider-upcloud.objectStorage.ObjectStorageBucket",
330
- jsii_struct_bases=[],
331
- name_mapping={"name": "name"},
332
- )
333
- class ObjectStorageBucket:
334
- def __init__(self, *, name: builtins.str) -> None:
335
- '''
336
- :param name: The name of the bucket. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#name ObjectStorage#name}
337
- '''
338
- if __debug__:
339
- type_hints = typing.get_type_hints(_typecheckingstub__76363c1fb14ca2363d352380e624359e962fa25498e592051a720a4f8b2e2470)
340
- check_type(argname="argument name", value=name, expected_type=type_hints["name"])
341
- self._values: typing.Dict[builtins.str, typing.Any] = {
342
- "name": name,
343
- }
344
-
345
- @builtins.property
346
- def name(self) -> builtins.str:
347
- '''The name of the bucket.
348
-
349
- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#name ObjectStorage#name}
350
- '''
351
- result = self._values.get("name")
352
- assert result is not None, "Required property 'name' is missing"
353
- return typing.cast(builtins.str, result)
354
-
355
- def __eq__(self, rhs: typing.Any) -> builtins.bool:
356
- return isinstance(rhs, self.__class__) and rhs._values == self._values
357
-
358
- def __ne__(self, rhs: typing.Any) -> builtins.bool:
359
- return not (rhs == self)
360
-
361
- def __repr__(self) -> str:
362
- return "ObjectStorageBucket(%s)" % ", ".join(
363
- k + "=" + repr(v) for k, v in self._values.items()
364
- )
365
-
366
-
367
- class ObjectStorageBucketList(
368
- _cdktf_9a9027ec.ComplexList,
369
- metaclass=jsii.JSIIMeta,
370
- jsii_type="@cdktf/provider-upcloud.objectStorage.ObjectStorageBucketList",
371
- ):
372
- def __init__(
373
- self,
374
- terraform_resource: _cdktf_9a9027ec.IInterpolatingParent,
375
- terraform_attribute: builtins.str,
376
- wraps_set: builtins.bool,
377
- ) -> None:
378
- '''
379
- :param terraform_resource: The parent resource.
380
- :param terraform_attribute: The attribute on the parent resource this class is referencing.
381
- :param wraps_set: whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
382
- '''
383
- if __debug__:
384
- type_hints = typing.get_type_hints(_typecheckingstub__77b71ee603dccb9b037796d8add55e57029158a31e0d84725f9e3075709e0fe8)
385
- check_type(argname="argument terraform_resource", value=terraform_resource, expected_type=type_hints["terraform_resource"])
386
- check_type(argname="argument terraform_attribute", value=terraform_attribute, expected_type=type_hints["terraform_attribute"])
387
- check_type(argname="argument wraps_set", value=wraps_set, expected_type=type_hints["wraps_set"])
388
- jsii.create(self.__class__, self, [terraform_resource, terraform_attribute, wraps_set])
389
-
390
- @jsii.member(jsii_name="get")
391
- def get(self, index: jsii.Number) -> "ObjectStorageBucketOutputReference":
392
- '''
393
- :param index: the index of the item to return.
394
- '''
395
- if __debug__:
396
- type_hints = typing.get_type_hints(_typecheckingstub__485d4370e454c2f867047446c9d31a2d0cfba0a311ff3494e3b9276c8f873fd8)
397
- check_type(argname="argument index", value=index, expected_type=type_hints["index"])
398
- return typing.cast("ObjectStorageBucketOutputReference", jsii.invoke(self, "get", [index]))
399
-
400
- @builtins.property
401
- @jsii.member(jsii_name="terraformAttribute")
402
- def _terraform_attribute(self) -> builtins.str:
403
- '''The attribute on the parent resource this class is referencing.'''
404
- return typing.cast(builtins.str, jsii.get(self, "terraformAttribute"))
405
-
406
- @_terraform_attribute.setter
407
- def _terraform_attribute(self, value: builtins.str) -> None:
408
- if __debug__:
409
- type_hints = typing.get_type_hints(_typecheckingstub__0155b7722a4b9746293c13ce552722262bf612a2cd63479488e5c5450c899657)
410
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
411
- jsii.set(self, "terraformAttribute", value) # pyright: ignore[reportArgumentType]
412
-
413
- @builtins.property
414
- @jsii.member(jsii_name="terraformResource")
415
- def _terraform_resource(self) -> _cdktf_9a9027ec.IInterpolatingParent:
416
- '''The parent resource.'''
417
- return typing.cast(_cdktf_9a9027ec.IInterpolatingParent, jsii.get(self, "terraformResource"))
418
-
419
- @_terraform_resource.setter
420
- def _terraform_resource(self, value: _cdktf_9a9027ec.IInterpolatingParent) -> None:
421
- if __debug__:
422
- type_hints = typing.get_type_hints(_typecheckingstub__ccc7fe96692b4fb4e53c47aa4b2e706791987084abef431b9b7122e664684908)
423
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
424
- jsii.set(self, "terraformResource", value) # pyright: ignore[reportArgumentType]
425
-
426
- @builtins.property
427
- @jsii.member(jsii_name="wrapsSet")
428
- def _wraps_set(self) -> builtins.bool:
429
- '''whether the list is wrapping a set (will add tolist() to be able to access an item via an index).'''
430
- return typing.cast(builtins.bool, jsii.get(self, "wrapsSet"))
431
-
432
- @_wraps_set.setter
433
- def _wraps_set(self, value: builtins.bool) -> None:
434
- if __debug__:
435
- type_hints = typing.get_type_hints(_typecheckingstub__0a35f6aed3e53576f41cdcfb35d338453a9200cc78c9bc763d351cfdaf45f53a)
436
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
437
- jsii.set(self, "wrapsSet", value) # pyright: ignore[reportArgumentType]
438
-
439
- @builtins.property
440
- @jsii.member(jsii_name="internalValue")
441
- def internal_value(
442
- self,
443
- ) -> typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List[ObjectStorageBucket]]]:
444
- return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List[ObjectStorageBucket]]], jsii.get(self, "internalValue"))
445
-
446
- @internal_value.setter
447
- def internal_value(
448
- self,
449
- value: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List[ObjectStorageBucket]]],
450
- ) -> None:
451
- if __debug__:
452
- type_hints = typing.get_type_hints(_typecheckingstub__7aa384e1dab4c64cfd138b4c3b2c36ef8dffec407f485df806de34a146b75a55)
453
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
454
- jsii.set(self, "internalValue", value) # pyright: ignore[reportArgumentType]
455
-
456
-
457
- class ObjectStorageBucketOutputReference(
458
- _cdktf_9a9027ec.ComplexObject,
459
- metaclass=jsii.JSIIMeta,
460
- jsii_type="@cdktf/provider-upcloud.objectStorage.ObjectStorageBucketOutputReference",
461
- ):
462
- def __init__(
463
- self,
464
- terraform_resource: _cdktf_9a9027ec.IInterpolatingParent,
465
- terraform_attribute: builtins.str,
466
- complex_object_index: jsii.Number,
467
- complex_object_is_from_set: builtins.bool,
468
- ) -> None:
469
- '''
470
- :param terraform_resource: The parent resource.
471
- :param terraform_attribute: The attribute on the parent resource this class is referencing.
472
- :param complex_object_index: the index of this item in the list.
473
- :param complex_object_is_from_set: whether the list is wrapping a set (will add tolist() to be able to access an item via an index).
474
- '''
475
- if __debug__:
476
- type_hints = typing.get_type_hints(_typecheckingstub__8aa1cc027a7384abf2e1155f9c6c4e325b39675ea8952985af3b566fad9244e5)
477
- check_type(argname="argument terraform_resource", value=terraform_resource, expected_type=type_hints["terraform_resource"])
478
- check_type(argname="argument terraform_attribute", value=terraform_attribute, expected_type=type_hints["terraform_attribute"])
479
- check_type(argname="argument complex_object_index", value=complex_object_index, expected_type=type_hints["complex_object_index"])
480
- check_type(argname="argument complex_object_is_from_set", value=complex_object_is_from_set, expected_type=type_hints["complex_object_is_from_set"])
481
- jsii.create(self.__class__, self, [terraform_resource, terraform_attribute, complex_object_index, complex_object_is_from_set])
482
-
483
- @builtins.property
484
- @jsii.member(jsii_name="nameInput")
485
- def name_input(self) -> typing.Optional[builtins.str]:
486
- return typing.cast(typing.Optional[builtins.str], jsii.get(self, "nameInput"))
487
-
488
- @builtins.property
489
- @jsii.member(jsii_name="name")
490
- def name(self) -> builtins.str:
491
- return typing.cast(builtins.str, jsii.get(self, "name"))
492
-
493
- @name.setter
494
- def name(self, value: builtins.str) -> None:
495
- if __debug__:
496
- type_hints = typing.get_type_hints(_typecheckingstub__a0ce3fb5497c86820a207ee0a83cc3e11860148dc92560325ba89abb16a41b8e)
497
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
498
- jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
499
-
500
- @builtins.property
501
- @jsii.member(jsii_name="internalValue")
502
- def internal_value(
503
- self,
504
- ) -> typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, ObjectStorageBucket]]:
505
- return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, ObjectStorageBucket]], jsii.get(self, "internalValue"))
506
-
507
- @internal_value.setter
508
- def internal_value(
509
- self,
510
- value: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, ObjectStorageBucket]],
511
- ) -> None:
512
- if __debug__:
513
- type_hints = typing.get_type_hints(_typecheckingstub__0a8cf1822128684748b52554b516054c67523a89d7c7b86bad6739051eb0cf20)
514
- check_type(argname="argument value", value=value, expected_type=type_hints["value"])
515
- jsii.set(self, "internalValue", value) # pyright: ignore[reportArgumentType]
516
-
517
-
518
- @jsii.data_type(
519
- jsii_type="@cdktf/provider-upcloud.objectStorage.ObjectStorageConfig",
520
- jsii_struct_bases=[_cdktf_9a9027ec.TerraformMetaArguments],
521
- name_mapping={
522
- "connection": "connection",
523
- "count": "count",
524
- "depends_on": "dependsOn",
525
- "for_each": "forEach",
526
- "lifecycle": "lifecycle",
527
- "provider": "provider",
528
- "provisioners": "provisioners",
529
- "access_key": "accessKey",
530
- "name": "name",
531
- "secret_key": "secretKey",
532
- "size": "size",
533
- "zone": "zone",
534
- "bucket": "bucket",
535
- "description": "description",
536
- "id": "id",
537
- },
538
- )
539
- class ObjectStorageConfig(_cdktf_9a9027ec.TerraformMetaArguments):
540
- def __init__(
541
- self,
542
- *,
543
- 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,
544
- count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
545
- depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
546
- for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
547
- lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
548
- provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
549
- 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,
550
- access_key: builtins.str,
551
- name: builtins.str,
552
- secret_key: builtins.str,
553
- size: jsii.Number,
554
- zone: builtins.str,
555
- bucket: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union[ObjectStorageBucket, typing.Dict[builtins.str, typing.Any]]]]] = None,
556
- description: typing.Optional[builtins.str] = None,
557
- id: typing.Optional[builtins.str] = None,
558
- ) -> None:
559
- '''
560
- :param connection:
561
- :param count:
562
- :param depends_on:
563
- :param for_each:
564
- :param lifecycle:
565
- :param provider:
566
- :param provisioners:
567
- :param access_key: The access key used to identify user. Can be set to an empty string, which will tell the provider to get the access key from environment variable. The environment variable should be "UPCLOUD_OBJECT_STORAGE_ACCESS_KEY_{name}". {name} is the name given to object storage instance (so not the resource label), it should be all uppercased and all dashes (-) should be replaced with underscores (_). For example, object storage named "my-files" would use environment variable named "UPCLOUD_OBJECT_STORAGE_ACCESS_KEY_MY_FILES". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#access_key ObjectStorage#access_key}
568
- :param name: The name of the object storage instance to be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#name ObjectStorage#name}
569
- :param secret_key: The secret key used to authenticate user. Can be set to an empty string, which will tell the provider to get the secret key from environment variable. The environment variable should be "UPCLOUD_OBJECT_STORAGE_SECRET_KEY_{name}". {name} is the name given to object storage instance (so not the resource label), it should be all uppercased and all dashes (-) should be replaced with underscores (_). For example, object storage named "my-files" would use environment variable named "UPCLOUD_OBJECT_STORAGE_SECRET_KEY_MY_FILES". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#secret_key ObjectStorage#secret_key}
570
- :param size: The size of the object storage instance in gigabytes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#size ObjectStorage#size}
571
- :param zone: The zone in which the object storage instance will be created, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#zone ObjectStorage#zone}
572
- :param bucket: bucket block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#bucket ObjectStorage#bucket}
573
- :param description: The description of the object storage instance to be created. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#description ObjectStorage#description}
574
- :param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#id ObjectStorage#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.
575
- '''
576
- if isinstance(lifecycle, dict):
577
- lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
578
- if __debug__:
579
- type_hints = typing.get_type_hints(_typecheckingstub__27f08d1e0514d598ec053f1124e86ced299dca3ce0d819f18e5fb90446389dbd)
580
- check_type(argname="argument connection", value=connection, expected_type=type_hints["connection"])
581
- check_type(argname="argument count", value=count, expected_type=type_hints["count"])
582
- check_type(argname="argument depends_on", value=depends_on, expected_type=type_hints["depends_on"])
583
- check_type(argname="argument for_each", value=for_each, expected_type=type_hints["for_each"])
584
- check_type(argname="argument lifecycle", value=lifecycle, expected_type=type_hints["lifecycle"])
585
- check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
586
- check_type(argname="argument provisioners", value=provisioners, expected_type=type_hints["provisioners"])
587
- check_type(argname="argument access_key", value=access_key, expected_type=type_hints["access_key"])
588
- check_type(argname="argument name", value=name, expected_type=type_hints["name"])
589
- check_type(argname="argument secret_key", value=secret_key, expected_type=type_hints["secret_key"])
590
- check_type(argname="argument size", value=size, expected_type=type_hints["size"])
591
- check_type(argname="argument zone", value=zone, expected_type=type_hints["zone"])
592
- check_type(argname="argument bucket", value=bucket, expected_type=type_hints["bucket"])
593
- check_type(argname="argument description", value=description, expected_type=type_hints["description"])
594
- check_type(argname="argument id", value=id, expected_type=type_hints["id"])
595
- self._values: typing.Dict[builtins.str, typing.Any] = {
596
- "access_key": access_key,
597
- "name": name,
598
- "secret_key": secret_key,
599
- "size": size,
600
- "zone": zone,
601
- }
602
- if connection is not None:
603
- self._values["connection"] = connection
604
- if count is not None:
605
- self._values["count"] = count
606
- if depends_on is not None:
607
- self._values["depends_on"] = depends_on
608
- if for_each is not None:
609
- self._values["for_each"] = for_each
610
- if lifecycle is not None:
611
- self._values["lifecycle"] = lifecycle
612
- if provider is not None:
613
- self._values["provider"] = provider
614
- if provisioners is not None:
615
- self._values["provisioners"] = provisioners
616
- if bucket is not None:
617
- self._values["bucket"] = bucket
618
- if description is not None:
619
- self._values["description"] = description
620
- if id is not None:
621
- self._values["id"] = id
622
-
623
- @builtins.property
624
- def connection(
625
- self,
626
- ) -> typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]]:
627
- '''
628
- :stability: experimental
629
- '''
630
- result = self._values.get("connection")
631
- return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]], result)
632
-
633
- @builtins.property
634
- def count(
635
- self,
636
- ) -> typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]]:
637
- '''
638
- :stability: experimental
639
- '''
640
- result = self._values.get("count")
641
- return typing.cast(typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]], result)
642
-
643
- @builtins.property
644
- def depends_on(
645
- self,
646
- ) -> typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]]:
647
- '''
648
- :stability: experimental
649
- '''
650
- result = self._values.get("depends_on")
651
- return typing.cast(typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]], result)
652
-
653
- @builtins.property
654
- def for_each(self) -> typing.Optional[_cdktf_9a9027ec.ITerraformIterator]:
655
- '''
656
- :stability: experimental
657
- '''
658
- result = self._values.get("for_each")
659
- return typing.cast(typing.Optional[_cdktf_9a9027ec.ITerraformIterator], result)
660
-
661
- @builtins.property
662
- def lifecycle(self) -> typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle]:
663
- '''
664
- :stability: experimental
665
- '''
666
- result = self._values.get("lifecycle")
667
- return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle], result)
668
-
669
- @builtins.property
670
- def provider(self) -> typing.Optional[_cdktf_9a9027ec.TerraformProvider]:
671
- '''
672
- :stability: experimental
673
- '''
674
- result = self._values.get("provider")
675
- return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformProvider], result)
676
-
677
- @builtins.property
678
- def provisioners(
679
- self,
680
- ) -> typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]]:
681
- '''
682
- :stability: experimental
683
- '''
684
- result = self._values.get("provisioners")
685
- return typing.cast(typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]], result)
686
-
687
- @builtins.property
688
- def access_key(self) -> builtins.str:
689
- '''The access key used to identify user.
690
-
691
- Can be set to an empty string, which will tell the provider to get the access key from environment variable.
692
- The environment variable should be "UPCLOUD_OBJECT_STORAGE_ACCESS_KEY_{name}".
693
- {name} is the name given to object storage instance (so not the resource label), it should be all uppercased
694
- and all dashes (-) should be replaced with underscores (_). For example, object storage named "my-files" would
695
- use environment variable named "UPCLOUD_OBJECT_STORAGE_ACCESS_KEY_MY_FILES".
696
-
697
- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#access_key ObjectStorage#access_key}
698
- '''
699
- result = self._values.get("access_key")
700
- assert result is not None, "Required property 'access_key' is missing"
701
- return typing.cast(builtins.str, result)
702
-
703
- @builtins.property
704
- def name(self) -> builtins.str:
705
- '''The name of the object storage instance to be created.
706
-
707
- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#name ObjectStorage#name}
708
- '''
709
- result = self._values.get("name")
710
- assert result is not None, "Required property 'name' is missing"
711
- return typing.cast(builtins.str, result)
712
-
713
- @builtins.property
714
- def secret_key(self) -> builtins.str:
715
- '''The secret key used to authenticate user.
716
-
717
- Can be set to an empty string, which will tell the provider to get the secret key from environment variable.
718
- The environment variable should be "UPCLOUD_OBJECT_STORAGE_SECRET_KEY_{name}".
719
- {name} is the name given to object storage instance (so not the resource label), it should be all uppercased
720
- and all dashes (-) should be replaced with underscores (_). For example, object storage named "my-files" would
721
- use environment variable named "UPCLOUD_OBJECT_STORAGE_SECRET_KEY_MY_FILES".
722
-
723
- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#secret_key ObjectStorage#secret_key}
724
- '''
725
- result = self._values.get("secret_key")
726
- assert result is not None, "Required property 'secret_key' is missing"
727
- return typing.cast(builtins.str, result)
728
-
729
- @builtins.property
730
- def size(self) -> jsii.Number:
731
- '''The size of the object storage instance in gigabytes.
732
-
733
- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#size ObjectStorage#size}
734
- '''
735
- result = self._values.get("size")
736
- assert result is not None, "Required property 'size' is missing"
737
- return typing.cast(jsii.Number, result)
738
-
739
- @builtins.property
740
- def zone(self) -> builtins.str:
741
- '''The zone in which the object storage instance will be created, e.g. ``de-fra1``. You can list available zones with ``upctl zone list``.
742
-
743
- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#zone ObjectStorage#zone}
744
- '''
745
- result = self._values.get("zone")
746
- assert result is not None, "Required property 'zone' is missing"
747
- return typing.cast(builtins.str, result)
748
-
749
- @builtins.property
750
- def bucket(
751
- self,
752
- ) -> typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List[ObjectStorageBucket]]]:
753
- '''bucket block.
754
-
755
- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#bucket ObjectStorage#bucket}
756
- '''
757
- result = self._values.get("bucket")
758
- return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List[ObjectStorageBucket]]], result)
759
-
760
- @builtins.property
761
- def description(self) -> typing.Optional[builtins.str]:
762
- '''The description of the object storage instance to be created.
763
-
764
- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#description ObjectStorage#description}
765
- '''
766
- result = self._values.get("description")
767
- return typing.cast(typing.Optional[builtins.str], result)
768
-
769
- @builtins.property
770
- def id(self) -> typing.Optional[builtins.str]:
771
- '''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.28.0/docs/resources/object_storage#id ObjectStorage#id}.
772
-
773
- Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
774
- 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.
775
- '''
776
- result = self._values.get("id")
777
- return typing.cast(typing.Optional[builtins.str], result)
778
-
779
- def __eq__(self, rhs: typing.Any) -> builtins.bool:
780
- return isinstance(rhs, self.__class__) and rhs._values == self._values
781
-
782
- def __ne__(self, rhs: typing.Any) -> builtins.bool:
783
- return not (rhs == self)
784
-
785
- def __repr__(self) -> str:
786
- return "ObjectStorageConfig(%s)" % ", ".join(
787
- k + "=" + repr(v) for k, v in self._values.items()
788
- )
789
-
790
-
791
- __all__ = [
792
- "ObjectStorage",
793
- "ObjectStorageBucket",
794
- "ObjectStorageBucketList",
795
- "ObjectStorageBucketOutputReference",
796
- "ObjectStorageConfig",
797
- ]
798
-
799
- publication.publish()
800
-
801
- def _typecheckingstub__e0023614946f41c7d987ea6a52270bcd3905f2d3b0f23fd11f9df9d74feabac0(
802
- scope: _constructs_77d1e7e8.Construct,
803
- id_: builtins.str,
804
- *,
805
- access_key: builtins.str,
806
- name: builtins.str,
807
- secret_key: builtins.str,
808
- size: jsii.Number,
809
- zone: builtins.str,
810
- bucket: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union[ObjectStorageBucket, typing.Dict[builtins.str, typing.Any]]]]] = None,
811
- description: typing.Optional[builtins.str] = None,
812
- id: typing.Optional[builtins.str] = None,
813
- 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,
814
- count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
815
- depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
816
- for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
817
- lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
818
- provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
819
- 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,
820
- ) -> None:
821
- """Type checking stubs"""
822
- pass
823
-
824
- def _typecheckingstub__045c39fd88a9eb7b1b51f3971ec5551c10d4f02c1446a07eb3695c390ba4d194(
825
- scope: _constructs_77d1e7e8.Construct,
826
- import_to_id: builtins.str,
827
- import_from_id: builtins.str,
828
- provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
829
- ) -> None:
830
- """Type checking stubs"""
831
- pass
832
-
833
- def _typecheckingstub__62672839a416cab93eea2bede064d506d8d2fb6bf77afd2d87bcf6343ba04c5a(
834
- value: typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union[ObjectStorageBucket, typing.Dict[builtins.str, typing.Any]]]],
835
- ) -> None:
836
- """Type checking stubs"""
837
- pass
838
-
839
- def _typecheckingstub__c2c48d9634a939fa4715f38d855d3a0f84061e86d1078ea8995a530224dbb946(
840
- value: builtins.str,
841
- ) -> None:
842
- """Type checking stubs"""
843
- pass
844
-
845
- def _typecheckingstub__f084b9014d0259d5f99fd734b220494f028ea5f5bb178a54f4d2eda9f27175ce(
846
- value: builtins.str,
847
- ) -> None:
848
- """Type checking stubs"""
849
- pass
850
-
851
- def _typecheckingstub__23a1bbcc4b1cfff8c5220bc404c03c1e4a704319ad6489beef2642032e4c9ea9(
852
- value: builtins.str,
853
- ) -> None:
854
- """Type checking stubs"""
855
- pass
856
-
857
- def _typecheckingstub__3e6a877dd2bb113dc638910735d90c13e7036a8dc61f7507dc1df6d30b968d94(
858
- value: builtins.str,
859
- ) -> None:
860
- """Type checking stubs"""
861
- pass
862
-
863
- def _typecheckingstub__c287efcb8a264fcd9d9285b2c45a8fd21fe6c50115519909f4b59c4280bee7ca(
864
- value: builtins.str,
865
- ) -> None:
866
- """Type checking stubs"""
867
- pass
868
-
869
- def _typecheckingstub__5f987a53bec8f280c64ed71abaf58676a5cd1f5c61536ef171055e26945fba63(
870
- value: jsii.Number,
871
- ) -> None:
872
- """Type checking stubs"""
873
- pass
874
-
875
- def _typecheckingstub__2f89f1d7a7095397cfdd6d480e0edeaf25f15143cf87f7e6e910a21c4a4bab2d(
876
- value: builtins.str,
877
- ) -> None:
878
- """Type checking stubs"""
879
- pass
880
-
881
- def _typecheckingstub__76363c1fb14ca2363d352380e624359e962fa25498e592051a720a4f8b2e2470(
882
- *,
883
- name: builtins.str,
884
- ) -> None:
885
- """Type checking stubs"""
886
- pass
887
-
888
- def _typecheckingstub__77b71ee603dccb9b037796d8add55e57029158a31e0d84725f9e3075709e0fe8(
889
- terraform_resource: _cdktf_9a9027ec.IInterpolatingParent,
890
- terraform_attribute: builtins.str,
891
- wraps_set: builtins.bool,
892
- ) -> None:
893
- """Type checking stubs"""
894
- pass
895
-
896
- def _typecheckingstub__485d4370e454c2f867047446c9d31a2d0cfba0a311ff3494e3b9276c8f873fd8(
897
- index: jsii.Number,
898
- ) -> None:
899
- """Type checking stubs"""
900
- pass
901
-
902
- def _typecheckingstub__0155b7722a4b9746293c13ce552722262bf612a2cd63479488e5c5450c899657(
903
- value: builtins.str,
904
- ) -> None:
905
- """Type checking stubs"""
906
- pass
907
-
908
- def _typecheckingstub__ccc7fe96692b4fb4e53c47aa4b2e706791987084abef431b9b7122e664684908(
909
- value: _cdktf_9a9027ec.IInterpolatingParent,
910
- ) -> None:
911
- """Type checking stubs"""
912
- pass
913
-
914
- def _typecheckingstub__0a35f6aed3e53576f41cdcfb35d338453a9200cc78c9bc763d351cfdaf45f53a(
915
- value: builtins.bool,
916
- ) -> None:
917
- """Type checking stubs"""
918
- pass
919
-
920
- def _typecheckingstub__7aa384e1dab4c64cfd138b4c3b2c36ef8dffec407f485df806de34a146b75a55(
921
- value: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.List[ObjectStorageBucket]]],
922
- ) -> None:
923
- """Type checking stubs"""
924
- pass
925
-
926
- def _typecheckingstub__8aa1cc027a7384abf2e1155f9c6c4e325b39675ea8952985af3b566fad9244e5(
927
- terraform_resource: _cdktf_9a9027ec.IInterpolatingParent,
928
- terraform_attribute: builtins.str,
929
- complex_object_index: jsii.Number,
930
- complex_object_is_from_set: builtins.bool,
931
- ) -> None:
932
- """Type checking stubs"""
933
- pass
934
-
935
- def _typecheckingstub__a0ce3fb5497c86820a207ee0a83cc3e11860148dc92560325ba89abb16a41b8e(
936
- value: builtins.str,
937
- ) -> None:
938
- """Type checking stubs"""
939
- pass
940
-
941
- def _typecheckingstub__0a8cf1822128684748b52554b516054c67523a89d7c7b86bad6739051eb0cf20(
942
- value: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, ObjectStorageBucket]],
943
- ) -> None:
944
- """Type checking stubs"""
945
- pass
946
-
947
- def _typecheckingstub__27f08d1e0514d598ec053f1124e86ced299dca3ce0d819f18e5fb90446389dbd(
948
- *,
949
- 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,
950
- count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
951
- depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
952
- for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
953
- lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
954
- provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
955
- 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,
956
- access_key: builtins.str,
957
- name: builtins.str,
958
- secret_key: builtins.str,
959
- size: jsii.Number,
960
- zone: builtins.str,
961
- bucket: typing.Optional[typing.Union[_cdktf_9a9027ec.IResolvable, typing.Sequence[typing.Union[ObjectStorageBucket, typing.Dict[builtins.str, typing.Any]]]]] = None,
962
- description: typing.Optional[builtins.str] = None,
963
- id: typing.Optional[builtins.str] = None,
964
- ) -> None:
965
- """Type checking stubs"""
966
- pass