pulumi-harness 0.8.0a1747375122__py3-none-any.whl → 0.8.0a1747893453__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-harness might be problematic. Click here for more details.

@@ -0,0 +1,175 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from .. import _utilities
17
+ from . import outputs
18
+ from ._inputs import *
19
+
20
+ __all__ = [
21
+ 'GetOrchestratorConfigResult',
22
+ 'AwaitableGetOrchestratorConfigResult',
23
+ 'get_orchestrator_config',
24
+ 'get_orchestrator_config_output',
25
+ ]
26
+
27
+ @pulumi.output_type
28
+ class GetOrchestratorConfigResult:
29
+ """
30
+ A collection of values returned by getOrchestratorConfig.
31
+ """
32
+ def __init__(__self__, binpacking=None, distribution=None, id=None, node_preferences=None, orchestrator_id=None):
33
+ if binpacking and not isinstance(binpacking, dict):
34
+ raise TypeError("Expected argument 'binpacking' to be a dict")
35
+ pulumi.set(__self__, "binpacking", binpacking)
36
+ if distribution and not isinstance(distribution, dict):
37
+ raise TypeError("Expected argument 'distribution' to be a dict")
38
+ pulumi.set(__self__, "distribution", distribution)
39
+ if id and not isinstance(id, str):
40
+ raise TypeError("Expected argument 'id' to be a str")
41
+ pulumi.set(__self__, "id", id)
42
+ if node_preferences and not isinstance(node_preferences, dict):
43
+ raise TypeError("Expected argument 'node_preferences' to be a dict")
44
+ pulumi.set(__self__, "node_preferences", node_preferences)
45
+ if orchestrator_id and not isinstance(orchestrator_id, str):
46
+ raise TypeError("Expected argument 'orchestrator_id' to be a str")
47
+ pulumi.set(__self__, "orchestrator_id", orchestrator_id)
48
+
49
+ @property
50
+ @pulumi.getter
51
+ def binpacking(self) -> Optional['outputs.GetOrchestratorConfigBinpackingResult']:
52
+ """
53
+ Binpacking preferences for Cluster Orchestrator
54
+ """
55
+ return pulumi.get(self, "binpacking")
56
+
57
+ @property
58
+ @pulumi.getter
59
+ def distribution(self) -> Optional['outputs.GetOrchestratorConfigDistributionResult']:
60
+ """
61
+ Spot and Ondemand Distribution Preferences for workload replicas
62
+ """
63
+ return pulumi.get(self, "distribution")
64
+
65
+ @property
66
+ @pulumi.getter
67
+ def id(self) -> builtins.str:
68
+ """
69
+ The provider-assigned unique ID for this managed resource.
70
+ """
71
+ return pulumi.get(self, "id")
72
+
73
+ @property
74
+ @pulumi.getter(name="nodePreferences")
75
+ def node_preferences(self) -> Optional['outputs.GetOrchestratorConfigNodePreferencesResult']:
76
+ """
77
+ Node preferences for Cluster Orchestrator
78
+ """
79
+ return pulumi.get(self, "node_preferences")
80
+
81
+ @property
82
+ @pulumi.getter(name="orchestratorId")
83
+ def orchestrator_id(self) -> builtins.str:
84
+ """
85
+ ID of the Cluster Orchestrator Object
86
+ """
87
+ return pulumi.get(self, "orchestrator_id")
88
+
89
+
90
+ class AwaitableGetOrchestratorConfigResult(GetOrchestratorConfigResult):
91
+ # pylint: disable=using-constant-test
92
+ def __await__(self):
93
+ if False:
94
+ yield self
95
+ return GetOrchestratorConfigResult(
96
+ binpacking=self.binpacking,
97
+ distribution=self.distribution,
98
+ id=self.id,
99
+ node_preferences=self.node_preferences,
100
+ orchestrator_id=self.orchestrator_id)
101
+
102
+
103
+ def get_orchestrator_config(binpacking: Optional[Union['GetOrchestratorConfigBinpackingArgs', 'GetOrchestratorConfigBinpackingArgsDict']] = None,
104
+ distribution: Optional[Union['GetOrchestratorConfigDistributionArgs', 'GetOrchestratorConfigDistributionArgsDict']] = None,
105
+ node_preferences: Optional[Union['GetOrchestratorConfigNodePreferencesArgs', 'GetOrchestratorConfigNodePreferencesArgsDict']] = None,
106
+ orchestrator_id: Optional[builtins.str] = None,
107
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetOrchestratorConfigResult:
108
+ """
109
+ Resource for ClusterOrchestrator Config.
110
+
111
+ ## Example Usage
112
+
113
+ ```python
114
+ import pulumi
115
+ import pulumi_harness as harness
116
+
117
+ example = harness.cluster.get_orchestrator_config(orchestrator_id="identifier")
118
+ ```
119
+
120
+
121
+ :param Union['GetOrchestratorConfigBinpackingArgs', 'GetOrchestratorConfigBinpackingArgsDict'] binpacking: Binpacking preferences for Cluster Orchestrator
122
+ :param Union['GetOrchestratorConfigDistributionArgs', 'GetOrchestratorConfigDistributionArgsDict'] distribution: Spot and Ondemand Distribution Preferences for workload replicas
123
+ :param Union['GetOrchestratorConfigNodePreferencesArgs', 'GetOrchestratorConfigNodePreferencesArgsDict'] node_preferences: Node preferences for Cluster Orchestrator
124
+ :param builtins.str orchestrator_id: ID of the Cluster Orchestrator Object
125
+ """
126
+ __args__ = dict()
127
+ __args__['binpacking'] = binpacking
128
+ __args__['distribution'] = distribution
129
+ __args__['nodePreferences'] = node_preferences
130
+ __args__['orchestratorId'] = orchestrator_id
131
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
132
+ __ret__ = pulumi.runtime.invoke('harness:cluster/getOrchestratorConfig:getOrchestratorConfig', __args__, opts=opts, typ=GetOrchestratorConfigResult).value
133
+
134
+ return AwaitableGetOrchestratorConfigResult(
135
+ binpacking=pulumi.get(__ret__, 'binpacking'),
136
+ distribution=pulumi.get(__ret__, 'distribution'),
137
+ id=pulumi.get(__ret__, 'id'),
138
+ node_preferences=pulumi.get(__ret__, 'node_preferences'),
139
+ orchestrator_id=pulumi.get(__ret__, 'orchestrator_id'))
140
+ def get_orchestrator_config_output(binpacking: Optional[pulumi.Input[Optional[Union['GetOrchestratorConfigBinpackingArgs', 'GetOrchestratorConfigBinpackingArgsDict']]]] = None,
141
+ distribution: Optional[pulumi.Input[Optional[Union['GetOrchestratorConfigDistributionArgs', 'GetOrchestratorConfigDistributionArgsDict']]]] = None,
142
+ node_preferences: Optional[pulumi.Input[Optional[Union['GetOrchestratorConfigNodePreferencesArgs', 'GetOrchestratorConfigNodePreferencesArgsDict']]]] = None,
143
+ orchestrator_id: Optional[pulumi.Input[builtins.str]] = None,
144
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetOrchestratorConfigResult]:
145
+ """
146
+ Resource for ClusterOrchestrator Config.
147
+
148
+ ## Example Usage
149
+
150
+ ```python
151
+ import pulumi
152
+ import pulumi_harness as harness
153
+
154
+ example = harness.cluster.get_orchestrator_config(orchestrator_id="identifier")
155
+ ```
156
+
157
+
158
+ :param Union['GetOrchestratorConfigBinpackingArgs', 'GetOrchestratorConfigBinpackingArgsDict'] binpacking: Binpacking preferences for Cluster Orchestrator
159
+ :param Union['GetOrchestratorConfigDistributionArgs', 'GetOrchestratorConfigDistributionArgsDict'] distribution: Spot and Ondemand Distribution Preferences for workload replicas
160
+ :param Union['GetOrchestratorConfigNodePreferencesArgs', 'GetOrchestratorConfigNodePreferencesArgsDict'] node_preferences: Node preferences for Cluster Orchestrator
161
+ :param builtins.str orchestrator_id: ID of the Cluster Orchestrator Object
162
+ """
163
+ __args__ = dict()
164
+ __args__['binpacking'] = binpacking
165
+ __args__['distribution'] = distribution
166
+ __args__['nodePreferences'] = node_preferences
167
+ __args__['orchestratorId'] = orchestrator_id
168
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
169
+ __ret__ = pulumi.runtime.invoke_output('harness:cluster/getOrchestratorConfig:getOrchestratorConfig', __args__, opts=opts, typ=GetOrchestratorConfigResult)
170
+ return __ret__.apply(lambda __response__: GetOrchestratorConfigResult(
171
+ binpacking=pulumi.get(__response__, 'binpacking'),
172
+ distribution=pulumi.get(__response__, 'distribution'),
173
+ id=pulumi.get(__response__, 'id'),
174
+ node_preferences=pulumi.get(__response__, 'node_preferences'),
175
+ orchestrator_id=pulumi.get(__response__, 'orchestrator_id')))
@@ -0,0 +1,295 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from .. import _utilities
17
+ from . import outputs
18
+ from ._inputs import *
19
+
20
+ __all__ = ['OrchestratorConfigArgs', 'OrchestratorConfig']
21
+
22
+ @pulumi.input_type
23
+ class OrchestratorConfigArgs:
24
+ def __init__(__self__, *,
25
+ distribution: pulumi.Input['OrchestratorConfigDistributionArgs'],
26
+ orchestrator_id: pulumi.Input[builtins.str],
27
+ binpacking: Optional[pulumi.Input['OrchestratorConfigBinpackingArgs']] = None,
28
+ node_preferences: Optional[pulumi.Input['OrchestratorConfigNodePreferencesArgs']] = None):
29
+ """
30
+ The set of arguments for constructing a OrchestratorConfig resource.
31
+ :param pulumi.Input['OrchestratorConfigDistributionArgs'] distribution: Spot and Ondemand Distribution Preferences for workload replicas
32
+ :param pulumi.Input[builtins.str] orchestrator_id: ID of the Cluster Orchestrator Object
33
+ :param pulumi.Input['OrchestratorConfigBinpackingArgs'] binpacking: Binpacking preferences for Cluster Orchestrator
34
+ :param pulumi.Input['OrchestratorConfigNodePreferencesArgs'] node_preferences: Node preferences for Cluster Orchestrator
35
+ """
36
+ pulumi.set(__self__, "distribution", distribution)
37
+ pulumi.set(__self__, "orchestrator_id", orchestrator_id)
38
+ if binpacking is not None:
39
+ pulumi.set(__self__, "binpacking", binpacking)
40
+ if node_preferences is not None:
41
+ pulumi.set(__self__, "node_preferences", node_preferences)
42
+
43
+ @property
44
+ @pulumi.getter
45
+ def distribution(self) -> pulumi.Input['OrchestratorConfigDistributionArgs']:
46
+ """
47
+ Spot and Ondemand Distribution Preferences for workload replicas
48
+ """
49
+ return pulumi.get(self, "distribution")
50
+
51
+ @distribution.setter
52
+ def distribution(self, value: pulumi.Input['OrchestratorConfigDistributionArgs']):
53
+ pulumi.set(self, "distribution", value)
54
+
55
+ @property
56
+ @pulumi.getter(name="orchestratorId")
57
+ def orchestrator_id(self) -> pulumi.Input[builtins.str]:
58
+ """
59
+ ID of the Cluster Orchestrator Object
60
+ """
61
+ return pulumi.get(self, "orchestrator_id")
62
+
63
+ @orchestrator_id.setter
64
+ def orchestrator_id(self, value: pulumi.Input[builtins.str]):
65
+ pulumi.set(self, "orchestrator_id", value)
66
+
67
+ @property
68
+ @pulumi.getter
69
+ def binpacking(self) -> Optional[pulumi.Input['OrchestratorConfigBinpackingArgs']]:
70
+ """
71
+ Binpacking preferences for Cluster Orchestrator
72
+ """
73
+ return pulumi.get(self, "binpacking")
74
+
75
+ @binpacking.setter
76
+ def binpacking(self, value: Optional[pulumi.Input['OrchestratorConfigBinpackingArgs']]):
77
+ pulumi.set(self, "binpacking", value)
78
+
79
+ @property
80
+ @pulumi.getter(name="nodePreferences")
81
+ def node_preferences(self) -> Optional[pulumi.Input['OrchestratorConfigNodePreferencesArgs']]:
82
+ """
83
+ Node preferences for Cluster Orchestrator
84
+ """
85
+ return pulumi.get(self, "node_preferences")
86
+
87
+ @node_preferences.setter
88
+ def node_preferences(self, value: Optional[pulumi.Input['OrchestratorConfigNodePreferencesArgs']]):
89
+ pulumi.set(self, "node_preferences", value)
90
+
91
+
92
+ @pulumi.input_type
93
+ class _OrchestratorConfigState:
94
+ def __init__(__self__, *,
95
+ binpacking: Optional[pulumi.Input['OrchestratorConfigBinpackingArgs']] = None,
96
+ distribution: Optional[pulumi.Input['OrchestratorConfigDistributionArgs']] = None,
97
+ node_preferences: Optional[pulumi.Input['OrchestratorConfigNodePreferencesArgs']] = None,
98
+ orchestrator_id: Optional[pulumi.Input[builtins.str]] = None):
99
+ """
100
+ Input properties used for looking up and filtering OrchestratorConfig resources.
101
+ :param pulumi.Input['OrchestratorConfigBinpackingArgs'] binpacking: Binpacking preferences for Cluster Orchestrator
102
+ :param pulumi.Input['OrchestratorConfigDistributionArgs'] distribution: Spot and Ondemand Distribution Preferences for workload replicas
103
+ :param pulumi.Input['OrchestratorConfigNodePreferencesArgs'] node_preferences: Node preferences for Cluster Orchestrator
104
+ :param pulumi.Input[builtins.str] orchestrator_id: ID of the Cluster Orchestrator Object
105
+ """
106
+ if binpacking is not None:
107
+ pulumi.set(__self__, "binpacking", binpacking)
108
+ if distribution is not None:
109
+ pulumi.set(__self__, "distribution", distribution)
110
+ if node_preferences is not None:
111
+ pulumi.set(__self__, "node_preferences", node_preferences)
112
+ if orchestrator_id is not None:
113
+ pulumi.set(__self__, "orchestrator_id", orchestrator_id)
114
+
115
+ @property
116
+ @pulumi.getter
117
+ def binpacking(self) -> Optional[pulumi.Input['OrchestratorConfigBinpackingArgs']]:
118
+ """
119
+ Binpacking preferences for Cluster Orchestrator
120
+ """
121
+ return pulumi.get(self, "binpacking")
122
+
123
+ @binpacking.setter
124
+ def binpacking(self, value: Optional[pulumi.Input['OrchestratorConfigBinpackingArgs']]):
125
+ pulumi.set(self, "binpacking", value)
126
+
127
+ @property
128
+ @pulumi.getter
129
+ def distribution(self) -> Optional[pulumi.Input['OrchestratorConfigDistributionArgs']]:
130
+ """
131
+ Spot and Ondemand Distribution Preferences for workload replicas
132
+ """
133
+ return pulumi.get(self, "distribution")
134
+
135
+ @distribution.setter
136
+ def distribution(self, value: Optional[pulumi.Input['OrchestratorConfigDistributionArgs']]):
137
+ pulumi.set(self, "distribution", value)
138
+
139
+ @property
140
+ @pulumi.getter(name="nodePreferences")
141
+ def node_preferences(self) -> Optional[pulumi.Input['OrchestratorConfigNodePreferencesArgs']]:
142
+ """
143
+ Node preferences for Cluster Orchestrator
144
+ """
145
+ return pulumi.get(self, "node_preferences")
146
+
147
+ @node_preferences.setter
148
+ def node_preferences(self, value: Optional[pulumi.Input['OrchestratorConfigNodePreferencesArgs']]):
149
+ pulumi.set(self, "node_preferences", value)
150
+
151
+ @property
152
+ @pulumi.getter(name="orchestratorId")
153
+ def orchestrator_id(self) -> Optional[pulumi.Input[builtins.str]]:
154
+ """
155
+ ID of the Cluster Orchestrator Object
156
+ """
157
+ return pulumi.get(self, "orchestrator_id")
158
+
159
+ @orchestrator_id.setter
160
+ def orchestrator_id(self, value: Optional[pulumi.Input[builtins.str]]):
161
+ pulumi.set(self, "orchestrator_id", value)
162
+
163
+
164
+ @pulumi.type_token("harness:cluster/orchestratorConfig:OrchestratorConfig")
165
+ class OrchestratorConfig(pulumi.CustomResource):
166
+ @overload
167
+ def __init__(__self__,
168
+ resource_name: str,
169
+ opts: Optional[pulumi.ResourceOptions] = None,
170
+ binpacking: Optional[pulumi.Input[Union['OrchestratorConfigBinpackingArgs', 'OrchestratorConfigBinpackingArgsDict']]] = None,
171
+ distribution: Optional[pulumi.Input[Union['OrchestratorConfigDistributionArgs', 'OrchestratorConfigDistributionArgsDict']]] = None,
172
+ node_preferences: Optional[pulumi.Input[Union['OrchestratorConfigNodePreferencesArgs', 'OrchestratorConfigNodePreferencesArgsDict']]] = None,
173
+ orchestrator_id: Optional[pulumi.Input[builtins.str]] = None,
174
+ __props__=None):
175
+ """
176
+ Create a OrchestratorConfig resource with the given unique name, props, and options.
177
+ :param str resource_name: The name of the resource.
178
+ :param pulumi.ResourceOptions opts: Options for the resource.
179
+ :param pulumi.Input[Union['OrchestratorConfigBinpackingArgs', 'OrchestratorConfigBinpackingArgsDict']] binpacking: Binpacking preferences for Cluster Orchestrator
180
+ :param pulumi.Input[Union['OrchestratorConfigDistributionArgs', 'OrchestratorConfigDistributionArgsDict']] distribution: Spot and Ondemand Distribution Preferences for workload replicas
181
+ :param pulumi.Input[Union['OrchestratorConfigNodePreferencesArgs', 'OrchestratorConfigNodePreferencesArgsDict']] node_preferences: Node preferences for Cluster Orchestrator
182
+ :param pulumi.Input[builtins.str] orchestrator_id: ID of the Cluster Orchestrator Object
183
+ """
184
+ ...
185
+ @overload
186
+ def __init__(__self__,
187
+ resource_name: str,
188
+ args: OrchestratorConfigArgs,
189
+ opts: Optional[pulumi.ResourceOptions] = None):
190
+ """
191
+ Create a OrchestratorConfig resource with the given unique name, props, and options.
192
+ :param str resource_name: The name of the resource.
193
+ :param OrchestratorConfigArgs args: The arguments to use to populate this resource's properties.
194
+ :param pulumi.ResourceOptions opts: Options for the resource.
195
+ """
196
+ ...
197
+ def __init__(__self__, resource_name: str, *args, **kwargs):
198
+ resource_args, opts = _utilities.get_resource_args_opts(OrchestratorConfigArgs, pulumi.ResourceOptions, *args, **kwargs)
199
+ if resource_args is not None:
200
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
201
+ else:
202
+ __self__._internal_init(resource_name, *args, **kwargs)
203
+
204
+ def _internal_init(__self__,
205
+ resource_name: str,
206
+ opts: Optional[pulumi.ResourceOptions] = None,
207
+ binpacking: Optional[pulumi.Input[Union['OrchestratorConfigBinpackingArgs', 'OrchestratorConfigBinpackingArgsDict']]] = None,
208
+ distribution: Optional[pulumi.Input[Union['OrchestratorConfigDistributionArgs', 'OrchestratorConfigDistributionArgsDict']]] = None,
209
+ node_preferences: Optional[pulumi.Input[Union['OrchestratorConfigNodePreferencesArgs', 'OrchestratorConfigNodePreferencesArgsDict']]] = None,
210
+ orchestrator_id: Optional[pulumi.Input[builtins.str]] = None,
211
+ __props__=None):
212
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
213
+ if not isinstance(opts, pulumi.ResourceOptions):
214
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
215
+ if opts.id is None:
216
+ if __props__ is not None:
217
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
218
+ __props__ = OrchestratorConfigArgs.__new__(OrchestratorConfigArgs)
219
+
220
+ __props__.__dict__["binpacking"] = binpacking
221
+ if distribution is None and not opts.urn:
222
+ raise TypeError("Missing required property 'distribution'")
223
+ __props__.__dict__["distribution"] = distribution
224
+ __props__.__dict__["node_preferences"] = node_preferences
225
+ if orchestrator_id is None and not opts.urn:
226
+ raise TypeError("Missing required property 'orchestrator_id'")
227
+ __props__.__dict__["orchestrator_id"] = orchestrator_id
228
+ super(OrchestratorConfig, __self__).__init__(
229
+ 'harness:cluster/orchestratorConfig:OrchestratorConfig',
230
+ resource_name,
231
+ __props__,
232
+ opts)
233
+
234
+ @staticmethod
235
+ def get(resource_name: str,
236
+ id: pulumi.Input[str],
237
+ opts: Optional[pulumi.ResourceOptions] = None,
238
+ binpacking: Optional[pulumi.Input[Union['OrchestratorConfigBinpackingArgs', 'OrchestratorConfigBinpackingArgsDict']]] = None,
239
+ distribution: Optional[pulumi.Input[Union['OrchestratorConfigDistributionArgs', 'OrchestratorConfigDistributionArgsDict']]] = None,
240
+ node_preferences: Optional[pulumi.Input[Union['OrchestratorConfigNodePreferencesArgs', 'OrchestratorConfigNodePreferencesArgsDict']]] = None,
241
+ orchestrator_id: Optional[pulumi.Input[builtins.str]] = None) -> 'OrchestratorConfig':
242
+ """
243
+ Get an existing OrchestratorConfig resource's state with the given name, id, and optional extra
244
+ properties used to qualify the lookup.
245
+
246
+ :param str resource_name: The unique name of the resulting resource.
247
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
248
+ :param pulumi.ResourceOptions opts: Options for the resource.
249
+ :param pulumi.Input[Union['OrchestratorConfigBinpackingArgs', 'OrchestratorConfigBinpackingArgsDict']] binpacking: Binpacking preferences for Cluster Orchestrator
250
+ :param pulumi.Input[Union['OrchestratorConfigDistributionArgs', 'OrchestratorConfigDistributionArgsDict']] distribution: Spot and Ondemand Distribution Preferences for workload replicas
251
+ :param pulumi.Input[Union['OrchestratorConfigNodePreferencesArgs', 'OrchestratorConfigNodePreferencesArgsDict']] node_preferences: Node preferences for Cluster Orchestrator
252
+ :param pulumi.Input[builtins.str] orchestrator_id: ID of the Cluster Orchestrator Object
253
+ """
254
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
255
+
256
+ __props__ = _OrchestratorConfigState.__new__(_OrchestratorConfigState)
257
+
258
+ __props__.__dict__["binpacking"] = binpacking
259
+ __props__.__dict__["distribution"] = distribution
260
+ __props__.__dict__["node_preferences"] = node_preferences
261
+ __props__.__dict__["orchestrator_id"] = orchestrator_id
262
+ return OrchestratorConfig(resource_name, opts=opts, __props__=__props__)
263
+
264
+ @property
265
+ @pulumi.getter
266
+ def binpacking(self) -> pulumi.Output[Optional['outputs.OrchestratorConfigBinpacking']]:
267
+ """
268
+ Binpacking preferences for Cluster Orchestrator
269
+ """
270
+ return pulumi.get(self, "binpacking")
271
+
272
+ @property
273
+ @pulumi.getter
274
+ def distribution(self) -> pulumi.Output['outputs.OrchestratorConfigDistribution']:
275
+ """
276
+ Spot and Ondemand Distribution Preferences for workload replicas
277
+ """
278
+ return pulumi.get(self, "distribution")
279
+
280
+ @property
281
+ @pulumi.getter(name="nodePreferences")
282
+ def node_preferences(self) -> pulumi.Output[Optional['outputs.OrchestratorConfigNodePreferences']]:
283
+ """
284
+ Node preferences for Cluster Orchestrator
285
+ """
286
+ return pulumi.get(self, "node_preferences")
287
+
288
+ @property
289
+ @pulumi.getter(name="orchestratorId")
290
+ def orchestrator_id(self) -> pulumi.Output[builtins.str]:
291
+ """
292
+ ID of the Cluster Orchestrator Object
293
+ """
294
+ return pulumi.get(self, "orchestrator_id")
295
+