pulumi-spotinst 3.126.0a1761894726__py3-none-any.whl → 3.128.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 +317 -0
- pulumi_spotinst/aws/_inputs.py +177 -0
- pulumi_spotinst/aws/beanstalk.py +76 -0
- pulumi_spotinst/aws/ocean_launch_spec.py +47 -0
- pulumi_spotinst/aws/outputs.py +128 -1
- pulumi_spotinst/ecs/ocean.py +208 -0
- pulumi_spotinst/gke/ocean_launch_spec.py +7 -7
- pulumi_spotinst/ocean_right_sizing_rule.py +280 -2
- pulumi_spotinst/outputs.py +217 -0
- pulumi_spotinst/pulumi-plugin.json +1 -1
- pulumi_spotinst/stateful_node_azure.py +22 -0
- {pulumi_spotinst-3.126.0a1761894726.dist-info → pulumi_spotinst-3.128.0.dist-info}/METADATA +1 -1
- {pulumi_spotinst-3.126.0a1761894726.dist-info → pulumi_spotinst-3.128.0.dist-info}/RECORD +15 -15
- {pulumi_spotinst-3.126.0a1761894726.dist-info → pulumi_spotinst-3.128.0.dist-info}/WHEEL +0 -0
- {pulumi_spotinst-3.126.0a1761894726.dist-info → pulumi_spotinst-3.128.0.dist-info}/top_level.txt +0 -0
pulumi_spotinst/aws/_inputs.py
CHANGED
|
@@ -283,6 +283,8 @@ __all__ = [
|
|
|
283
283
|
'OceanLaunchSpecBlockDeviceMappingArgsDict',
|
|
284
284
|
'OceanLaunchSpecBlockDeviceMappingEbsArgs',
|
|
285
285
|
'OceanLaunchSpecBlockDeviceMappingEbsArgsDict',
|
|
286
|
+
'OceanLaunchSpecBlockDeviceMappingEbsDynamicIopsArgs',
|
|
287
|
+
'OceanLaunchSpecBlockDeviceMappingEbsDynamicIopsArgsDict',
|
|
286
288
|
'OceanLaunchSpecBlockDeviceMappingEbsDynamicVolumeSizeArgs',
|
|
287
289
|
'OceanLaunchSpecBlockDeviceMappingEbsDynamicVolumeSizeArgsDict',
|
|
288
290
|
'OceanLaunchSpecCreateOptionsArgs',
|
|
@@ -305,6 +307,8 @@ __all__ = [
|
|
|
305
307
|
'OceanLaunchSpecInstanceTypesFiltersArgsDict',
|
|
306
308
|
'OceanLaunchSpecLabelArgs',
|
|
307
309
|
'OceanLaunchSpecLabelArgsDict',
|
|
310
|
+
'OceanLaunchSpecLoadBalancerArgs',
|
|
311
|
+
'OceanLaunchSpecLoadBalancerArgsDict',
|
|
308
312
|
'OceanLaunchSpecResourceLimitArgs',
|
|
309
313
|
'OceanLaunchSpecResourceLimitArgsDict',
|
|
310
314
|
'OceanLaunchSpecSchedulingShutdownHoursArgs',
|
|
@@ -11623,6 +11627,10 @@ class OceanInstanceStorePolicyArgs:
|
|
|
11623
11627
|
|
|
11624
11628
|
if not MYPY:
|
|
11625
11629
|
class OceanLaunchSpecAutoscaleDownArgsDict(TypedDict):
|
|
11630
|
+
is_aggressive_scale_down_enabled: NotRequired[pulumi.Input[_builtins.bool]]
|
|
11631
|
+
"""
|
|
11632
|
+
When set to 'true', the Aggressive Scale Down feature is enabled.
|
|
11633
|
+
"""
|
|
11626
11634
|
max_scale_down_percentage: NotRequired[pulumi.Input[_builtins.float]]
|
|
11627
11635
|
"""
|
|
11628
11636
|
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 +11641,29 @@ elif False:
|
|
|
11633
11641
|
@pulumi.input_type
|
|
11634
11642
|
class OceanLaunchSpecAutoscaleDownArgs:
|
|
11635
11643
|
def __init__(__self__, *,
|
|
11644
|
+
is_aggressive_scale_down_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
11636
11645
|
max_scale_down_percentage: Optional[pulumi.Input[_builtins.float]] = None):
|
|
11637
11646
|
"""
|
|
11647
|
+
:param pulumi.Input[_builtins.bool] is_aggressive_scale_down_enabled: When set to 'true', the Aggressive Scale Down feature is enabled.
|
|
11638
11648
|
: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
11649
|
"""
|
|
11650
|
+
if is_aggressive_scale_down_enabled is not None:
|
|
11651
|
+
pulumi.set(__self__, "is_aggressive_scale_down_enabled", is_aggressive_scale_down_enabled)
|
|
11640
11652
|
if max_scale_down_percentage is not None:
|
|
11641
11653
|
pulumi.set(__self__, "max_scale_down_percentage", max_scale_down_percentage)
|
|
11642
11654
|
|
|
11655
|
+
@_builtins.property
|
|
11656
|
+
@pulumi.getter(name="isAggressiveScaleDownEnabled")
|
|
11657
|
+
def is_aggressive_scale_down_enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
11658
|
+
"""
|
|
11659
|
+
When set to 'true', the Aggressive Scale Down feature is enabled.
|
|
11660
|
+
"""
|
|
11661
|
+
return pulumi.get(self, "is_aggressive_scale_down_enabled")
|
|
11662
|
+
|
|
11663
|
+
@is_aggressive_scale_down_enabled.setter
|
|
11664
|
+
def is_aggressive_scale_down_enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
11665
|
+
pulumi.set(self, "is_aggressive_scale_down_enabled", value)
|
|
11666
|
+
|
|
11643
11667
|
@_builtins.property
|
|
11644
11668
|
@pulumi.getter(name="maxScaleDownPercentage")
|
|
11645
11669
|
def max_scale_down_percentage(self) -> Optional[pulumi.Input[_builtins.float]]:
|
|
@@ -11860,6 +11884,10 @@ if not MYPY:
|
|
|
11860
11884
|
"""
|
|
11861
11885
|
Boolean. Flag to delete the EBS on instance termination.
|
|
11862
11886
|
"""
|
|
11887
|
+
dynamic_iops: NotRequired[pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsDynamicIopsArgsDict']]
|
|
11888
|
+
"""
|
|
11889
|
+
Set dynamic IOPS properties. When using this object, you cannot use the `iops` attribute. You must use one or the other.
|
|
11890
|
+
"""
|
|
11863
11891
|
dynamic_volume_size: NotRequired[pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsDynamicVolumeSizeArgsDict']]
|
|
11864
11892
|
"""
|
|
11865
11893
|
Object. Set dynamic volume size properties. When using this object, you cannot use volumeSize. You must use one or the other.
|
|
@@ -11899,6 +11927,7 @@ elif False:
|
|
|
11899
11927
|
class OceanLaunchSpecBlockDeviceMappingEbsArgs:
|
|
11900
11928
|
def __init__(__self__, *,
|
|
11901
11929
|
delete_on_termination: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
11930
|
+
dynamic_iops: Optional[pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsDynamicIopsArgs']] = None,
|
|
11902
11931
|
dynamic_volume_size: Optional[pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsDynamicVolumeSizeArgs']] = None,
|
|
11903
11932
|
encrypted: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
11904
11933
|
iops: Optional[pulumi.Input[_builtins.int]] = None,
|
|
@@ -11909,6 +11938,7 @@ class OceanLaunchSpecBlockDeviceMappingEbsArgs:
|
|
|
11909
11938
|
volume_type: Optional[pulumi.Input[_builtins.str]] = None):
|
|
11910
11939
|
"""
|
|
11911
11940
|
:param pulumi.Input[_builtins.bool] delete_on_termination: Boolean. Flag to delete the EBS on instance termination.
|
|
11941
|
+
:param pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsDynamicIopsArgs'] dynamic_iops: Set dynamic IOPS properties. When using this object, you cannot use the `iops` attribute. You must use one or the other.
|
|
11912
11942
|
:param pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsDynamicVolumeSizeArgs'] dynamic_volume_size: Object. Set dynamic volume size properties. When using this object, you cannot use volumeSize. You must use one or the other.
|
|
11913
11943
|
:param pulumi.Input[_builtins.bool] encrypted: Boolean. Enables [EBS encryption](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html) on the volume.
|
|
11914
11944
|
:param pulumi.Input[_builtins.int] iops: Int. The number of I/O operations per second (IOPS) that the volume supports.
|
|
@@ -11920,6 +11950,8 @@ class OceanLaunchSpecBlockDeviceMappingEbsArgs:
|
|
|
11920
11950
|
"""
|
|
11921
11951
|
if delete_on_termination is not None:
|
|
11922
11952
|
pulumi.set(__self__, "delete_on_termination", delete_on_termination)
|
|
11953
|
+
if dynamic_iops is not None:
|
|
11954
|
+
pulumi.set(__self__, "dynamic_iops", dynamic_iops)
|
|
11923
11955
|
if dynamic_volume_size is not None:
|
|
11924
11956
|
pulumi.set(__self__, "dynamic_volume_size", dynamic_volume_size)
|
|
11925
11957
|
if encrypted is not None:
|
|
@@ -11949,6 +11981,18 @@ class OceanLaunchSpecBlockDeviceMappingEbsArgs:
|
|
|
11949
11981
|
def delete_on_termination(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
11950
11982
|
pulumi.set(self, "delete_on_termination", value)
|
|
11951
11983
|
|
|
11984
|
+
@_builtins.property
|
|
11985
|
+
@pulumi.getter(name="dynamicIops")
|
|
11986
|
+
def dynamic_iops(self) -> Optional[pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsDynamicIopsArgs']]:
|
|
11987
|
+
"""
|
|
11988
|
+
Set dynamic IOPS properties. When using this object, you cannot use the `iops` attribute. You must use one or the other.
|
|
11989
|
+
"""
|
|
11990
|
+
return pulumi.get(self, "dynamic_iops")
|
|
11991
|
+
|
|
11992
|
+
@dynamic_iops.setter
|
|
11993
|
+
def dynamic_iops(self, value: Optional[pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsDynamicIopsArgs']]):
|
|
11994
|
+
pulumi.set(self, "dynamic_iops", value)
|
|
11995
|
+
|
|
11952
11996
|
@_builtins.property
|
|
11953
11997
|
@pulumi.getter(name="dynamicVolumeSize")
|
|
11954
11998
|
def dynamic_volume_size(self) -> Optional[pulumi.Input['OceanLaunchSpecBlockDeviceMappingEbsDynamicVolumeSizeArgs']]:
|
|
@@ -12046,6 +12090,68 @@ class OceanLaunchSpecBlockDeviceMappingEbsArgs:
|
|
|
12046
12090
|
pulumi.set(self, "volume_type", value)
|
|
12047
12091
|
|
|
12048
12092
|
|
|
12093
|
+
if not MYPY:
|
|
12094
|
+
class OceanLaunchSpecBlockDeviceMappingEbsDynamicIopsArgsDict(TypedDict):
|
|
12095
|
+
base_size: pulumi.Input[_builtins.int]
|
|
12096
|
+
"""
|
|
12097
|
+
Initial size for IOPS.
|
|
12098
|
+
"""
|
|
12099
|
+
resource: pulumi.Input[_builtins.str]
|
|
12100
|
+
size_per_resource_unit: pulumi.Input[_builtins.int]
|
|
12101
|
+
"""
|
|
12102
|
+
Additional size per resource unit (in IOPS). (Example: `baseSize=50`, `sizePerResourceUnit=20`, and an instance with 2 CPU is launched; its IOPS size will be: 90).
|
|
12103
|
+
"""
|
|
12104
|
+
elif False:
|
|
12105
|
+
OceanLaunchSpecBlockDeviceMappingEbsDynamicIopsArgsDict: TypeAlias = Mapping[str, Any]
|
|
12106
|
+
|
|
12107
|
+
@pulumi.input_type
|
|
12108
|
+
class OceanLaunchSpecBlockDeviceMappingEbsDynamicIopsArgs:
|
|
12109
|
+
def __init__(__self__, *,
|
|
12110
|
+
base_size: pulumi.Input[_builtins.int],
|
|
12111
|
+
resource: pulumi.Input[_builtins.str],
|
|
12112
|
+
size_per_resource_unit: pulumi.Input[_builtins.int]):
|
|
12113
|
+
"""
|
|
12114
|
+
:param pulumi.Input[_builtins.int] base_size: Initial size for IOPS.
|
|
12115
|
+
:param pulumi.Input[_builtins.int] size_per_resource_unit: Additional size per resource unit (in IOPS). (Example: `baseSize=50`, `sizePerResourceUnit=20`, and an instance with 2 CPU is launched; its IOPS size will be: 90).
|
|
12116
|
+
"""
|
|
12117
|
+
pulumi.set(__self__, "base_size", base_size)
|
|
12118
|
+
pulumi.set(__self__, "resource", resource)
|
|
12119
|
+
pulumi.set(__self__, "size_per_resource_unit", size_per_resource_unit)
|
|
12120
|
+
|
|
12121
|
+
@_builtins.property
|
|
12122
|
+
@pulumi.getter(name="baseSize")
|
|
12123
|
+
def base_size(self) -> pulumi.Input[_builtins.int]:
|
|
12124
|
+
"""
|
|
12125
|
+
Initial size for IOPS.
|
|
12126
|
+
"""
|
|
12127
|
+
return pulumi.get(self, "base_size")
|
|
12128
|
+
|
|
12129
|
+
@base_size.setter
|
|
12130
|
+
def base_size(self, value: pulumi.Input[_builtins.int]):
|
|
12131
|
+
pulumi.set(self, "base_size", value)
|
|
12132
|
+
|
|
12133
|
+
@_builtins.property
|
|
12134
|
+
@pulumi.getter
|
|
12135
|
+
def resource(self) -> pulumi.Input[_builtins.str]:
|
|
12136
|
+
return pulumi.get(self, "resource")
|
|
12137
|
+
|
|
12138
|
+
@resource.setter
|
|
12139
|
+
def resource(self, value: pulumi.Input[_builtins.str]):
|
|
12140
|
+
pulumi.set(self, "resource", value)
|
|
12141
|
+
|
|
12142
|
+
@_builtins.property
|
|
12143
|
+
@pulumi.getter(name="sizePerResourceUnit")
|
|
12144
|
+
def size_per_resource_unit(self) -> pulumi.Input[_builtins.int]:
|
|
12145
|
+
"""
|
|
12146
|
+
Additional size per resource unit (in IOPS). (Example: `baseSize=50`, `sizePerResourceUnit=20`, and an instance with 2 CPU is launched; its IOPS size will be: 90).
|
|
12147
|
+
"""
|
|
12148
|
+
return pulumi.get(self, "size_per_resource_unit")
|
|
12149
|
+
|
|
12150
|
+
@size_per_resource_unit.setter
|
|
12151
|
+
def size_per_resource_unit(self, value: pulumi.Input[_builtins.int]):
|
|
12152
|
+
pulumi.set(self, "size_per_resource_unit", value)
|
|
12153
|
+
|
|
12154
|
+
|
|
12049
12155
|
if not MYPY:
|
|
12050
12156
|
class OceanLaunchSpecBlockDeviceMappingEbsDynamicVolumeSizeArgsDict(TypedDict):
|
|
12051
12157
|
base_size: pulumi.Input[_builtins.int]
|
|
@@ -12850,6 +12956,77 @@ class OceanLaunchSpecLabelArgs:
|
|
|
12850
12956
|
pulumi.set(self, "value", value)
|
|
12851
12957
|
|
|
12852
12958
|
|
|
12959
|
+
if not MYPY:
|
|
12960
|
+
class OceanLaunchSpecLoadBalancerArgsDict(TypedDict):
|
|
12961
|
+
type: pulumi.Input[_builtins.str]
|
|
12962
|
+
"""
|
|
12963
|
+
Can be set to `CLASSIC` or `TARGET_GROUP`
|
|
12964
|
+
"""
|
|
12965
|
+
arn: NotRequired[pulumi.Input[_builtins.str]]
|
|
12966
|
+
"""
|
|
12967
|
+
Required if type is set to `TARGET_GROUP`
|
|
12968
|
+
"""
|
|
12969
|
+
name: NotRequired[pulumi.Input[_builtins.str]]
|
|
12970
|
+
"""
|
|
12971
|
+
Required if type is set to `CLASSIC`
|
|
12972
|
+
"""
|
|
12973
|
+
elif False:
|
|
12974
|
+
OceanLaunchSpecLoadBalancerArgsDict: TypeAlias = Mapping[str, Any]
|
|
12975
|
+
|
|
12976
|
+
@pulumi.input_type
|
|
12977
|
+
class OceanLaunchSpecLoadBalancerArgs:
|
|
12978
|
+
def __init__(__self__, *,
|
|
12979
|
+
type: pulumi.Input[_builtins.str],
|
|
12980
|
+
arn: Optional[pulumi.Input[_builtins.str]] = None,
|
|
12981
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
12982
|
+
"""
|
|
12983
|
+
:param pulumi.Input[_builtins.str] type: Can be set to `CLASSIC` or `TARGET_GROUP`
|
|
12984
|
+
:param pulumi.Input[_builtins.str] arn: Required if type is set to `TARGET_GROUP`
|
|
12985
|
+
:param pulumi.Input[_builtins.str] name: Required if type is set to `CLASSIC`
|
|
12986
|
+
"""
|
|
12987
|
+
pulumi.set(__self__, "type", type)
|
|
12988
|
+
if arn is not None:
|
|
12989
|
+
pulumi.set(__self__, "arn", arn)
|
|
12990
|
+
if name is not None:
|
|
12991
|
+
pulumi.set(__self__, "name", name)
|
|
12992
|
+
|
|
12993
|
+
@_builtins.property
|
|
12994
|
+
@pulumi.getter
|
|
12995
|
+
def type(self) -> pulumi.Input[_builtins.str]:
|
|
12996
|
+
"""
|
|
12997
|
+
Can be set to `CLASSIC` or `TARGET_GROUP`
|
|
12998
|
+
"""
|
|
12999
|
+
return pulumi.get(self, "type")
|
|
13000
|
+
|
|
13001
|
+
@type.setter
|
|
13002
|
+
def type(self, value: pulumi.Input[_builtins.str]):
|
|
13003
|
+
pulumi.set(self, "type", value)
|
|
13004
|
+
|
|
13005
|
+
@_builtins.property
|
|
13006
|
+
@pulumi.getter
|
|
13007
|
+
def arn(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
13008
|
+
"""
|
|
13009
|
+
Required if type is set to `TARGET_GROUP`
|
|
13010
|
+
"""
|
|
13011
|
+
return pulumi.get(self, "arn")
|
|
13012
|
+
|
|
13013
|
+
@arn.setter
|
|
13014
|
+
def arn(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
13015
|
+
pulumi.set(self, "arn", value)
|
|
13016
|
+
|
|
13017
|
+
@_builtins.property
|
|
13018
|
+
@pulumi.getter
|
|
13019
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
13020
|
+
"""
|
|
13021
|
+
Required if type is set to `CLASSIC`
|
|
13022
|
+
"""
|
|
13023
|
+
return pulumi.get(self, "name")
|
|
13024
|
+
|
|
13025
|
+
@name.setter
|
|
13026
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
13027
|
+
pulumi.set(self, "name", value)
|
|
13028
|
+
|
|
13029
|
+
|
|
12853
13030
|
if not MYPY:
|
|
12854
13031
|
class OceanLaunchSpecResourceLimitArgsDict(TypedDict):
|
|
12855
13032
|
max_instance_count: NotRequired[pulumi.Input[_builtins.int]]
|
pulumi_spotinst/aws/beanstalk.py
CHANGED
|
@@ -455,6 +455,44 @@ class Beanstalk(pulumi.CustomResource):
|
|
|
455
455
|
"""
|
|
456
456
|
Provides a Spotinst AWS group resource using Elastic Beanstalk.
|
|
457
457
|
|
|
458
|
+
## Example Usage
|
|
459
|
+
|
|
460
|
+
```python
|
|
461
|
+
import pulumi
|
|
462
|
+
import pulumi_spotinst as spotinst
|
|
463
|
+
|
|
464
|
+
elastigoup_aws_beanstalk = spotinst.aws.Beanstalk("elastigoup-aws-beanstalk",
|
|
465
|
+
name="example-elastigroup-beanstalk",
|
|
466
|
+
region="us-west-2",
|
|
467
|
+
product="Linux/UNIX",
|
|
468
|
+
min_size=0,
|
|
469
|
+
max_size=1,
|
|
470
|
+
desired_capacity=0,
|
|
471
|
+
beanstalk_environment_name="example-env",
|
|
472
|
+
beanstalk_environment_id="e-example",
|
|
473
|
+
instance_types_spots=[
|
|
474
|
+
"t2.micro",
|
|
475
|
+
"t2.medium",
|
|
476
|
+
"t2.large",
|
|
477
|
+
],
|
|
478
|
+
deployment_preferences={
|
|
479
|
+
"automatic_roll": True,
|
|
480
|
+
"batch_size_percentage": 100,
|
|
481
|
+
"grace_period": 90,
|
|
482
|
+
"strategies": [{
|
|
483
|
+
"action": "REPLACE_SERVER",
|
|
484
|
+
"should_drain_instances": True,
|
|
485
|
+
}],
|
|
486
|
+
},
|
|
487
|
+
managed_actions={
|
|
488
|
+
"platformUpdate": {
|
|
489
|
+
"performAt": "timeWindow",
|
|
490
|
+
"timeWindow": "Mon:23:50-Tue:00:20",
|
|
491
|
+
"updateLevel": "minorAndPatch",
|
|
492
|
+
},
|
|
493
|
+
}[0])
|
|
494
|
+
```
|
|
495
|
+
|
|
458
496
|
:param str resource_name: The name of the resource.
|
|
459
497
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
460
498
|
:param pulumi.Input[_builtins.str] beanstalk_environment_id: The id of an existing Beanstalk environment.
|
|
@@ -479,6 +517,44 @@ class Beanstalk(pulumi.CustomResource):
|
|
|
479
517
|
"""
|
|
480
518
|
Provides a Spotinst AWS group resource using Elastic Beanstalk.
|
|
481
519
|
|
|
520
|
+
## Example Usage
|
|
521
|
+
|
|
522
|
+
```python
|
|
523
|
+
import pulumi
|
|
524
|
+
import pulumi_spotinst as spotinst
|
|
525
|
+
|
|
526
|
+
elastigoup_aws_beanstalk = spotinst.aws.Beanstalk("elastigoup-aws-beanstalk",
|
|
527
|
+
name="example-elastigroup-beanstalk",
|
|
528
|
+
region="us-west-2",
|
|
529
|
+
product="Linux/UNIX",
|
|
530
|
+
min_size=0,
|
|
531
|
+
max_size=1,
|
|
532
|
+
desired_capacity=0,
|
|
533
|
+
beanstalk_environment_name="example-env",
|
|
534
|
+
beanstalk_environment_id="e-example",
|
|
535
|
+
instance_types_spots=[
|
|
536
|
+
"t2.micro",
|
|
537
|
+
"t2.medium",
|
|
538
|
+
"t2.large",
|
|
539
|
+
],
|
|
540
|
+
deployment_preferences={
|
|
541
|
+
"automatic_roll": True,
|
|
542
|
+
"batch_size_percentage": 100,
|
|
543
|
+
"grace_period": 90,
|
|
544
|
+
"strategies": [{
|
|
545
|
+
"action": "REPLACE_SERVER",
|
|
546
|
+
"should_drain_instances": True,
|
|
547
|
+
}],
|
|
548
|
+
},
|
|
549
|
+
managed_actions={
|
|
550
|
+
"platformUpdate": {
|
|
551
|
+
"performAt": "timeWindow",
|
|
552
|
+
"timeWindow": "Mon:23:50-Tue:00:20",
|
|
553
|
+
"updateLevel": "minorAndPatch",
|
|
554
|
+
},
|
|
555
|
+
}[0])
|
|
556
|
+
```
|
|
557
|
+
|
|
482
558
|
:param str resource_name: The name of the resource.
|
|
483
559
|
:param BeanstalkArgs args: The arguments to use to populate this resource's properties.
|
|
484
560
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -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]:
|