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,485 @@
|
|
|
1
|
+
r'''
|
|
2
|
+
# `upcloud_managed_object_storage_user_policy`
|
|
3
|
+
|
|
4
|
+
Refer to the Terraform Registry for docs: [`upcloud_managed_object_storage_user_policy`](https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy).
|
|
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 ManagedObjectStorageUserPolicy(
|
|
43
|
+
_cdktf_9a9027ec.TerraformResource,
|
|
44
|
+
metaclass=jsii.JSIIMeta,
|
|
45
|
+
jsii_type="@cdktf/provider-upcloud.managedObjectStorageUserPolicy.ManagedObjectStorageUserPolicy",
|
|
46
|
+
):
|
|
47
|
+
'''Represents a {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy upcloud_managed_object_storage_user_policy}.'''
|
|
48
|
+
|
|
49
|
+
def __init__(
|
|
50
|
+
self,
|
|
51
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
52
|
+
id_: builtins.str,
|
|
53
|
+
*,
|
|
54
|
+
name: builtins.str,
|
|
55
|
+
service_uuid: builtins.str,
|
|
56
|
+
username: builtins.str,
|
|
57
|
+
id: typing.Optional[builtins.str] = None,
|
|
58
|
+
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,
|
|
59
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
|
60
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
|
61
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
|
62
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
63
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
64
|
+
provisioners: typing.Optional[typing.Sequence[typing.Union[typing.Union[_cdktf_9a9027ec.FileProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.LocalExecProvisioner, typing.Dict[builtins.str, typing.Any]], typing.Union[_cdktf_9a9027ec.RemoteExecProvisioner, typing.Dict[builtins.str, typing.Any]]]]] = None,
|
|
65
|
+
) -> None:
|
|
66
|
+
'''Create a new {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy upcloud_managed_object_storage_user_policy} Resource.
|
|
67
|
+
|
|
68
|
+
:param scope: The scope in which to define this construct.
|
|
69
|
+
:param id_: The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
70
|
+
:param name: Policy name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#name ManagedObjectStorageUserPolicy#name}
|
|
71
|
+
:param service_uuid: Managed Object Storage service UUID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#service_uuid ManagedObjectStorageUserPolicy#service_uuid}
|
|
72
|
+
:param username: Username. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#username ManagedObjectStorageUserPolicy#username}
|
|
73
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#id ManagedObjectStorageUserPolicy#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.
|
|
74
|
+
:param connection:
|
|
75
|
+
:param count:
|
|
76
|
+
:param depends_on:
|
|
77
|
+
:param for_each:
|
|
78
|
+
:param lifecycle:
|
|
79
|
+
:param provider:
|
|
80
|
+
:param provisioners:
|
|
81
|
+
'''
|
|
82
|
+
if __debug__:
|
|
83
|
+
type_hints = typing.get_type_hints(_typecheckingstub__90847c05c3427505028a4d07904d73b6289e3a9a349f428b24b38ee62328383f)
|
|
84
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
85
|
+
check_type(argname="argument id_", value=id_, expected_type=type_hints["id_"])
|
|
86
|
+
config = ManagedObjectStorageUserPolicyConfig(
|
|
87
|
+
name=name,
|
|
88
|
+
service_uuid=service_uuid,
|
|
89
|
+
username=username,
|
|
90
|
+
id=id,
|
|
91
|
+
connection=connection,
|
|
92
|
+
count=count,
|
|
93
|
+
depends_on=depends_on,
|
|
94
|
+
for_each=for_each,
|
|
95
|
+
lifecycle=lifecycle,
|
|
96
|
+
provider=provider,
|
|
97
|
+
provisioners=provisioners,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
jsii.create(self.__class__, self, [scope, id_, config])
|
|
101
|
+
|
|
102
|
+
@jsii.member(jsii_name="generateConfigForImport")
|
|
103
|
+
@builtins.classmethod
|
|
104
|
+
def generate_config_for_import(
|
|
105
|
+
cls,
|
|
106
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
107
|
+
import_to_id: builtins.str,
|
|
108
|
+
import_from_id: builtins.str,
|
|
109
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
110
|
+
) -> _cdktf_9a9027ec.ImportableResource:
|
|
111
|
+
'''Generates CDKTF code for importing a ManagedObjectStorageUserPolicy resource upon running "cdktf plan ".
|
|
112
|
+
|
|
113
|
+
:param scope: The scope in which to define this construct.
|
|
114
|
+
:param import_to_id: The construct id used in the generated config for the ManagedObjectStorageUserPolicy to import.
|
|
115
|
+
:param import_from_id: The id of the existing ManagedObjectStorageUserPolicy that should be imported. Refer to the {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#import import section} in the documentation of this resource for the id to use
|
|
116
|
+
:param provider: ? Optional instance of the provider where the ManagedObjectStorageUserPolicy to import is found.
|
|
117
|
+
'''
|
|
118
|
+
if __debug__:
|
|
119
|
+
type_hints = typing.get_type_hints(_typecheckingstub__93dd37dfb10e72605f3552f44cc50b5d5dd0a8571721b2bcce740867d11ca62a)
|
|
120
|
+
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
121
|
+
check_type(argname="argument import_to_id", value=import_to_id, expected_type=type_hints["import_to_id"])
|
|
122
|
+
check_type(argname="argument import_from_id", value=import_from_id, expected_type=type_hints["import_from_id"])
|
|
123
|
+
check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
|
|
124
|
+
return typing.cast(_cdktf_9a9027ec.ImportableResource, jsii.sinvoke(cls, "generateConfigForImport", [scope, import_to_id, import_from_id, provider]))
|
|
125
|
+
|
|
126
|
+
@jsii.member(jsii_name="resetId")
|
|
127
|
+
def reset_id(self) -> None:
|
|
128
|
+
return typing.cast(None, jsii.invoke(self, "resetId", []))
|
|
129
|
+
|
|
130
|
+
@jsii.member(jsii_name="synthesizeAttributes")
|
|
131
|
+
def _synthesize_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
132
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeAttributes", []))
|
|
133
|
+
|
|
134
|
+
@jsii.member(jsii_name="synthesizeHclAttributes")
|
|
135
|
+
def _synthesize_hcl_attributes(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
136
|
+
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "synthesizeHclAttributes", []))
|
|
137
|
+
|
|
138
|
+
@jsii.python.classproperty
|
|
139
|
+
@jsii.member(jsii_name="tfResourceType")
|
|
140
|
+
def TF_RESOURCE_TYPE(cls) -> builtins.str:
|
|
141
|
+
return typing.cast(builtins.str, jsii.sget(cls, "tfResourceType"))
|
|
142
|
+
|
|
143
|
+
@builtins.property
|
|
144
|
+
@jsii.member(jsii_name="idInput")
|
|
145
|
+
def id_input(self) -> typing.Optional[builtins.str]:
|
|
146
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "idInput"))
|
|
147
|
+
|
|
148
|
+
@builtins.property
|
|
149
|
+
@jsii.member(jsii_name="nameInput")
|
|
150
|
+
def name_input(self) -> typing.Optional[builtins.str]:
|
|
151
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "nameInput"))
|
|
152
|
+
|
|
153
|
+
@builtins.property
|
|
154
|
+
@jsii.member(jsii_name="serviceUuidInput")
|
|
155
|
+
def service_uuid_input(self) -> typing.Optional[builtins.str]:
|
|
156
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "serviceUuidInput"))
|
|
157
|
+
|
|
158
|
+
@builtins.property
|
|
159
|
+
@jsii.member(jsii_name="usernameInput")
|
|
160
|
+
def username_input(self) -> typing.Optional[builtins.str]:
|
|
161
|
+
return typing.cast(typing.Optional[builtins.str], jsii.get(self, "usernameInput"))
|
|
162
|
+
|
|
163
|
+
@builtins.property
|
|
164
|
+
@jsii.member(jsii_name="id")
|
|
165
|
+
def id(self) -> builtins.str:
|
|
166
|
+
return typing.cast(builtins.str, jsii.get(self, "id"))
|
|
167
|
+
|
|
168
|
+
@id.setter
|
|
169
|
+
def id(self, value: builtins.str) -> None:
|
|
170
|
+
if __debug__:
|
|
171
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4f0e461b9635a2dad276808a31c4e7d2da4bad834e36a480d7f4d8624bc819bc)
|
|
172
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
173
|
+
jsii.set(self, "id", value) # pyright: ignore[reportArgumentType]
|
|
174
|
+
|
|
175
|
+
@builtins.property
|
|
176
|
+
@jsii.member(jsii_name="name")
|
|
177
|
+
def name(self) -> builtins.str:
|
|
178
|
+
return typing.cast(builtins.str, jsii.get(self, "name"))
|
|
179
|
+
|
|
180
|
+
@name.setter
|
|
181
|
+
def name(self, value: builtins.str) -> None:
|
|
182
|
+
if __debug__:
|
|
183
|
+
type_hints = typing.get_type_hints(_typecheckingstub__6f24bb2630e83c3b5892a31d74a1879eb01dafeb0d602692170117da9a4b23b2)
|
|
184
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
185
|
+
jsii.set(self, "name", value) # pyright: ignore[reportArgumentType]
|
|
186
|
+
|
|
187
|
+
@builtins.property
|
|
188
|
+
@jsii.member(jsii_name="serviceUuid")
|
|
189
|
+
def service_uuid(self) -> builtins.str:
|
|
190
|
+
return typing.cast(builtins.str, jsii.get(self, "serviceUuid"))
|
|
191
|
+
|
|
192
|
+
@service_uuid.setter
|
|
193
|
+
def service_uuid(self, value: builtins.str) -> None:
|
|
194
|
+
if __debug__:
|
|
195
|
+
type_hints = typing.get_type_hints(_typecheckingstub__061b11cbcd6330bd81f76b5a45b6cd125c4d1cf5d3d13417b908a66f4293e76d)
|
|
196
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
197
|
+
jsii.set(self, "serviceUuid", value) # pyright: ignore[reportArgumentType]
|
|
198
|
+
|
|
199
|
+
@builtins.property
|
|
200
|
+
@jsii.member(jsii_name="username")
|
|
201
|
+
def username(self) -> builtins.str:
|
|
202
|
+
return typing.cast(builtins.str, jsii.get(self, "username"))
|
|
203
|
+
|
|
204
|
+
@username.setter
|
|
205
|
+
def username(self, value: builtins.str) -> None:
|
|
206
|
+
if __debug__:
|
|
207
|
+
type_hints = typing.get_type_hints(_typecheckingstub__09d5425d5f0d9aa638fdd606e70493ba65ca48401b60cab0396808a56bcf826e)
|
|
208
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
209
|
+
jsii.set(self, "username", value) # pyright: ignore[reportArgumentType]
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
@jsii.data_type(
|
|
213
|
+
jsii_type="@cdktf/provider-upcloud.managedObjectStorageUserPolicy.ManagedObjectStorageUserPolicyConfig",
|
|
214
|
+
jsii_struct_bases=[_cdktf_9a9027ec.TerraformMetaArguments],
|
|
215
|
+
name_mapping={
|
|
216
|
+
"connection": "connection",
|
|
217
|
+
"count": "count",
|
|
218
|
+
"depends_on": "dependsOn",
|
|
219
|
+
"for_each": "forEach",
|
|
220
|
+
"lifecycle": "lifecycle",
|
|
221
|
+
"provider": "provider",
|
|
222
|
+
"provisioners": "provisioners",
|
|
223
|
+
"name": "name",
|
|
224
|
+
"service_uuid": "serviceUuid",
|
|
225
|
+
"username": "username",
|
|
226
|
+
"id": "id",
|
|
227
|
+
},
|
|
228
|
+
)
|
|
229
|
+
class ManagedObjectStorageUserPolicyConfig(_cdktf_9a9027ec.TerraformMetaArguments):
|
|
230
|
+
def __init__(
|
|
231
|
+
self,
|
|
232
|
+
*,
|
|
233
|
+
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,
|
|
234
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
|
235
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
|
236
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
|
237
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
238
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
239
|
+
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,
|
|
240
|
+
name: builtins.str,
|
|
241
|
+
service_uuid: builtins.str,
|
|
242
|
+
username: builtins.str,
|
|
243
|
+
id: typing.Optional[builtins.str] = None,
|
|
244
|
+
) -> None:
|
|
245
|
+
'''
|
|
246
|
+
:param connection:
|
|
247
|
+
:param count:
|
|
248
|
+
:param depends_on:
|
|
249
|
+
:param for_each:
|
|
250
|
+
:param lifecycle:
|
|
251
|
+
:param provider:
|
|
252
|
+
:param provisioners:
|
|
253
|
+
:param name: Policy name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#name ManagedObjectStorageUserPolicy#name}
|
|
254
|
+
:param service_uuid: Managed Object Storage service UUID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#service_uuid ManagedObjectStorageUserPolicy#service_uuid}
|
|
255
|
+
:param username: Username. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#username ManagedObjectStorageUserPolicy#username}
|
|
256
|
+
:param id: Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#id ManagedObjectStorageUserPolicy#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.
|
|
257
|
+
'''
|
|
258
|
+
if isinstance(lifecycle, dict):
|
|
259
|
+
lifecycle = _cdktf_9a9027ec.TerraformResourceLifecycle(**lifecycle)
|
|
260
|
+
if __debug__:
|
|
261
|
+
type_hints = typing.get_type_hints(_typecheckingstub__244d07983d68096899c26c3e5ccfa1c1d9390e0173f99ee6cc7266bc90d72047)
|
|
262
|
+
check_type(argname="argument connection", value=connection, expected_type=type_hints["connection"])
|
|
263
|
+
check_type(argname="argument count", value=count, expected_type=type_hints["count"])
|
|
264
|
+
check_type(argname="argument depends_on", value=depends_on, expected_type=type_hints["depends_on"])
|
|
265
|
+
check_type(argname="argument for_each", value=for_each, expected_type=type_hints["for_each"])
|
|
266
|
+
check_type(argname="argument lifecycle", value=lifecycle, expected_type=type_hints["lifecycle"])
|
|
267
|
+
check_type(argname="argument provider", value=provider, expected_type=type_hints["provider"])
|
|
268
|
+
check_type(argname="argument provisioners", value=provisioners, expected_type=type_hints["provisioners"])
|
|
269
|
+
check_type(argname="argument name", value=name, expected_type=type_hints["name"])
|
|
270
|
+
check_type(argname="argument service_uuid", value=service_uuid, expected_type=type_hints["service_uuid"])
|
|
271
|
+
check_type(argname="argument username", value=username, expected_type=type_hints["username"])
|
|
272
|
+
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
273
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
274
|
+
"name": name,
|
|
275
|
+
"service_uuid": service_uuid,
|
|
276
|
+
"username": username,
|
|
277
|
+
}
|
|
278
|
+
if connection is not None:
|
|
279
|
+
self._values["connection"] = connection
|
|
280
|
+
if count is not None:
|
|
281
|
+
self._values["count"] = count
|
|
282
|
+
if depends_on is not None:
|
|
283
|
+
self._values["depends_on"] = depends_on
|
|
284
|
+
if for_each is not None:
|
|
285
|
+
self._values["for_each"] = for_each
|
|
286
|
+
if lifecycle is not None:
|
|
287
|
+
self._values["lifecycle"] = lifecycle
|
|
288
|
+
if provider is not None:
|
|
289
|
+
self._values["provider"] = provider
|
|
290
|
+
if provisioners is not None:
|
|
291
|
+
self._values["provisioners"] = provisioners
|
|
292
|
+
if id is not None:
|
|
293
|
+
self._values["id"] = id
|
|
294
|
+
|
|
295
|
+
@builtins.property
|
|
296
|
+
def connection(
|
|
297
|
+
self,
|
|
298
|
+
) -> typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]]:
|
|
299
|
+
'''
|
|
300
|
+
:stability: experimental
|
|
301
|
+
'''
|
|
302
|
+
result = self._values.get("connection")
|
|
303
|
+
return typing.cast(typing.Optional[typing.Union[_cdktf_9a9027ec.SSHProvisionerConnection, _cdktf_9a9027ec.WinrmProvisionerConnection]], result)
|
|
304
|
+
|
|
305
|
+
@builtins.property
|
|
306
|
+
def count(
|
|
307
|
+
self,
|
|
308
|
+
) -> typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]]:
|
|
309
|
+
'''
|
|
310
|
+
:stability: experimental
|
|
311
|
+
'''
|
|
312
|
+
result = self._values.get("count")
|
|
313
|
+
return typing.cast(typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]], result)
|
|
314
|
+
|
|
315
|
+
@builtins.property
|
|
316
|
+
def depends_on(
|
|
317
|
+
self,
|
|
318
|
+
) -> typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]]:
|
|
319
|
+
'''
|
|
320
|
+
:stability: experimental
|
|
321
|
+
'''
|
|
322
|
+
result = self._values.get("depends_on")
|
|
323
|
+
return typing.cast(typing.Optional[typing.List[_cdktf_9a9027ec.ITerraformDependable]], result)
|
|
324
|
+
|
|
325
|
+
@builtins.property
|
|
326
|
+
def for_each(self) -> typing.Optional[_cdktf_9a9027ec.ITerraformIterator]:
|
|
327
|
+
'''
|
|
328
|
+
:stability: experimental
|
|
329
|
+
'''
|
|
330
|
+
result = self._values.get("for_each")
|
|
331
|
+
return typing.cast(typing.Optional[_cdktf_9a9027ec.ITerraformIterator], result)
|
|
332
|
+
|
|
333
|
+
@builtins.property
|
|
334
|
+
def lifecycle(self) -> typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle]:
|
|
335
|
+
'''
|
|
336
|
+
:stability: experimental
|
|
337
|
+
'''
|
|
338
|
+
result = self._values.get("lifecycle")
|
|
339
|
+
return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformResourceLifecycle], result)
|
|
340
|
+
|
|
341
|
+
@builtins.property
|
|
342
|
+
def provider(self) -> typing.Optional[_cdktf_9a9027ec.TerraformProvider]:
|
|
343
|
+
'''
|
|
344
|
+
:stability: experimental
|
|
345
|
+
'''
|
|
346
|
+
result = self._values.get("provider")
|
|
347
|
+
return typing.cast(typing.Optional[_cdktf_9a9027ec.TerraformProvider], result)
|
|
348
|
+
|
|
349
|
+
@builtins.property
|
|
350
|
+
def provisioners(
|
|
351
|
+
self,
|
|
352
|
+
) -> typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]]:
|
|
353
|
+
'''
|
|
354
|
+
:stability: experimental
|
|
355
|
+
'''
|
|
356
|
+
result = self._values.get("provisioners")
|
|
357
|
+
return typing.cast(typing.Optional[typing.List[typing.Union[_cdktf_9a9027ec.FileProvisioner, _cdktf_9a9027ec.LocalExecProvisioner, _cdktf_9a9027ec.RemoteExecProvisioner]]], result)
|
|
358
|
+
|
|
359
|
+
@builtins.property
|
|
360
|
+
def name(self) -> builtins.str:
|
|
361
|
+
'''Policy name.
|
|
362
|
+
|
|
363
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#name ManagedObjectStorageUserPolicy#name}
|
|
364
|
+
'''
|
|
365
|
+
result = self._values.get("name")
|
|
366
|
+
assert result is not None, "Required property 'name' is missing"
|
|
367
|
+
return typing.cast(builtins.str, result)
|
|
368
|
+
|
|
369
|
+
@builtins.property
|
|
370
|
+
def service_uuid(self) -> builtins.str:
|
|
371
|
+
'''Managed Object Storage service UUID.
|
|
372
|
+
|
|
373
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#service_uuid ManagedObjectStorageUserPolicy#service_uuid}
|
|
374
|
+
'''
|
|
375
|
+
result = self._values.get("service_uuid")
|
|
376
|
+
assert result is not None, "Required property 'service_uuid' is missing"
|
|
377
|
+
return typing.cast(builtins.str, result)
|
|
378
|
+
|
|
379
|
+
@builtins.property
|
|
380
|
+
def username(self) -> builtins.str:
|
|
381
|
+
'''Username.
|
|
382
|
+
|
|
383
|
+
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#username ManagedObjectStorageUserPolicy#username}
|
|
384
|
+
'''
|
|
385
|
+
result = self._values.get("username")
|
|
386
|
+
assert result is not None, "Required property 'username' is missing"
|
|
387
|
+
return typing.cast(builtins.str, result)
|
|
388
|
+
|
|
389
|
+
@builtins.property
|
|
390
|
+
def id(self) -> typing.Optional[builtins.str]:
|
|
391
|
+
'''Docs at Terraform Registry: {@link https://registry.terraform.io/providers/upcloudltd/upcloud/5.31.0/docs/resources/managed_object_storage_user_policy#id ManagedObjectStorageUserPolicy#id}.
|
|
392
|
+
|
|
393
|
+
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
394
|
+
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.
|
|
395
|
+
'''
|
|
396
|
+
result = self._values.get("id")
|
|
397
|
+
return typing.cast(typing.Optional[builtins.str], result)
|
|
398
|
+
|
|
399
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
400
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
401
|
+
|
|
402
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
403
|
+
return not (rhs == self)
|
|
404
|
+
|
|
405
|
+
def __repr__(self) -> str:
|
|
406
|
+
return "ManagedObjectStorageUserPolicyConfig(%s)" % ", ".join(
|
|
407
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
408
|
+
)
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
__all__ = [
|
|
412
|
+
"ManagedObjectStorageUserPolicy",
|
|
413
|
+
"ManagedObjectStorageUserPolicyConfig",
|
|
414
|
+
]
|
|
415
|
+
|
|
416
|
+
publication.publish()
|
|
417
|
+
|
|
418
|
+
def _typecheckingstub__90847c05c3427505028a4d07904d73b6289e3a9a349f428b24b38ee62328383f(
|
|
419
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
420
|
+
id_: builtins.str,
|
|
421
|
+
*,
|
|
422
|
+
name: builtins.str,
|
|
423
|
+
service_uuid: builtins.str,
|
|
424
|
+
username: builtins.str,
|
|
425
|
+
id: typing.Optional[builtins.str] = None,
|
|
426
|
+
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,
|
|
427
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
|
428
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
|
429
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
|
430
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
431
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
432
|
+
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,
|
|
433
|
+
) -> None:
|
|
434
|
+
"""Type checking stubs"""
|
|
435
|
+
pass
|
|
436
|
+
|
|
437
|
+
def _typecheckingstub__93dd37dfb10e72605f3552f44cc50b5d5dd0a8571721b2bcce740867d11ca62a(
|
|
438
|
+
scope: _constructs_77d1e7e8.Construct,
|
|
439
|
+
import_to_id: builtins.str,
|
|
440
|
+
import_from_id: builtins.str,
|
|
441
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
442
|
+
) -> None:
|
|
443
|
+
"""Type checking stubs"""
|
|
444
|
+
pass
|
|
445
|
+
|
|
446
|
+
def _typecheckingstub__4f0e461b9635a2dad276808a31c4e7d2da4bad834e36a480d7f4d8624bc819bc(
|
|
447
|
+
value: builtins.str,
|
|
448
|
+
) -> None:
|
|
449
|
+
"""Type checking stubs"""
|
|
450
|
+
pass
|
|
451
|
+
|
|
452
|
+
def _typecheckingstub__6f24bb2630e83c3b5892a31d74a1879eb01dafeb0d602692170117da9a4b23b2(
|
|
453
|
+
value: builtins.str,
|
|
454
|
+
) -> None:
|
|
455
|
+
"""Type checking stubs"""
|
|
456
|
+
pass
|
|
457
|
+
|
|
458
|
+
def _typecheckingstub__061b11cbcd6330bd81f76b5a45b6cd125c4d1cf5d3d13417b908a66f4293e76d(
|
|
459
|
+
value: builtins.str,
|
|
460
|
+
) -> None:
|
|
461
|
+
"""Type checking stubs"""
|
|
462
|
+
pass
|
|
463
|
+
|
|
464
|
+
def _typecheckingstub__09d5425d5f0d9aa638fdd606e70493ba65ca48401b60cab0396808a56bcf826e(
|
|
465
|
+
value: builtins.str,
|
|
466
|
+
) -> None:
|
|
467
|
+
"""Type checking stubs"""
|
|
468
|
+
pass
|
|
469
|
+
|
|
470
|
+
def _typecheckingstub__244d07983d68096899c26c3e5ccfa1c1d9390e0173f99ee6cc7266bc90d72047(
|
|
471
|
+
*,
|
|
472
|
+
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,
|
|
473
|
+
count: typing.Optional[typing.Union[jsii.Number, _cdktf_9a9027ec.TerraformCount]] = None,
|
|
474
|
+
depends_on: typing.Optional[typing.Sequence[_cdktf_9a9027ec.ITerraformDependable]] = None,
|
|
475
|
+
for_each: typing.Optional[_cdktf_9a9027ec.ITerraformIterator] = None,
|
|
476
|
+
lifecycle: typing.Optional[typing.Union[_cdktf_9a9027ec.TerraformResourceLifecycle, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
477
|
+
provider: typing.Optional[_cdktf_9a9027ec.TerraformProvider] = None,
|
|
478
|
+
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,
|
|
479
|
+
name: builtins.str,
|
|
480
|
+
service_uuid: builtins.str,
|
|
481
|
+
username: builtins.str,
|
|
482
|
+
id: typing.Optional[builtins.str] = None,
|
|
483
|
+
) -> None:
|
|
484
|
+
"""Type checking stubs"""
|
|
485
|
+
pass
|