pulumi-spotinst 3.126.0a1761894726__py3-none-any.whl → 3.126.0a1761967904__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-spotinst might be problematic. Click here for more details.
- pulumi_spotinst/_inputs.py +240 -0
- pulumi_spotinst/aws/_inputs.py +93 -0
- pulumi_spotinst/aws/ocean_launch_spec.py +47 -0
- pulumi_spotinst/aws/outputs.py +58 -1
- pulumi_spotinst/ocean_right_sizing_rule.py +280 -2
- pulumi_spotinst/outputs.py +150 -0
- pulumi_spotinst/pulumi-plugin.json +1 -1
- {pulumi_spotinst-3.126.0a1761894726.dist-info → pulumi_spotinst-3.126.0a1761967904.dist-info}/METADATA +1 -1
- {pulumi_spotinst-3.126.0a1761894726.dist-info → pulumi_spotinst-3.126.0a1761967904.dist-info}/RECORD +11 -11
- {pulumi_spotinst-3.126.0a1761894726.dist-info → pulumi_spotinst-3.126.0a1761967904.dist-info}/WHEEL +0 -0
- {pulumi_spotinst-3.126.0a1761894726.dist-info → pulumi_spotinst-3.126.0a1761967904.dist-info}/top_level.txt +0 -0
pulumi_spotinst/aws/_inputs.py
CHANGED
|
@@ -305,6 +305,8 @@ __all__ = [
|
|
|
305
305
|
'OceanLaunchSpecInstanceTypesFiltersArgsDict',
|
|
306
306
|
'OceanLaunchSpecLabelArgs',
|
|
307
307
|
'OceanLaunchSpecLabelArgsDict',
|
|
308
|
+
'OceanLaunchSpecLoadBalancerArgs',
|
|
309
|
+
'OceanLaunchSpecLoadBalancerArgsDict',
|
|
308
310
|
'OceanLaunchSpecResourceLimitArgs',
|
|
309
311
|
'OceanLaunchSpecResourceLimitArgsDict',
|
|
310
312
|
'OceanLaunchSpecSchedulingShutdownHoursArgs',
|
|
@@ -11623,6 +11625,10 @@ class OceanInstanceStorePolicyArgs:
|
|
|
11623
11625
|
|
|
11624
11626
|
if not MYPY:
|
|
11625
11627
|
class OceanLaunchSpecAutoscaleDownArgsDict(TypedDict):
|
|
11628
|
+
is_aggressive_scale_down_enabled: NotRequired[pulumi.Input[_builtins.bool]]
|
|
11629
|
+
"""
|
|
11630
|
+
When set to 'true', the Aggressive Scale Down feature is enabled.
|
|
11631
|
+
"""
|
|
11626
11632
|
max_scale_down_percentage: NotRequired[pulumi.Input[_builtins.float]]
|
|
11627
11633
|
"""
|
|
11628
11634
|
The maximum percentage allowed to scale down in a single scaling action on the nodes running in a specific VNG. Allowed only if maxScaleDownPercentage is set to null at the cluster level. Number between [0.1-100].
|
|
@@ -11633,13 +11639,29 @@ elif False:
|
|
|
11633
11639
|
@pulumi.input_type
|
|
11634
11640
|
class OceanLaunchSpecAutoscaleDownArgs:
|
|
11635
11641
|
def __init__(__self__, *,
|
|
11642
|
+
is_aggressive_scale_down_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
11636
11643
|
max_scale_down_percentage: Optional[pulumi.Input[_builtins.float]] = None):
|
|
11637
11644
|
"""
|
|
11645
|
+
:param pulumi.Input[_builtins.bool] is_aggressive_scale_down_enabled: When set to 'true', the Aggressive Scale Down feature is enabled.
|
|
11638
11646
|
:param pulumi.Input[_builtins.float] max_scale_down_percentage: The maximum percentage allowed to scale down in a single scaling action on the nodes running in a specific VNG. Allowed only if maxScaleDownPercentage is set to null at the cluster level. Number between [0.1-100].
|
|
11639
11647
|
"""
|
|
11648
|
+
if is_aggressive_scale_down_enabled is not None:
|
|
11649
|
+
pulumi.set(__self__, "is_aggressive_scale_down_enabled", is_aggressive_scale_down_enabled)
|
|
11640
11650
|
if max_scale_down_percentage is not None:
|
|
11641
11651
|
pulumi.set(__self__, "max_scale_down_percentage", max_scale_down_percentage)
|
|
11642
11652
|
|
|
11653
|
+
@_builtins.property
|
|
11654
|
+
@pulumi.getter(name="isAggressiveScaleDownEnabled")
|
|
11655
|
+
def is_aggressive_scale_down_enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
11656
|
+
"""
|
|
11657
|
+
When set to 'true', the Aggressive Scale Down feature is enabled.
|
|
11658
|
+
"""
|
|
11659
|
+
return pulumi.get(self, "is_aggressive_scale_down_enabled")
|
|
11660
|
+
|
|
11661
|
+
@is_aggressive_scale_down_enabled.setter
|
|
11662
|
+
def is_aggressive_scale_down_enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
11663
|
+
pulumi.set(self, "is_aggressive_scale_down_enabled", value)
|
|
11664
|
+
|
|
11643
11665
|
@_builtins.property
|
|
11644
11666
|
@pulumi.getter(name="maxScaleDownPercentage")
|
|
11645
11667
|
def max_scale_down_percentage(self) -> Optional[pulumi.Input[_builtins.float]]:
|
|
@@ -12850,6 +12872,77 @@ class OceanLaunchSpecLabelArgs:
|
|
|
12850
12872
|
pulumi.set(self, "value", value)
|
|
12851
12873
|
|
|
12852
12874
|
|
|
12875
|
+
if not MYPY:
|
|
12876
|
+
class OceanLaunchSpecLoadBalancerArgsDict(TypedDict):
|
|
12877
|
+
type: pulumi.Input[_builtins.str]
|
|
12878
|
+
"""
|
|
12879
|
+
Can be set to `CLASSIC` or `TARGET_GROUP`
|
|
12880
|
+
"""
|
|
12881
|
+
arn: NotRequired[pulumi.Input[_builtins.str]]
|
|
12882
|
+
"""
|
|
12883
|
+
Required if type is set to `TARGET_GROUP`
|
|
12884
|
+
"""
|
|
12885
|
+
name: NotRequired[pulumi.Input[_builtins.str]]
|
|
12886
|
+
"""
|
|
12887
|
+
Required if type is set to `CLASSIC`
|
|
12888
|
+
"""
|
|
12889
|
+
elif False:
|
|
12890
|
+
OceanLaunchSpecLoadBalancerArgsDict: TypeAlias = Mapping[str, Any]
|
|
12891
|
+
|
|
12892
|
+
@pulumi.input_type
|
|
12893
|
+
class OceanLaunchSpecLoadBalancerArgs:
|
|
12894
|
+
def __init__(__self__, *,
|
|
12895
|
+
type: pulumi.Input[_builtins.str],
|
|
12896
|
+
arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
12897
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
12898
|
+
"""
|
|
12899
|
+
:param pulumi.Input[_builtins.str] type: Can be set to `CLASSIC` or `TARGET_GROUP`
|
|
12900
|
+
:param pulumi.Input[_builtins.str] arn: Required if type is set to `TARGET_GROUP`
|
|
12901
|
+
:param pulumi.Input[_builtins.str] name: Required if type is set to `CLASSIC`
|
|
12902
|
+
"""
|
|
12903
|
+
pulumi.set(__self__, "type", type)
|
|
12904
|
+
if arn is not None:
|
|
12905
|
+
pulumi.set(__self__, "arn", arn)
|
|
12906
|
+
if name is not None:
|
|
12907
|
+
pulumi.set(__self__, "name", name)
|
|
12908
|
+
|
|
12909
|
+
@_builtins.property
|
|
12910
|
+
@pulumi.getter
|
|
12911
|
+
def type(self) -> pulumi.Input[_builtins.str]:
|
|
12912
|
+
"""
|
|
12913
|
+
Can be set to `CLASSIC` or `TARGET_GROUP`
|
|
12914
|
+
"""
|
|
12915
|
+
return pulumi.get(self, "type")
|
|
12916
|
+
|
|
12917
|
+
@type.setter
|
|
12918
|
+
def type(self, value: pulumi.Input[_builtins.str]):
|
|
12919
|
+
pulumi.set(self, "type", value)
|
|
12920
|
+
|
|
12921
|
+
@_builtins.property
|
|
12922
|
+
@pulumi.getter
|
|
12923
|
+
def arn(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
12924
|
+
"""
|
|
12925
|
+
Required if type is set to `TARGET_GROUP`
|
|
12926
|
+
"""
|
|
12927
|
+
return pulumi.get(self, "arn")
|
|
12928
|
+
|
|
12929
|
+
@arn.setter
|
|
12930
|
+
def arn(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
12931
|
+
pulumi.set(self, "arn", value)
|
|
12932
|
+
|
|
12933
|
+
@_builtins.property
|
|
12934
|
+
@pulumi.getter
|
|
12935
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
12936
|
+
"""
|
|
12937
|
+
Required if type is set to `CLASSIC`
|
|
12938
|
+
"""
|
|
12939
|
+
return pulumi.get(self, "name")
|
|
12940
|
+
|
|
12941
|
+
@name.setter
|
|
12942
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
12943
|
+
pulumi.set(self, "name", value)
|
|
12944
|
+
|
|
12945
|
+
|
|
12853
12946
|
if not MYPY:
|
|
12854
12947
|
class OceanLaunchSpecResourceLimitArgsDict(TypedDict):
|
|
12855
12948
|
max_instance_count: NotRequired[pulumi.Input[_builtins.int]]
|
|
@@ -39,6 +39,7 @@ class OceanLaunchSpecArgs:
|
|
|
39
39
|
instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
40
40
|
instance_types_filters: Optional[pulumi.Input['OceanLaunchSpecInstanceTypesFiltersArgs']] = None,
|
|
41
41
|
labels: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLabelArgs']]]] = None,
|
|
42
|
+
load_balancers: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLoadBalancerArgs']]]] = None,
|
|
42
43
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
43
44
|
preferred_od_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
44
45
|
preferred_spot_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -75,6 +76,7 @@ class OceanLaunchSpecArgs:
|
|
|
75
76
|
:param pulumi.Input['OceanLaunchSpecInstanceTypesFiltersArgs'] instance_types_filters: The instance types that match with all filters compose the Virtual Node Group's instanceTypes parameter.
|
|
76
77
|
The architectures that come from the Virtual Node Group's images will be taken into account when using this parameter. Cannot be configured together with Virtual Node Group's instanceTypes and with the Cluster's whitelist/blacklist/filters.
|
|
77
78
|
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLabelArgs']]] labels: Optionally adds labels to instances launched in the cluster.
|
|
79
|
+
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLoadBalancerArgs']]] load_balancers: Array of load balancer objects to add to VNG
|
|
78
80
|
:param pulumi.Input[_builtins.str] name: The name of the Virtual Node Group.
|
|
79
81
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] preferred_od_types: A list of instance types. Takes the preferred types into consideration while maintaining a variety of machine types running for optimized distribution.
|
|
80
82
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] preferred_spot_types: A list of instance types. Takes the preferred types into consideration while maintaining a variety of machine types running for optimized distribution.
|
|
@@ -125,6 +127,8 @@ class OceanLaunchSpecArgs:
|
|
|
125
127
|
pulumi.set(__self__, "instance_types_filters", instance_types_filters)
|
|
126
128
|
if labels is not None:
|
|
127
129
|
pulumi.set(__self__, "labels", labels)
|
|
130
|
+
if load_balancers is not None:
|
|
131
|
+
pulumi.set(__self__, "load_balancers", load_balancers)
|
|
128
132
|
if name is not None:
|
|
129
133
|
pulumi.set(__self__, "name", name)
|
|
130
134
|
if preferred_od_types is not None:
|
|
@@ -369,6 +373,18 @@ class OceanLaunchSpecArgs:
|
|
|
369
373
|
def labels(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLabelArgs']]]]):
|
|
370
374
|
pulumi.set(self, "labels", value)
|
|
371
375
|
|
|
376
|
+
@_builtins.property
|
|
377
|
+
@pulumi.getter(name="loadBalancers")
|
|
378
|
+
def load_balancers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLoadBalancerArgs']]]]:
|
|
379
|
+
"""
|
|
380
|
+
Array of load balancer objects to add to VNG
|
|
381
|
+
"""
|
|
382
|
+
return pulumi.get(self, "load_balancers")
|
|
383
|
+
|
|
384
|
+
@load_balancers.setter
|
|
385
|
+
def load_balancers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLoadBalancerArgs']]]]):
|
|
386
|
+
pulumi.set(self, "load_balancers", value)
|
|
387
|
+
|
|
372
388
|
@_builtins.property
|
|
373
389
|
@pulumi.getter
|
|
374
390
|
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -585,6 +601,7 @@ class _OceanLaunchSpecState:
|
|
|
585
601
|
instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
586
602
|
instance_types_filters: Optional[pulumi.Input['OceanLaunchSpecInstanceTypesFiltersArgs']] = None,
|
|
587
603
|
labels: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLabelArgs']]]] = None,
|
|
604
|
+
load_balancers: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLoadBalancerArgs']]]] = None,
|
|
588
605
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
589
606
|
ocean_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
590
607
|
preferred_od_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -621,6 +638,7 @@ class _OceanLaunchSpecState:
|
|
|
621
638
|
:param pulumi.Input['OceanLaunchSpecInstanceTypesFiltersArgs'] instance_types_filters: The instance types that match with all filters compose the Virtual Node Group's instanceTypes parameter.
|
|
622
639
|
The architectures that come from the Virtual Node Group's images will be taken into account when using this parameter. Cannot be configured together with Virtual Node Group's instanceTypes and with the Cluster's whitelist/blacklist/filters.
|
|
623
640
|
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLabelArgs']]] labels: Optionally adds labels to instances launched in the cluster.
|
|
641
|
+
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLoadBalancerArgs']]] load_balancers: Array of load balancer objects to add to VNG
|
|
624
642
|
:param pulumi.Input[_builtins.str] name: The name of the Virtual Node Group.
|
|
625
643
|
:param pulumi.Input[_builtins.str] ocean_id: The ID of the Ocean cluster.
|
|
626
644
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] preferred_od_types: A list of instance types. Takes the preferred types into consideration while maintaining a variety of machine types running for optimized distribution.
|
|
@@ -671,6 +689,8 @@ class _OceanLaunchSpecState:
|
|
|
671
689
|
pulumi.set(__self__, "instance_types_filters", instance_types_filters)
|
|
672
690
|
if labels is not None:
|
|
673
691
|
pulumi.set(__self__, "labels", labels)
|
|
692
|
+
if load_balancers is not None:
|
|
693
|
+
pulumi.set(__self__, "load_balancers", load_balancers)
|
|
674
694
|
if name is not None:
|
|
675
695
|
pulumi.set(__self__, "name", name)
|
|
676
696
|
if ocean_id is not None:
|
|
@@ -905,6 +925,18 @@ class _OceanLaunchSpecState:
|
|
|
905
925
|
def labels(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLabelArgs']]]]):
|
|
906
926
|
pulumi.set(self, "labels", value)
|
|
907
927
|
|
|
928
|
+
@_builtins.property
|
|
929
|
+
@pulumi.getter(name="loadBalancers")
|
|
930
|
+
def load_balancers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLoadBalancerArgs']]]]:
|
|
931
|
+
"""
|
|
932
|
+
Array of load balancer objects to add to VNG
|
|
933
|
+
"""
|
|
934
|
+
return pulumi.get(self, "load_balancers")
|
|
935
|
+
|
|
936
|
+
@load_balancers.setter
|
|
937
|
+
def load_balancers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLoadBalancerArgs']]]]):
|
|
938
|
+
pulumi.set(self, "load_balancers", value)
|
|
939
|
+
|
|
908
940
|
@_builtins.property
|
|
909
941
|
@pulumi.getter
|
|
910
942
|
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
@@ -1136,6 +1168,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1136
1168
|
instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1137
1169
|
instance_types_filters: Optional[pulumi.Input[Union['OceanLaunchSpecInstanceTypesFiltersArgs', 'OceanLaunchSpecInstanceTypesFiltersArgsDict']]] = None,
|
|
1138
1170
|
labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLabelArgs', 'OceanLaunchSpecLabelArgsDict']]]]] = None,
|
|
1171
|
+
load_balancers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLoadBalancerArgs', 'OceanLaunchSpecLoadBalancerArgsDict']]]]] = None,
|
|
1139
1172
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1140
1173
|
ocean_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1141
1174
|
preferred_od_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -1186,6 +1219,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1186
1219
|
:param pulumi.Input[Union['OceanLaunchSpecInstanceTypesFiltersArgs', 'OceanLaunchSpecInstanceTypesFiltersArgsDict']] instance_types_filters: The instance types that match with all filters compose the Virtual Node Group's instanceTypes parameter.
|
|
1187
1220
|
The architectures that come from the Virtual Node Group's images will be taken into account when using this parameter. Cannot be configured together with Virtual Node Group's instanceTypes and with the Cluster's whitelist/blacklist/filters.
|
|
1188
1221
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLabelArgs', 'OceanLaunchSpecLabelArgsDict']]]] labels: Optionally adds labels to instances launched in the cluster.
|
|
1222
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLoadBalancerArgs', 'OceanLaunchSpecLoadBalancerArgsDict']]]] load_balancers: Array of load balancer objects to add to VNG
|
|
1189
1223
|
:param pulumi.Input[_builtins.str] name: The name of the Virtual Node Group.
|
|
1190
1224
|
:param pulumi.Input[_builtins.str] ocean_id: The ID of the Ocean cluster.
|
|
1191
1225
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] preferred_od_types: A list of instance types. Takes the preferred types into consideration while maintaining a variety of machine types running for optimized distribution.
|
|
@@ -1253,6 +1287,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1253
1287
|
instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1254
1288
|
instance_types_filters: Optional[pulumi.Input[Union['OceanLaunchSpecInstanceTypesFiltersArgs', 'OceanLaunchSpecInstanceTypesFiltersArgsDict']]] = None,
|
|
1255
1289
|
labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLabelArgs', 'OceanLaunchSpecLabelArgsDict']]]]] = None,
|
|
1290
|
+
load_balancers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLoadBalancerArgs', 'OceanLaunchSpecLoadBalancerArgsDict']]]]] = None,
|
|
1256
1291
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1257
1292
|
ocean_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1258
1293
|
preferred_od_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -1297,6 +1332,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1297
1332
|
__props__.__dict__["instance_types"] = instance_types
|
|
1298
1333
|
__props__.__dict__["instance_types_filters"] = instance_types_filters
|
|
1299
1334
|
__props__.__dict__["labels"] = labels
|
|
1335
|
+
__props__.__dict__["load_balancers"] = load_balancers
|
|
1300
1336
|
__props__.__dict__["name"] = name
|
|
1301
1337
|
if ocean_id is None and not opts.urn:
|
|
1302
1338
|
raise TypeError("Missing required property 'ocean_id'")
|
|
@@ -1344,6 +1380,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1344
1380
|
instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1345
1381
|
instance_types_filters: Optional[pulumi.Input[Union['OceanLaunchSpecInstanceTypesFiltersArgs', 'OceanLaunchSpecInstanceTypesFiltersArgsDict']]] = None,
|
|
1346
1382
|
labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLabelArgs', 'OceanLaunchSpecLabelArgsDict']]]]] = None,
|
|
1383
|
+
load_balancers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLoadBalancerArgs', 'OceanLaunchSpecLoadBalancerArgsDict']]]]] = None,
|
|
1347
1384
|
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1348
1385
|
ocean_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
1349
1386
|
preferred_od_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
@@ -1385,6 +1422,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1385
1422
|
:param pulumi.Input[Union['OceanLaunchSpecInstanceTypesFiltersArgs', 'OceanLaunchSpecInstanceTypesFiltersArgsDict']] instance_types_filters: The instance types that match with all filters compose the Virtual Node Group's instanceTypes parameter.
|
|
1386
1423
|
The architectures that come from the Virtual Node Group's images will be taken into account when using this parameter. Cannot be configured together with Virtual Node Group's instanceTypes and with the Cluster's whitelist/blacklist/filters.
|
|
1387
1424
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLabelArgs', 'OceanLaunchSpecLabelArgsDict']]]] labels: Optionally adds labels to instances launched in the cluster.
|
|
1425
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLoadBalancerArgs', 'OceanLaunchSpecLoadBalancerArgsDict']]]] load_balancers: Array of load balancer objects to add to VNG
|
|
1388
1426
|
:param pulumi.Input[_builtins.str] name: The name of the Virtual Node Group.
|
|
1389
1427
|
:param pulumi.Input[_builtins.str] ocean_id: The ID of the Ocean cluster.
|
|
1390
1428
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] preferred_od_types: A list of instance types. Takes the preferred types into consideration while maintaining a variety of machine types running for optimized distribution.
|
|
@@ -1422,6 +1460,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1422
1460
|
__props__.__dict__["instance_types"] = instance_types
|
|
1423
1461
|
__props__.__dict__["instance_types_filters"] = instance_types_filters
|
|
1424
1462
|
__props__.__dict__["labels"] = labels
|
|
1463
|
+
__props__.__dict__["load_balancers"] = load_balancers
|
|
1425
1464
|
__props__.__dict__["name"] = name
|
|
1426
1465
|
__props__.__dict__["ocean_id"] = ocean_id
|
|
1427
1466
|
__props__.__dict__["preferred_od_types"] = preferred_od_types
|
|
@@ -1571,6 +1610,14 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1571
1610
|
"""
|
|
1572
1611
|
return pulumi.get(self, "labels")
|
|
1573
1612
|
|
|
1613
|
+
@_builtins.property
|
|
1614
|
+
@pulumi.getter(name="loadBalancers")
|
|
1615
|
+
def load_balancers(self) -> pulumi.Output[Optional[Sequence['outputs.OceanLaunchSpecLoadBalancer']]]:
|
|
1616
|
+
"""
|
|
1617
|
+
Array of load balancer objects to add to VNG
|
|
1618
|
+
"""
|
|
1619
|
+
return pulumi.get(self, "load_balancers")
|
|
1620
|
+
|
|
1574
1621
|
@_builtins.property
|
|
1575
1622
|
@pulumi.getter
|
|
1576
1623
|
def name(self) -> pulumi.Output[_builtins.str]:
|
pulumi_spotinst/aws/outputs.py
CHANGED
|
@@ -161,6 +161,7 @@ __all__ = [
|
|
|
161
161
|
'OceanLaunchSpecInstanceStorePolicy',
|
|
162
162
|
'OceanLaunchSpecInstanceTypesFilters',
|
|
163
163
|
'OceanLaunchSpecLabel',
|
|
164
|
+
'OceanLaunchSpecLoadBalancer',
|
|
164
165
|
'OceanLaunchSpecResourceLimit',
|
|
165
166
|
'OceanLaunchSpecSchedulingShutdownHours',
|
|
166
167
|
'OceanLaunchSpecSchedulingTask',
|
|
@@ -9024,7 +9025,9 @@ class OceanLaunchSpecAutoscaleDown(dict):
|
|
|
9024
9025
|
@staticmethod
|
|
9025
9026
|
def __key_warning(key: str):
|
|
9026
9027
|
suggest = None
|
|
9027
|
-
if key == "
|
|
9028
|
+
if key == "isAggressiveScaleDownEnabled":
|
|
9029
|
+
suggest = "is_aggressive_scale_down_enabled"
|
|
9030
|
+
elif key == "maxScaleDownPercentage":
|
|
9028
9031
|
suggest = "max_scale_down_percentage"
|
|
9029
9032
|
|
|
9030
9033
|
if suggest:
|
|
@@ -9039,13 +9042,25 @@ class OceanLaunchSpecAutoscaleDown(dict):
|
|
|
9039
9042
|
return super().get(key, default)
|
|
9040
9043
|
|
|
9041
9044
|
def __init__(__self__, *,
|
|
9045
|
+
is_aggressive_scale_down_enabled: Optional[_builtins.bool] = None,
|
|
9042
9046
|
max_scale_down_percentage: Optional[_builtins.float] = None):
|
|
9043
9047
|
"""
|
|
9048
|
+
:param _builtins.bool is_aggressive_scale_down_enabled: When set to 'true', the Aggressive Scale Down feature is enabled.
|
|
9044
9049
|
:param _builtins.float max_scale_down_percentage: The maximum percentage allowed to scale down in a single scaling action on the nodes running in a specific VNG. Allowed only if maxScaleDownPercentage is set to null at the cluster level. Number between [0.1-100].
|
|
9045
9050
|
"""
|
|
9051
|
+
if is_aggressive_scale_down_enabled is not None:
|
|
9052
|
+
pulumi.set(__self__, "is_aggressive_scale_down_enabled", is_aggressive_scale_down_enabled)
|
|
9046
9053
|
if max_scale_down_percentage is not None:
|
|
9047
9054
|
pulumi.set(__self__, "max_scale_down_percentage", max_scale_down_percentage)
|
|
9048
9055
|
|
|
9056
|
+
@_builtins.property
|
|
9057
|
+
@pulumi.getter(name="isAggressiveScaleDownEnabled")
|
|
9058
|
+
def is_aggressive_scale_down_enabled(self) -> Optional[_builtins.bool]:
|
|
9059
|
+
"""
|
|
9060
|
+
When set to 'true', the Aggressive Scale Down feature is enabled.
|
|
9061
|
+
"""
|
|
9062
|
+
return pulumi.get(self, "is_aggressive_scale_down_enabled")
|
|
9063
|
+
|
|
9049
9064
|
@_builtins.property
|
|
9050
9065
|
@pulumi.getter(name="maxScaleDownPercentage")
|
|
9051
9066
|
def max_scale_down_percentage(self) -> Optional[_builtins.float]:
|
|
@@ -10063,6 +10078,48 @@ class OceanLaunchSpecLabel(dict):
|
|
|
10063
10078
|
return pulumi.get(self, "value")
|
|
10064
10079
|
|
|
10065
10080
|
|
|
10081
|
+
@pulumi.output_type
|
|
10082
|
+
class OceanLaunchSpecLoadBalancer(dict):
|
|
10083
|
+
def __init__(__self__, *,
|
|
10084
|
+
type: _builtins.str,
|
|
10085
|
+
arn: Optional[_builtins.str] = None,
|
|
10086
|
+
name: Optional[_builtins.str] = None):
|
|
10087
|
+
"""
|
|
10088
|
+
:param _builtins.str type: Can be set to `CLASSIC` or `TARGET_GROUP`
|
|
10089
|
+
:param _builtins.str arn: Required if type is set to `TARGET_GROUP`
|
|
10090
|
+
:param _builtins.str name: Required if type is set to `CLASSIC`
|
|
10091
|
+
"""
|
|
10092
|
+
pulumi.set(__self__, "type", type)
|
|
10093
|
+
if arn is not None:
|
|
10094
|
+
pulumi.set(__self__, "arn", arn)
|
|
10095
|
+
if name is not None:
|
|
10096
|
+
pulumi.set(__self__, "name", name)
|
|
10097
|
+
|
|
10098
|
+
@_builtins.property
|
|
10099
|
+
@pulumi.getter
|
|
10100
|
+
def type(self) -> _builtins.str:
|
|
10101
|
+
"""
|
|
10102
|
+
Can be set to `CLASSIC` or `TARGET_GROUP`
|
|
10103
|
+
"""
|
|
10104
|
+
return pulumi.get(self, "type")
|
|
10105
|
+
|
|
10106
|
+
@_builtins.property
|
|
10107
|
+
@pulumi.getter
|
|
10108
|
+
def arn(self) -> Optional[_builtins.str]:
|
|
10109
|
+
"""
|
|
10110
|
+
Required if type is set to `TARGET_GROUP`
|
|
10111
|
+
"""
|
|
10112
|
+
return pulumi.get(self, "arn")
|
|
10113
|
+
|
|
10114
|
+
@_builtins.property
|
|
10115
|
+
@pulumi.getter
|
|
10116
|
+
def name(self) -> Optional[_builtins.str]:
|
|
10117
|
+
"""
|
|
10118
|
+
Required if type is set to `CLASSIC`
|
|
10119
|
+
"""
|
|
10120
|
+
return pulumi.get(self, "name")
|
|
10121
|
+
|
|
10122
|
+
|
|
10066
10123
|
@pulumi.output_type
|
|
10067
10124
|
class OceanLaunchSpecResourceLimit(dict):
|
|
10068
10125
|
@staticmethod
|