pulumi-spotinst 3.125.0a1759907052__py3-none-any.whl → 3.126.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-spotinst might be problematic. Click here for more details.
- pulumi_spotinst/_inputs.py +291 -0
- pulumi_spotinst/aws/_inputs.py +93 -0
- pulumi_spotinst/aws/mr_scalar.py +4 -0
- pulumi_spotinst/aws/ocean_launch_spec.py +47 -0
- pulumi_spotinst/aws/outputs.py +58 -1
- pulumi_spotinst/ecs/ocean.py +4 -0
- pulumi_spotinst/gke/_inputs.py +134 -0
- pulumi_spotinst/gke/ocean_launch_spec.py +71 -2
- pulumi_spotinst/gke/outputs.py +107 -0
- pulumi_spotinst/ocean_right_sizing_rule.py +348 -2
- pulumi_spotinst/outputs.py +180 -0
- pulumi_spotinst/pulumi-plugin.json +1 -1
- {pulumi_spotinst-3.125.0a1759907052.dist-info → pulumi_spotinst-3.126.0.dist-info}/METADATA +1 -1
- {pulumi_spotinst-3.125.0a1759907052.dist-info → pulumi_spotinst-3.126.0.dist-info}/RECORD +16 -16
- {pulumi_spotinst-3.125.0a1759907052.dist-info → pulumi_spotinst-3.126.0.dist-info}/WHEEL +0 -0
- {pulumi_spotinst-3.125.0a1759907052.dist-info → pulumi_spotinst-3.126.0.dist-info}/top_level.txt +0 -0
|
@@ -25,6 +25,7 @@ class OceanLaunchSpecArgs:
|
|
|
25
25
|
autoscale_headrooms: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecAutoscaleHeadroomArgs']]]] = None,
|
|
26
26
|
autoscale_headrooms_automatics: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs']]]] = None,
|
|
27
27
|
create_options: Optional[pulumi.Input['OceanLaunchSpecCreateOptionsArgs']] = None,
|
|
28
|
+
filters: Optional[pulumi.Input['OceanLaunchSpecFiltersArgs']] = None,
|
|
28
29
|
instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
29
30
|
labels: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLabelArgs']]]] = None,
|
|
30
31
|
metadatas: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecMetadataArgs']]]] = None,
|
|
@@ -49,6 +50,7 @@ class OceanLaunchSpecArgs:
|
|
|
49
50
|
:param pulumi.Input[_builtins.str] ocean_id: The Ocean cluster ID.
|
|
50
51
|
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecAutoscaleHeadroomArgs']]] autoscale_headrooms: Set custom headroom per launch spec. provide list of headrooms object.
|
|
51
52
|
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs']]] autoscale_headrooms_automatics: Set automatic headroom per launch spec.
|
|
53
|
+
:param pulumi.Input['OceanLaunchSpecFiltersArgs'] filters: List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured if cluster's `instance_types` is configured.
|
|
52
54
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] instance_types: List of supported machine types for the Launch Spec.
|
|
53
55
|
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLabelArgs']]] labels: Optionally adds labels to instances launched in an Ocean cluster.
|
|
54
56
|
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecMetadataArgs']]] metadatas: Cluster's metadata.
|
|
@@ -75,6 +77,8 @@ class OceanLaunchSpecArgs:
|
|
|
75
77
|
pulumi.set(__self__, "autoscale_headrooms_automatics", autoscale_headrooms_automatics)
|
|
76
78
|
if create_options is not None:
|
|
77
79
|
pulumi.set(__self__, "create_options", create_options)
|
|
80
|
+
if filters is not None:
|
|
81
|
+
pulumi.set(__self__, "filters", filters)
|
|
78
82
|
if instance_types is not None:
|
|
79
83
|
pulumi.set(__self__, "instance_types", instance_types)
|
|
80
84
|
if labels is not None:
|
|
@@ -159,6 +163,18 @@ class OceanLaunchSpecArgs:
|
|
|
159
163
|
def create_options(self, value: Optional[pulumi.Input['OceanLaunchSpecCreateOptionsArgs']]):
|
|
160
164
|
pulumi.set(self, "create_options", value)
|
|
161
165
|
|
|
166
|
+
@_builtins.property
|
|
167
|
+
@pulumi.getter
|
|
168
|
+
def filters(self) -> Optional[pulumi.Input['OceanLaunchSpecFiltersArgs']]:
|
|
169
|
+
"""
|
|
170
|
+
List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured if cluster's `instance_types` is configured.
|
|
171
|
+
"""
|
|
172
|
+
return pulumi.get(self, "filters")
|
|
173
|
+
|
|
174
|
+
@filters.setter
|
|
175
|
+
def filters(self, value: Optional[pulumi.Input['OceanLaunchSpecFiltersArgs']]):
|
|
176
|
+
pulumi.set(self, "filters", value)
|
|
177
|
+
|
|
162
178
|
@_builtins.property
|
|
163
179
|
@pulumi.getter(name="instanceTypes")
|
|
164
180
|
def instance_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
@@ -391,6 +407,7 @@ class _OceanLaunchSpecState:
|
|
|
391
407
|
autoscale_headrooms: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecAutoscaleHeadroomArgs']]]] = None,
|
|
392
408
|
autoscale_headrooms_automatics: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs']]]] = None,
|
|
393
409
|
create_options: Optional[pulumi.Input['OceanLaunchSpecCreateOptionsArgs']] = None,
|
|
410
|
+
filters: Optional[pulumi.Input['OceanLaunchSpecFiltersArgs']] = None,
|
|
394
411
|
instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
395
412
|
labels: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLabelArgs']]]] = None,
|
|
396
413
|
metadatas: Optional[pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecMetadataArgs']]]] = None,
|
|
@@ -415,6 +432,7 @@ class _OceanLaunchSpecState:
|
|
|
415
432
|
Input properties used for looking up and filtering OceanLaunchSpec resources.
|
|
416
433
|
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecAutoscaleHeadroomArgs']]] autoscale_headrooms: Set custom headroom per launch spec. provide list of headrooms object.
|
|
417
434
|
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs']]] autoscale_headrooms_automatics: Set automatic headroom per launch spec.
|
|
435
|
+
:param pulumi.Input['OceanLaunchSpecFiltersArgs'] filters: List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured if cluster's `instance_types` is configured.
|
|
418
436
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] instance_types: List of supported machine types for the Launch Spec.
|
|
419
437
|
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecLabelArgs']]] labels: Optionally adds labels to instances launched in an Ocean cluster.
|
|
420
438
|
:param pulumi.Input[Sequence[pulumi.Input['OceanLaunchSpecMetadataArgs']]] metadatas: Cluster's metadata.
|
|
@@ -441,6 +459,8 @@ class _OceanLaunchSpecState:
|
|
|
441
459
|
pulumi.set(__self__, "autoscale_headrooms_automatics", autoscale_headrooms_automatics)
|
|
442
460
|
if create_options is not None:
|
|
443
461
|
pulumi.set(__self__, "create_options", create_options)
|
|
462
|
+
if filters is not None:
|
|
463
|
+
pulumi.set(__self__, "filters", filters)
|
|
444
464
|
if instance_types is not None:
|
|
445
465
|
pulumi.set(__self__, "instance_types", instance_types)
|
|
446
466
|
if labels is not None:
|
|
@@ -515,6 +535,18 @@ class _OceanLaunchSpecState:
|
|
|
515
535
|
def create_options(self, value: Optional[pulumi.Input['OceanLaunchSpecCreateOptionsArgs']]):
|
|
516
536
|
pulumi.set(self, "create_options", value)
|
|
517
537
|
|
|
538
|
+
@_builtins.property
|
|
539
|
+
@pulumi.getter
|
|
540
|
+
def filters(self) -> Optional[pulumi.Input['OceanLaunchSpecFiltersArgs']]:
|
|
541
|
+
"""
|
|
542
|
+
List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured if cluster's `instance_types` is configured.
|
|
543
|
+
"""
|
|
544
|
+
return pulumi.get(self, "filters")
|
|
545
|
+
|
|
546
|
+
@filters.setter
|
|
547
|
+
def filters(self, value: Optional[pulumi.Input['OceanLaunchSpecFiltersArgs']]):
|
|
548
|
+
pulumi.set(self, "filters", value)
|
|
549
|
+
|
|
518
550
|
@_builtins.property
|
|
519
551
|
@pulumi.getter(name="instanceTypes")
|
|
520
552
|
def instance_types(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
@@ -762,6 +794,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
762
794
|
autoscale_headrooms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecAutoscaleHeadroomArgs', 'OceanLaunchSpecAutoscaleHeadroomArgsDict']]]]] = None,
|
|
763
795
|
autoscale_headrooms_automatics: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs', 'OceanLaunchSpecAutoscaleHeadroomsAutomaticArgsDict']]]]] = None,
|
|
764
796
|
create_options: Optional[pulumi.Input[Union['OceanLaunchSpecCreateOptionsArgs', 'OceanLaunchSpecCreateOptionsArgsDict']]] = None,
|
|
797
|
+
filters: Optional[pulumi.Input[Union['OceanLaunchSpecFiltersArgs', 'OceanLaunchSpecFiltersArgsDict']]] = None,
|
|
765
798
|
instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
766
799
|
labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLabelArgs', 'OceanLaunchSpecLabelArgsDict']]]]] = None,
|
|
767
800
|
metadatas: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecMetadataArgs', 'OceanLaunchSpecMetadataArgsDict']]]]] = None,
|
|
@@ -870,13 +903,25 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
870
903
|
"ip_cidr_range": "/25",
|
|
871
904
|
"subnetwork_range_name": "gke-test-native-vpc-pods-123456-vng",
|
|
872
905
|
}],
|
|
873
|
-
}]
|
|
906
|
+
}],
|
|
907
|
+
filters={
|
|
908
|
+
"exclude_families": ["n2"],
|
|
909
|
+
"include_families": [
|
|
910
|
+
"c2",
|
|
911
|
+
"c3",
|
|
912
|
+
],
|
|
913
|
+
"min_memory_gib": 8,
|
|
914
|
+
"max_memory_gib": 32,
|
|
915
|
+
"min_vcpu": 2,
|
|
916
|
+
"max_vcpu": 16,
|
|
917
|
+
})
|
|
874
918
|
```
|
|
875
919
|
|
|
876
920
|
:param str resource_name: The name of the resource.
|
|
877
921
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
878
922
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecAutoscaleHeadroomArgs', 'OceanLaunchSpecAutoscaleHeadroomArgsDict']]]] autoscale_headrooms: Set custom headroom per launch spec. provide list of headrooms object.
|
|
879
923
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs', 'OceanLaunchSpecAutoscaleHeadroomsAutomaticArgsDict']]]] autoscale_headrooms_automatics: Set automatic headroom per launch spec.
|
|
924
|
+
:param pulumi.Input[Union['OceanLaunchSpecFiltersArgs', 'OceanLaunchSpecFiltersArgsDict']] filters: List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured if cluster's `instance_types` is configured.
|
|
880
925
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] instance_types: List of supported machine types for the Launch Spec.
|
|
881
926
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLabelArgs', 'OceanLaunchSpecLabelArgsDict']]]] labels: Optionally adds labels to instances launched in an Ocean cluster.
|
|
882
927
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecMetadataArgs', 'OceanLaunchSpecMetadataArgsDict']]]] metadatas: Cluster's metadata.
|
|
@@ -990,7 +1035,18 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
990
1035
|
"ip_cidr_range": "/25",
|
|
991
1036
|
"subnetwork_range_name": "gke-test-native-vpc-pods-123456-vng",
|
|
992
1037
|
}],
|
|
993
|
-
}]
|
|
1038
|
+
}],
|
|
1039
|
+
filters={
|
|
1040
|
+
"exclude_families": ["n2"],
|
|
1041
|
+
"include_families": [
|
|
1042
|
+
"c2",
|
|
1043
|
+
"c3",
|
|
1044
|
+
],
|
|
1045
|
+
"min_memory_gib": 8,
|
|
1046
|
+
"max_memory_gib": 32,
|
|
1047
|
+
"min_vcpu": 2,
|
|
1048
|
+
"max_vcpu": 16,
|
|
1049
|
+
})
|
|
994
1050
|
```
|
|
995
1051
|
|
|
996
1052
|
:param str resource_name: The name of the resource.
|
|
@@ -1011,6 +1067,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1011
1067
|
autoscale_headrooms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecAutoscaleHeadroomArgs', 'OceanLaunchSpecAutoscaleHeadroomArgsDict']]]]] = None,
|
|
1012
1068
|
autoscale_headrooms_automatics: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs', 'OceanLaunchSpecAutoscaleHeadroomsAutomaticArgsDict']]]]] = None,
|
|
1013
1069
|
create_options: Optional[pulumi.Input[Union['OceanLaunchSpecCreateOptionsArgs', 'OceanLaunchSpecCreateOptionsArgsDict']]] = None,
|
|
1070
|
+
filters: Optional[pulumi.Input[Union['OceanLaunchSpecFiltersArgs', 'OceanLaunchSpecFiltersArgsDict']]] = None,
|
|
1014
1071
|
instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1015
1072
|
labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLabelArgs', 'OceanLaunchSpecLabelArgsDict']]]]] = None,
|
|
1016
1073
|
metadatas: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecMetadataArgs', 'OceanLaunchSpecMetadataArgsDict']]]]] = None,
|
|
@@ -1043,6 +1100,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1043
1100
|
__props__.__dict__["autoscale_headrooms"] = autoscale_headrooms
|
|
1044
1101
|
__props__.__dict__["autoscale_headrooms_automatics"] = autoscale_headrooms_automatics
|
|
1045
1102
|
__props__.__dict__["create_options"] = create_options
|
|
1103
|
+
__props__.__dict__["filters"] = filters
|
|
1046
1104
|
__props__.__dict__["instance_types"] = instance_types
|
|
1047
1105
|
__props__.__dict__["labels"] = labels
|
|
1048
1106
|
__props__.__dict__["metadatas"] = metadatas
|
|
@@ -1078,6 +1136,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1078
1136
|
autoscale_headrooms: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecAutoscaleHeadroomArgs', 'OceanLaunchSpecAutoscaleHeadroomArgsDict']]]]] = None,
|
|
1079
1137
|
autoscale_headrooms_automatics: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs', 'OceanLaunchSpecAutoscaleHeadroomsAutomaticArgsDict']]]]] = None,
|
|
1080
1138
|
create_options: Optional[pulumi.Input[Union['OceanLaunchSpecCreateOptionsArgs', 'OceanLaunchSpecCreateOptionsArgsDict']]] = None,
|
|
1139
|
+
filters: Optional[pulumi.Input[Union['OceanLaunchSpecFiltersArgs', 'OceanLaunchSpecFiltersArgsDict']]] = None,
|
|
1081
1140
|
instance_types: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
1082
1141
|
labels: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLabelArgs', 'OceanLaunchSpecLabelArgsDict']]]]] = None,
|
|
1083
1142
|
metadatas: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecMetadataArgs', 'OceanLaunchSpecMetadataArgsDict']]]]] = None,
|
|
@@ -1107,6 +1166,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1107
1166
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1108
1167
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecAutoscaleHeadroomArgs', 'OceanLaunchSpecAutoscaleHeadroomArgsDict']]]] autoscale_headrooms: Set custom headroom per launch spec. provide list of headrooms object.
|
|
1109
1168
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecAutoscaleHeadroomsAutomaticArgs', 'OceanLaunchSpecAutoscaleHeadroomsAutomaticArgsDict']]]] autoscale_headrooms_automatics: Set automatic headroom per launch spec.
|
|
1169
|
+
:param pulumi.Input[Union['OceanLaunchSpecFiltersArgs', 'OceanLaunchSpecFiltersArgsDict']] filters: List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured if cluster's `instance_types` is configured.
|
|
1110
1170
|
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] instance_types: List of supported machine types for the Launch Spec.
|
|
1111
1171
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecLabelArgs', 'OceanLaunchSpecLabelArgsDict']]]] labels: Optionally adds labels to instances launched in an Ocean cluster.
|
|
1112
1172
|
:param pulumi.Input[Sequence[pulumi.Input[Union['OceanLaunchSpecMetadataArgs', 'OceanLaunchSpecMetadataArgsDict']]]] metadatas: Cluster's metadata.
|
|
@@ -1134,6 +1194,7 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1134
1194
|
__props__.__dict__["autoscale_headrooms"] = autoscale_headrooms
|
|
1135
1195
|
__props__.__dict__["autoscale_headrooms_automatics"] = autoscale_headrooms_automatics
|
|
1136
1196
|
__props__.__dict__["create_options"] = create_options
|
|
1197
|
+
__props__.__dict__["filters"] = filters
|
|
1137
1198
|
__props__.__dict__["instance_types"] = instance_types
|
|
1138
1199
|
__props__.__dict__["labels"] = labels
|
|
1139
1200
|
__props__.__dict__["metadatas"] = metadatas
|
|
@@ -1177,6 +1238,14 @@ class OceanLaunchSpec(pulumi.CustomResource):
|
|
|
1177
1238
|
def create_options(self) -> pulumi.Output[Optional['outputs.OceanLaunchSpecCreateOptions']]:
|
|
1178
1239
|
return pulumi.get(self, "create_options")
|
|
1179
1240
|
|
|
1241
|
+
@_builtins.property
|
|
1242
|
+
@pulumi.getter
|
|
1243
|
+
def filters(self) -> pulumi.Output[Optional['outputs.OceanLaunchSpecFilters']]:
|
|
1244
|
+
"""
|
|
1245
|
+
List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured if cluster's `instance_types` is configured.
|
|
1246
|
+
"""
|
|
1247
|
+
return pulumi.get(self, "filters")
|
|
1248
|
+
|
|
1180
1249
|
@_builtins.property
|
|
1181
1250
|
@pulumi.getter(name="instanceTypes")
|
|
1182
1251
|
def instance_types(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
pulumi_spotinst/gke/outputs.py
CHANGED
|
@@ -59,6 +59,7 @@ __all__ = [
|
|
|
59
59
|
'OceanLaunchSpecAutoscaleHeadroom',
|
|
60
60
|
'OceanLaunchSpecAutoscaleHeadroomsAutomatic',
|
|
61
61
|
'OceanLaunchSpecCreateOptions',
|
|
62
|
+
'OceanLaunchSpecFilters',
|
|
62
63
|
'OceanLaunchSpecLabel',
|
|
63
64
|
'OceanLaunchSpecMetadata',
|
|
64
65
|
'OceanLaunchSpecNetworkInterface',
|
|
@@ -2500,6 +2501,112 @@ class OceanLaunchSpecCreateOptions(dict):
|
|
|
2500
2501
|
return pulumi.get(self, "initial_nodes")
|
|
2501
2502
|
|
|
2502
2503
|
|
|
2504
|
+
@pulumi.output_type
|
|
2505
|
+
class OceanLaunchSpecFilters(dict):
|
|
2506
|
+
@staticmethod
|
|
2507
|
+
def __key_warning(key: str):
|
|
2508
|
+
suggest = None
|
|
2509
|
+
if key == "excludeFamilies":
|
|
2510
|
+
suggest = "exclude_families"
|
|
2511
|
+
elif key == "includeFamilies":
|
|
2512
|
+
suggest = "include_families"
|
|
2513
|
+
elif key == "maxMemoryGib":
|
|
2514
|
+
suggest = "max_memory_gib"
|
|
2515
|
+
elif key == "maxVcpu":
|
|
2516
|
+
suggest = "max_vcpu"
|
|
2517
|
+
elif key == "minMemoryGib":
|
|
2518
|
+
suggest = "min_memory_gib"
|
|
2519
|
+
elif key == "minVcpu":
|
|
2520
|
+
suggest = "min_vcpu"
|
|
2521
|
+
|
|
2522
|
+
if suggest:
|
|
2523
|
+
pulumi.log.warn(f"Key '{key}' not found in OceanLaunchSpecFilters. Access the value via the '{suggest}' property getter instead.")
|
|
2524
|
+
|
|
2525
|
+
def __getitem__(self, key: str) -> Any:
|
|
2526
|
+
OceanLaunchSpecFilters.__key_warning(key)
|
|
2527
|
+
return super().__getitem__(key)
|
|
2528
|
+
|
|
2529
|
+
def get(self, key: str, default = None) -> Any:
|
|
2530
|
+
OceanLaunchSpecFilters.__key_warning(key)
|
|
2531
|
+
return super().get(key, default)
|
|
2532
|
+
|
|
2533
|
+
def __init__(__self__, *,
|
|
2534
|
+
exclude_families: Optional[Sequence[_builtins.str]] = None,
|
|
2535
|
+
include_families: Optional[Sequence[_builtins.str]] = None,
|
|
2536
|
+
max_memory_gib: Optional[_builtins.float] = None,
|
|
2537
|
+
max_vcpu: Optional[_builtins.int] = None,
|
|
2538
|
+
min_memory_gib: Optional[_builtins.float] = None,
|
|
2539
|
+
min_vcpu: Optional[_builtins.int] = None):
|
|
2540
|
+
"""
|
|
2541
|
+
:param Sequence[_builtins.str] exclude_families: Types belonging to a family from the ExcludeFamilies will not be available for scaling (asterisk wildcard is also supported). For example, C* will exclude instance types from these families: c5, c4, c4a, etc.
|
|
2542
|
+
:param Sequence[_builtins.str] include_families: Types belonging to a family from the IncludeFamilies will be available for scaling (asterisk wildcard is also supported). For example, C* will include instance types from these families: c5, c4, c4a, etc.
|
|
2543
|
+
:param _builtins.float max_memory_gib: Maximum amount of Memory (GiB).
|
|
2544
|
+
:param _builtins.int max_vcpu: Maximum number of vcpus available.
|
|
2545
|
+
:param _builtins.float min_memory_gib: Minimum amount of Memory (GiB).
|
|
2546
|
+
:param _builtins.int min_vcpu: Minimum number of vcpus available.
|
|
2547
|
+
"""
|
|
2548
|
+
if exclude_families is not None:
|
|
2549
|
+
pulumi.set(__self__, "exclude_families", exclude_families)
|
|
2550
|
+
if include_families is not None:
|
|
2551
|
+
pulumi.set(__self__, "include_families", include_families)
|
|
2552
|
+
if max_memory_gib is not None:
|
|
2553
|
+
pulumi.set(__self__, "max_memory_gib", max_memory_gib)
|
|
2554
|
+
if max_vcpu is not None:
|
|
2555
|
+
pulumi.set(__self__, "max_vcpu", max_vcpu)
|
|
2556
|
+
if min_memory_gib is not None:
|
|
2557
|
+
pulumi.set(__self__, "min_memory_gib", min_memory_gib)
|
|
2558
|
+
if min_vcpu is not None:
|
|
2559
|
+
pulumi.set(__self__, "min_vcpu", min_vcpu)
|
|
2560
|
+
|
|
2561
|
+
@_builtins.property
|
|
2562
|
+
@pulumi.getter(name="excludeFamilies")
|
|
2563
|
+
def exclude_families(self) -> Optional[Sequence[_builtins.str]]:
|
|
2564
|
+
"""
|
|
2565
|
+
Types belonging to a family from the ExcludeFamilies will not be available for scaling (asterisk wildcard is also supported). For example, C* will exclude instance types from these families: c5, c4, c4a, etc.
|
|
2566
|
+
"""
|
|
2567
|
+
return pulumi.get(self, "exclude_families")
|
|
2568
|
+
|
|
2569
|
+
@_builtins.property
|
|
2570
|
+
@pulumi.getter(name="includeFamilies")
|
|
2571
|
+
def include_families(self) -> Optional[Sequence[_builtins.str]]:
|
|
2572
|
+
"""
|
|
2573
|
+
Types belonging to a family from the IncludeFamilies will be available for scaling (asterisk wildcard is also supported). For example, C* will include instance types from these families: c5, c4, c4a, etc.
|
|
2574
|
+
"""
|
|
2575
|
+
return pulumi.get(self, "include_families")
|
|
2576
|
+
|
|
2577
|
+
@_builtins.property
|
|
2578
|
+
@pulumi.getter(name="maxMemoryGib")
|
|
2579
|
+
def max_memory_gib(self) -> Optional[_builtins.float]:
|
|
2580
|
+
"""
|
|
2581
|
+
Maximum amount of Memory (GiB).
|
|
2582
|
+
"""
|
|
2583
|
+
return pulumi.get(self, "max_memory_gib")
|
|
2584
|
+
|
|
2585
|
+
@_builtins.property
|
|
2586
|
+
@pulumi.getter(name="maxVcpu")
|
|
2587
|
+
def max_vcpu(self) -> Optional[_builtins.int]:
|
|
2588
|
+
"""
|
|
2589
|
+
Maximum number of vcpus available.
|
|
2590
|
+
"""
|
|
2591
|
+
return pulumi.get(self, "max_vcpu")
|
|
2592
|
+
|
|
2593
|
+
@_builtins.property
|
|
2594
|
+
@pulumi.getter(name="minMemoryGib")
|
|
2595
|
+
def min_memory_gib(self) -> Optional[_builtins.float]:
|
|
2596
|
+
"""
|
|
2597
|
+
Minimum amount of Memory (GiB).
|
|
2598
|
+
"""
|
|
2599
|
+
return pulumi.get(self, "min_memory_gib")
|
|
2600
|
+
|
|
2601
|
+
@_builtins.property
|
|
2602
|
+
@pulumi.getter(name="minVcpu")
|
|
2603
|
+
def min_vcpu(self) -> Optional[_builtins.int]:
|
|
2604
|
+
"""
|
|
2605
|
+
Minimum number of vcpus available.
|
|
2606
|
+
"""
|
|
2607
|
+
return pulumi.get(self, "min_vcpu")
|
|
2608
|
+
|
|
2609
|
+
|
|
2503
2610
|
@pulumi.output_type
|
|
2504
2611
|
class OceanLaunchSpecLabel(dict):
|
|
2505
2612
|
def __init__(__self__, *,
|