pulumi-vsphere 4.10.0a1709017641__py3-none-any.whl → 4.17.0a1763710194__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 pulumi-vsphere might be problematic. Click here for more details.

Files changed (89) hide show
  1. pulumi_vsphere/__init__.py +51 -1
  2. pulumi_vsphere/_inputs.py +2568 -1025
  3. pulumi_vsphere/_utilities.py +50 -10
  4. pulumi_vsphere/compute_cluster.py +1564 -2373
  5. pulumi_vsphere/compute_cluster_host_group.py +191 -55
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +157 -113
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +133 -89
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +314 -106
  9. pulumi_vsphere/compute_cluster_vm_group.py +256 -55
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +323 -123
  11. pulumi_vsphere/config/__init__.py +2 -1
  12. pulumi_vsphere/config/__init__.pyi +7 -2
  13. pulumi_vsphere/config/vars.py +20 -15
  14. pulumi_vsphere/configuration_profile.py +286 -0
  15. pulumi_vsphere/content_library.py +177 -71
  16. pulumi_vsphere/content_library_item.py +252 -106
  17. pulumi_vsphere/custom_attribute.py +118 -38
  18. pulumi_vsphere/datacenter.py +128 -107
  19. pulumi_vsphere/datastore_cluster.py +636 -731
  20. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +251 -89
  21. pulumi_vsphere/distributed_port_group.py +1129 -967
  22. pulumi_vsphere/distributed_virtual_switch.py +1971 -2239
  23. pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +294 -0
  24. pulumi_vsphere/dpm_host_override.py +222 -72
  25. pulumi_vsphere/drs_vm_override.py +236 -72
  26. pulumi_vsphere/entity_permissions.py +96 -69
  27. pulumi_vsphere/file.py +173 -178
  28. pulumi_vsphere/folder.py +236 -113
  29. pulumi_vsphere/get_compute_cluster.py +34 -23
  30. pulumi_vsphere/get_compute_cluster_host_group.py +52 -41
  31. pulumi_vsphere/get_configuration_profile.py +145 -0
  32. pulumi_vsphere/get_content_library.py +33 -21
  33. pulumi_vsphere/get_content_library_item.py +47 -31
  34. pulumi_vsphere/get_custom_attribute.py +26 -17
  35. pulumi_vsphere/get_datacenter.py +40 -18
  36. pulumi_vsphere/get_datastore.py +60 -24
  37. pulumi_vsphere/get_datastore_cluster.py +47 -22
  38. pulumi_vsphere/get_datastore_stats.py +204 -0
  39. pulumi_vsphere/get_distributed_virtual_switch.py +36 -23
  40. pulumi_vsphere/get_dynamic.py +55 -45
  41. pulumi_vsphere/get_folder.py +163 -25
  42. pulumi_vsphere/get_guest_os_customization.py +68 -37
  43. pulumi_vsphere/get_host.py +34 -23
  44. pulumi_vsphere/get_host_base_images.py +104 -0
  45. pulumi_vsphere/get_host_pci_device.py +78 -35
  46. pulumi_vsphere/get_host_thumbprint.py +58 -38
  47. pulumi_vsphere/get_host_vgpu_profile.py +195 -0
  48. pulumi_vsphere/get_license.py +44 -28
  49. pulumi_vsphere/get_network.py +157 -46
  50. pulumi_vsphere/get_ovf_vm_template.py +184 -301
  51. pulumi_vsphere/get_policy.py +23 -15
  52. pulumi_vsphere/get_resource_pool.py +107 -40
  53. pulumi_vsphere/get_role.py +49 -35
  54. pulumi_vsphere/get_tag.py +34 -23
  55. pulumi_vsphere/get_tag_category.py +32 -21
  56. pulumi_vsphere/get_vapp_container.py +31 -21
  57. pulumi_vsphere/get_virtual_machine.py +499 -287
  58. pulumi_vsphere/get_vmfs_disks.py +42 -29
  59. pulumi_vsphere/guest_os_customization.py +135 -79
  60. pulumi_vsphere/ha_vm_override.py +470 -577
  61. pulumi_vsphere/host.py +515 -262
  62. pulumi_vsphere/host_port_group.py +352 -355
  63. pulumi_vsphere/host_virtual_switch.py +580 -580
  64. pulumi_vsphere/license.py +110 -92
  65. pulumi_vsphere/nas_datastore.py +398 -270
  66. pulumi_vsphere/offline_software_depot.py +190 -0
  67. pulumi_vsphere/outputs.py +1582 -1027
  68. pulumi_vsphere/provider.py +172 -152
  69. pulumi_vsphere/pulumi-plugin.json +2 -1
  70. pulumi_vsphere/resource_pool.py +357 -273
  71. pulumi_vsphere/role.py +79 -47
  72. pulumi_vsphere/storage_drs_vm_override.py +225 -89
  73. pulumi_vsphere/supervisor.py +1064 -0
  74. pulumi_vsphere/tag.py +217 -55
  75. pulumi_vsphere/tag_category.py +158 -72
  76. pulumi_vsphere/vapp_container.py +425 -259
  77. pulumi_vsphere/vapp_entity.py +324 -174
  78. pulumi_vsphere/virtual_disk.py +245 -153
  79. pulumi_vsphere/virtual_machine.py +1696 -1836
  80. pulumi_vsphere/virtual_machine_class.py +448 -0
  81. pulumi_vsphere/virtual_machine_snapshot.py +137 -131
  82. pulumi_vsphere/vm_storage_policy.py +160 -154
  83. pulumi_vsphere/vmfs_datastore.py +460 -186
  84. pulumi_vsphere/vnic.py +249 -231
  85. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +7 -6
  86. pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
  87. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
  88. pulumi_vsphere-4.10.0a1709017641.dist-info/RECORD +0 -80
  89. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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 copy
5
+ import builtins as _builtins
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['ComputeClusterVmAntiAffinityRuleArgs', 'ComputeClusterVmAntiAffinityRule']
@@ -14,26 +19,26 @@ __all__ = ['ComputeClusterVmAntiAffinityRuleArgs', 'ComputeClusterVmAntiAffinity
14
19
  @pulumi.input_type
15
20
  class ComputeClusterVmAntiAffinityRuleArgs:
16
21
  def __init__(__self__, *,
17
- compute_cluster_id: pulumi.Input[str],
18
- virtual_machine_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
19
- enabled: Optional[pulumi.Input[bool]] = None,
20
- mandatory: Optional[pulumi.Input[bool]] = None,
21
- name: Optional[pulumi.Input[str]] = None):
22
+ compute_cluster_id: pulumi.Input[_builtins.str],
23
+ virtual_machine_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
24
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
25
+ mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
26
+ name: Optional[pulumi.Input[_builtins.str]] = None):
22
27
  """
23
28
  The set of arguments for constructing a ComputeClusterVmAntiAffinityRule resource.
24
- :param pulumi.Input[str] compute_cluster_id: The managed object reference
29
+ :param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
25
30
  ID of the cluster to put the group in. Forces a new
26
31
  resource if changed.
27
- :param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
32
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
28
33
  on hosts different from each other.
29
- :param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
30
- :param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
34
+ :param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
35
+ :param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
31
36
  machine operations that may violate this rule. Default: `false`.
32
37
 
33
38
  > **NOTE:** The namespace for rule names on this resource (defined by the
34
39
  `name` argument) is shared with all rules in the cluster - consider
35
40
  this when naming your rules.
36
- :param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
41
+ :param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
37
42
  """
38
43
  pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
39
44
  pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
@@ -44,9 +49,9 @@ class ComputeClusterVmAntiAffinityRuleArgs:
44
49
  if name is not None:
45
50
  pulumi.set(__self__, "name", name)
46
51
 
47
- @property
52
+ @_builtins.property
48
53
  @pulumi.getter(name="computeClusterId")
49
- def compute_cluster_id(self) -> pulumi.Input[str]:
54
+ def compute_cluster_id(self) -> pulumi.Input[_builtins.str]:
50
55
  """
51
56
  The managed object reference
52
57
  ID of the cluster to put the group in. Forces a new
@@ -55,12 +60,12 @@ class ComputeClusterVmAntiAffinityRuleArgs:
55
60
  return pulumi.get(self, "compute_cluster_id")
56
61
 
57
62
  @compute_cluster_id.setter
58
- def compute_cluster_id(self, value: pulumi.Input[str]):
63
+ def compute_cluster_id(self, value: pulumi.Input[_builtins.str]):
59
64
  pulumi.set(self, "compute_cluster_id", value)
60
65
 
61
- @property
66
+ @_builtins.property
62
67
  @pulumi.getter(name="virtualMachineIds")
63
- def virtual_machine_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
68
+ def virtual_machine_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
64
69
  """
65
70
  The UUIDs of the virtual machines to run
66
71
  on hosts different from each other.
@@ -68,24 +73,24 @@ class ComputeClusterVmAntiAffinityRuleArgs:
68
73
  return pulumi.get(self, "virtual_machine_ids")
69
74
 
70
75
  @virtual_machine_ids.setter
71
- def virtual_machine_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
76
+ def virtual_machine_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
72
77
  pulumi.set(self, "virtual_machine_ids", value)
73
78
 
74
- @property
79
+ @_builtins.property
75
80
  @pulumi.getter
76
- def enabled(self) -> Optional[pulumi.Input[bool]]:
81
+ def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
77
82
  """
78
83
  Enable this rule in the cluster. Default: `true`.
79
84
  """
80
85
  return pulumi.get(self, "enabled")
81
86
 
82
87
  @enabled.setter
83
- def enabled(self, value: Optional[pulumi.Input[bool]]):
88
+ def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
84
89
  pulumi.set(self, "enabled", value)
85
90
 
86
- @property
91
+ @_builtins.property
87
92
  @pulumi.getter
88
- def mandatory(self) -> Optional[pulumi.Input[bool]]:
93
+ def mandatory(self) -> Optional[pulumi.Input[_builtins.bool]]:
89
94
  """
90
95
  When this value is `true`, prevents any virtual
91
96
  machine operations that may violate this rule. Default: `false`.
@@ -97,44 +102,44 @@ class ComputeClusterVmAntiAffinityRuleArgs:
97
102
  return pulumi.get(self, "mandatory")
98
103
 
99
104
  @mandatory.setter
100
- def mandatory(self, value: Optional[pulumi.Input[bool]]):
105
+ def mandatory(self, value: Optional[pulumi.Input[_builtins.bool]]):
101
106
  pulumi.set(self, "mandatory", value)
102
107
 
103
- @property
108
+ @_builtins.property
104
109
  @pulumi.getter
105
- def name(self) -> Optional[pulumi.Input[str]]:
110
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
106
111
  """
107
112
  The name of the rule. This must be unique in the cluster.
108
113
  """
109
114
  return pulumi.get(self, "name")
110
115
 
111
116
  @name.setter
112
- def name(self, value: Optional[pulumi.Input[str]]):
117
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
113
118
  pulumi.set(self, "name", value)
114
119
 
115
120
 
116
121
  @pulumi.input_type
117
122
  class _ComputeClusterVmAntiAffinityRuleState:
118
123
  def __init__(__self__, *,
119
- compute_cluster_id: Optional[pulumi.Input[str]] = None,
120
- enabled: Optional[pulumi.Input[bool]] = None,
121
- mandatory: Optional[pulumi.Input[bool]] = None,
122
- name: Optional[pulumi.Input[str]] = None,
123
- virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
124
+ compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
125
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
126
+ mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
127
+ name: Optional[pulumi.Input[_builtins.str]] = None,
128
+ virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
124
129
  """
125
130
  Input properties used for looking up and filtering ComputeClusterVmAntiAffinityRule resources.
126
- :param pulumi.Input[str] compute_cluster_id: The managed object reference
131
+ :param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
127
132
  ID of the cluster to put the group in. Forces a new
128
133
  resource if changed.
129
- :param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
130
- :param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
134
+ :param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
135
+ :param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
131
136
  machine operations that may violate this rule. Default: `false`.
132
137
 
133
138
  > **NOTE:** The namespace for rule names on this resource (defined by the
134
139
  `name` argument) is shared with all rules in the cluster - consider
135
140
  this when naming your rules.
136
- :param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
137
- :param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
141
+ :param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
142
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
138
143
  on hosts different from each other.
139
144
  """
140
145
  if compute_cluster_id is not None:
@@ -148,9 +153,9 @@ class _ComputeClusterVmAntiAffinityRuleState:
148
153
  if virtual_machine_ids is not None:
149
154
  pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
150
155
 
151
- @property
156
+ @_builtins.property
152
157
  @pulumi.getter(name="computeClusterId")
153
- def compute_cluster_id(self) -> Optional[pulumi.Input[str]]:
158
+ def compute_cluster_id(self) -> Optional[pulumi.Input[_builtins.str]]:
154
159
  """
155
160
  The managed object reference
156
161
  ID of the cluster to put the group in. Forces a new
@@ -159,24 +164,24 @@ class _ComputeClusterVmAntiAffinityRuleState:
159
164
  return pulumi.get(self, "compute_cluster_id")
160
165
 
161
166
  @compute_cluster_id.setter
162
- def compute_cluster_id(self, value: Optional[pulumi.Input[str]]):
167
+ def compute_cluster_id(self, value: Optional[pulumi.Input[_builtins.str]]):
163
168
  pulumi.set(self, "compute_cluster_id", value)
164
169
 
165
- @property
170
+ @_builtins.property
166
171
  @pulumi.getter
167
- def enabled(self) -> Optional[pulumi.Input[bool]]:
172
+ def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
168
173
  """
169
174
  Enable this rule in the cluster. Default: `true`.
170
175
  """
171
176
  return pulumi.get(self, "enabled")
172
177
 
173
178
  @enabled.setter
174
- def enabled(self, value: Optional[pulumi.Input[bool]]):
179
+ def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
175
180
  pulumi.set(self, "enabled", value)
176
181
 
177
- @property
182
+ @_builtins.property
178
183
  @pulumi.getter
179
- def mandatory(self) -> Optional[pulumi.Input[bool]]:
184
+ def mandatory(self) -> Optional[pulumi.Input[_builtins.bool]]:
180
185
  """
181
186
  When this value is `true`, prevents any virtual
182
187
  machine operations that may violate this rule. Default: `false`.
@@ -188,24 +193,24 @@ class _ComputeClusterVmAntiAffinityRuleState:
188
193
  return pulumi.get(self, "mandatory")
189
194
 
190
195
  @mandatory.setter
191
- def mandatory(self, value: Optional[pulumi.Input[bool]]):
196
+ def mandatory(self, value: Optional[pulumi.Input[_builtins.bool]]):
192
197
  pulumi.set(self, "mandatory", value)
193
198
 
194
- @property
199
+ @_builtins.property
195
200
  @pulumi.getter
196
- def name(self) -> Optional[pulumi.Input[str]]:
201
+ def name(self) -> Optional[pulumi.Input[_builtins.str]]:
197
202
  """
198
203
  The name of the rule. This must be unique in the cluster.
199
204
  """
200
205
  return pulumi.get(self, "name")
201
206
 
202
207
  @name.setter
203
- def name(self, value: Optional[pulumi.Input[str]]):
208
+ def name(self, value: Optional[pulumi.Input[_builtins.str]]):
204
209
  pulumi.set(self, "name", value)
205
210
 
206
- @property
211
+ @_builtins.property
207
212
  @pulumi.getter(name="virtualMachineIds")
208
- def virtual_machine_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
213
+ def virtual_machine_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
209
214
  """
210
215
  The UUIDs of the virtual machines to run
211
216
  on hosts different from each other.
@@ -213,37 +218,57 @@ class _ComputeClusterVmAntiAffinityRuleState:
213
218
  return pulumi.get(self, "virtual_machine_ids")
214
219
 
215
220
  @virtual_machine_ids.setter
216
- def virtual_machine_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
221
+ def virtual_machine_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
217
222
  pulumi.set(self, "virtual_machine_ids", value)
218
223
 
219
224
 
225
+ @pulumi.type_token("vsphere:index/computeClusterVmAntiAffinityRule:ComputeClusterVmAntiAffinityRule")
220
226
  class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
221
227
  @overload
222
228
  def __init__(__self__,
223
229
  resource_name: str,
224
230
  opts: Optional[pulumi.ResourceOptions] = None,
225
- compute_cluster_id: Optional[pulumi.Input[str]] = None,
226
- enabled: Optional[pulumi.Input[bool]] = None,
227
- mandatory: Optional[pulumi.Input[bool]] = None,
228
- name: Optional[pulumi.Input[str]] = None,
229
- virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
231
+ compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
232
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
233
+ mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
234
+ name: Optional[pulumi.Input[_builtins.str]] = None,
235
+ virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
230
236
  __props__=None):
231
237
  """
232
- Create a ComputeClusterVmAntiAffinityRule resource with the given unique name, props, and options.
238
+ ## Import
239
+
240
+ An existing rule can be imported into this resource by supplying
241
+
242
+ both the path to the cluster, and the name the rule. If the name or cluster is
243
+
244
+ not found, or if the rule is of a different type, an error will be returned. An
245
+
246
+ example is below:
247
+
248
+ [docs-import]: https://developer.hashicorp.com/terraform/cli/import
249
+
250
+ ```sh
251
+ $ pulumi import vsphere:index/computeClusterVmAntiAffinityRule:ComputeClusterVmAntiAffinityRule vm_anti_affinity_rule \\
252
+ ```
253
+
254
+ '{"compute_cluster_path": "/dc-01/host/cluster-01", \\
255
+
256
+ "name": "vm-anti-affinity-rule"}'
257
+
233
258
  :param str resource_name: The name of the resource.
234
259
  :param pulumi.ResourceOptions opts: Options for the resource.
235
- :param pulumi.Input[str] compute_cluster_id: The managed object reference
260
+ :param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
236
261
  ID of the cluster to put the group in. Forces a new
237
262
  resource if changed.
238
- :param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
239
- :param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
263
+ :param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
264
+ :param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
240
265
  machine operations that may violate this rule. Default: `false`.
241
266
 
242
267
  > **NOTE:** The namespace for rule names on this resource (defined by the
243
268
  `name` argument) is shared with all rules in the cluster - consider
244
269
  this when naming your rules.
245
- :param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
246
- :param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
270
+ :param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
271
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
247
272
  on hosts different from each other.
248
273
  """
249
274
  ...
@@ -253,7 +278,26 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
253
278
  args: ComputeClusterVmAntiAffinityRuleArgs,
254
279
  opts: Optional[pulumi.ResourceOptions] = None):
255
280
  """
256
- Create a ComputeClusterVmAntiAffinityRule resource with the given unique name, props, and options.
281
+ ## Import
282
+
283
+ An existing rule can be imported into this resource by supplying
284
+
285
+ both the path to the cluster, and the name the rule. If the name or cluster is
286
+
287
+ not found, or if the rule is of a different type, an error will be returned. An
288
+
289
+ example is below:
290
+
291
+ [docs-import]: https://developer.hashicorp.com/terraform/cli/import
292
+
293
+ ```sh
294
+ $ pulumi import vsphere:index/computeClusterVmAntiAffinityRule:ComputeClusterVmAntiAffinityRule vm_anti_affinity_rule \\
295
+ ```
296
+
297
+ '{"compute_cluster_path": "/dc-01/host/cluster-01", \\
298
+
299
+ "name": "vm-anti-affinity-rule"}'
300
+
257
301
  :param str resource_name: The name of the resource.
258
302
  :param ComputeClusterVmAntiAffinityRuleArgs args: The arguments to use to populate this resource's properties.
259
303
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -269,11 +313,11 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
269
313
  def _internal_init(__self__,
270
314
  resource_name: str,
271
315
  opts: Optional[pulumi.ResourceOptions] = None,
272
- compute_cluster_id: Optional[pulumi.Input[str]] = None,
273
- enabled: Optional[pulumi.Input[bool]] = None,
274
- mandatory: Optional[pulumi.Input[bool]] = None,
275
- name: Optional[pulumi.Input[str]] = None,
276
- virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
316
+ compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
317
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
318
+ mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
319
+ name: Optional[pulumi.Input[_builtins.str]] = None,
320
+ virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
277
321
  __props__=None):
278
322
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
279
323
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -302,11 +346,11 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
302
346
  def get(resource_name: str,
303
347
  id: pulumi.Input[str],
304
348
  opts: Optional[pulumi.ResourceOptions] = None,
305
- compute_cluster_id: Optional[pulumi.Input[str]] = None,
306
- enabled: Optional[pulumi.Input[bool]] = None,
307
- mandatory: Optional[pulumi.Input[bool]] = None,
308
- name: Optional[pulumi.Input[str]] = None,
309
- virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ComputeClusterVmAntiAffinityRule':
349
+ compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
350
+ enabled: Optional[pulumi.Input[_builtins.bool]] = None,
351
+ mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
352
+ name: Optional[pulumi.Input[_builtins.str]] = None,
353
+ virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'ComputeClusterVmAntiAffinityRule':
310
354
  """
311
355
  Get an existing ComputeClusterVmAntiAffinityRule resource's state with the given name, id, and optional extra
312
356
  properties used to qualify the lookup.
@@ -314,18 +358,18 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
314
358
  :param str resource_name: The unique name of the resulting resource.
315
359
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
316
360
  :param pulumi.ResourceOptions opts: Options for the resource.
317
- :param pulumi.Input[str] compute_cluster_id: The managed object reference
361
+ :param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
318
362
  ID of the cluster to put the group in. Forces a new
319
363
  resource if changed.
320
- :param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
321
- :param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
364
+ :param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
365
+ :param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
322
366
  machine operations that may violate this rule. Default: `false`.
323
367
 
324
368
  > **NOTE:** The namespace for rule names on this resource (defined by the
325
369
  `name` argument) is shared with all rules in the cluster - consider
326
370
  this when naming your rules.
327
- :param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
328
- :param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
371
+ :param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
372
+ :param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
329
373
  on hosts different from each other.
330
374
  """
331
375
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -339,9 +383,9 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
339
383
  __props__.__dict__["virtual_machine_ids"] = virtual_machine_ids
340
384
  return ComputeClusterVmAntiAffinityRule(resource_name, opts=opts, __props__=__props__)
341
385
 
342
- @property
386
+ @_builtins.property
343
387
  @pulumi.getter(name="computeClusterId")
344
- def compute_cluster_id(self) -> pulumi.Output[str]:
388
+ def compute_cluster_id(self) -> pulumi.Output[_builtins.str]:
345
389
  """
346
390
  The managed object reference
347
391
  ID of the cluster to put the group in. Forces a new
@@ -349,17 +393,17 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
349
393
  """
350
394
  return pulumi.get(self, "compute_cluster_id")
351
395
 
352
- @property
396
+ @_builtins.property
353
397
  @pulumi.getter
354
- def enabled(self) -> pulumi.Output[Optional[bool]]:
398
+ def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
355
399
  """
356
400
  Enable this rule in the cluster. Default: `true`.
357
401
  """
358
402
  return pulumi.get(self, "enabled")
359
403
 
360
- @property
404
+ @_builtins.property
361
405
  @pulumi.getter
362
- def mandatory(self) -> pulumi.Output[Optional[bool]]:
406
+ def mandatory(self) -> pulumi.Output[Optional[_builtins.bool]]:
363
407
  """
364
408
  When this value is `true`, prevents any virtual
365
409
  machine operations that may violate this rule. Default: `false`.
@@ -370,17 +414,17 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
370
414
  """
371
415
  return pulumi.get(self, "mandatory")
372
416
 
373
- @property
417
+ @_builtins.property
374
418
  @pulumi.getter
375
- def name(self) -> pulumi.Output[str]:
419
+ def name(self) -> pulumi.Output[_builtins.str]:
376
420
  """
377
421
  The name of the rule. This must be unique in the cluster.
378
422
  """
379
423
  return pulumi.get(self, "name")
380
424
 
381
- @property
425
+ @_builtins.property
382
426
  @pulumi.getter(name="virtualMachineIds")
383
- def virtual_machine_ids(self) -> pulumi.Output[Sequence[str]]:
427
+ def virtual_machine_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
384
428
  """
385
429
  The UUIDs of the virtual machines to run
386
430
  on hosts different from each other.