From ab93711e2a80ef7feb4c27b59a9fb654e08a750f Mon Sep 17 00:00:00 2001 From: Pulumi Bot <30351955+pulumi-bot@users.noreply.github.com> Date: Thu, 14 Nov 2024 03:26:26 -0800 Subject: [PATCH] Upgrade terraform-provider-spotinst to v1.197.0 (#876) This PR was generated via `$ upgrade-provider pulumi/pulumi-spotinst --kind=all --target-version=1.197.0`. --- - Upgrading terraform-provider-spotinst from 1.196.0 to 1.197.0. Fixes #875 --- .../bridge-metadata.json | 3 + .../cmd/pulumi-resource-spotinst/schema.json | 44 ++++++++ provider/go.mod | 4 +- provider/go.sum | 8 +- ...ingRuleRecommendationApplicationHpaArgs.cs | 23 ++++ ...RuleRecommendationApplicationHpaGetArgs.cs | 23 ++++ sdk/dotnet/OceanRightSizingRule.cs | 37 +++++++ ...tSizingRuleRecommendationApplicationHpa.cs | 24 ++++ sdk/go/spotinst/oceanRightSizingRule.go | 29 +++++ sdk/go/spotinst/pulumiTypes.go | 98 +++++++++++++++++ .../pulumi/spotinst/OceanRightSizingRule.java | 20 ++++ .../spotinst/OceanRightSizingRuleArgs.java | 57 ++++++++++ ...gRuleRecommendationApplicationHpaArgs.java | 63 +++++++++++ .../inputs/OceanRightSizingRuleState.java | 57 ++++++++++ ...izingRuleRecommendationApplicationHpa.java | 49 +++++++++ sdk/nodejs/oceanRightSizingRule.ts | 15 +++ sdk/nodejs/types/input.ts | 4 + sdk/nodejs/types/output.ts | 4 + sdk/python/pulumi_spotinst/_inputs.py | 25 +++++ .../ocean_right_sizing_rule.py | 104 +++++++++++++++++- sdk/python/pulumi_spotinst/outputs.py | 31 ++++++ 21 files changed, 715 insertions(+), 7 deletions(-) create mode 100644 sdk/dotnet/Inputs/OceanRightSizingRuleRecommendationApplicationHpaArgs.cs create mode 100644 sdk/dotnet/Inputs/OceanRightSizingRuleRecommendationApplicationHpaGetArgs.cs create mode 100644 sdk/dotnet/Outputs/OceanRightSizingRuleRecommendationApplicationHpa.cs create mode 100644 sdk/java/src/main/java/com/pulumi/spotinst/inputs/OceanRightSizingRuleRecommendationApplicationHpaArgs.java create mode 100644 sdk/java/src/main/java/com/pulumi/spotinst/outputs/OceanRightSizingRuleRecommendationApplicationHpa.java diff --git a/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json b/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json index 132479e8..94a34cd6 100644 --- a/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-spotinst/bridge-metadata.json @@ -2041,6 +2041,9 @@ "recommendation_application_boundaries": { "maxItemsOne": false }, + "recommendation_application_hpa": { + "maxItemsOne": false + }, "recommendation_application_intervals": { "maxItemsOne": false, "elem": { diff --git a/provider/cmd/pulumi-resource-spotinst/schema.json b/provider/cmd/pulumi-resource-spotinst/schema.json index 8291a120..ac4a8801 100644 --- a/provider/cmd/pulumi-resource-spotinst/schema.json +++ b/provider/cmd/pulumi-resource-spotinst/schema.json @@ -8184,6 +8184,14 @@ }, "type": "object" }, + "spotinst:index/OceanRightSizingRuleRecommendationApplicationHpa:OceanRightSizingRuleRecommendationApplicationHpa": { + "properties": { + "allowHpaRecommendations": { + "type": "boolean" + } + }, + "type": "object" + }, "spotinst:index/OceanRightSizingRuleRecommendationApplicationInterval:OceanRightSizingRuleRecommendationApplicationInterval": { "properties": { "monthlyRepetitionBases": { @@ -18984,6 +18992,9 @@ "$ref": "#/types/spotinst:index/OceanRightSizingRuleDetachWorkload:OceanRightSizingRuleDetachWorkload" } }, + "excludePreliminaryRecommendations": { + "type": "boolean" + }, "oceanId": { "type": "string" }, @@ -18993,6 +19004,12 @@ "$ref": "#/types/spotinst:index/OceanRightSizingRuleRecommendationApplicationBoundary:OceanRightSizingRuleRecommendationApplicationBoundary" } }, + "recommendationApplicationHpas": { + "type": "array", + "items": { + "$ref": "#/types/spotinst:index/OceanRightSizingRuleRecommendationApplicationHpa:OceanRightSizingRuleRecommendationApplicationHpa" + } + }, "recommendationApplicationIntervals": { "type": "array", "items": { @@ -19011,6 +19028,9 @@ "$ref": "#/types/spotinst:index/OceanRightSizingRuleRecommendationApplicationOverheadValue:OceanRightSizingRuleRecommendationApplicationOverheadValue" } }, + "restartReplicas": { + "type": "string" + }, "ruleName": { "type": "string" } @@ -19032,6 +19052,9 @@ "$ref": "#/types/spotinst:index/OceanRightSizingRuleDetachWorkload:OceanRightSizingRuleDetachWorkload" } }, + "excludePreliminaryRecommendations": { + "type": "boolean" + }, "oceanId": { "type": "string" }, @@ -19041,6 +19064,12 @@ "$ref": "#/types/spotinst:index/OceanRightSizingRuleRecommendationApplicationBoundary:OceanRightSizingRuleRecommendationApplicationBoundary" } }, + "recommendationApplicationHpas": { + "type": "array", + "items": { + "$ref": "#/types/spotinst:index/OceanRightSizingRuleRecommendationApplicationHpa:OceanRightSizingRuleRecommendationApplicationHpa" + } + }, "recommendationApplicationIntervals": { "type": "array", "items": { @@ -19059,6 +19088,9 @@ "$ref": "#/types/spotinst:index/OceanRightSizingRuleRecommendationApplicationOverheadValue:OceanRightSizingRuleRecommendationApplicationOverheadValue" } }, + "restartReplicas": { + "type": "string" + }, "ruleName": { "type": "string" } @@ -19082,6 +19114,9 @@ "$ref": "#/types/spotinst:index/OceanRightSizingRuleDetachWorkload:OceanRightSizingRuleDetachWorkload" } }, + "excludePreliminaryRecommendations": { + "type": "boolean" + }, "oceanId": { "type": "string" }, @@ -19091,6 +19126,12 @@ "$ref": "#/types/spotinst:index/OceanRightSizingRuleRecommendationApplicationBoundary:OceanRightSizingRuleRecommendationApplicationBoundary" } }, + "recommendationApplicationHpas": { + "type": "array", + "items": { + "$ref": "#/types/spotinst:index/OceanRightSizingRuleRecommendationApplicationHpa:OceanRightSizingRuleRecommendationApplicationHpa" + } + }, "recommendationApplicationIntervals": { "type": "array", "items": { @@ -19109,6 +19150,9 @@ "$ref": "#/types/spotinst:index/OceanRightSizingRuleRecommendationApplicationOverheadValue:OceanRightSizingRuleRecommendationApplicationOverheadValue" } }, + "restartReplicas": { + "type": "string" + }, "ruleName": { "type": "string" } diff --git a/provider/go.mod b/provider/go.mod index b0e8a90f..26e3224c 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -7,7 +7,7 @@ toolchain go1.22.7 require ( github.com/pulumi/pulumi-terraform-bridge/v3 v3.95.0 github.com/pulumi/pulumi/sdk/v3 v3.137.0 - github.com/spotinst/terraform-provider-spotinst v1.196.0 + github.com/spotinst/terraform-provider-spotinst v1.197.0 ) replace ( @@ -160,7 +160,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.372.0 // indirect + github.com/spotinst/spotinst-sdk-go v1.373.0 // indirect github.com/stretchr/objx v0.5.2 // indirect github.com/teekennedy/goldmark-markdown v0.3.0 // indirect github.com/texttheater/golang-levenshtein v1.0.1 // indirect diff --git a/provider/go.sum b/provider/go.sum index 4a73370b..36633e7e 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -2007,10 +2007,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.372.0 h1:B4/+HK3D2Fe0821DOmw5RO4Lrzo2gi7oa6QWWjr5/7A= -github.com/spotinst/spotinst-sdk-go v1.372.0/go.mod h1:Tn4/eb0SFY6IXmxz71CClujvbD/PuT+EO6Ta8v6AML4= -github.com/spotinst/terraform-provider-spotinst v1.196.0 h1:uWJbzybVln9PYWaa8CMXCaQuRtifK+Hm+Z7MPKfIynQ= -github.com/spotinst/terraform-provider-spotinst v1.196.0/go.mod h1:SmQgOHuPEi4R9NMly/RL851jm6wWl1t8IeBA/wfAJ24= +github.com/spotinst/spotinst-sdk-go v1.373.0 h1:7swkwpX3JiLCQx6ZbXbgA36zcmUVgo2ZWUogTLp7aYw= +github.com/spotinst/spotinst-sdk-go v1.373.0/go.mod h1:Tn4/eb0SFY6IXmxz71CClujvbD/PuT+EO6Ta8v6AML4= +github.com/spotinst/terraform-provider-spotinst v1.197.0 h1:eUJRUHQh0h1sTJqe5n0MgLa/rLF8p3VqLR1AEwJS6Ds= +github.com/spotinst/terraform-provider-spotinst v1.197.0/go.mod h1:hwklt2E/pvdGqvZe4WuvFWvxFdVWL5cvdJxVT52poU4= 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/Inputs/OceanRightSizingRuleRecommendationApplicationHpaArgs.cs b/sdk/dotnet/Inputs/OceanRightSizingRuleRecommendationApplicationHpaArgs.cs new file mode 100644 index 00000000..570bcedb --- /dev/null +++ b/sdk/dotnet/Inputs/OceanRightSizingRuleRecommendationApplicationHpaArgs.cs @@ -0,0 +1,23 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.SpotInst.Inputs +{ + + public sealed class OceanRightSizingRuleRecommendationApplicationHpaArgs : global::Pulumi.ResourceArgs + { + [Input("allowHpaRecommendations")] + public Input? AllowHpaRecommendations { get; set; } + + public OceanRightSizingRuleRecommendationApplicationHpaArgs() + { + } + public static new OceanRightSizingRuleRecommendationApplicationHpaArgs Empty => new OceanRightSizingRuleRecommendationApplicationHpaArgs(); + } +} diff --git a/sdk/dotnet/Inputs/OceanRightSizingRuleRecommendationApplicationHpaGetArgs.cs b/sdk/dotnet/Inputs/OceanRightSizingRuleRecommendationApplicationHpaGetArgs.cs new file mode 100644 index 00000000..2bc4e6b3 --- /dev/null +++ b/sdk/dotnet/Inputs/OceanRightSizingRuleRecommendationApplicationHpaGetArgs.cs @@ -0,0 +1,23 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.SpotInst.Inputs +{ + + public sealed class OceanRightSizingRuleRecommendationApplicationHpaGetArgs : global::Pulumi.ResourceArgs + { + [Input("allowHpaRecommendations")] + public Input? AllowHpaRecommendations { get; set; } + + public OceanRightSizingRuleRecommendationApplicationHpaGetArgs() + { + } + public static new OceanRightSizingRuleRecommendationApplicationHpaGetArgs Empty => new OceanRightSizingRuleRecommendationApplicationHpaGetArgs(); + } +} diff --git a/sdk/dotnet/OceanRightSizingRule.cs b/sdk/dotnet/OceanRightSizingRule.cs index 1c9926c8..e6595a22 100644 --- a/sdk/dotnet/OceanRightSizingRule.cs +++ b/sdk/dotnet/OceanRightSizingRule.cs @@ -18,12 +18,18 @@ public partial class OceanRightSizingRule : global::Pulumi.CustomResource [Output("detachWorkloads")] public Output> DetachWorkloads { get; private set; } = null!; + [Output("excludePreliminaryRecommendations")] + public Output ExcludePreliminaryRecommendations { get; private set; } = null!; + [Output("oceanId")] public Output OceanId { get; private set; } = null!; [Output("recommendationApplicationBoundaries")] public Output> RecommendationApplicationBoundaries { get; private set; } = null!; + [Output("recommendationApplicationHpas")] + public Output> RecommendationApplicationHpas { get; private set; } = null!; + [Output("recommendationApplicationIntervals")] public Output> RecommendationApplicationIntervals { get; private set; } = null!; @@ -33,6 +39,9 @@ public partial class OceanRightSizingRule : global::Pulumi.CustomResource [Output("recommendationApplicationOverheadValues")] public Output> RecommendationApplicationOverheadValues { get; private set; } = null!; + [Output("restartReplicas")] + public Output RestartReplicas { get; private set; } = null!; + [Output("ruleName")] public Output RuleName { get; private set; } = null!; @@ -98,6 +107,9 @@ public InputList DetachWorkloads set => _detachWorkloads = value; } + [Input("excludePreliminaryRecommendations")] + public Input? ExcludePreliminaryRecommendations { get; set; } + [Input("oceanId")] public Input? OceanId { get; set; } @@ -109,6 +121,14 @@ public InputList _recommendationApplicationBoundaries = value; } + [Input("recommendationApplicationHpas")] + private InputList? _recommendationApplicationHpas; + public InputList RecommendationApplicationHpas + { + get => _recommendationApplicationHpas ?? (_recommendationApplicationHpas = new InputList()); + set => _recommendationApplicationHpas = value; + } + [Input("recommendationApplicationIntervals", required: true)] private InputList? _recommendationApplicationIntervals; public InputList RecommendationApplicationIntervals @@ -133,6 +153,9 @@ public InputList _recommendationApplicationOverheadValues = value; } + [Input("restartReplicas")] + public Input? RestartReplicas { get; set; } + [Input("ruleName", required: true)] public Input RuleName { get; set; } = null!; @@ -160,6 +183,9 @@ public InputList DetachWorkloa set => _detachWorkloads = value; } + [Input("excludePreliminaryRecommendations")] + public Input? ExcludePreliminaryRecommendations { get; set; } + [Input("oceanId")] public Input? OceanId { get; set; } @@ -171,6 +197,14 @@ public InputList _recommendationApplicationBoundaries = value; } + [Input("recommendationApplicationHpas")] + private InputList? _recommendationApplicationHpas; + public InputList RecommendationApplicationHpas + { + get => _recommendationApplicationHpas ?? (_recommendationApplicationHpas = new InputList()); + set => _recommendationApplicationHpas = value; + } + [Input("recommendationApplicationIntervals")] private InputList? _recommendationApplicationIntervals; public InputList RecommendationApplicationIntervals @@ -195,6 +229,9 @@ public InputList _recommendationApplicationOverheadValues = value; } + [Input("restartReplicas")] + public Input? RestartReplicas { get; set; } + [Input("ruleName")] public Input? RuleName { get; set; } diff --git a/sdk/dotnet/Outputs/OceanRightSizingRuleRecommendationApplicationHpa.cs b/sdk/dotnet/Outputs/OceanRightSizingRuleRecommendationApplicationHpa.cs new file mode 100644 index 00000000..c18433d0 --- /dev/null +++ b/sdk/dotnet/Outputs/OceanRightSizingRuleRecommendationApplicationHpa.cs @@ -0,0 +1,24 @@ +// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +using System; +using System.Collections.Generic; +using System.Collections.Immutable; +using System.Threading.Tasks; +using Pulumi.Serialization; + +namespace Pulumi.SpotInst.Outputs +{ + + [OutputType] + public sealed class OceanRightSizingRuleRecommendationApplicationHpa + { + public readonly bool? AllowHpaRecommendations; + + [OutputConstructor] + private OceanRightSizingRuleRecommendationApplicationHpa(bool? allowHpaRecommendations) + { + AllowHpaRecommendations = allowHpaRecommendations; + } + } +} diff --git a/sdk/go/spotinst/oceanRightSizingRule.go b/sdk/go/spotinst/oceanRightSizingRule.go index c904736a..e791a5b8 100644 --- a/sdk/go/spotinst/oceanRightSizingRule.go +++ b/sdk/go/spotinst/oceanRightSizingRule.go @@ -17,11 +17,14 @@ type OceanRightSizingRule struct { AttachWorkloads OceanRightSizingRuleAttachWorkloadArrayOutput `pulumi:"attachWorkloads"` DetachWorkloads OceanRightSizingRuleDetachWorkloadArrayOutput `pulumi:"detachWorkloads"` + ExcludePreliminaryRecommendations pulumi.BoolPtrOutput `pulumi:"excludePreliminaryRecommendations"` OceanId pulumi.StringPtrOutput `pulumi:"oceanId"` RecommendationApplicationBoundaries OceanRightSizingRuleRecommendationApplicationBoundaryArrayOutput `pulumi:"recommendationApplicationBoundaries"` + RecommendationApplicationHpas OceanRightSizingRuleRecommendationApplicationHpaArrayOutput `pulumi:"recommendationApplicationHpas"` RecommendationApplicationIntervals OceanRightSizingRuleRecommendationApplicationIntervalArrayOutput `pulumi:"recommendationApplicationIntervals"` RecommendationApplicationMinThresholds OceanRightSizingRuleRecommendationApplicationMinThresholdArrayOutput `pulumi:"recommendationApplicationMinThresholds"` RecommendationApplicationOverheadValues OceanRightSizingRuleRecommendationApplicationOverheadValueArrayOutput `pulumi:"recommendationApplicationOverheadValues"` + RestartReplicas pulumi.StringPtrOutput `pulumi:"restartReplicas"` RuleName pulumi.StringOutput `pulumi:"ruleName"` } @@ -63,22 +66,28 @@ func GetOceanRightSizingRule(ctx *pulumi.Context, type oceanRightSizingRuleState struct { AttachWorkloads []OceanRightSizingRuleAttachWorkload `pulumi:"attachWorkloads"` DetachWorkloads []OceanRightSizingRuleDetachWorkload `pulumi:"detachWorkloads"` + ExcludePreliminaryRecommendations *bool `pulumi:"excludePreliminaryRecommendations"` OceanId *string `pulumi:"oceanId"` RecommendationApplicationBoundaries []OceanRightSizingRuleRecommendationApplicationBoundary `pulumi:"recommendationApplicationBoundaries"` + RecommendationApplicationHpas []OceanRightSizingRuleRecommendationApplicationHpa `pulumi:"recommendationApplicationHpas"` RecommendationApplicationIntervals []OceanRightSizingRuleRecommendationApplicationInterval `pulumi:"recommendationApplicationIntervals"` RecommendationApplicationMinThresholds []OceanRightSizingRuleRecommendationApplicationMinThreshold `pulumi:"recommendationApplicationMinThresholds"` RecommendationApplicationOverheadValues []OceanRightSizingRuleRecommendationApplicationOverheadValue `pulumi:"recommendationApplicationOverheadValues"` + RestartReplicas *string `pulumi:"restartReplicas"` RuleName *string `pulumi:"ruleName"` } type OceanRightSizingRuleState struct { AttachWorkloads OceanRightSizingRuleAttachWorkloadArrayInput DetachWorkloads OceanRightSizingRuleDetachWorkloadArrayInput + ExcludePreliminaryRecommendations pulumi.BoolPtrInput OceanId pulumi.StringPtrInput RecommendationApplicationBoundaries OceanRightSizingRuleRecommendationApplicationBoundaryArrayInput + RecommendationApplicationHpas OceanRightSizingRuleRecommendationApplicationHpaArrayInput RecommendationApplicationIntervals OceanRightSizingRuleRecommendationApplicationIntervalArrayInput RecommendationApplicationMinThresholds OceanRightSizingRuleRecommendationApplicationMinThresholdArrayInput RecommendationApplicationOverheadValues OceanRightSizingRuleRecommendationApplicationOverheadValueArrayInput + RestartReplicas pulumi.StringPtrInput RuleName pulumi.StringPtrInput } @@ -89,11 +98,14 @@ func (OceanRightSizingRuleState) ElementType() reflect.Type { type oceanRightSizingRuleArgs struct { AttachWorkloads []OceanRightSizingRuleAttachWorkload `pulumi:"attachWorkloads"` DetachWorkloads []OceanRightSizingRuleDetachWorkload `pulumi:"detachWorkloads"` + ExcludePreliminaryRecommendations *bool `pulumi:"excludePreliminaryRecommendations"` OceanId *string `pulumi:"oceanId"` RecommendationApplicationBoundaries []OceanRightSizingRuleRecommendationApplicationBoundary `pulumi:"recommendationApplicationBoundaries"` + RecommendationApplicationHpas []OceanRightSizingRuleRecommendationApplicationHpa `pulumi:"recommendationApplicationHpas"` RecommendationApplicationIntervals []OceanRightSizingRuleRecommendationApplicationInterval `pulumi:"recommendationApplicationIntervals"` RecommendationApplicationMinThresholds []OceanRightSizingRuleRecommendationApplicationMinThreshold `pulumi:"recommendationApplicationMinThresholds"` RecommendationApplicationOverheadValues []OceanRightSizingRuleRecommendationApplicationOverheadValue `pulumi:"recommendationApplicationOverheadValues"` + RestartReplicas *string `pulumi:"restartReplicas"` RuleName string `pulumi:"ruleName"` } @@ -101,11 +113,14 @@ type oceanRightSizingRuleArgs struct { type OceanRightSizingRuleArgs struct { AttachWorkloads OceanRightSizingRuleAttachWorkloadArrayInput DetachWorkloads OceanRightSizingRuleDetachWorkloadArrayInput + ExcludePreliminaryRecommendations pulumi.BoolPtrInput OceanId pulumi.StringPtrInput RecommendationApplicationBoundaries OceanRightSizingRuleRecommendationApplicationBoundaryArrayInput + RecommendationApplicationHpas OceanRightSizingRuleRecommendationApplicationHpaArrayInput RecommendationApplicationIntervals OceanRightSizingRuleRecommendationApplicationIntervalArrayInput RecommendationApplicationMinThresholds OceanRightSizingRuleRecommendationApplicationMinThresholdArrayInput RecommendationApplicationOverheadValues OceanRightSizingRuleRecommendationApplicationOverheadValueArrayInput + RestartReplicas pulumi.StringPtrInput RuleName pulumi.StringInput } @@ -204,6 +219,10 @@ func (o OceanRightSizingRuleOutput) DetachWorkloads() OceanRightSizingRuleDetach return o.ApplyT(func(v *OceanRightSizingRule) OceanRightSizingRuleDetachWorkloadArrayOutput { return v.DetachWorkloads }).(OceanRightSizingRuleDetachWorkloadArrayOutput) } +func (o OceanRightSizingRuleOutput) ExcludePreliminaryRecommendations() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *OceanRightSizingRule) pulumi.BoolPtrOutput { return v.ExcludePreliminaryRecommendations }).(pulumi.BoolPtrOutput) +} + func (o OceanRightSizingRuleOutput) OceanId() pulumi.StringPtrOutput { return o.ApplyT(func(v *OceanRightSizingRule) pulumi.StringPtrOutput { return v.OceanId }).(pulumi.StringPtrOutput) } @@ -214,6 +233,12 @@ func (o OceanRightSizingRuleOutput) RecommendationApplicationBoundaries() OceanR }).(OceanRightSizingRuleRecommendationApplicationBoundaryArrayOutput) } +func (o OceanRightSizingRuleOutput) RecommendationApplicationHpas() OceanRightSizingRuleRecommendationApplicationHpaArrayOutput { + return o.ApplyT(func(v *OceanRightSizingRule) OceanRightSizingRuleRecommendationApplicationHpaArrayOutput { + return v.RecommendationApplicationHpas + }).(OceanRightSizingRuleRecommendationApplicationHpaArrayOutput) +} + func (o OceanRightSizingRuleOutput) RecommendationApplicationIntervals() OceanRightSizingRuleRecommendationApplicationIntervalArrayOutput { return o.ApplyT(func(v *OceanRightSizingRule) OceanRightSizingRuleRecommendationApplicationIntervalArrayOutput { return v.RecommendationApplicationIntervals @@ -232,6 +257,10 @@ func (o OceanRightSizingRuleOutput) RecommendationApplicationOverheadValues() Oc }).(OceanRightSizingRuleRecommendationApplicationOverheadValueArrayOutput) } +func (o OceanRightSizingRuleOutput) RestartReplicas() pulumi.StringPtrOutput { + return o.ApplyT(func(v *OceanRightSizingRule) pulumi.StringPtrOutput { return v.RestartReplicas }).(pulumi.StringPtrOutput) +} + func (o OceanRightSizingRuleOutput) RuleName() pulumi.StringOutput { return o.ApplyT(func(v *OceanRightSizingRule) pulumi.StringOutput { return v.RuleName }).(pulumi.StringOutput) } diff --git a/sdk/go/spotinst/pulumiTypes.go b/sdk/go/spotinst/pulumiTypes.go index 2f7da46f..91676314 100644 --- a/sdk/go/spotinst/pulumiTypes.go +++ b/sdk/go/spotinst/pulumiTypes.go @@ -5894,6 +5894,100 @@ func (o OceanRightSizingRuleRecommendationApplicationBoundaryArrayOutput) Index( }).(OceanRightSizingRuleRecommendationApplicationBoundaryOutput) } +type OceanRightSizingRuleRecommendationApplicationHpa struct { + AllowHpaRecommendations *bool `pulumi:"allowHpaRecommendations"` +} + +// OceanRightSizingRuleRecommendationApplicationHpaInput is an input type that accepts OceanRightSizingRuleRecommendationApplicationHpaArgs and OceanRightSizingRuleRecommendationApplicationHpaOutput values. +// You can construct a concrete instance of `OceanRightSizingRuleRecommendationApplicationHpaInput` via: +// +// OceanRightSizingRuleRecommendationApplicationHpaArgs{...} +type OceanRightSizingRuleRecommendationApplicationHpaInput interface { + pulumi.Input + + ToOceanRightSizingRuleRecommendationApplicationHpaOutput() OceanRightSizingRuleRecommendationApplicationHpaOutput + ToOceanRightSizingRuleRecommendationApplicationHpaOutputWithContext(context.Context) OceanRightSizingRuleRecommendationApplicationHpaOutput +} + +type OceanRightSizingRuleRecommendationApplicationHpaArgs struct { + AllowHpaRecommendations pulumi.BoolPtrInput `pulumi:"allowHpaRecommendations"` +} + +func (OceanRightSizingRuleRecommendationApplicationHpaArgs) ElementType() reflect.Type { + return reflect.TypeOf((*OceanRightSizingRuleRecommendationApplicationHpa)(nil)).Elem() +} + +func (i OceanRightSizingRuleRecommendationApplicationHpaArgs) ToOceanRightSizingRuleRecommendationApplicationHpaOutput() OceanRightSizingRuleRecommendationApplicationHpaOutput { + return i.ToOceanRightSizingRuleRecommendationApplicationHpaOutputWithContext(context.Background()) +} + +func (i OceanRightSizingRuleRecommendationApplicationHpaArgs) ToOceanRightSizingRuleRecommendationApplicationHpaOutputWithContext(ctx context.Context) OceanRightSizingRuleRecommendationApplicationHpaOutput { + return pulumi.ToOutputWithContext(ctx, i).(OceanRightSizingRuleRecommendationApplicationHpaOutput) +} + +// OceanRightSizingRuleRecommendationApplicationHpaArrayInput is an input type that accepts OceanRightSizingRuleRecommendationApplicationHpaArray and OceanRightSizingRuleRecommendationApplicationHpaArrayOutput values. +// You can construct a concrete instance of `OceanRightSizingRuleRecommendationApplicationHpaArrayInput` via: +// +// OceanRightSizingRuleRecommendationApplicationHpaArray{ OceanRightSizingRuleRecommendationApplicationHpaArgs{...} } +type OceanRightSizingRuleRecommendationApplicationHpaArrayInput interface { + pulumi.Input + + ToOceanRightSizingRuleRecommendationApplicationHpaArrayOutput() OceanRightSizingRuleRecommendationApplicationHpaArrayOutput + ToOceanRightSizingRuleRecommendationApplicationHpaArrayOutputWithContext(context.Context) OceanRightSizingRuleRecommendationApplicationHpaArrayOutput +} + +type OceanRightSizingRuleRecommendationApplicationHpaArray []OceanRightSizingRuleRecommendationApplicationHpaInput + +func (OceanRightSizingRuleRecommendationApplicationHpaArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]OceanRightSizingRuleRecommendationApplicationHpa)(nil)).Elem() +} + +func (i OceanRightSizingRuleRecommendationApplicationHpaArray) ToOceanRightSizingRuleRecommendationApplicationHpaArrayOutput() OceanRightSizingRuleRecommendationApplicationHpaArrayOutput { + return i.ToOceanRightSizingRuleRecommendationApplicationHpaArrayOutputWithContext(context.Background()) +} + +func (i OceanRightSizingRuleRecommendationApplicationHpaArray) ToOceanRightSizingRuleRecommendationApplicationHpaArrayOutputWithContext(ctx context.Context) OceanRightSizingRuleRecommendationApplicationHpaArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(OceanRightSizingRuleRecommendationApplicationHpaArrayOutput) +} + +type OceanRightSizingRuleRecommendationApplicationHpaOutput struct{ *pulumi.OutputState } + +func (OceanRightSizingRuleRecommendationApplicationHpaOutput) ElementType() reflect.Type { + return reflect.TypeOf((*OceanRightSizingRuleRecommendationApplicationHpa)(nil)).Elem() +} + +func (o OceanRightSizingRuleRecommendationApplicationHpaOutput) ToOceanRightSizingRuleRecommendationApplicationHpaOutput() OceanRightSizingRuleRecommendationApplicationHpaOutput { + return o +} + +func (o OceanRightSizingRuleRecommendationApplicationHpaOutput) ToOceanRightSizingRuleRecommendationApplicationHpaOutputWithContext(ctx context.Context) OceanRightSizingRuleRecommendationApplicationHpaOutput { + return o +} + +func (o OceanRightSizingRuleRecommendationApplicationHpaOutput) AllowHpaRecommendations() pulumi.BoolPtrOutput { + return o.ApplyT(func(v OceanRightSizingRuleRecommendationApplicationHpa) *bool { return v.AllowHpaRecommendations }).(pulumi.BoolPtrOutput) +} + +type OceanRightSizingRuleRecommendationApplicationHpaArrayOutput struct{ *pulumi.OutputState } + +func (OceanRightSizingRuleRecommendationApplicationHpaArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]OceanRightSizingRuleRecommendationApplicationHpa)(nil)).Elem() +} + +func (o OceanRightSizingRuleRecommendationApplicationHpaArrayOutput) ToOceanRightSizingRuleRecommendationApplicationHpaArrayOutput() OceanRightSizingRuleRecommendationApplicationHpaArrayOutput { + return o +} + +func (o OceanRightSizingRuleRecommendationApplicationHpaArrayOutput) ToOceanRightSizingRuleRecommendationApplicationHpaArrayOutputWithContext(ctx context.Context) OceanRightSizingRuleRecommendationApplicationHpaArrayOutput { + return o +} + +func (o OceanRightSizingRuleRecommendationApplicationHpaArrayOutput) Index(i pulumi.IntInput) OceanRightSizingRuleRecommendationApplicationHpaOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) OceanRightSizingRuleRecommendationApplicationHpa { + return vs[0].([]OceanRightSizingRuleRecommendationApplicationHpa)[vs[1].(int)] + }).(OceanRightSizingRuleRecommendationApplicationHpaOutput) +} + type OceanRightSizingRuleRecommendationApplicationInterval struct { MonthlyRepetitionBases []OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBase `pulumi:"monthlyRepetitionBases"` RepetitionBasis string `pulumi:"repetitionBasis"` @@ -11175,6 +11269,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*OceanRightSizingRuleDetachWorkloadNamespaceWorkloadArrayInput)(nil)).Elem(), OceanRightSizingRuleDetachWorkloadNamespaceWorkloadArray{}) pulumi.RegisterInputType(reflect.TypeOf((*OceanRightSizingRuleRecommendationApplicationBoundaryInput)(nil)).Elem(), OceanRightSizingRuleRecommendationApplicationBoundaryArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OceanRightSizingRuleRecommendationApplicationBoundaryArrayInput)(nil)).Elem(), OceanRightSizingRuleRecommendationApplicationBoundaryArray{}) + pulumi.RegisterInputType(reflect.TypeOf((*OceanRightSizingRuleRecommendationApplicationHpaInput)(nil)).Elem(), OceanRightSizingRuleRecommendationApplicationHpaArgs{}) + pulumi.RegisterInputType(reflect.TypeOf((*OceanRightSizingRuleRecommendationApplicationHpaArrayInput)(nil)).Elem(), OceanRightSizingRuleRecommendationApplicationHpaArray{}) pulumi.RegisterInputType(reflect.TypeOf((*OceanRightSizingRuleRecommendationApplicationIntervalInput)(nil)).Elem(), OceanRightSizingRuleRecommendationApplicationIntervalArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*OceanRightSizingRuleRecommendationApplicationIntervalArrayInput)(nil)).Elem(), OceanRightSizingRuleRecommendationApplicationIntervalArray{}) pulumi.RegisterInputType(reflect.TypeOf((*OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseInput)(nil)).Elem(), OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs{}) @@ -11351,6 +11447,8 @@ func init() { pulumi.RegisterOutputType(OceanRightSizingRuleDetachWorkloadNamespaceWorkloadArrayOutput{}) pulumi.RegisterOutputType(OceanRightSizingRuleRecommendationApplicationBoundaryOutput{}) pulumi.RegisterOutputType(OceanRightSizingRuleRecommendationApplicationBoundaryArrayOutput{}) + pulumi.RegisterOutputType(OceanRightSizingRuleRecommendationApplicationHpaOutput{}) + pulumi.RegisterOutputType(OceanRightSizingRuleRecommendationApplicationHpaArrayOutput{}) pulumi.RegisterOutputType(OceanRightSizingRuleRecommendationApplicationIntervalOutput{}) pulumi.RegisterOutputType(OceanRightSizingRuleRecommendationApplicationIntervalArrayOutput{}) pulumi.RegisterOutputType(OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseOutput{}) diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/OceanRightSizingRule.java b/sdk/java/src/main/java/com/pulumi/spotinst/OceanRightSizingRule.java index b7d973ba..56a73636 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/OceanRightSizingRule.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/OceanRightSizingRule.java @@ -13,9 +13,11 @@ import com.pulumi.spotinst.outputs.OceanRightSizingRuleAttachWorkload; import com.pulumi.spotinst.outputs.OceanRightSizingRuleDetachWorkload; import com.pulumi.spotinst.outputs.OceanRightSizingRuleRecommendationApplicationBoundary; +import com.pulumi.spotinst.outputs.OceanRightSizingRuleRecommendationApplicationHpa; import com.pulumi.spotinst.outputs.OceanRightSizingRuleRecommendationApplicationInterval; import com.pulumi.spotinst.outputs.OceanRightSizingRuleRecommendationApplicationMinThreshold; import com.pulumi.spotinst.outputs.OceanRightSizingRuleRecommendationApplicationOverheadValue; +import java.lang.Boolean; import java.lang.String; import java.util.List; import java.util.Optional; @@ -35,6 +37,12 @@ public Output>> attachWorkload public Output>> detachWorkloads() { return Codegen.optional(this.detachWorkloads); } + @Export(name="excludePreliminaryRecommendations", refs={Boolean.class}, tree="[0]") + private Output excludePreliminaryRecommendations; + + public Output> excludePreliminaryRecommendations() { + return Codegen.optional(this.excludePreliminaryRecommendations); + } @Export(name="oceanId", refs={String.class}, tree="[0]") private Output oceanId; @@ -47,6 +55,12 @@ public Output> oceanId() { public Output>> recommendationApplicationBoundaries() { return Codegen.optional(this.recommendationApplicationBoundaries); } + @Export(name="recommendationApplicationHpas", refs={List.class,OceanRightSizingRuleRecommendationApplicationHpa.class}, tree="[0,1]") + private Output> recommendationApplicationHpas; + + public Output>> recommendationApplicationHpas() { + return Codegen.optional(this.recommendationApplicationHpas); + } @Export(name="recommendationApplicationIntervals", refs={List.class,OceanRightSizingRuleRecommendationApplicationInterval.class}, tree="[0,1]") private Output> recommendationApplicationIntervals; @@ -65,6 +79,12 @@ public Output>> recommendationApplicationOverheadValues() { return Codegen.optional(this.recommendationApplicationOverheadValues); } + @Export(name="restartReplicas", refs={String.class}, tree="[0]") + private Output restartReplicas; + + public Output> restartReplicas() { + return Codegen.optional(this.restartReplicas); + } @Export(name="ruleName", refs={String.class}, tree="[0]") private Output ruleName; diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/OceanRightSizingRuleArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/OceanRightSizingRuleArgs.java index b33df614..1d5f1901 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/OceanRightSizingRuleArgs.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/OceanRightSizingRuleArgs.java @@ -9,9 +9,11 @@ import com.pulumi.spotinst.inputs.OceanRightSizingRuleAttachWorkloadArgs; import com.pulumi.spotinst.inputs.OceanRightSizingRuleDetachWorkloadArgs; import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationBoundaryArgs; +import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationHpaArgs; import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationIntervalArgs; import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationMinThresholdArgs; import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationOverheadValueArgs; +import java.lang.Boolean; import java.lang.String; import java.util.List; import java.util.Objects; @@ -37,6 +39,13 @@ public Optional>> detachWork return Optional.ofNullable(this.detachWorkloads); } + @Import(name="excludePreliminaryRecommendations") + private @Nullable Output excludePreliminaryRecommendations; + + public Optional> excludePreliminaryRecommendations() { + return Optional.ofNullable(this.excludePreliminaryRecommendations); + } + @Import(name="oceanId") private @Nullable Output oceanId; @@ -51,6 +60,13 @@ public Optional> recommendationApplicationHpas; + + public Optional>> recommendationApplicationHpas() { + return Optional.ofNullable(this.recommendationApplicationHpas); + } + @Import(name="recommendationApplicationIntervals", required=true) private Output> recommendationApplicationIntervals; @@ -72,6 +88,13 @@ public Optional restartReplicas; + + public Optional> restartReplicas() { + return Optional.ofNullable(this.restartReplicas); + } + @Import(name="ruleName", required=true) private Output ruleName; @@ -84,11 +107,14 @@ private OceanRightSizingRuleArgs() {} private OceanRightSizingRuleArgs(OceanRightSizingRuleArgs $) { this.attachWorkloads = $.attachWorkloads; this.detachWorkloads = $.detachWorkloads; + this.excludePreliminaryRecommendations = $.excludePreliminaryRecommendations; this.oceanId = $.oceanId; this.recommendationApplicationBoundaries = $.recommendationApplicationBoundaries; + this.recommendationApplicationHpas = $.recommendationApplicationHpas; this.recommendationApplicationIntervals = $.recommendationApplicationIntervals; this.recommendationApplicationMinThresholds = $.recommendationApplicationMinThresholds; this.recommendationApplicationOverheadValues = $.recommendationApplicationOverheadValues; + this.restartReplicas = $.restartReplicas; this.ruleName = $.ruleName; } @@ -136,6 +162,15 @@ public Builder detachWorkloads(OceanRightSizingRuleDetachWorkloadArgs... detachW return detachWorkloads(List.of(detachWorkloads)); } + public Builder excludePreliminaryRecommendations(@Nullable Output excludePreliminaryRecommendations) { + $.excludePreliminaryRecommendations = excludePreliminaryRecommendations; + return this; + } + + public Builder excludePreliminaryRecommendations(Boolean excludePreliminaryRecommendations) { + return excludePreliminaryRecommendations(Output.of(excludePreliminaryRecommendations)); + } + public Builder oceanId(@Nullable Output oceanId) { $.oceanId = oceanId; return this; @@ -158,6 +193,19 @@ public Builder recommendationApplicationBoundaries(OceanRightSizingRuleRecommend return recommendationApplicationBoundaries(List.of(recommendationApplicationBoundaries)); } + public Builder recommendationApplicationHpas(@Nullable Output> recommendationApplicationHpas) { + $.recommendationApplicationHpas = recommendationApplicationHpas; + return this; + } + + public Builder recommendationApplicationHpas(List recommendationApplicationHpas) { + return recommendationApplicationHpas(Output.of(recommendationApplicationHpas)); + } + + public Builder recommendationApplicationHpas(OceanRightSizingRuleRecommendationApplicationHpaArgs... recommendationApplicationHpas) { + return recommendationApplicationHpas(List.of(recommendationApplicationHpas)); + } + public Builder recommendationApplicationIntervals(Output> recommendationApplicationIntervals) { $.recommendationApplicationIntervals = recommendationApplicationIntervals; return this; @@ -197,6 +245,15 @@ public Builder recommendationApplicationOverheadValues(OceanRightSizingRuleRecom return recommendationApplicationOverheadValues(List.of(recommendationApplicationOverheadValues)); } + public Builder restartReplicas(@Nullable Output restartReplicas) { + $.restartReplicas = restartReplicas; + return this; + } + + public Builder restartReplicas(String restartReplicas) { + return restartReplicas(Output.of(restartReplicas)); + } + public Builder ruleName(Output ruleName) { $.ruleName = ruleName; return this; diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/inputs/OceanRightSizingRuleRecommendationApplicationHpaArgs.java b/sdk/java/src/main/java/com/pulumi/spotinst/inputs/OceanRightSizingRuleRecommendationApplicationHpaArgs.java new file mode 100644 index 00000000..fe32cb22 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/spotinst/inputs/OceanRightSizingRuleRecommendationApplicationHpaArgs.java @@ -0,0 +1,63 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.spotinst.inputs; + +import com.pulumi.core.Output; +import com.pulumi.core.annotations.Import; +import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + + +public final class OceanRightSizingRuleRecommendationApplicationHpaArgs extends com.pulumi.resources.ResourceArgs { + + public static final OceanRightSizingRuleRecommendationApplicationHpaArgs Empty = new OceanRightSizingRuleRecommendationApplicationHpaArgs(); + + @Import(name="allowHpaRecommendations") + private @Nullable Output allowHpaRecommendations; + + public Optional> allowHpaRecommendations() { + return Optional.ofNullable(this.allowHpaRecommendations); + } + + private OceanRightSizingRuleRecommendationApplicationHpaArgs() {} + + private OceanRightSizingRuleRecommendationApplicationHpaArgs(OceanRightSizingRuleRecommendationApplicationHpaArgs $) { + this.allowHpaRecommendations = $.allowHpaRecommendations; + } + + public static Builder builder() { + return new Builder(); + } + public static Builder builder(OceanRightSizingRuleRecommendationApplicationHpaArgs defaults) { + return new Builder(defaults); + } + + public static final class Builder { + private OceanRightSizingRuleRecommendationApplicationHpaArgs $; + + public Builder() { + $ = new OceanRightSizingRuleRecommendationApplicationHpaArgs(); + } + + public Builder(OceanRightSizingRuleRecommendationApplicationHpaArgs defaults) { + $ = new OceanRightSizingRuleRecommendationApplicationHpaArgs(Objects.requireNonNull(defaults)); + } + + public Builder allowHpaRecommendations(@Nullable Output allowHpaRecommendations) { + $.allowHpaRecommendations = allowHpaRecommendations; + return this; + } + + public Builder allowHpaRecommendations(Boolean allowHpaRecommendations) { + return allowHpaRecommendations(Output.of(allowHpaRecommendations)); + } + + public OceanRightSizingRuleRecommendationApplicationHpaArgs build() { + return $; + } + } + +} diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/inputs/OceanRightSizingRuleState.java b/sdk/java/src/main/java/com/pulumi/spotinst/inputs/OceanRightSizingRuleState.java index 5e4c9a29..d86060aa 100644 --- a/sdk/java/src/main/java/com/pulumi/spotinst/inputs/OceanRightSizingRuleState.java +++ b/sdk/java/src/main/java/com/pulumi/spotinst/inputs/OceanRightSizingRuleState.java @@ -8,9 +8,11 @@ import com.pulumi.spotinst.inputs.OceanRightSizingRuleAttachWorkloadArgs; import com.pulumi.spotinst.inputs.OceanRightSizingRuleDetachWorkloadArgs; import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationBoundaryArgs; +import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationHpaArgs; import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationIntervalArgs; import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationMinThresholdArgs; import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationOverheadValueArgs; +import java.lang.Boolean; import java.lang.String; import java.util.List; import java.util.Objects; @@ -36,6 +38,13 @@ public Optional>> detachWork return Optional.ofNullable(this.detachWorkloads); } + @Import(name="excludePreliminaryRecommendations") + private @Nullable Output excludePreliminaryRecommendations; + + public Optional> excludePreliminaryRecommendations() { + return Optional.ofNullable(this.excludePreliminaryRecommendations); + } + @Import(name="oceanId") private @Nullable Output oceanId; @@ -50,6 +59,13 @@ public Optional> recommendationApplicationHpas; + + public Optional>> recommendationApplicationHpas() { + return Optional.ofNullable(this.recommendationApplicationHpas); + } + @Import(name="recommendationApplicationIntervals") private @Nullable Output> recommendationApplicationIntervals; @@ -71,6 +87,13 @@ public Optional restartReplicas; + + public Optional> restartReplicas() { + return Optional.ofNullable(this.restartReplicas); + } + @Import(name="ruleName") private @Nullable Output ruleName; @@ -83,11 +106,14 @@ private OceanRightSizingRuleState() {} private OceanRightSizingRuleState(OceanRightSizingRuleState $) { this.attachWorkloads = $.attachWorkloads; this.detachWorkloads = $.detachWorkloads; + this.excludePreliminaryRecommendations = $.excludePreliminaryRecommendations; this.oceanId = $.oceanId; this.recommendationApplicationBoundaries = $.recommendationApplicationBoundaries; + this.recommendationApplicationHpas = $.recommendationApplicationHpas; this.recommendationApplicationIntervals = $.recommendationApplicationIntervals; this.recommendationApplicationMinThresholds = $.recommendationApplicationMinThresholds; this.recommendationApplicationOverheadValues = $.recommendationApplicationOverheadValues; + this.restartReplicas = $.restartReplicas; this.ruleName = $.ruleName; } @@ -135,6 +161,15 @@ public Builder detachWorkloads(OceanRightSizingRuleDetachWorkloadArgs... detachW return detachWorkloads(List.of(detachWorkloads)); } + public Builder excludePreliminaryRecommendations(@Nullable Output excludePreliminaryRecommendations) { + $.excludePreliminaryRecommendations = excludePreliminaryRecommendations; + return this; + } + + public Builder excludePreliminaryRecommendations(Boolean excludePreliminaryRecommendations) { + return excludePreliminaryRecommendations(Output.of(excludePreliminaryRecommendations)); + } + public Builder oceanId(@Nullable Output oceanId) { $.oceanId = oceanId; return this; @@ -157,6 +192,19 @@ public Builder recommendationApplicationBoundaries(OceanRightSizingRuleRecommend return recommendationApplicationBoundaries(List.of(recommendationApplicationBoundaries)); } + public Builder recommendationApplicationHpas(@Nullable Output> recommendationApplicationHpas) { + $.recommendationApplicationHpas = recommendationApplicationHpas; + return this; + } + + public Builder recommendationApplicationHpas(List recommendationApplicationHpas) { + return recommendationApplicationHpas(Output.of(recommendationApplicationHpas)); + } + + public Builder recommendationApplicationHpas(OceanRightSizingRuleRecommendationApplicationHpaArgs... recommendationApplicationHpas) { + return recommendationApplicationHpas(List.of(recommendationApplicationHpas)); + } + public Builder recommendationApplicationIntervals(@Nullable Output> recommendationApplicationIntervals) { $.recommendationApplicationIntervals = recommendationApplicationIntervals; return this; @@ -196,6 +244,15 @@ public Builder recommendationApplicationOverheadValues(OceanRightSizingRuleRecom return recommendationApplicationOverheadValues(List.of(recommendationApplicationOverheadValues)); } + public Builder restartReplicas(@Nullable Output restartReplicas) { + $.restartReplicas = restartReplicas; + return this; + } + + public Builder restartReplicas(String restartReplicas) { + return restartReplicas(Output.of(restartReplicas)); + } + public Builder ruleName(@Nullable Output ruleName) { $.ruleName = ruleName; return this; diff --git a/sdk/java/src/main/java/com/pulumi/spotinst/outputs/OceanRightSizingRuleRecommendationApplicationHpa.java b/sdk/java/src/main/java/com/pulumi/spotinst/outputs/OceanRightSizingRuleRecommendationApplicationHpa.java new file mode 100644 index 00000000..30e4da46 --- /dev/null +++ b/sdk/java/src/main/java/com/pulumi/spotinst/outputs/OceanRightSizingRuleRecommendationApplicationHpa.java @@ -0,0 +1,49 @@ +// *** WARNING: this file was generated by pulumi-java-gen. *** +// *** Do not edit by hand unless you're certain you know what you are doing! *** + +package com.pulumi.spotinst.outputs; + +import com.pulumi.core.annotations.CustomType; +import java.lang.Boolean; +import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; + +@CustomType +public final class OceanRightSizingRuleRecommendationApplicationHpa { + private @Nullable Boolean allowHpaRecommendations; + + private OceanRightSizingRuleRecommendationApplicationHpa() {} + public Optional allowHpaRecommendations() { + return Optional.ofNullable(this.allowHpaRecommendations); + } + + public static Builder builder() { + return new Builder(); + } + + public static Builder builder(OceanRightSizingRuleRecommendationApplicationHpa defaults) { + return new Builder(defaults); + } + @CustomType.Builder + public static final class Builder { + private @Nullable Boolean allowHpaRecommendations; + public Builder() {} + public Builder(OceanRightSizingRuleRecommendationApplicationHpa defaults) { + Objects.requireNonNull(defaults); + this.allowHpaRecommendations = defaults.allowHpaRecommendations; + } + + @CustomType.Setter + public Builder allowHpaRecommendations(@Nullable Boolean allowHpaRecommendations) { + + this.allowHpaRecommendations = allowHpaRecommendations; + return this; + } + public OceanRightSizingRuleRecommendationApplicationHpa build() { + final var _resultValue = new OceanRightSizingRuleRecommendationApplicationHpa(); + _resultValue.allowHpaRecommendations = allowHpaRecommendations; + return _resultValue; + } + } +} diff --git a/sdk/nodejs/oceanRightSizingRule.ts b/sdk/nodejs/oceanRightSizingRule.ts index 761fa1e9..48498cb2 100644 --- a/sdk/nodejs/oceanRightSizingRule.ts +++ b/sdk/nodejs/oceanRightSizingRule.ts @@ -36,11 +36,14 @@ export class OceanRightSizingRule extends pulumi.CustomResource { public readonly attachWorkloads!: pulumi.Output; public readonly detachWorkloads!: pulumi.Output; + public readonly excludePreliminaryRecommendations!: pulumi.Output; public readonly oceanId!: pulumi.Output; public readonly recommendationApplicationBoundaries!: pulumi.Output; + public readonly recommendationApplicationHpas!: pulumi.Output; public readonly recommendationApplicationIntervals!: pulumi.Output; public readonly recommendationApplicationMinThresholds!: pulumi.Output; public readonly recommendationApplicationOverheadValues!: pulumi.Output; + public readonly restartReplicas!: pulumi.Output; public readonly ruleName!: pulumi.Output; /** @@ -58,11 +61,14 @@ export class OceanRightSizingRule extends pulumi.CustomResource { const state = argsOrState as OceanRightSizingRuleState | undefined; resourceInputs["attachWorkloads"] = state ? state.attachWorkloads : undefined; resourceInputs["detachWorkloads"] = state ? state.detachWorkloads : undefined; + resourceInputs["excludePreliminaryRecommendations"] = state ? state.excludePreliminaryRecommendations : undefined; resourceInputs["oceanId"] = state ? state.oceanId : undefined; resourceInputs["recommendationApplicationBoundaries"] = state ? state.recommendationApplicationBoundaries : undefined; + resourceInputs["recommendationApplicationHpas"] = state ? state.recommendationApplicationHpas : undefined; resourceInputs["recommendationApplicationIntervals"] = state ? state.recommendationApplicationIntervals : undefined; resourceInputs["recommendationApplicationMinThresholds"] = state ? state.recommendationApplicationMinThresholds : undefined; resourceInputs["recommendationApplicationOverheadValues"] = state ? state.recommendationApplicationOverheadValues : undefined; + resourceInputs["restartReplicas"] = state ? state.restartReplicas : undefined; resourceInputs["ruleName"] = state ? state.ruleName : undefined; } else { const args = argsOrState as OceanRightSizingRuleArgs | undefined; @@ -74,11 +80,14 @@ export class OceanRightSizingRule extends pulumi.CustomResource { } resourceInputs["attachWorkloads"] = args ? args.attachWorkloads : undefined; resourceInputs["detachWorkloads"] = args ? args.detachWorkloads : undefined; + resourceInputs["excludePreliminaryRecommendations"] = args ? args.excludePreliminaryRecommendations : undefined; resourceInputs["oceanId"] = args ? args.oceanId : undefined; resourceInputs["recommendationApplicationBoundaries"] = args ? args.recommendationApplicationBoundaries : undefined; + resourceInputs["recommendationApplicationHpas"] = args ? args.recommendationApplicationHpas : undefined; resourceInputs["recommendationApplicationIntervals"] = args ? args.recommendationApplicationIntervals : undefined; resourceInputs["recommendationApplicationMinThresholds"] = args ? args.recommendationApplicationMinThresholds : undefined; resourceInputs["recommendationApplicationOverheadValues"] = args ? args.recommendationApplicationOverheadValues : undefined; + resourceInputs["restartReplicas"] = args ? args.restartReplicas : undefined; resourceInputs["ruleName"] = args ? args.ruleName : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); @@ -92,11 +101,14 @@ export class OceanRightSizingRule extends pulumi.CustomResource { export interface OceanRightSizingRuleState { attachWorkloads?: pulumi.Input[]>; detachWorkloads?: pulumi.Input[]>; + excludePreliminaryRecommendations?: pulumi.Input; oceanId?: pulumi.Input; recommendationApplicationBoundaries?: pulumi.Input[]>; + recommendationApplicationHpas?: pulumi.Input[]>; recommendationApplicationIntervals?: pulumi.Input[]>; recommendationApplicationMinThresholds?: pulumi.Input[]>; recommendationApplicationOverheadValues?: pulumi.Input[]>; + restartReplicas?: pulumi.Input; ruleName?: pulumi.Input; } @@ -106,10 +118,13 @@ export interface OceanRightSizingRuleState { export interface OceanRightSizingRuleArgs { attachWorkloads?: pulumi.Input[]>; detachWorkloads?: pulumi.Input[]>; + excludePreliminaryRecommendations?: pulumi.Input; oceanId?: pulumi.Input; recommendationApplicationBoundaries?: pulumi.Input[]>; + recommendationApplicationHpas?: pulumi.Input[]>; recommendationApplicationIntervals: pulumi.Input[]>; recommendationApplicationMinThresholds?: pulumi.Input[]>; recommendationApplicationOverheadValues?: pulumi.Input[]>; + restartReplicas?: pulumi.Input; ruleName: pulumi.Input; } diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 80666696..8b1ed914 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -346,6 +346,10 @@ export interface OceanRightSizingRuleRecommendationApplicationBoundary { memoryMin?: pulumi.Input; } +export interface OceanRightSizingRuleRecommendationApplicationHpa { + allowHpaRecommendations?: pulumi.Input; +} + export interface OceanRightSizingRuleRecommendationApplicationInterval { monthlyRepetitionBases?: pulumi.Input[]>; repetitionBasis: pulumi.Input; diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 347e1d6a..f808a44d 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -346,6 +346,10 @@ export interface OceanRightSizingRuleRecommendationApplicationBoundary { memoryMin?: number; } +export interface OceanRightSizingRuleRecommendationApplicationHpa { + allowHpaRecommendations?: boolean; +} + export interface OceanRightSizingRuleRecommendationApplicationInterval { monthlyRepetitionBases?: outputs.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBase[]; repetitionBasis: string; diff --git a/sdk/python/pulumi_spotinst/_inputs.py b/sdk/python/pulumi_spotinst/_inputs.py index 2e180228..5091d8ba 100644 --- a/sdk/python/pulumi_spotinst/_inputs.py +++ b/sdk/python/pulumi_spotinst/_inputs.py @@ -109,6 +109,8 @@ 'OceanRightSizingRuleDetachWorkloadNamespaceWorkloadArgsDict', 'OceanRightSizingRuleRecommendationApplicationBoundaryArgs', 'OceanRightSizingRuleRecommendationApplicationBoundaryArgsDict', + 'OceanRightSizingRuleRecommendationApplicationHpaArgs', + 'OceanRightSizingRuleRecommendationApplicationHpaArgsDict', 'OceanRightSizingRuleRecommendationApplicationIntervalArgs', 'OceanRightSizingRuleRecommendationApplicationIntervalArgsDict', 'OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs', @@ -2919,6 +2921,29 @@ def memory_min(self, value: Optional[pulumi.Input[int]]): pulumi.set(self, "memory_min", value) +if not MYPY: + class OceanRightSizingRuleRecommendationApplicationHpaArgsDict(TypedDict): + allow_hpa_recommendations: NotRequired[pulumi.Input[bool]] +elif False: + OceanRightSizingRuleRecommendationApplicationHpaArgsDict: TypeAlias = Mapping[str, Any] + +@pulumi.input_type +class OceanRightSizingRuleRecommendationApplicationHpaArgs: + def __init__(__self__, *, + allow_hpa_recommendations: Optional[pulumi.Input[bool]] = None): + if allow_hpa_recommendations is not None: + pulumi.set(__self__, "allow_hpa_recommendations", allow_hpa_recommendations) + + @property + @pulumi.getter(name="allowHpaRecommendations") + def allow_hpa_recommendations(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "allow_hpa_recommendations") + + @allow_hpa_recommendations.setter + def allow_hpa_recommendations(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "allow_hpa_recommendations", value) + + if not MYPY: class OceanRightSizingRuleRecommendationApplicationIntervalArgsDict(TypedDict): repetition_basis: pulumi.Input[str] diff --git a/sdk/python/pulumi_spotinst/ocean_right_sizing_rule.py b/sdk/python/pulumi_spotinst/ocean_right_sizing_rule.py index f188d3fe..0545807d 100644 --- a/sdk/python/pulumi_spotinst/ocean_right_sizing_rule.py +++ b/sdk/python/pulumi_spotinst/ocean_right_sizing_rule.py @@ -25,10 +25,13 @@ def __init__(__self__, *, rule_name: pulumi.Input[str], attach_workloads: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleAttachWorkloadArgs']]]] = None, detach_workloads: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleDetachWorkloadArgs']]]] = None, + exclude_preliminary_recommendations: Optional[pulumi.Input[bool]] = None, ocean_id: Optional[pulumi.Input[str]] = None, recommendation_application_boundaries: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationBoundaryArgs']]]] = None, + recommendation_application_hpas: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationHpaArgs']]]] = None, recommendation_application_min_thresholds: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationMinThresholdArgs']]]] = None, - recommendation_application_overhead_values: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationOverheadValueArgs']]]] = None): + recommendation_application_overhead_values: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationOverheadValueArgs']]]] = None, + restart_replicas: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a OceanRightSizingRule resource. """ @@ -38,14 +41,20 @@ def __init__(__self__, *, pulumi.set(__self__, "attach_workloads", attach_workloads) if detach_workloads is not None: pulumi.set(__self__, "detach_workloads", detach_workloads) + if exclude_preliminary_recommendations is not None: + pulumi.set(__self__, "exclude_preliminary_recommendations", exclude_preliminary_recommendations) if ocean_id is not None: pulumi.set(__self__, "ocean_id", ocean_id) if recommendation_application_boundaries is not None: pulumi.set(__self__, "recommendation_application_boundaries", recommendation_application_boundaries) + if recommendation_application_hpas is not None: + pulumi.set(__self__, "recommendation_application_hpas", recommendation_application_hpas) if recommendation_application_min_thresholds is not None: pulumi.set(__self__, "recommendation_application_min_thresholds", recommendation_application_min_thresholds) if recommendation_application_overhead_values is not None: pulumi.set(__self__, "recommendation_application_overhead_values", recommendation_application_overhead_values) + if restart_replicas is not None: + pulumi.set(__self__, "restart_replicas", restart_replicas) @property @pulumi.getter(name="recommendationApplicationIntervals") @@ -83,6 +92,15 @@ def detach_workloads(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['Ocean def detach_workloads(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleDetachWorkloadArgs']]]]): pulumi.set(self, "detach_workloads", value) + @property + @pulumi.getter(name="excludePreliminaryRecommendations") + def exclude_preliminary_recommendations(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "exclude_preliminary_recommendations") + + @exclude_preliminary_recommendations.setter + def exclude_preliminary_recommendations(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "exclude_preliminary_recommendations", value) + @property @pulumi.getter(name="oceanId") def ocean_id(self) -> Optional[pulumi.Input[str]]: @@ -101,6 +119,15 @@ def recommendation_application_boundaries(self) -> Optional[pulumi.Input[Sequenc def recommendation_application_boundaries(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationBoundaryArgs']]]]): pulumi.set(self, "recommendation_application_boundaries", value) + @property + @pulumi.getter(name="recommendationApplicationHpas") + def recommendation_application_hpas(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationHpaArgs']]]]: + return pulumi.get(self, "recommendation_application_hpas") + + @recommendation_application_hpas.setter + def recommendation_application_hpas(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationHpaArgs']]]]): + pulumi.set(self, "recommendation_application_hpas", value) + @property @pulumi.getter(name="recommendationApplicationMinThresholds") def recommendation_application_min_thresholds(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationMinThresholdArgs']]]]: @@ -119,17 +146,29 @@ def recommendation_application_overhead_values(self) -> Optional[pulumi.Input[Se def recommendation_application_overhead_values(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationOverheadValueArgs']]]]): pulumi.set(self, "recommendation_application_overhead_values", value) + @property + @pulumi.getter(name="restartReplicas") + def restart_replicas(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "restart_replicas") + + @restart_replicas.setter + def restart_replicas(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "restart_replicas", value) + @pulumi.input_type class _OceanRightSizingRuleState: def __init__(__self__, *, attach_workloads: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleAttachWorkloadArgs']]]] = None, detach_workloads: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleDetachWorkloadArgs']]]] = None, + exclude_preliminary_recommendations: Optional[pulumi.Input[bool]] = None, ocean_id: Optional[pulumi.Input[str]] = None, recommendation_application_boundaries: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationBoundaryArgs']]]] = None, + recommendation_application_hpas: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationHpaArgs']]]] = None, recommendation_application_intervals: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationIntervalArgs']]]] = None, recommendation_application_min_thresholds: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationMinThresholdArgs']]]] = None, recommendation_application_overhead_values: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationOverheadValueArgs']]]] = None, + restart_replicas: Optional[pulumi.Input[str]] = None, rule_name: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering OceanRightSizingRule resources. @@ -138,16 +177,22 @@ def __init__(__self__, *, pulumi.set(__self__, "attach_workloads", attach_workloads) if detach_workloads is not None: pulumi.set(__self__, "detach_workloads", detach_workloads) + if exclude_preliminary_recommendations is not None: + pulumi.set(__self__, "exclude_preliminary_recommendations", exclude_preliminary_recommendations) if ocean_id is not None: pulumi.set(__self__, "ocean_id", ocean_id) if recommendation_application_boundaries is not None: pulumi.set(__self__, "recommendation_application_boundaries", recommendation_application_boundaries) + if recommendation_application_hpas is not None: + pulumi.set(__self__, "recommendation_application_hpas", recommendation_application_hpas) if recommendation_application_intervals is not None: pulumi.set(__self__, "recommendation_application_intervals", recommendation_application_intervals) if recommendation_application_min_thresholds is not None: pulumi.set(__self__, "recommendation_application_min_thresholds", recommendation_application_min_thresholds) if recommendation_application_overhead_values is not None: pulumi.set(__self__, "recommendation_application_overhead_values", recommendation_application_overhead_values) + if restart_replicas is not None: + pulumi.set(__self__, "restart_replicas", restart_replicas) if rule_name is not None: pulumi.set(__self__, "rule_name", rule_name) @@ -169,6 +214,15 @@ def detach_workloads(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['Ocean def detach_workloads(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleDetachWorkloadArgs']]]]): pulumi.set(self, "detach_workloads", value) + @property + @pulumi.getter(name="excludePreliminaryRecommendations") + def exclude_preliminary_recommendations(self) -> Optional[pulumi.Input[bool]]: + return pulumi.get(self, "exclude_preliminary_recommendations") + + @exclude_preliminary_recommendations.setter + def exclude_preliminary_recommendations(self, value: Optional[pulumi.Input[bool]]): + pulumi.set(self, "exclude_preliminary_recommendations", value) + @property @pulumi.getter(name="oceanId") def ocean_id(self) -> Optional[pulumi.Input[str]]: @@ -187,6 +241,15 @@ def recommendation_application_boundaries(self) -> Optional[pulumi.Input[Sequenc def recommendation_application_boundaries(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationBoundaryArgs']]]]): pulumi.set(self, "recommendation_application_boundaries", value) + @property + @pulumi.getter(name="recommendationApplicationHpas") + def recommendation_application_hpas(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationHpaArgs']]]]: + return pulumi.get(self, "recommendation_application_hpas") + + @recommendation_application_hpas.setter + def recommendation_application_hpas(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationHpaArgs']]]]): + pulumi.set(self, "recommendation_application_hpas", value) + @property @pulumi.getter(name="recommendationApplicationIntervals") def recommendation_application_intervals(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationIntervalArgs']]]]: @@ -214,6 +277,15 @@ def recommendation_application_overhead_values(self) -> Optional[pulumi.Input[Se def recommendation_application_overhead_values(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OceanRightSizingRuleRecommendationApplicationOverheadValueArgs']]]]): pulumi.set(self, "recommendation_application_overhead_values", value) + @property + @pulumi.getter(name="restartReplicas") + def restart_replicas(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "restart_replicas") + + @restart_replicas.setter + def restart_replicas(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "restart_replicas", value) + @property @pulumi.getter(name="ruleName") def rule_name(self) -> Optional[pulumi.Input[str]]: @@ -231,11 +303,14 @@ def __init__(__self__, opts: Optional[pulumi.ResourceOptions] = None, attach_workloads: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleAttachWorkloadArgs', 'OceanRightSizingRuleAttachWorkloadArgsDict']]]]] = None, detach_workloads: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleDetachWorkloadArgs', 'OceanRightSizingRuleDetachWorkloadArgsDict']]]]] = None, + exclude_preliminary_recommendations: Optional[pulumi.Input[bool]] = None, ocean_id: Optional[pulumi.Input[str]] = None, recommendation_application_boundaries: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationBoundaryArgs', 'OceanRightSizingRuleRecommendationApplicationBoundaryArgsDict']]]]] = None, + recommendation_application_hpas: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationHpaArgs', 'OceanRightSizingRuleRecommendationApplicationHpaArgsDict']]]]] = None, recommendation_application_intervals: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationIntervalArgs', 'OceanRightSizingRuleRecommendationApplicationIntervalArgsDict']]]]] = None, recommendation_application_min_thresholds: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationMinThresholdArgs', 'OceanRightSizingRuleRecommendationApplicationMinThresholdArgsDict']]]]] = None, recommendation_application_overhead_values: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationOverheadValueArgs', 'OceanRightSizingRuleRecommendationApplicationOverheadValueArgsDict']]]]] = None, + restart_replicas: Optional[pulumi.Input[str]] = None, rule_name: Optional[pulumi.Input[str]] = None, __props__=None): """ @@ -268,11 +343,14 @@ def _internal_init(__self__, opts: Optional[pulumi.ResourceOptions] = None, attach_workloads: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleAttachWorkloadArgs', 'OceanRightSizingRuleAttachWorkloadArgsDict']]]]] = None, detach_workloads: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleDetachWorkloadArgs', 'OceanRightSizingRuleDetachWorkloadArgsDict']]]]] = None, + exclude_preliminary_recommendations: Optional[pulumi.Input[bool]] = None, ocean_id: Optional[pulumi.Input[str]] = None, recommendation_application_boundaries: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationBoundaryArgs', 'OceanRightSizingRuleRecommendationApplicationBoundaryArgsDict']]]]] = None, + recommendation_application_hpas: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationHpaArgs', 'OceanRightSizingRuleRecommendationApplicationHpaArgsDict']]]]] = None, recommendation_application_intervals: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationIntervalArgs', 'OceanRightSizingRuleRecommendationApplicationIntervalArgsDict']]]]] = None, recommendation_application_min_thresholds: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationMinThresholdArgs', 'OceanRightSizingRuleRecommendationApplicationMinThresholdArgsDict']]]]] = None, recommendation_application_overhead_values: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationOverheadValueArgs', 'OceanRightSizingRuleRecommendationApplicationOverheadValueArgsDict']]]]] = None, + restart_replicas: Optional[pulumi.Input[str]] = None, rule_name: Optional[pulumi.Input[str]] = None, __props__=None): opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts) @@ -285,13 +363,16 @@ def _internal_init(__self__, __props__.__dict__["attach_workloads"] = attach_workloads __props__.__dict__["detach_workloads"] = detach_workloads + __props__.__dict__["exclude_preliminary_recommendations"] = exclude_preliminary_recommendations __props__.__dict__["ocean_id"] = ocean_id __props__.__dict__["recommendation_application_boundaries"] = recommendation_application_boundaries + __props__.__dict__["recommendation_application_hpas"] = recommendation_application_hpas if recommendation_application_intervals is None and not opts.urn: raise TypeError("Missing required property 'recommendation_application_intervals'") __props__.__dict__["recommendation_application_intervals"] = recommendation_application_intervals __props__.__dict__["recommendation_application_min_thresholds"] = recommendation_application_min_thresholds __props__.__dict__["recommendation_application_overhead_values"] = recommendation_application_overhead_values + __props__.__dict__["restart_replicas"] = restart_replicas if rule_name is None and not opts.urn: raise TypeError("Missing required property 'rule_name'") __props__.__dict__["rule_name"] = rule_name @@ -307,11 +388,14 @@ def get(resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, attach_workloads: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleAttachWorkloadArgs', 'OceanRightSizingRuleAttachWorkloadArgsDict']]]]] = None, detach_workloads: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleDetachWorkloadArgs', 'OceanRightSizingRuleDetachWorkloadArgsDict']]]]] = None, + exclude_preliminary_recommendations: Optional[pulumi.Input[bool]] = None, ocean_id: Optional[pulumi.Input[str]] = None, recommendation_application_boundaries: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationBoundaryArgs', 'OceanRightSizingRuleRecommendationApplicationBoundaryArgsDict']]]]] = None, + recommendation_application_hpas: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationHpaArgs', 'OceanRightSizingRuleRecommendationApplicationHpaArgsDict']]]]] = None, recommendation_application_intervals: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationIntervalArgs', 'OceanRightSizingRuleRecommendationApplicationIntervalArgsDict']]]]] = None, recommendation_application_min_thresholds: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationMinThresholdArgs', 'OceanRightSizingRuleRecommendationApplicationMinThresholdArgsDict']]]]] = None, recommendation_application_overhead_values: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OceanRightSizingRuleRecommendationApplicationOverheadValueArgs', 'OceanRightSizingRuleRecommendationApplicationOverheadValueArgsDict']]]]] = None, + restart_replicas: Optional[pulumi.Input[str]] = None, rule_name: Optional[pulumi.Input[str]] = None) -> 'OceanRightSizingRule': """ Get an existing OceanRightSizingRule resource's state with the given name, id, and optional extra @@ -327,11 +411,14 @@ def get(resource_name: str, __props__.__dict__["attach_workloads"] = attach_workloads __props__.__dict__["detach_workloads"] = detach_workloads + __props__.__dict__["exclude_preliminary_recommendations"] = exclude_preliminary_recommendations __props__.__dict__["ocean_id"] = ocean_id __props__.__dict__["recommendation_application_boundaries"] = recommendation_application_boundaries + __props__.__dict__["recommendation_application_hpas"] = recommendation_application_hpas __props__.__dict__["recommendation_application_intervals"] = recommendation_application_intervals __props__.__dict__["recommendation_application_min_thresholds"] = recommendation_application_min_thresholds __props__.__dict__["recommendation_application_overhead_values"] = recommendation_application_overhead_values + __props__.__dict__["restart_replicas"] = restart_replicas __props__.__dict__["rule_name"] = rule_name return OceanRightSizingRule(resource_name, opts=opts, __props__=__props__) @@ -345,6 +432,11 @@ def attach_workloads(self) -> pulumi.Output[Optional[Sequence['outputs.OceanRigh def detach_workloads(self) -> pulumi.Output[Optional[Sequence['outputs.OceanRightSizingRuleDetachWorkload']]]: return pulumi.get(self, "detach_workloads") + @property + @pulumi.getter(name="excludePreliminaryRecommendations") + def exclude_preliminary_recommendations(self) -> pulumi.Output[Optional[bool]]: + return pulumi.get(self, "exclude_preliminary_recommendations") + @property @pulumi.getter(name="oceanId") def ocean_id(self) -> pulumi.Output[Optional[str]]: @@ -355,6 +447,11 @@ def ocean_id(self) -> pulumi.Output[Optional[str]]: def recommendation_application_boundaries(self) -> pulumi.Output[Optional[Sequence['outputs.OceanRightSizingRuleRecommendationApplicationBoundary']]]: return pulumi.get(self, "recommendation_application_boundaries") + @property + @pulumi.getter(name="recommendationApplicationHpas") + def recommendation_application_hpas(self) -> pulumi.Output[Optional[Sequence['outputs.OceanRightSizingRuleRecommendationApplicationHpa']]]: + return pulumi.get(self, "recommendation_application_hpas") + @property @pulumi.getter(name="recommendationApplicationIntervals") def recommendation_application_intervals(self) -> pulumi.Output[Sequence['outputs.OceanRightSizingRuleRecommendationApplicationInterval']]: @@ -370,6 +467,11 @@ def recommendation_application_min_thresholds(self) -> pulumi.Output[Optional[Se def recommendation_application_overhead_values(self) -> pulumi.Output[Optional[Sequence['outputs.OceanRightSizingRuleRecommendationApplicationOverheadValue']]]: return pulumi.get(self, "recommendation_application_overhead_values") + @property + @pulumi.getter(name="restartReplicas") + def restart_replicas(self) -> pulumi.Output[Optional[str]]: + return pulumi.get(self, "restart_replicas") + @property @pulumi.getter(name="ruleName") def rule_name(self) -> pulumi.Output[str]: diff --git a/sdk/python/pulumi_spotinst/outputs.py b/sdk/python/pulumi_spotinst/outputs.py index 8135ed15..01d14f18 100644 --- a/sdk/python/pulumi_spotinst/outputs.py +++ b/sdk/python/pulumi_spotinst/outputs.py @@ -63,6 +63,7 @@ 'OceanRightSizingRuleDetachWorkloadNamespaceLabel', 'OceanRightSizingRuleDetachWorkloadNamespaceWorkload', 'OceanRightSizingRuleRecommendationApplicationBoundary', + 'OceanRightSizingRuleRecommendationApplicationHpa', 'OceanRightSizingRuleRecommendationApplicationInterval', 'OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBase', 'OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBase', @@ -2418,6 +2419,36 @@ def memory_min(self) -> Optional[int]: return pulumi.get(self, "memory_min") +@pulumi.output_type +class OceanRightSizingRuleRecommendationApplicationHpa(dict): + @staticmethod + def __key_warning(key: str): + suggest = None + if key == "allowHpaRecommendations": + suggest = "allow_hpa_recommendations" + + if suggest: + pulumi.log.warn(f"Key '{key}' not found in OceanRightSizingRuleRecommendationApplicationHpa. Access the value via the '{suggest}' property getter instead.") + + def __getitem__(self, key: str) -> Any: + OceanRightSizingRuleRecommendationApplicationHpa.__key_warning(key) + return super().__getitem__(key) + + def get(self, key: str, default = None) -> Any: + OceanRightSizingRuleRecommendationApplicationHpa.__key_warning(key) + return super().get(key, default) + + def __init__(__self__, *, + allow_hpa_recommendations: Optional[bool] = None): + if allow_hpa_recommendations is not None: + pulumi.set(__self__, "allow_hpa_recommendations", allow_hpa_recommendations) + + @property + @pulumi.getter(name="allowHpaRecommendations") + def allow_hpa_recommendations(self) -> Optional[bool]: + return pulumi.get(self, "allow_hpa_recommendations") + + @pulumi.output_type class OceanRightSizingRuleRecommendationApplicationInterval(dict): @staticmethod