From be5391ca81bd368d5621c379897cf5b573606b53 Mon Sep 17 00:00:00 2001
From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com>
Date: Thu, 8 Aug 2024 01:51:30 -0700
Subject: [PATCH] Upgrade terraform-provider-spotinst to v1.185.0 (#795)
This PR was generated via `$ upgrade-provider pulumi/pulumi-spotinst
--kind=all --target-bridge-version=latest`.
---
- Upgrading terraform-provider-spotinst from 1.184.0 to 1.185.0.
Fixes #794
---
.../cmd/pulumi-resource-spotinst/schema.json | 4 ++
provider/go.mod | 4 +-
provider/go.sum | 8 ++--
.../Aws/Inputs/OceanLaunchSpecStrategyArgs.cs | 6 +++
.../Inputs/OceanLaunchSpecStrategyGetArgs.cs | 6 +++
.../Aws/Outputs/OceanLaunchSpecStrategy.cs | 10 ++++-
sdk/go/spotinst/aws/pulumiTypes.go | 9 +++++
.../inputs/OceanLaunchSpecStrategyArgs.java | 37 +++++++++++++++++++
.../aws/outputs/OceanLaunchSpecStrategy.java | 21 +++++++++++
sdk/nodejs/types/input.ts | 4 ++
sdk/nodejs/types/output.ts | 4 ++
sdk/python/pulumi_spotinst/aws/_inputs.py | 16 ++++++++
sdk/python/pulumi_spotinst/aws/outputs.py | 16 +++++++-
13 files changed, 137 insertions(+), 8 deletions(-)
diff --git a/provider/cmd/pulumi-resource-spotinst/schema.json b/provider/cmd/pulumi-resource-spotinst/schema.json
index 2cc5c4610..fa3f6cdeb 100644
--- a/provider/cmd/pulumi-resource-spotinst/schema.json
+++ b/provider/cmd/pulumi-resource-spotinst/schema.json
@@ -3725,6 +3725,10 @@
},
"spotinst:aws/OceanLaunchSpecStrategy:OceanLaunchSpecStrategy": {
"properties": {
+ "drainingTimeout": {
+ "type": "integer",
+ "description": "The configurable amount of time that Ocean will wait for the draining process to complete before terminating an instance. If you have not defined a draining timeout, the default of 300 seconds will be used.\n"
+ },
"spotPercentage": {
"type": "integer",
"description": "The desired percentage of the Spot instances out of all running instances for this VNG. Only available when the field is not set in the cluster directly (cluster.strategy.spotPercentage).\n"
diff --git a/provider/go.mod b/provider/go.mod
index 937227f45..bdfc050b1 100644
--- a/provider/go.mod
+++ b/provider/go.mod
@@ -5,7 +5,7 @@ go 1.21.12
require (
github.com/pulumi/pulumi-terraform-bridge/v3 v3.88.0
github.com/pulumi/pulumi/sdk/v3 v3.126.0
- github.com/spotinst/terraform-provider-spotinst v1.184.0
+ github.com/spotinst/terraform-provider-spotinst v1.185.0
)
replace (
@@ -198,7 +198,7 @@ require (
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
- github.com/spotinst/spotinst-sdk-go v1.361.0 // indirect
+ github.com/spotinst/spotinst-sdk-go v1.362.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 ca4a57f81..af80439ce 100644
--- a/provider/go.sum
+++ b/provider/go.sum
@@ -2017,10 +2017,10 @@ github.com/spf13/pflag v1.0.2/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnIn
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
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/spotinst/spotinst-sdk-go v1.361.0 h1:wYIW68kO5fBy/TVeOBFwiyB6JWQLh6bKDutWLgU2rMo=
-github.com/spotinst/spotinst-sdk-go v1.361.0/go.mod h1:Tn4/eb0SFY6IXmxz71CClujvbD/PuT+EO6Ta8v6AML4=
-github.com/spotinst/terraform-provider-spotinst v1.184.0 h1:KpsRU/ybmQ2onIG0sP9K05z69M9154vXtR+5eb9OD7I=
-github.com/spotinst/terraform-provider-spotinst v1.184.0/go.mod h1:z1zXIRtUM9jFSc0G7H0H6nOn5LoSH+Ibg6OfgGT6wFA=
+github.com/spotinst/spotinst-sdk-go v1.362.0 h1:hyhySd+WTZfC/J5670aumE+oWejGRRQ0ay8WF01+Pr4=
+github.com/spotinst/spotinst-sdk-go v1.362.0/go.mod h1:Tn4/eb0SFY6IXmxz71CClujvbD/PuT+EO6Ta8v6AML4=
+github.com/spotinst/terraform-provider-spotinst v1.185.0 h1:u89xeUrqeYu6i2KJ+iqyeg+oWzlR5jD682ijhh90gEE=
+github.com/spotinst/terraform-provider-spotinst v1.185.0/go.mod h1:B6jKRw/+glNpq44Q0HVoPM3MPsMa8CV2OZS0qITCYDI=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
diff --git a/sdk/dotnet/Aws/Inputs/OceanLaunchSpecStrategyArgs.cs b/sdk/dotnet/Aws/Inputs/OceanLaunchSpecStrategyArgs.cs
index bd6c9a64f..f81a5c547 100644
--- a/sdk/dotnet/Aws/Inputs/OceanLaunchSpecStrategyArgs.cs
+++ b/sdk/dotnet/Aws/Inputs/OceanLaunchSpecStrategyArgs.cs
@@ -12,6 +12,12 @@ namespace Pulumi.SpotInst.Aws.Inputs
public sealed class OceanLaunchSpecStrategyArgs : global::Pulumi.ResourceArgs
{
+ ///
+ /// The configurable amount of time that Ocean will wait for the draining process to complete before terminating an instance. If you have not defined a draining timeout, the default of 300 seconds will be used.
+ ///
+ [Input("drainingTimeout")]
+ public Input? DrainingTimeout { get; set; }
+
///
/// The desired percentage of the Spot instances out of all running instances for this VNG. Only available when the field is not set in the cluster directly (cluster.strategy.spotPercentage).
///
diff --git a/sdk/dotnet/Aws/Inputs/OceanLaunchSpecStrategyGetArgs.cs b/sdk/dotnet/Aws/Inputs/OceanLaunchSpecStrategyGetArgs.cs
index 4ed60defe..b6dd55fd8 100644
--- a/sdk/dotnet/Aws/Inputs/OceanLaunchSpecStrategyGetArgs.cs
+++ b/sdk/dotnet/Aws/Inputs/OceanLaunchSpecStrategyGetArgs.cs
@@ -12,6 +12,12 @@ namespace Pulumi.SpotInst.Aws.Inputs
public sealed class OceanLaunchSpecStrategyGetArgs : global::Pulumi.ResourceArgs
{
+ ///
+ /// The configurable amount of time that Ocean will wait for the draining process to complete before terminating an instance. If you have not defined a draining timeout, the default of 300 seconds will be used.
+ ///
+ [Input("drainingTimeout")]
+ public Input? DrainingTimeout { get; set; }
+
///
/// The desired percentage of the Spot instances out of all running instances for this VNG. Only available when the field is not set in the cluster directly (cluster.strategy.spotPercentage).
///
diff --git a/sdk/dotnet/Aws/Outputs/OceanLaunchSpecStrategy.cs b/sdk/dotnet/Aws/Outputs/OceanLaunchSpecStrategy.cs
index 4f31efbdd..dc7fac1d3 100644
--- a/sdk/dotnet/Aws/Outputs/OceanLaunchSpecStrategy.cs
+++ b/sdk/dotnet/Aws/Outputs/OceanLaunchSpecStrategy.cs
@@ -13,14 +13,22 @@ namespace Pulumi.SpotInst.Aws.Outputs
[OutputType]
public sealed class OceanLaunchSpecStrategy
{
+ ///
+ /// The configurable amount of time that Ocean will wait for the draining process to complete before terminating an instance. If you have not defined a draining timeout, the default of 300 seconds will be used.
+ ///
+ public readonly int? DrainingTimeout;
///
/// The desired percentage of the Spot instances out of all running instances for this VNG. Only available when the field is not set in the cluster directly (cluster.strategy.spotPercentage).
///
public readonly int? SpotPercentage;
[OutputConstructor]
- private OceanLaunchSpecStrategy(int? spotPercentage)
+ private OceanLaunchSpecStrategy(
+ int? drainingTimeout,
+
+ int? spotPercentage)
{
+ DrainingTimeout = drainingTimeout;
SpotPercentage = spotPercentage;
}
}
diff --git a/sdk/go/spotinst/aws/pulumiTypes.go b/sdk/go/spotinst/aws/pulumiTypes.go
index 033b9d6a1..672b851ea 100644
--- a/sdk/go/spotinst/aws/pulumiTypes.go
+++ b/sdk/go/spotinst/aws/pulumiTypes.go
@@ -21821,6 +21821,8 @@ func (o OceanLaunchSpecSchedulingTaskTaskHeadroomArrayOutput) Index(i pulumi.Int
}
type OceanLaunchSpecStrategy struct {
+ // The configurable amount of time that Ocean will wait for the draining process to complete before terminating an instance. If you have not defined a draining timeout, the default of 300 seconds will be used.
+ DrainingTimeout *int `pulumi:"drainingTimeout"`
// The desired percentage of the Spot instances out of all running instances for this VNG. Only available when the field is not set in the cluster directly (cluster.strategy.spotPercentage).
SpotPercentage *int `pulumi:"spotPercentage"`
}
@@ -21837,6 +21839,8 @@ type OceanLaunchSpecStrategyInput interface {
}
type OceanLaunchSpecStrategyArgs struct {
+ // The configurable amount of time that Ocean will wait for the draining process to complete before terminating an instance. If you have not defined a draining timeout, the default of 300 seconds will be used.
+ DrainingTimeout pulumi.IntPtrInput `pulumi:"drainingTimeout"`
// The desired percentage of the Spot instances out of all running instances for this VNG. Only available when the field is not set in the cluster directly (cluster.strategy.spotPercentage).
SpotPercentage pulumi.IntPtrInput `pulumi:"spotPercentage"`
}
@@ -21892,6 +21896,11 @@ func (o OceanLaunchSpecStrategyOutput) ToOceanLaunchSpecStrategyOutputWithContex
return o
}
+// The configurable amount of time that Ocean will wait for the draining process to complete before terminating an instance. If you have not defined a draining timeout, the default of 300 seconds will be used.
+func (o OceanLaunchSpecStrategyOutput) DrainingTimeout() pulumi.IntPtrOutput {
+ return o.ApplyT(func(v OceanLaunchSpecStrategy) *int { return v.DrainingTimeout }).(pulumi.IntPtrOutput)
+}
+
// The desired percentage of the Spot instances out of all running instances for this VNG. Only available when the field is not set in the cluster directly (cluster.strategy.spotPercentage).
func (o OceanLaunchSpecStrategyOutput) SpotPercentage() pulumi.IntPtrOutput {
return o.ApplyT(func(v OceanLaunchSpecStrategy) *int { return v.SpotPercentage }).(pulumi.IntPtrOutput)
diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/aws/inputs/OceanLaunchSpecStrategyArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/aws/inputs/OceanLaunchSpecStrategyArgs.java
index 2671233b0..a3f241dee 100644
--- a/sdk/java/src/main/java/com/pulumi/spotinst/aws/inputs/OceanLaunchSpecStrategyArgs.java
+++ b/sdk/java/src/main/java/com/pulumi/spotinst/aws/inputs/OceanLaunchSpecStrategyArgs.java
@@ -15,6 +15,21 @@ public final class OceanLaunchSpecStrategyArgs extends com.pulumi.resources.Reso
public static final OceanLaunchSpecStrategyArgs Empty = new OceanLaunchSpecStrategyArgs();
+ /**
+ * The configurable amount of time that Ocean will wait for the draining process to complete before terminating an instance. If you have not defined a draining timeout, the default of 300 seconds will be used.
+ *
+ */
+ @Import(name="drainingTimeout")
+ private @Nullable Output drainingTimeout;
+
+ /**
+ * @return The configurable amount of time that Ocean will wait for the draining process to complete before terminating an instance. If you have not defined a draining timeout, the default of 300 seconds will be used.
+ *
+ */
+ public Optional