From 21db29a4510a6ca9c819ffc7330cbd1f43b70437 Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Mon, 25 Mar 2024 03:18:01 -0700 Subject: [PATCH] Upgrade terraform-provider-spotinst to v1.165.0 (#614) This PR was generated via `$ upgrade-provider pulumi/pulumi-spotinst --kind=all --target-bridge-version=latest`. --- - Upgrading terraform-provider-spotinst from 1.164.0 to 1.165.0. Fixes #613 --- .../cmd/pulumi-resource-spotinst/schema.json | 12 +++++ provider/go.mod | 2 +- provider/go.sum | 4 +- sdk/dotnet/Aws/Ocean.cs | 18 +++++++ sdk/go/spotinst/aws/ocean.go | 15 ++++++ .../java/com/pulumi/spotinst/aws/Ocean.java | 14 ++++++ .../com/pulumi/spotinst/aws/OceanArgs.java | 37 +++++++++++++++ .../spotinst/aws/inputs/OceanState.java | 37 +++++++++++++++ sdk/nodejs/aws/ocean.ts | 14 ++++++ sdk/python/pulumi_spotinst/aws/ocean.py | 47 +++++++++++++++++++ upstream | 2 +- 11 files changed, 198 insertions(+), 4 deletions(-) diff --git a/provider/cmd/pulumi-resource-spotinst/schema.json b/provider/cmd/pulumi-resource-spotinst/schema.json index 60bd5747..e0d89b1f 100644 --- a/provider/cmd/pulumi-resource-spotinst/schema.json +++ b/provider/cmd/pulumi-resource-spotinst/schema.json @@ -12273,6 +12273,10 @@ "type": "integer", "description": "The amount of time, in seconds, after the instance has launched to start checking its health.\n" }, + "healthCheckUnhealthyDurationBeforeReplacement": { + "type": "integer", + "description": "The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60.\n" + }, "iamInstanceProfile": { "type": "string", "description": "The instance profile iam role.\n" @@ -12460,6 +12464,10 @@ "type": "integer", "description": "The amount of time, in seconds, after the instance has launched to start checking its health.\n" }, + "healthCheckUnhealthyDurationBeforeReplacement": { + "type": "integer", + "description": "The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60.\n" + }, "iamInstanceProfile": { "type": "string", "description": "The instance profile iam role.\n" @@ -12646,6 +12654,10 @@ "type": "integer", "description": "The amount of time, in seconds, after the instance has launched to start checking its health.\n" }, + "healthCheckUnhealthyDurationBeforeReplacement": { + "type": "integer", + "description": "The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60.\n" + }, "iamInstanceProfile": { "type": "string", "description": "The instance profile iam role.\n" diff --git a/provider/go.mod b/provider/go.mod index c41e79f7..b1c20343 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -205,7 +205,7 @@ require ( github.com/spf13/cast v1.5.0 // indirect github.com/spf13/cobra v1.7.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - github.com/spotinst/spotinst-sdk-go v1.336.0 // indirect + github.com/spotinst/spotinst-sdk-go v1.337.0 // indirect github.com/stretchr/testify v1.9.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect diff --git a/provider/go.sum b/provider/go.sum index 90efaa8d..4fbc20e8 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2964,8 +2964,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE= github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/spotinst/spotinst-sdk-go v1.336.0 h1:TvgKWDznce2WIAKNktmRgLqfFLlK92SHaTWQd/EGvLk= -github.com/spotinst/spotinst-sdk-go v1.336.0/go.mod h1:cPpdCFZ4K3PWCbZdQB2wxNfEUVuz+KecJCSbqqesoMM= +github.com/spotinst/spotinst-sdk-go v1.337.0 h1:sL4xmnptGQtCycmYQ7vYSgOHFMiqhqpoorWYaaeLDmU= +github.com/spotinst/spotinst-sdk-go v1.337.0/go.mod h1:cPpdCFZ4K3PWCbZdQB2wxNfEUVuz+KecJCSbqqesoMM= github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980/go.mod h1:AO3tvPzVZ/ayst6UlUKUv6rcPQInYe3IknH3jYhAKu8= github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8= github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= diff --git a/sdk/dotnet/Aws/Ocean.cs b/sdk/dotnet/Aws/Ocean.cs index 8741d30f..43bb08d0 100644 --- a/sdk/dotnet/Aws/Ocean.cs +++ b/sdk/dotnet/Aws/Ocean.cs @@ -195,6 +195,12 @@ public partial class Ocean : global::Pulumi.CustomResource [Output("gracePeriod")] public Output GracePeriod { get; private set; } = null!; + /// + /// The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + /// + [Output("healthCheckUnhealthyDurationBeforeReplacement")] + public Output HealthCheckUnhealthyDurationBeforeReplacement { get; private set; } = null!; + /// /// The instance profile iam role. /// @@ -475,6 +481,12 @@ public InputList ClusterOrientations [Input("gracePeriod")] public Input? GracePeriod { get; set; } + /// + /// The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + /// + [Input("healthCheckUnhealthyDurationBeforeReplacement")] + public Input? HealthCheckUnhealthyDurationBeforeReplacement { get; set; } + /// /// The instance profile iam role. /// @@ -758,6 +770,12 @@ public InputList ClusterOrientations [Input("gracePeriod")] public Input? GracePeriod { get; set; } + /// + /// The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + /// + [Input("healthCheckUnhealthyDurationBeforeReplacement")] + public Input? HealthCheckUnhealthyDurationBeforeReplacement { get; set; } + /// /// The instance profile iam role. /// diff --git a/sdk/go/spotinst/aws/ocean.go b/sdk/go/spotinst/aws/ocean.go index c6383c38..51ba2052 100644 --- a/sdk/go/spotinst/aws/ocean.go +++ b/sdk/go/spotinst/aws/ocean.go @@ -170,6 +170,8 @@ type Ocean struct { Filters OceanFiltersPtrOutput `pulumi:"filters"` // The amount of time, in seconds, after the instance has launched to start checking its health. GracePeriod pulumi.IntPtrOutput `pulumi:"gracePeriod"` + // The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + HealthCheckUnhealthyDurationBeforeReplacement pulumi.IntPtrOutput `pulumi:"healthCheckUnhealthyDurationBeforeReplacement"` // The instance profile iam role. IamInstanceProfile pulumi.StringPtrOutput `pulumi:"iamInstanceProfile"` // ID of the image used to launch the instances. @@ -281,6 +283,8 @@ type oceanState struct { Filters *OceanFilters `pulumi:"filters"` // The amount of time, in seconds, after the instance has launched to start checking its health. GracePeriod *int `pulumi:"gracePeriod"` + // The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + HealthCheckUnhealthyDurationBeforeReplacement *int `pulumi:"healthCheckUnhealthyDurationBeforeReplacement"` // The instance profile iam role. IamInstanceProfile *string `pulumi:"iamInstanceProfile"` // ID of the image used to launch the instances. @@ -357,6 +361,8 @@ type OceanState struct { Filters OceanFiltersPtrInput // The amount of time, in seconds, after the instance has launched to start checking its health. GracePeriod pulumi.IntPtrInput + // The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + HealthCheckUnhealthyDurationBeforeReplacement pulumi.IntPtrInput // The instance profile iam role. IamInstanceProfile pulumi.StringPtrInput // ID of the image used to launch the instances. @@ -437,6 +443,8 @@ type oceanArgs struct { Filters *OceanFilters `pulumi:"filters"` // The amount of time, in seconds, after the instance has launched to start checking its health. GracePeriod *int `pulumi:"gracePeriod"` + // The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + HealthCheckUnhealthyDurationBeforeReplacement *int `pulumi:"healthCheckUnhealthyDurationBeforeReplacement"` // The instance profile iam role. IamInstanceProfile *string `pulumi:"iamInstanceProfile"` // ID of the image used to launch the instances. @@ -514,6 +522,8 @@ type OceanArgs struct { Filters OceanFiltersPtrInput // The amount of time, in seconds, after the instance has launched to start checking its health. GracePeriod pulumi.IntPtrInput + // The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + HealthCheckUnhealthyDurationBeforeReplacement pulumi.IntPtrInput // The instance profile iam role. IamInstanceProfile pulumi.StringPtrInput // ID of the image used to launch the instances. @@ -715,6 +725,11 @@ func (o OceanOutput) GracePeriod() pulumi.IntPtrOutput { return o.ApplyT(func(v *Ocean) pulumi.IntPtrOutput { return v.GracePeriod }).(pulumi.IntPtrOutput) } +// The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. +func (o OceanOutput) HealthCheckUnhealthyDurationBeforeReplacement() pulumi.IntPtrOutput { + return o.ApplyT(func(v *Ocean) pulumi.IntPtrOutput { return v.HealthCheckUnhealthyDurationBeforeReplacement }).(pulumi.IntPtrOutput) +} + // The instance profile iam role. func (o OceanOutput) IamInstanceProfile() pulumi.StringPtrOutput { return o.ApplyT(func(v *Ocean) pulumi.StringPtrOutput { return v.IamInstanceProfile }).(pulumi.StringPtrOutput) diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/aws/Ocean.java b/sdk/java/src/main/java/com/pulumi/spotinst/aws/Ocean.java index fd67b1b9..19a7100d 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/aws/Ocean.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/aws/Ocean.java @@ -347,6 +347,20 @@ public Output> filters() { public Output> gracePeriod() { return Codegen.optional(this.gracePeriod); } + /** + * The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + * + */ + @Export(name="healthCheckUnhealthyDurationBeforeReplacement", refs={Integer.class}, tree="[0]") + private Output healthCheckUnhealthyDurationBeforeReplacement; + + /** + * @return The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + * + */ + public Output> healthCheckUnhealthyDurationBeforeReplacement() { + return Codegen.optional(this.healthCheckUnhealthyDurationBeforeReplacement); + } /** * The instance profile iam role. * diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/aws/OceanArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/aws/OceanArgs.java index 366a8a70..8556214c 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/aws/OceanArgs.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/aws/OceanArgs.java @@ -209,6 +209,21 @@ public Optional> gracePeriod() { return Optional.ofNullable(this.gracePeriod); } + /** + * The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + * + */ + @Import(name="healthCheckUnhealthyDurationBeforeReplacement") + private @Nullable Output healthCheckUnhealthyDurationBeforeReplacement; + + /** + * @return The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + * + */ + public Optional> healthCheckUnhealthyDurationBeforeReplacement() { + return Optional.ofNullable(this.healthCheckUnhealthyDurationBeforeReplacement); + } + /** * The instance profile iam role. * @@ -586,6 +601,7 @@ private OceanArgs(OceanArgs $) { this.fallbackToOndemand = $.fallbackToOndemand; this.filters = $.filters; this.gracePeriod = $.gracePeriod; + this.healthCheckUnhealthyDurationBeforeReplacement = $.healthCheckUnhealthyDurationBeforeReplacement; this.iamInstanceProfile = $.iamInstanceProfile; this.imageId = $.imageId; this.instanceMetadataOptions = $.instanceMetadataOptions; @@ -904,6 +920,27 @@ public Builder gracePeriod(Integer gracePeriod) { return gracePeriod(Output.of(gracePeriod)); } + /** + * @param healthCheckUnhealthyDurationBeforeReplacement The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + * + * @return builder + * + */ + public Builder healthCheckUnhealthyDurationBeforeReplacement(@Nullable Output healthCheckUnhealthyDurationBeforeReplacement) { + $.healthCheckUnhealthyDurationBeforeReplacement = healthCheckUnhealthyDurationBeforeReplacement; + return this; + } + + /** + * @param healthCheckUnhealthyDurationBeforeReplacement The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + * + * @return builder + * + */ + public Builder healthCheckUnhealthyDurationBeforeReplacement(Integer healthCheckUnhealthyDurationBeforeReplacement) { + return healthCheckUnhealthyDurationBeforeReplacement(Output.of(healthCheckUnhealthyDurationBeforeReplacement)); + } + /** * @param iamInstanceProfile The instance profile iam role. * diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/aws/inputs/OceanState.java b/sdk/java/src/main/java/com/pulumi/spotinst/aws/inputs/OceanState.java index e4135dd3..f79cfe41 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/aws/inputs/OceanState.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/aws/inputs/OceanState.java @@ -208,6 +208,21 @@ public Optional> gracePeriod() { return Optional.ofNullable(this.gracePeriod); } + /** + * The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + * + */ + @Import(name="healthCheckUnhealthyDurationBeforeReplacement") + private @Nullable Output healthCheckUnhealthyDurationBeforeReplacement; + + /** + * @return The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + * + */ + public Optional> healthCheckUnhealthyDurationBeforeReplacement() { + return Optional.ofNullable(this.healthCheckUnhealthyDurationBeforeReplacement); + } + /** * The instance profile iam role. * @@ -585,6 +600,7 @@ private OceanState(OceanState $) { this.fallbackToOndemand = $.fallbackToOndemand; this.filters = $.filters; this.gracePeriod = $.gracePeriod; + this.healthCheckUnhealthyDurationBeforeReplacement = $.healthCheckUnhealthyDurationBeforeReplacement; this.iamInstanceProfile = $.iamInstanceProfile; this.imageId = $.imageId; this.instanceMetadataOptions = $.instanceMetadataOptions; @@ -903,6 +919,27 @@ public Builder gracePeriod(Integer gracePeriod) { return gracePeriod(Output.of(gracePeriod)); } + /** + * @param healthCheckUnhealthyDurationBeforeReplacement The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + * + * @return builder + * + */ + public Builder healthCheckUnhealthyDurationBeforeReplacement(@Nullable Output healthCheckUnhealthyDurationBeforeReplacement) { + $.healthCheckUnhealthyDurationBeforeReplacement = healthCheckUnhealthyDurationBeforeReplacement; + return this; + } + + /** + * @param healthCheckUnhealthyDurationBeforeReplacement The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + * + * @return builder + * + */ + public Builder healthCheckUnhealthyDurationBeforeReplacement(Integer healthCheckUnhealthyDurationBeforeReplacement) { + return healthCheckUnhealthyDurationBeforeReplacement(Output.of(healthCheckUnhealthyDurationBeforeReplacement)); + } + /** * @param iamInstanceProfile The instance profile iam role. * diff --git a/sdk/nodejs/aws/ocean.ts b/sdk/nodejs/aws/ocean.ts index 4acdcc6e..a40a7700 100644 --- a/sdk/nodejs/aws/ocean.ts +++ b/sdk/nodejs/aws/ocean.ts @@ -173,6 +173,10 @@ export class Ocean extends pulumi.CustomResource { * The amount of time, in seconds, after the instance has launched to start checking its health. */ public readonly gracePeriod!: pulumi.Output; + /** + * The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + */ + public readonly healthCheckUnhealthyDurationBeforeReplacement!: pulumi.Output; /** * The instance profile iam role. */ @@ -295,6 +299,7 @@ export class Ocean extends pulumi.CustomResource { resourceInputs["fallbackToOndemand"] = state ? state.fallbackToOndemand : undefined; resourceInputs["filters"] = state ? state.filters : undefined; resourceInputs["gracePeriod"] = state ? state.gracePeriod : undefined; + resourceInputs["healthCheckUnhealthyDurationBeforeReplacement"] = state ? state.healthCheckUnhealthyDurationBeforeReplacement : undefined; resourceInputs["iamInstanceProfile"] = state ? state.iamInstanceProfile : undefined; resourceInputs["imageId"] = state ? state.imageId : undefined; resourceInputs["instanceMetadataOptions"] = state ? state.instanceMetadataOptions : undefined; @@ -341,6 +346,7 @@ export class Ocean extends pulumi.CustomResource { resourceInputs["fallbackToOndemand"] = args ? args.fallbackToOndemand : undefined; resourceInputs["filters"] = args ? args.filters : undefined; resourceInputs["gracePeriod"] = args ? args.gracePeriod : undefined; + resourceInputs["healthCheckUnhealthyDurationBeforeReplacement"] = args ? args.healthCheckUnhealthyDurationBeforeReplacement : undefined; resourceInputs["iamInstanceProfile"] = args ? args.iamInstanceProfile : undefined; resourceInputs["imageId"] = args ? args.imageId : undefined; resourceInputs["instanceMetadataOptions"] = args ? args.instanceMetadataOptions : undefined; @@ -422,6 +428,10 @@ export interface OceanState { * The amount of time, in seconds, after the instance has launched to start checking its health. */ gracePeriod?: pulumi.Input; + /** + * The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + */ + healthCheckUnhealthyDurationBeforeReplacement?: pulumi.Input; /** * The instance profile iam role. */ @@ -569,6 +579,10 @@ export interface OceanArgs { * The amount of time, in seconds, after the instance has launched to start checking its health. */ gracePeriod?: pulumi.Input; + /** + * The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + */ + healthCheckUnhealthyDurationBeforeReplacement?: pulumi.Input; /** * The instance profile iam role. */ diff --git a/sdk/python/pulumi_spotinst/aws/ocean.py b/sdk/python/pulumi_spotinst/aws/ocean.py index 27e3bd8c..105afe91 100644 --- a/sdk/python/pulumi_spotinst/aws/ocean.py +++ b/sdk/python/pulumi_spotinst/aws/ocean.py @@ -31,6 +31,7 @@ def __init__(__self__, *, fallback_to_ondemand: Optional[pulumi.Input[bool]] = None, filters: Optional[pulumi.Input['OceanFiltersArgs']] = None, grace_period: Optional[pulumi.Input[int]] = None, + health_check_unhealthy_duration_before_replacement: Optional[pulumi.Input[int]] = None, iam_instance_profile: Optional[pulumi.Input[str]] = None, image_id: Optional[pulumi.Input[str]] = None, instance_metadata_options: Optional[pulumi.Input['OceanInstanceMetadataOptionsArgs']] = None, @@ -69,6 +70,7 @@ def __init__(__self__, *, :param pulumi.Input[bool] fallback_to_ondemand: If not Spot instance markets are available, enable Ocean to launch On-Demand instances instead. :param pulumi.Input['OceanFiltersArgs'] filters: List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured together with whitelist/blacklist. :param pulumi.Input[int] grace_period: The amount of time, in seconds, after the instance has launched to start checking its health. + :param pulumi.Input[int] health_check_unhealthy_duration_before_replacement: The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. :param pulumi.Input[str] iam_instance_profile: The instance profile iam role. :param pulumi.Input[str] image_id: ID of the image used to launch the instances. :param pulumi.Input['OceanInstanceMetadataOptionsArgs'] instance_metadata_options: Ocean instance metadata options object for IMDSv2. @@ -120,6 +122,8 @@ def __init__(__self__, *, pulumi.set(__self__, "filters", filters) if grace_period is not None: pulumi.set(__self__, "grace_period", grace_period) + if health_check_unhealthy_duration_before_replacement is not None: + pulumi.set(__self__, "health_check_unhealthy_duration_before_replacement", health_check_unhealthy_duration_before_replacement) if iam_instance_profile is not None: pulumi.set(__self__, "iam_instance_profile", iam_instance_profile) if image_id is not None: @@ -341,6 +345,18 @@ def grace_period(self) -> Optional[pulumi.Input[int]]: def grace_period(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "grace_period", value) + @property + @pulumi.getter(name="healthCheckUnhealthyDurationBeforeReplacement") + def health_check_unhealthy_duration_before_replacement(self) -> Optional[pulumi.Input[int]]: + """ + The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + """ + return pulumi.get(self, "health_check_unhealthy_duration_before_replacement") + + @health_check_unhealthy_duration_before_replacement.setter + def health_check_unhealthy_duration_before_replacement(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "health_check_unhealthy_duration_before_replacement", value) + @property @pulumi.getter(name="iamInstanceProfile") def iam_instance_profile(self) -> Optional[pulumi.Input[str]]: @@ -629,6 +645,7 @@ def __init__(__self__, *, fallback_to_ondemand: Optional[pulumi.Input[bool]] = None, filters: Optional[pulumi.Input['OceanFiltersArgs']] = None, grace_period: Optional[pulumi.Input[int]] = None, + health_check_unhealthy_duration_before_replacement: Optional[pulumi.Input[int]] = None, iam_instance_profile: Optional[pulumi.Input[str]] = None, image_id: Optional[pulumi.Input[str]] = None, instance_metadata_options: Optional[pulumi.Input['OceanInstanceMetadataOptionsArgs']] = None, @@ -667,6 +684,7 @@ def __init__(__self__, *, :param pulumi.Input[bool] fallback_to_ondemand: If not Spot instance markets are available, enable Ocean to launch On-Demand instances instead. :param pulumi.Input['OceanFiltersArgs'] filters: List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured together with whitelist/blacklist. :param pulumi.Input[int] grace_period: The amount of time, in seconds, after the instance has launched to start checking its health. + :param pulumi.Input[int] health_check_unhealthy_duration_before_replacement: The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. :param pulumi.Input[str] iam_instance_profile: The instance profile iam role. :param pulumi.Input[str] image_id: ID of the image used to launch the instances. :param pulumi.Input['OceanInstanceMetadataOptionsArgs'] instance_metadata_options: Ocean instance metadata options object for IMDSv2. @@ -718,6 +736,8 @@ def __init__(__self__, *, pulumi.set(__self__, "filters", filters) if grace_period is not None: pulumi.set(__self__, "grace_period", grace_period) + if health_check_unhealthy_duration_before_replacement is not None: + pulumi.set(__self__, "health_check_unhealthy_duration_before_replacement", health_check_unhealthy_duration_before_replacement) if iam_instance_profile is not None: pulumi.set(__self__, "iam_instance_profile", iam_instance_profile) if image_id is not None: @@ -919,6 +939,18 @@ def grace_period(self) -> Optional[pulumi.Input[int]]: def grace_period(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "grace_period", value) + @property + @pulumi.getter(name="healthCheckUnhealthyDurationBeforeReplacement") + def health_check_unhealthy_duration_before_replacement(self) -> Optional[pulumi.Input[int]]: + """ + The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + """ + return pulumi.get(self, "health_check_unhealthy_duration_before_replacement") + + @health_check_unhealthy_duration_before_replacement.setter + def health_check_unhealthy_duration_before_replacement(self, value: Optional[pulumi.Input[int]]): + pulumi.set(self, "health_check_unhealthy_duration_before_replacement", value) + @property @pulumi.getter(name="iamInstanceProfile") def iam_instance_profile(self) -> Optional[pulumi.Input[str]]: @@ -1233,6 +1265,7 @@ def __init__(__self__, fallback_to_ondemand: Optional[pulumi.Input[bool]] = None, filters: Optional[pulumi.Input[pulumi.InputType['OceanFiltersArgs']]] = None, grace_period: Optional[pulumi.Input[int]] = None, + health_check_unhealthy_duration_before_replacement: Optional[pulumi.Input[int]] = None, iam_instance_profile: Optional[pulumi.Input[str]] = None, image_id: Optional[pulumi.Input[str]] = None, instance_metadata_options: Optional[pulumi.Input[pulumi.InputType['OceanInstanceMetadataOptionsArgs']]] = None, @@ -1365,6 +1398,7 @@ def __init__(__self__, :param pulumi.Input[bool] fallback_to_ondemand: If not Spot instance markets are available, enable Ocean to launch On-Demand instances instead. :param pulumi.Input[pulumi.InputType['OceanFiltersArgs']] filters: List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured together with whitelist/blacklist. :param pulumi.Input[int] grace_period: The amount of time, in seconds, after the instance has launched to start checking its health. + :param pulumi.Input[int] health_check_unhealthy_duration_before_replacement: The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. :param pulumi.Input[str] iam_instance_profile: The instance profile iam role. :param pulumi.Input[str] image_id: ID of the image used to launch the instances. :param pulumi.Input[pulumi.InputType['OceanInstanceMetadataOptionsArgs']] instance_metadata_options: Ocean instance metadata options object for IMDSv2. @@ -1517,6 +1551,7 @@ def _internal_init(__self__, fallback_to_ondemand: Optional[pulumi.Input[bool]] = None, filters: Optional[pulumi.Input[pulumi.InputType['OceanFiltersArgs']]] = None, grace_period: Optional[pulumi.Input[int]] = None, + health_check_unhealthy_duration_before_replacement: Optional[pulumi.Input[int]] = None, iam_instance_profile: Optional[pulumi.Input[str]] = None, image_id: Optional[pulumi.Input[str]] = None, instance_metadata_options: Optional[pulumi.Input[pulumi.InputType['OceanInstanceMetadataOptionsArgs']]] = None, @@ -1564,6 +1599,7 @@ def _internal_init(__self__, __props__.__dict__["fallback_to_ondemand"] = fallback_to_ondemand __props__.__dict__["filters"] = filters __props__.__dict__["grace_period"] = grace_period + __props__.__dict__["health_check_unhealthy_duration_before_replacement"] = health_check_unhealthy_duration_before_replacement __props__.__dict__["iam_instance_profile"] = iam_instance_profile __props__.__dict__["image_id"] = image_id __props__.__dict__["instance_metadata_options"] = instance_metadata_options @@ -1616,6 +1652,7 @@ def get(resource_name: str, fallback_to_ondemand: Optional[pulumi.Input[bool]] = None, filters: Optional[pulumi.Input[pulumi.InputType['OceanFiltersArgs']]] = None, grace_period: Optional[pulumi.Input[int]] = None, + health_check_unhealthy_duration_before_replacement: Optional[pulumi.Input[int]] = None, iam_instance_profile: Optional[pulumi.Input[str]] = None, image_id: Optional[pulumi.Input[str]] = None, instance_metadata_options: Optional[pulumi.Input[pulumi.InputType['OceanInstanceMetadataOptionsArgs']]] = None, @@ -1659,6 +1696,7 @@ def get(resource_name: str, :param pulumi.Input[bool] fallback_to_ondemand: If not Spot instance markets are available, enable Ocean to launch On-Demand instances instead. :param pulumi.Input[pulumi.InputType['OceanFiltersArgs']] filters: List of filters. The Instance types that match with all filters compose the Ocean's whitelist parameter. Cannot be configured together with whitelist/blacklist. :param pulumi.Input[int] grace_period: The amount of time, in seconds, after the instance has launched to start checking its health. + :param pulumi.Input[int] health_check_unhealthy_duration_before_replacement: The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. :param pulumi.Input[str] iam_instance_profile: The instance profile iam role. :param pulumi.Input[str] image_id: ID of the image used to launch the instances. :param pulumi.Input[pulumi.InputType['OceanInstanceMetadataOptionsArgs']] instance_metadata_options: Ocean instance metadata options object for IMDSv2. @@ -1701,6 +1739,7 @@ def get(resource_name: str, __props__.__dict__["fallback_to_ondemand"] = fallback_to_ondemand __props__.__dict__["filters"] = filters __props__.__dict__["grace_period"] = grace_period + __props__.__dict__["health_check_unhealthy_duration_before_replacement"] = health_check_unhealthy_duration_before_replacement __props__.__dict__["iam_instance_profile"] = iam_instance_profile __props__.__dict__["image_id"] = image_id __props__.__dict__["instance_metadata_options"] = instance_metadata_options @@ -1826,6 +1865,14 @@ def grace_period(self) -> pulumi.Output[Optional[int]]: """ return pulumi.get(self, "grace_period") + @property + @pulumi.getter(name="healthCheckUnhealthyDurationBeforeReplacement") + def health_check_unhealthy_duration_before_replacement(self) -> pulumi.Output[Optional[int]]: + """ + The amount of time, in seconds, an existing instance should remain active after becoming unhealthy. After the set time out the instance will be replaced. The minimum value allowed is 60, and it must be a multiple of 60. + """ + return pulumi.get(self, "health_check_unhealthy_duration_before_replacement") + @property @pulumi.getter(name="iamInstanceProfile") def iam_instance_profile(self) -> pulumi.Output[Optional[str]]: diff --git a/upstream b/upstream index 44f2868d..26c43835 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit 44f2868d47f84b0187f3f0446b969801e6823a56 +Subproject commit 26c43835be1b33314490fa5a9945ccde06e900b7