pulumi-hcloud 1.24.0a1753336797__py3-none-any.whl → 1.24.0a1753760751__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.
- pulumi_hcloud/__init__.py +1 -1
- pulumi_hcloud/_inputs.py +281 -282
- pulumi_hcloud/certificate.py +95 -96
- pulumi_hcloud/config/__init__.py +1 -1
- pulumi_hcloud/config/__init__.pyi +1 -2
- pulumi_hcloud/config/vars.py +5 -6
- pulumi_hcloud/firewall.py +41 -42
- pulumi_hcloud/firewall_attachment.py +52 -53
- pulumi_hcloud/floating_ip.py +138 -139
- pulumi_hcloud/floating_ip_assignment.py +35 -36
- pulumi_hcloud/get_certificate.py +35 -36
- pulumi_hcloud/get_certificates.py +10 -11
- pulumi_hcloud/get_datacenter.py +21 -22
- pulumi_hcloud/get_datacenters.py +10 -11
- pulumi_hcloud/get_firewall.py +33 -34
- pulumi_hcloud/get_firewalls.py +16 -17
- pulumi_hcloud/get_floating_ip.py +43 -44
- pulumi_hcloud/get_floating_ips.py +10 -11
- pulumi_hcloud/get_image.py +65 -66
- pulumi_hcloud/get_images.py +34 -35
- pulumi_hcloud/get_load_balancer.py +40 -41
- pulumi_hcloud/get_load_balancer_type.py +23 -24
- pulumi_hcloud/get_load_balancer_types.py +4 -5
- pulumi_hcloud/get_load_balancers.py +10 -11
- pulumi_hcloud/get_location.py +25 -26
- pulumi_hcloud/get_locations.py +10 -11
- pulumi_hcloud/get_network.py +37 -38
- pulumi_hcloud/get_networks.py +10 -11
- pulumi_hcloud/get_placement_group.py +39 -40
- pulumi_hcloud/get_placement_groups.py +16 -17
- pulumi_hcloud/get_primary_ip.py +45 -46
- pulumi_hcloud/get_primary_ips.py +10 -11
- pulumi_hcloud/get_server.py +70 -71
- pulumi_hcloud/get_server_type.py +35 -36
- pulumi_hcloud/get_server_types.py +10 -11
- pulumi_hcloud/get_servers.py +16 -17
- pulumi_hcloud/get_ssh_key.py +38 -39
- pulumi_hcloud/get_ssh_keys.py +15 -16
- pulumi_hcloud/get_volume.py +49 -50
- pulumi_hcloud/get_volumes.py +16 -17
- pulumi_hcloud/load_balancer.py +145 -146
- pulumi_hcloud/load_balancer_network.py +86 -87
- pulumi_hcloud/load_balancer_service.py +92 -93
- pulumi_hcloud/load_balancer_target.py +103 -104
- pulumi_hcloud/managed_certificate.py +104 -105
- pulumi_hcloud/network.py +86 -87
- pulumi_hcloud/network_route.py +52 -53
- pulumi_hcloud/network_subnet.py +93 -94
- pulumi_hcloud/outputs.py +848 -849
- pulumi_hcloud/placement_group.py +59 -60
- pulumi_hcloud/primary_ip.py +155 -156
- pulumi_hcloud/provider.py +42 -43
- pulumi_hcloud/pulumi-plugin.json +1 -1
- pulumi_hcloud/rdns.py +103 -104
- pulumi_hcloud/server.py +380 -381
- pulumi_hcloud/server_network.py +93 -94
- pulumi_hcloud/snapshot.py +52 -53
- pulumi_hcloud/ssh_key.py +92 -65
- pulumi_hcloud/uploaded_certificate.py +121 -122
- pulumi_hcloud/volume.py +146 -147
- pulumi_hcloud/volume_attachment.py +52 -53
- {pulumi_hcloud-1.24.0a1753336797.dist-info → pulumi_hcloud-1.24.0a1753760751.dist-info}/METADATA +1 -1
- pulumi_hcloud-1.24.0a1753760751.dist-info/RECORD +67 -0
- pulumi_hcloud-1.24.0a1753336797.dist-info/RECORD +0 -67
- {pulumi_hcloud-1.24.0a1753336797.dist-info → pulumi_hcloud-1.24.0a1753760751.dist-info}/WHEEL +0 -0
- {pulumi_hcloud-1.24.0a1753336797.dist-info → pulumi_hcloud-1.24.0a1753760751.dist-info}/top_level.txt +0 -0
pulumi_hcloud/snapshot.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -20,14 +19,14 @@ __all__ = ['SnapshotArgs', 'Snapshot']
|
|
20
19
|
@pulumi.input_type
|
21
20
|
class SnapshotArgs:
|
22
21
|
def __init__(__self__, *,
|
23
|
-
server_id: pulumi.Input[
|
24
|
-
description: Optional[pulumi.Input[
|
25
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
22
|
+
server_id: pulumi.Input[_builtins.int],
|
23
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
24
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None):
|
26
25
|
"""
|
27
26
|
The set of arguments for constructing a Snapshot resource.
|
28
|
-
:param pulumi.Input[
|
29
|
-
:param pulumi.Input[
|
30
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
27
|
+
:param pulumi.Input[_builtins.int] server_id: Server to the snapshot should be created from.
|
28
|
+
:param pulumi.Input[_builtins.str] description: Description of the snapshot.
|
29
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
31
30
|
"""
|
32
31
|
pulumi.set(__self__, "server_id", server_id)
|
33
32
|
if description is not None:
|
@@ -35,54 +34,54 @@ class SnapshotArgs:
|
|
35
34
|
if labels is not None:
|
36
35
|
pulumi.set(__self__, "labels", labels)
|
37
36
|
|
38
|
-
@property
|
37
|
+
@_builtins.property
|
39
38
|
@pulumi.getter(name="serverId")
|
40
|
-
def server_id(self) -> pulumi.Input[
|
39
|
+
def server_id(self) -> pulumi.Input[_builtins.int]:
|
41
40
|
"""
|
42
41
|
Server to the snapshot should be created from.
|
43
42
|
"""
|
44
43
|
return pulumi.get(self, "server_id")
|
45
44
|
|
46
45
|
@server_id.setter
|
47
|
-
def server_id(self, value: pulumi.Input[
|
46
|
+
def server_id(self, value: pulumi.Input[_builtins.int]):
|
48
47
|
pulumi.set(self, "server_id", value)
|
49
48
|
|
50
|
-
@property
|
49
|
+
@_builtins.property
|
51
50
|
@pulumi.getter
|
52
|
-
def description(self) -> Optional[pulumi.Input[
|
51
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
53
52
|
"""
|
54
53
|
Description of the snapshot.
|
55
54
|
"""
|
56
55
|
return pulumi.get(self, "description")
|
57
56
|
|
58
57
|
@description.setter
|
59
|
-
def description(self, value: Optional[pulumi.Input[
|
58
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
60
59
|
pulumi.set(self, "description", value)
|
61
60
|
|
62
|
-
@property
|
61
|
+
@_builtins.property
|
63
62
|
@pulumi.getter
|
64
|
-
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
63
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
65
64
|
"""
|
66
65
|
User-defined labels (key-value pairs) should be created with.
|
67
66
|
"""
|
68
67
|
return pulumi.get(self, "labels")
|
69
68
|
|
70
69
|
@labels.setter
|
71
|
-
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
70
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
72
71
|
pulumi.set(self, "labels", value)
|
73
72
|
|
74
73
|
|
75
74
|
@pulumi.input_type
|
76
75
|
class _SnapshotState:
|
77
76
|
def __init__(__self__, *,
|
78
|
-
description: Optional[pulumi.Input[
|
79
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
80
|
-
server_id: Optional[pulumi.Input[
|
77
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
78
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
79
|
+
server_id: Optional[pulumi.Input[_builtins.int]] = None):
|
81
80
|
"""
|
82
81
|
Input properties used for looking up and filtering Snapshot resources.
|
83
|
-
:param pulumi.Input[
|
84
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
85
|
-
:param pulumi.Input[
|
82
|
+
:param pulumi.Input[_builtins.str] description: Description of the snapshot.
|
83
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
84
|
+
:param pulumi.Input[_builtins.int] server_id: Server to the snapshot should be created from.
|
86
85
|
"""
|
87
86
|
if description is not None:
|
88
87
|
pulumi.set(__self__, "description", description)
|
@@ -91,40 +90,40 @@ class _SnapshotState:
|
|
91
90
|
if server_id is not None:
|
92
91
|
pulumi.set(__self__, "server_id", server_id)
|
93
92
|
|
94
|
-
@property
|
93
|
+
@_builtins.property
|
95
94
|
@pulumi.getter
|
96
|
-
def description(self) -> Optional[pulumi.Input[
|
95
|
+
def description(self) -> Optional[pulumi.Input[_builtins.str]]:
|
97
96
|
"""
|
98
97
|
Description of the snapshot.
|
99
98
|
"""
|
100
99
|
return pulumi.get(self, "description")
|
101
100
|
|
102
101
|
@description.setter
|
103
|
-
def description(self, value: Optional[pulumi.Input[
|
102
|
+
def description(self, value: Optional[pulumi.Input[_builtins.str]]):
|
104
103
|
pulumi.set(self, "description", value)
|
105
104
|
|
106
|
-
@property
|
105
|
+
@_builtins.property
|
107
106
|
@pulumi.getter
|
108
|
-
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
107
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
109
108
|
"""
|
110
109
|
User-defined labels (key-value pairs) should be created with.
|
111
110
|
"""
|
112
111
|
return pulumi.get(self, "labels")
|
113
112
|
|
114
113
|
@labels.setter
|
115
|
-
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
114
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
116
115
|
pulumi.set(self, "labels", value)
|
117
116
|
|
118
|
-
@property
|
117
|
+
@_builtins.property
|
119
118
|
@pulumi.getter(name="serverId")
|
120
|
-
def server_id(self) -> Optional[pulumi.Input[
|
119
|
+
def server_id(self) -> Optional[pulumi.Input[_builtins.int]]:
|
121
120
|
"""
|
122
121
|
Server to the snapshot should be created from.
|
123
122
|
"""
|
124
123
|
return pulumi.get(self, "server_id")
|
125
124
|
|
126
125
|
@server_id.setter
|
127
|
-
def server_id(self, value: Optional[pulumi.Input[
|
126
|
+
def server_id(self, value: Optional[pulumi.Input[_builtins.int]]):
|
128
127
|
pulumi.set(self, "server_id", value)
|
129
128
|
|
130
129
|
|
@@ -134,9 +133,9 @@ class Snapshot(pulumi.CustomResource):
|
|
134
133
|
def __init__(__self__,
|
135
134
|
resource_name: str,
|
136
135
|
opts: Optional[pulumi.ResourceOptions] = None,
|
137
|
-
description: Optional[pulumi.Input[
|
138
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
139
|
-
server_id: Optional[pulumi.Input[
|
136
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
137
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
138
|
+
server_id: Optional[pulumi.Input[_builtins.int]] = None,
|
140
139
|
__props__=None):
|
141
140
|
"""
|
142
141
|
Provides a Hetzner Cloud snapshot to represent an image with type snapshot in the Hetzner Cloud. This resource makes it easy to create a snapshot of your server.
|
@@ -164,9 +163,9 @@ class Snapshot(pulumi.CustomResource):
|
|
164
163
|
|
165
164
|
:param str resource_name: The name of the resource.
|
166
165
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
167
|
-
:param pulumi.Input[
|
168
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
169
|
-
:param pulumi.Input[
|
166
|
+
:param pulumi.Input[_builtins.str] description: Description of the snapshot.
|
167
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
168
|
+
:param pulumi.Input[_builtins.int] server_id: Server to the snapshot should be created from.
|
170
169
|
"""
|
171
170
|
...
|
172
171
|
@overload
|
@@ -213,9 +212,9 @@ class Snapshot(pulumi.CustomResource):
|
|
213
212
|
def _internal_init(__self__,
|
214
213
|
resource_name: str,
|
215
214
|
opts: Optional[pulumi.ResourceOptions] = None,
|
216
|
-
description: Optional[pulumi.Input[
|
217
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
218
|
-
server_id: Optional[pulumi.Input[
|
215
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
216
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
217
|
+
server_id: Optional[pulumi.Input[_builtins.int]] = None,
|
219
218
|
__props__=None):
|
220
219
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
221
220
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -240,9 +239,9 @@ class Snapshot(pulumi.CustomResource):
|
|
240
239
|
def get(resource_name: str,
|
241
240
|
id: pulumi.Input[str],
|
242
241
|
opts: Optional[pulumi.ResourceOptions] = None,
|
243
|
-
description: Optional[pulumi.Input[
|
244
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
245
|
-
server_id: Optional[pulumi.Input[
|
242
|
+
description: Optional[pulumi.Input[_builtins.str]] = None,
|
243
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
244
|
+
server_id: Optional[pulumi.Input[_builtins.int]] = None) -> 'Snapshot':
|
246
245
|
"""
|
247
246
|
Get an existing Snapshot resource's state with the given name, id, and optional extra
|
248
247
|
properties used to qualify the lookup.
|
@@ -250,9 +249,9 @@ class Snapshot(pulumi.CustomResource):
|
|
250
249
|
:param str resource_name: The unique name of the resulting resource.
|
251
250
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
252
251
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
253
|
-
:param pulumi.Input[
|
254
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
255
|
-
:param pulumi.Input[
|
252
|
+
:param pulumi.Input[_builtins.str] description: Description of the snapshot.
|
253
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined labels (key-value pairs) should be created with.
|
254
|
+
:param pulumi.Input[_builtins.int] server_id: Server to the snapshot should be created from.
|
256
255
|
"""
|
257
256
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
258
257
|
|
@@ -263,25 +262,25 @@ class Snapshot(pulumi.CustomResource):
|
|
263
262
|
__props__.__dict__["server_id"] = server_id
|
264
263
|
return Snapshot(resource_name, opts=opts, __props__=__props__)
|
265
264
|
|
266
|
-
@property
|
265
|
+
@_builtins.property
|
267
266
|
@pulumi.getter
|
268
|
-
def description(self) -> pulumi.Output[Optional[
|
267
|
+
def description(self) -> pulumi.Output[Optional[_builtins.str]]:
|
269
268
|
"""
|
270
269
|
Description of the snapshot.
|
271
270
|
"""
|
272
271
|
return pulumi.get(self, "description")
|
273
272
|
|
274
|
-
@property
|
273
|
+
@_builtins.property
|
275
274
|
@pulumi.getter
|
276
|
-
def labels(self) -> pulumi.Output[Optional[Mapping[str,
|
275
|
+
def labels(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
277
276
|
"""
|
278
277
|
User-defined labels (key-value pairs) should be created with.
|
279
278
|
"""
|
280
279
|
return pulumi.get(self, "labels")
|
281
280
|
|
282
|
-
@property
|
281
|
+
@_builtins.property
|
283
282
|
@pulumi.getter(name="serverId")
|
284
|
-
def server_id(self) -> pulumi.Output[
|
283
|
+
def server_id(self) -> pulumi.Output[_builtins.int]:
|
285
284
|
"""
|
286
285
|
Server to the snapshot should be created from.
|
287
286
|
"""
|
pulumi_hcloud/ssh_key.py
CHANGED
@@ -2,8 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
-
import builtins
|
6
|
-
import copy
|
5
|
+
import builtins as _builtins
|
7
6
|
import warnings
|
8
7
|
import sys
|
9
8
|
import pulumi
|
@@ -20,14 +19,14 @@ __all__ = ['SshKeyArgs', 'SshKey']
|
|
20
19
|
@pulumi.input_type
|
21
20
|
class SshKeyArgs:
|
22
21
|
def __init__(__self__, *,
|
23
|
-
public_key: pulumi.Input[
|
24
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
25
|
-
name: Optional[pulumi.Input[
|
22
|
+
public_key: pulumi.Input[_builtins.str],
|
23
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
24
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
26
25
|
"""
|
27
26
|
The set of arguments for constructing a SshKey resource.
|
28
|
-
:param pulumi.Input[
|
29
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
30
|
-
:param pulumi.Input[
|
27
|
+
:param pulumi.Input[_builtins.str] public_key: Public key of the SSH Key pair. If this is a file, it can be read using the `file` interpolation function.
|
28
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined [labels](https://docs.hetzner.cloud/reference/cloud#labels) (key-value pairs) for the resource.
|
29
|
+
:param pulumi.Input[_builtins.str] name: Name of the SSH Key.
|
31
30
|
"""
|
32
31
|
pulumi.set(__self__, "public_key", public_key)
|
33
32
|
if labels is not None:
|
@@ -35,56 +34,56 @@ class SshKeyArgs:
|
|
35
34
|
if name is not None:
|
36
35
|
pulumi.set(__self__, "name", name)
|
37
36
|
|
38
|
-
@property
|
37
|
+
@_builtins.property
|
39
38
|
@pulumi.getter(name="publicKey")
|
40
|
-
def public_key(self) -> pulumi.Input[
|
39
|
+
def public_key(self) -> pulumi.Input[_builtins.str]:
|
41
40
|
"""
|
42
41
|
Public key of the SSH Key pair. If this is a file, it can be read using the `file` interpolation function.
|
43
42
|
"""
|
44
43
|
return pulumi.get(self, "public_key")
|
45
44
|
|
46
45
|
@public_key.setter
|
47
|
-
def public_key(self, value: pulumi.Input[
|
46
|
+
def public_key(self, value: pulumi.Input[_builtins.str]):
|
48
47
|
pulumi.set(self, "public_key", value)
|
49
48
|
|
50
|
-
@property
|
49
|
+
@_builtins.property
|
51
50
|
@pulumi.getter
|
52
|
-
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
51
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
53
52
|
"""
|
54
|
-
User-defined [labels](https://docs.hetzner.cloud
|
53
|
+
User-defined [labels](https://docs.hetzner.cloud/reference/cloud#labels) (key-value pairs) for the resource.
|
55
54
|
"""
|
56
55
|
return pulumi.get(self, "labels")
|
57
56
|
|
58
57
|
@labels.setter
|
59
|
-
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
58
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
60
59
|
pulumi.set(self, "labels", value)
|
61
60
|
|
62
|
-
@property
|
61
|
+
@_builtins.property
|
63
62
|
@pulumi.getter
|
64
|
-
def name(self) -> Optional[pulumi.Input[
|
63
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
65
64
|
"""
|
66
65
|
Name of the SSH Key.
|
67
66
|
"""
|
68
67
|
return pulumi.get(self, "name")
|
69
68
|
|
70
69
|
@name.setter
|
71
|
-
def name(self, value: Optional[pulumi.Input[
|
70
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
72
71
|
pulumi.set(self, "name", value)
|
73
72
|
|
74
73
|
|
75
74
|
@pulumi.input_type
|
76
75
|
class _SshKeyState:
|
77
76
|
def __init__(__self__, *,
|
78
|
-
fingerprint: Optional[pulumi.Input[
|
79
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
80
|
-
name: Optional[pulumi.Input[
|
81
|
-
public_key: Optional[pulumi.Input[
|
77
|
+
fingerprint: Optional[pulumi.Input[_builtins.str]] = None,
|
78
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
79
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
80
|
+
public_key: Optional[pulumi.Input[_builtins.str]] = None):
|
82
81
|
"""
|
83
82
|
Input properties used for looking up and filtering SshKey resources.
|
84
|
-
:param pulumi.Input[
|
85
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
86
|
-
:param pulumi.Input[
|
87
|
-
:param pulumi.Input[
|
83
|
+
:param pulumi.Input[_builtins.str] fingerprint: Fingerprint of the SSH public key.
|
84
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined [labels](https://docs.hetzner.cloud/reference/cloud#labels) (key-value pairs) for the resource.
|
85
|
+
:param pulumi.Input[_builtins.str] name: Name of the SSH Key.
|
86
|
+
:param pulumi.Input[_builtins.str] public_key: Public key of the SSH Key pair. If this is a file, it can be read using the `file` interpolation function.
|
88
87
|
"""
|
89
88
|
if fingerprint is not None:
|
90
89
|
pulumi.set(__self__, "fingerprint", fingerprint)
|
@@ -95,52 +94,52 @@ class _SshKeyState:
|
|
95
94
|
if public_key is not None:
|
96
95
|
pulumi.set(__self__, "public_key", public_key)
|
97
96
|
|
98
|
-
@property
|
97
|
+
@_builtins.property
|
99
98
|
@pulumi.getter
|
100
|
-
def fingerprint(self) -> Optional[pulumi.Input[
|
99
|
+
def fingerprint(self) -> Optional[pulumi.Input[_builtins.str]]:
|
101
100
|
"""
|
102
101
|
Fingerprint of the SSH public key.
|
103
102
|
"""
|
104
103
|
return pulumi.get(self, "fingerprint")
|
105
104
|
|
106
105
|
@fingerprint.setter
|
107
|
-
def fingerprint(self, value: Optional[pulumi.Input[
|
106
|
+
def fingerprint(self, value: Optional[pulumi.Input[_builtins.str]]):
|
108
107
|
pulumi.set(self, "fingerprint", value)
|
109
108
|
|
110
|
-
@property
|
109
|
+
@_builtins.property
|
111
110
|
@pulumi.getter
|
112
|
-
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
111
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
113
112
|
"""
|
114
|
-
User-defined [labels](https://docs.hetzner.cloud
|
113
|
+
User-defined [labels](https://docs.hetzner.cloud/reference/cloud#labels) (key-value pairs) for the resource.
|
115
114
|
"""
|
116
115
|
return pulumi.get(self, "labels")
|
117
116
|
|
118
117
|
@labels.setter
|
119
|
-
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
118
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
120
119
|
pulumi.set(self, "labels", value)
|
121
120
|
|
122
|
-
@property
|
121
|
+
@_builtins.property
|
123
122
|
@pulumi.getter
|
124
|
-
def name(self) -> Optional[pulumi.Input[
|
123
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
125
124
|
"""
|
126
125
|
Name of the SSH Key.
|
127
126
|
"""
|
128
127
|
return pulumi.get(self, "name")
|
129
128
|
|
130
129
|
@name.setter
|
131
|
-
def name(self, value: Optional[pulumi.Input[
|
130
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
132
131
|
pulumi.set(self, "name", value)
|
133
132
|
|
134
|
-
@property
|
133
|
+
@_builtins.property
|
135
134
|
@pulumi.getter(name="publicKey")
|
136
|
-
def public_key(self) -> Optional[pulumi.Input[
|
135
|
+
def public_key(self) -> Optional[pulumi.Input[_builtins.str]]:
|
137
136
|
"""
|
138
137
|
Public key of the SSH Key pair. If this is a file, it can be read using the `file` interpolation function.
|
139
138
|
"""
|
140
139
|
return pulumi.get(self, "public_key")
|
141
140
|
|
142
141
|
@public_key.setter
|
143
|
-
def public_key(self, value: Optional[pulumi.Input[
|
142
|
+
def public_key(self, value: Optional[pulumi.Input[_builtins.str]]):
|
144
143
|
pulumi.set(self, "public_key", value)
|
145
144
|
|
146
145
|
|
@@ -150,9 +149,9 @@ class SshKey(pulumi.CustomResource):
|
|
150
149
|
def __init__(__self__,
|
151
150
|
resource_name: str,
|
152
151
|
opts: Optional[pulumi.ResourceOptions] = None,
|
153
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
154
|
-
name: Optional[pulumi.Input[
|
155
|
-
public_key: Optional[pulumi.Input[
|
152
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
153
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
154
|
+
public_key: Optional[pulumi.Input[_builtins.str]] = None,
|
156
155
|
__props__=None):
|
157
156
|
"""
|
158
157
|
Provides a Hetzner Cloud SSH Key resource to manage SSH Keys for server access.
|
@@ -171,15 +170,29 @@ class SshKey(pulumi.CustomResource):
|
|
171
170
|
|
172
171
|
## Import
|
173
172
|
|
173
|
+
In Terraform v1.5.0 and later, the `import` block can be used with the `id` attribute, for example:
|
174
|
+
|
175
|
+
terraform
|
176
|
+
|
177
|
+
import {
|
178
|
+
|
179
|
+
to = hcloud_ssh_key.main
|
180
|
+
|
181
|
+
id = "$SSH_KEY_ID"
|
182
|
+
|
183
|
+
}
|
184
|
+
|
185
|
+
The `pulumi import` command can be used, for example:
|
186
|
+
|
174
187
|
```sh
|
175
188
|
$ pulumi import hcloud:index/sshKey:SshKey example "$SSH_KEY_ID"
|
176
189
|
```
|
177
190
|
|
178
191
|
:param str resource_name: The name of the resource.
|
179
192
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
180
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
181
|
-
:param pulumi.Input[
|
182
|
-
:param pulumi.Input[
|
193
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined [labels](https://docs.hetzner.cloud/reference/cloud#labels) (key-value pairs) for the resource.
|
194
|
+
:param pulumi.Input[_builtins.str] name: Name of the SSH Key.
|
195
|
+
:param pulumi.Input[_builtins.str] public_key: Public key of the SSH Key pair. If this is a file, it can be read using the `file` interpolation function.
|
183
196
|
"""
|
184
197
|
...
|
185
198
|
@overload
|
@@ -204,6 +217,20 @@ class SshKey(pulumi.CustomResource):
|
|
204
217
|
|
205
218
|
## Import
|
206
219
|
|
220
|
+
In Terraform v1.5.0 and later, the `import` block can be used with the `id` attribute, for example:
|
221
|
+
|
222
|
+
terraform
|
223
|
+
|
224
|
+
import {
|
225
|
+
|
226
|
+
to = hcloud_ssh_key.main
|
227
|
+
|
228
|
+
id = "$SSH_KEY_ID"
|
229
|
+
|
230
|
+
}
|
231
|
+
|
232
|
+
The `pulumi import` command can be used, for example:
|
233
|
+
|
207
234
|
```sh
|
208
235
|
$ pulumi import hcloud:index/sshKey:SshKey example "$SSH_KEY_ID"
|
209
236
|
```
|
@@ -223,9 +250,9 @@ class SshKey(pulumi.CustomResource):
|
|
223
250
|
def _internal_init(__self__,
|
224
251
|
resource_name: str,
|
225
252
|
opts: Optional[pulumi.ResourceOptions] = None,
|
226
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
227
|
-
name: Optional[pulumi.Input[
|
228
|
-
public_key: Optional[pulumi.Input[
|
253
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
254
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
255
|
+
public_key: Optional[pulumi.Input[_builtins.str]] = None,
|
229
256
|
__props__=None):
|
230
257
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
231
258
|
if not isinstance(opts, pulumi.ResourceOptions):
|
@@ -251,10 +278,10 @@ class SshKey(pulumi.CustomResource):
|
|
251
278
|
def get(resource_name: str,
|
252
279
|
id: pulumi.Input[str],
|
253
280
|
opts: Optional[pulumi.ResourceOptions] = None,
|
254
|
-
fingerprint: Optional[pulumi.Input[
|
255
|
-
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
256
|
-
name: Optional[pulumi.Input[
|
257
|
-
public_key: Optional[pulumi.Input[
|
281
|
+
fingerprint: Optional[pulumi.Input[_builtins.str]] = None,
|
282
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
283
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
284
|
+
public_key: Optional[pulumi.Input[_builtins.str]] = None) -> 'SshKey':
|
258
285
|
"""
|
259
286
|
Get an existing SshKey resource's state with the given name, id, and optional extra
|
260
287
|
properties used to qualify the lookup.
|
@@ -262,10 +289,10 @@ class SshKey(pulumi.CustomResource):
|
|
262
289
|
:param str resource_name: The unique name of the resulting resource.
|
263
290
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
264
291
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
265
|
-
:param pulumi.Input[
|
266
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
267
|
-
:param pulumi.Input[
|
268
|
-
:param pulumi.Input[
|
292
|
+
:param pulumi.Input[_builtins.str] fingerprint: Fingerprint of the SSH public key.
|
293
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] labels: User-defined [labels](https://docs.hetzner.cloud/reference/cloud#labels) (key-value pairs) for the resource.
|
294
|
+
:param pulumi.Input[_builtins.str] name: Name of the SSH Key.
|
295
|
+
:param pulumi.Input[_builtins.str] public_key: Public key of the SSH Key pair. If this is a file, it can be read using the `file` interpolation function.
|
269
296
|
"""
|
270
297
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
271
298
|
|
@@ -277,33 +304,33 @@ class SshKey(pulumi.CustomResource):
|
|
277
304
|
__props__.__dict__["public_key"] = public_key
|
278
305
|
return SshKey(resource_name, opts=opts, __props__=__props__)
|
279
306
|
|
280
|
-
@property
|
307
|
+
@_builtins.property
|
281
308
|
@pulumi.getter
|
282
|
-
def fingerprint(self) -> pulumi.Output[
|
309
|
+
def fingerprint(self) -> pulumi.Output[_builtins.str]:
|
283
310
|
"""
|
284
311
|
Fingerprint of the SSH public key.
|
285
312
|
"""
|
286
313
|
return pulumi.get(self, "fingerprint")
|
287
314
|
|
288
|
-
@property
|
315
|
+
@_builtins.property
|
289
316
|
@pulumi.getter
|
290
|
-
def labels(self) -> pulumi.Output[Mapping[str,
|
317
|
+
def labels(self) -> pulumi.Output[Mapping[str, _builtins.str]]:
|
291
318
|
"""
|
292
|
-
User-defined [labels](https://docs.hetzner.cloud
|
319
|
+
User-defined [labels](https://docs.hetzner.cloud/reference/cloud#labels) (key-value pairs) for the resource.
|
293
320
|
"""
|
294
321
|
return pulumi.get(self, "labels")
|
295
322
|
|
296
|
-
@property
|
323
|
+
@_builtins.property
|
297
324
|
@pulumi.getter
|
298
|
-
def name(self) -> pulumi.Output[
|
325
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
299
326
|
"""
|
300
327
|
Name of the SSH Key.
|
301
328
|
"""
|
302
329
|
return pulumi.get(self, "name")
|
303
330
|
|
304
|
-
@property
|
331
|
+
@_builtins.property
|
305
332
|
@pulumi.getter(name="publicKey")
|
306
|
-
def public_key(self) -> pulumi.Output[
|
333
|
+
def public_key(self) -> pulumi.Output[_builtins.str]:
|
307
334
|
"""
|
308
335
|
Public key of the SSH Key pair. If this is a file, it can be read using the `file` interpolation function.
|
309
336
|
"""
|