spotinst.OceanRightSizingRule
Manages a Spotinst Ocean right sizing rule resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spotinst from "@pulumi/spotinst";
const example = new spotinst.OceanRightSizingRule("example", {
oceanId: "o-123456",
ruleName: "test-rule",
excludePreliminaryRecommendations: true,
restartReplicas: "ALL_MANIFEST",
recommendationApplicationHpas: [{
allowHpaRecommendations: true,
}],
recommendationApplicationIntervals: [
{
repetitionBasis: "WEEKLY",
weeklyRepetitionBases: [{
intervalDays: [
"MONDAY",
"WEDNESDAY",
],
intervalHoursStartTime: "12:00",
intervalHoursEndTime: "14:00",
}],
},
{
repetitionBasis: "MONTHLY",
monthlyRepetitionBases: [{
intervalMonths: [
2,
6,
9,
],
weekOfTheMonths: [
"FIRST",
"LAST",
],
weeklyRepetitionBases: [{
intervalDays: ["MONDAY"],
intervalHoursStartTime: "03:00",
intervalHoursEndTime: "04:00",
}],
}],
},
],
recommendationApplicationBoundaries: [{
cpuMin: 120,
cpuMax: 190,
memoryMin: 160,
memoryMax: 190,
}],
recommendationApplicationMinThresholds: [{
cpuPercentage: 0.412,
memoryPercentage: 0.36,
}],
recommendationApplicationOverheadValues: [{
cpuPercentage: 0.8,
memoryPercentage: 0.5,
}],
autoApplyDefinitions: [{
enabled: true,
namespaces: [
"kube-system",
"spot-system",
],
labels: {
"k8s-app": "kube-proxy",
"app.kubernetes.io/name": "metrics-server",
},
}],
});
import pulumi
import pulumi_spotinst as spotinst
example = spotinst.OceanRightSizingRule("example",
ocean_id="o-123456",
rule_name="test-rule",
exclude_preliminary_recommendations=True,
restart_replicas="ALL_MANIFEST",
recommendation_application_hpas=[{
"allow_hpa_recommendations": True,
}],
recommendation_application_intervals=[
{
"repetition_basis": "WEEKLY",
"weekly_repetition_bases": [{
"interval_days": [
"MONDAY",
"WEDNESDAY",
],
"interval_hours_start_time": "12:00",
"interval_hours_end_time": "14:00",
}],
},
{
"repetition_basis": "MONTHLY",
"monthly_repetition_bases": [{
"interval_months": [
2,
6,
9,
],
"week_of_the_months": [
"FIRST",
"LAST",
],
"weekly_repetition_bases": [{
"interval_days": ["MONDAY"],
"interval_hours_start_time": "03:00",
"interval_hours_end_time": "04:00",
}],
}],
},
],
recommendation_application_boundaries=[{
"cpu_min": 120,
"cpu_max": 190,
"memory_min": 160,
"memory_max": 190,
}],
recommendation_application_min_thresholds=[{
"cpu_percentage": 0.412,
"memory_percentage": 0.36,
}],
recommendation_application_overhead_values=[{
"cpu_percentage": 0.8,
"memory_percentage": 0.5,
}],
auto_apply_definitions=[{
"enabled": True,
"namespaces": [
"kube-system",
"spot-system",
],
"labels": {
"k8s-app": "kube-proxy",
"app.kubernetes.io/name": "metrics-server",
},
}])
package main
import (
"github.com/pulumi/pulumi-spotinst/sdk/v3/go/spotinst"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := spotinst.NewOceanRightSizingRule(ctx, "example", &spotinst.OceanRightSizingRuleArgs{
OceanId: pulumi.String("o-123456"),
RuleName: pulumi.String("test-rule"),
ExcludePreliminaryRecommendations: pulumi.Bool(true),
RestartReplicas: pulumi.String("ALL_MANIFEST"),
RecommendationApplicationHpas: spotinst.OceanRightSizingRuleRecommendationApplicationHpaArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationHpaArgs{
AllowHpaRecommendations: pulumi.Bool(true),
},
},
RecommendationApplicationIntervals: spotinst.OceanRightSizingRuleRecommendationApplicationIntervalArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationIntervalArgs{
RepetitionBasis: pulumi.String("WEEKLY"),
WeeklyRepetitionBases: spotinst.OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArgs{
IntervalDays: pulumi.StringArray{
pulumi.String("MONDAY"),
pulumi.String("WEDNESDAY"),
},
IntervalHoursStartTime: pulumi.String("12:00"),
IntervalHoursEndTime: pulumi.String("14:00"),
},
},
},
&spotinst.OceanRightSizingRuleRecommendationApplicationIntervalArgs{
RepetitionBasis: pulumi.String("MONTHLY"),
MonthlyRepetitionBases: spotinst.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs{
IntervalMonths: pulumi.IntArray{
pulumi.Int(2),
pulumi.Int(6),
pulumi.Int(9),
},
WeekOfTheMonths: pulumi.StringArray{
pulumi.String("FIRST"),
pulumi.String("LAST"),
},
WeeklyRepetitionBases: spotinst.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArgs{
IntervalDays: pulumi.StringArray{
pulumi.String("MONDAY"),
},
IntervalHoursStartTime: pulumi.String("03:00"),
IntervalHoursEndTime: pulumi.String("04:00"),
},
},
},
},
},
},
RecommendationApplicationBoundaries: spotinst.OceanRightSizingRuleRecommendationApplicationBoundaryArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationBoundaryArgs{
CpuMin: pulumi.Float64(120),
CpuMax: pulumi.Float64(190),
MemoryMin: pulumi.Int(160),
MemoryMax: pulumi.Int(190),
},
},
RecommendationApplicationMinThresholds: spotinst.OceanRightSizingRuleRecommendationApplicationMinThresholdArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationMinThresholdArgs{
CpuPercentage: pulumi.Float64(0.412),
MemoryPercentage: pulumi.Float64(0.36),
},
},
RecommendationApplicationOverheadValues: spotinst.OceanRightSizingRuleRecommendationApplicationOverheadValueArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationOverheadValueArgs{
CpuPercentage: pulumi.Float64(0.8),
MemoryPercentage: pulumi.Float64(0.5),
},
},
AutoApplyDefinitions: spotinst.OceanRightSizingRuleAutoApplyDefinitionArray{
&spotinst.OceanRightSizingRuleAutoApplyDefinitionArgs{
Enabled: pulumi.Bool(true),
Namespaces: pulumi.StringArray{
pulumi.String("kube-system"),
pulumi.String("spot-system"),
},
Labels: pulumi.StringMap{
"k8s-app": pulumi.String("kube-proxy"),
"app.kubernetes.io/name": pulumi.String("metrics-server"),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SpotInst = Pulumi.SpotInst;
return await Deployment.RunAsync(() =>
{
var example = new SpotInst.OceanRightSizingRule("example", new()
{
OceanId = "o-123456",
RuleName = "test-rule",
ExcludePreliminaryRecommendations = true,
RestartReplicas = "ALL_MANIFEST",
RecommendationApplicationHpas = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationHpaArgs
{
AllowHpaRecommendations = true,
},
},
RecommendationApplicationIntervals = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationIntervalArgs
{
RepetitionBasis = "WEEKLY",
WeeklyRepetitionBases = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArgs
{
IntervalDays = new[]
{
"MONDAY",
"WEDNESDAY",
},
IntervalHoursStartTime = "12:00",
IntervalHoursEndTime = "14:00",
},
},
},
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationIntervalArgs
{
RepetitionBasis = "MONTHLY",
MonthlyRepetitionBases = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs
{
IntervalMonths = new[]
{
2,
6,
9,
},
WeekOfTheMonths = new[]
{
"FIRST",
"LAST",
},
WeeklyRepetitionBases = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArgs
{
IntervalDays = new[]
{
"MONDAY",
},
IntervalHoursStartTime = "03:00",
IntervalHoursEndTime = "04:00",
},
},
},
},
},
},
RecommendationApplicationBoundaries = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationBoundaryArgs
{
CpuMin = 120,
CpuMax = 190,
MemoryMin = 160,
MemoryMax = 190,
},
},
RecommendationApplicationMinThresholds = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationMinThresholdArgs
{
CpuPercentage = 0.412,
MemoryPercentage = 0.36,
},
},
RecommendationApplicationOverheadValues = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationOverheadValueArgs
{
CpuPercentage = 0.8,
MemoryPercentage = 0.5,
},
},
AutoApplyDefinitions = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleAutoApplyDefinitionArgs
{
Enabled = true,
Namespaces = new[]
{
"kube-system",
"spot-system",
},
Labels =
{
{ "k8s-app", "kube-proxy" },
{ "app.kubernetes.io/name", "metrics-server" },
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spotinst.OceanRightSizingRule;
import com.pulumi.spotinst.OceanRightSizingRuleArgs;
import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationHpaArgs;
import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationIntervalArgs;
import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationBoundaryArgs;
import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationMinThresholdArgs;
import com.pulumi.spotinst.inputs.OceanRightSizingRuleRecommendationApplicationOverheadValueArgs;
import com.pulumi.spotinst.inputs.OceanRightSizingRuleAutoApplyDefinitionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new OceanRightSizingRule("example", OceanRightSizingRuleArgs.builder()
.oceanId("o-123456")
.ruleName("test-rule")
.excludePreliminaryRecommendations(true)
.restartReplicas("ALL_MANIFEST")
.recommendationApplicationHpas(OceanRightSizingRuleRecommendationApplicationHpaArgs.builder()
.allowHpaRecommendations(true)
.build())
.recommendationApplicationIntervals(
OceanRightSizingRuleRecommendationApplicationIntervalArgs.builder()
.repetitionBasis("WEEKLY")
.weeklyRepetitionBases(OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArgs.builder()
.intervalDays(
"MONDAY",
"WEDNESDAY")
.intervalHoursStartTime("12:00")
.intervalHoursEndTime("14:00")
.build())
.build(),
OceanRightSizingRuleRecommendationApplicationIntervalArgs.builder()
.repetitionBasis("MONTHLY")
.monthlyRepetitionBases(OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs.builder()
.intervalMonths(
2,
6,
9)
.weekOfTheMonths(
"FIRST",
"LAST")
.weeklyRepetitionBases(OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArgs.builder()
.intervalDays("MONDAY")
.intervalHoursStartTime("03:00")
.intervalHoursEndTime("04:00")
.build())
.build())
.build())
.recommendationApplicationBoundaries(OceanRightSizingRuleRecommendationApplicationBoundaryArgs.builder()
.cpuMin(120.0)
.cpuMax(190.0)
.memoryMin(160)
.memoryMax(190)
.build())
.recommendationApplicationMinThresholds(OceanRightSizingRuleRecommendationApplicationMinThresholdArgs.builder()
.cpuPercentage(0.412)
.memoryPercentage(0.36)
.build())
.recommendationApplicationOverheadValues(OceanRightSizingRuleRecommendationApplicationOverheadValueArgs.builder()
.cpuPercentage(0.8)
.memoryPercentage(0.5)
.build())
.autoApplyDefinitions(OceanRightSizingRuleAutoApplyDefinitionArgs.builder()
.enabled(true)
.namespaces(
"kube-system",
"spot-system")
.labels(Map.ofEntries(
Map.entry("k8s-app", "kube-proxy"),
Map.entry("app.kubernetes.io/name", "metrics-server")
))
.build())
.build());
}
}
resources:
example:
type: spotinst:OceanRightSizingRule
properties:
oceanId: o-123456
ruleName: test-rule
excludePreliminaryRecommendations: true
restartReplicas: ALL_MANIFEST
recommendationApplicationHpas:
- allowHpaRecommendations: true
recommendationApplicationIntervals:
- repetitionBasis: WEEKLY
weeklyRepetitionBases:
- intervalDays:
- MONDAY
- WEDNESDAY
intervalHoursStartTime: 12:00
intervalHoursEndTime: 14:00
- repetitionBasis: MONTHLY
monthlyRepetitionBases:
- intervalMonths:
- 2
- 6
- 9
weekOfTheMonths:
- FIRST
- LAST
weeklyRepetitionBases:
- intervalDays:
- MONDAY
intervalHoursStartTime: 03:00
intervalHoursEndTime: 04:00
recommendationApplicationBoundaries:
- cpuMin: 120
cpuMax: 190
memoryMin: 160
memoryMax: 190
recommendationApplicationMinThresholds:
- cpuPercentage: 0.412
memoryPercentage: 0.36
recommendationApplicationOverheadValues:
- cpuPercentage: 0.8
memoryPercentage: 0.5
autoApplyDefinitions:
- enabled: true
namespaces:
- kube-system
- spot-system
labels:
k8s-app: kube-proxy
app.kubernetes.io/name: metrics-server
Create OceanRightSizingRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OceanRightSizingRule(name: string, args: OceanRightSizingRuleArgs, opts?: CustomResourceOptions);@overload
def OceanRightSizingRule(resource_name: str,
args: OceanRightSizingRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OceanRightSizingRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
recommendation_application_intervals: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationIntervalArgs]] = None,
rule_name: Optional[str] = None,
recommendation_application_boundaries: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationBoundaryArgs]] = None,
downside_only: Optional[bool] = None,
exclude_preliminary_recommendations: Optional[bool] = None,
ocean_id: Optional[str] = None,
attach_workloads: Optional[Sequence[OceanRightSizingRuleAttachWorkloadArgs]] = None,
recommendation_application_hpas: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationHpaArgs]] = None,
detach_workloads: Optional[Sequence[OceanRightSizingRuleDetachWorkloadArgs]] = None,
recommendation_application_min_thresholds: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationMinThresholdArgs]] = None,
recommendation_application_overhead_values: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationOverheadValueArgs]] = None,
restart_replicas: Optional[str] = None,
auto_apply_definitions: Optional[Sequence[OceanRightSizingRuleAutoApplyDefinitionArgs]] = None)func NewOceanRightSizingRule(ctx *Context, name string, args OceanRightSizingRuleArgs, opts ...ResourceOption) (*OceanRightSizingRule, error)public OceanRightSizingRule(string name, OceanRightSizingRuleArgs args, CustomResourceOptions? opts = null)
public OceanRightSizingRule(String name, OceanRightSizingRuleArgs args)
public OceanRightSizingRule(String name, OceanRightSizingRuleArgs args, CustomResourceOptions options)
type: spotinst:OceanRightSizingRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OceanRightSizingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OceanRightSizingRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OceanRightSizingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OceanRightSizingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OceanRightSizingRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var oceanRightSizingRuleResource = new SpotInst.OceanRightSizingRule("oceanRightSizingRuleResource", new()
{
RecommendationApplicationIntervals = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationIntervalArgs
{
RepetitionBasis = "string",
MonthlyRepetitionBases = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs
{
IntervalMonths = new[]
{
0,
},
WeekOfTheMonths = new[]
{
"string",
},
WeeklyRepetitionBases = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArgs
{
IntervalDays = new[]
{
"string",
},
IntervalHoursEndTime = "string",
IntervalHoursStartTime = "string",
},
},
},
},
WeeklyRepetitionBases = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArgs
{
IntervalDays = new[]
{
"string",
},
IntervalHoursEndTime = "string",
IntervalHoursStartTime = "string",
},
},
},
},
RuleName = "string",
RecommendationApplicationBoundaries = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationBoundaryArgs
{
CpuMax = 0,
CpuMin = 0,
MemoryMax = 0,
MemoryMin = 0,
},
},
DownsideOnly = false,
ExcludePreliminaryRecommendations = false,
OceanId = "string",
AttachWorkloads = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleAttachWorkloadArgs
{
Namespaces = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleAttachWorkloadNamespaceArgs
{
NamespaceName = "string",
Labels = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleAttachWorkloadNamespaceLabelArgs
{
Key = "string",
Value = "string",
},
},
Workloads = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleAttachWorkloadNamespaceWorkloadArgs
{
WorkloadType = "string",
RegexName = "string",
WorkloadName = "string",
},
},
},
},
},
},
RecommendationApplicationHpas = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationHpaArgs
{
AllowHpaRecommendations = false,
},
},
DetachWorkloads = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleDetachWorkloadArgs
{
Namespaces = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleDetachWorkloadNamespaceArgs
{
NamespaceName = "string",
Labels = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleDetachWorkloadNamespaceLabelArgs
{
Key = "string",
Value = "string",
},
},
Workloads = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleDetachWorkloadNamespaceWorkloadArgs
{
WorkloadType = "string",
RegexName = "string",
WorkloadName = "string",
},
},
},
},
},
},
RecommendationApplicationMinThresholds = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationMinThresholdArgs
{
CpuPercentage = 0,
MemoryPercentage = 0,
},
},
RecommendationApplicationOverheadValues = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationOverheadValueArgs
{
CpuPercentage = 0,
MemoryPercentage = 0,
},
},
RestartReplicas = "string",
AutoApplyDefinitions = new[]
{
new SpotInst.Inputs.OceanRightSizingRuleAutoApplyDefinitionArgs
{
Enabled = false,
Labels =
{
{ "string", "string" },
},
Namespaces = new[]
{
"string",
},
},
},
});
example, err := spotinst.NewOceanRightSizingRule(ctx, "oceanRightSizingRuleResource", &spotinst.OceanRightSizingRuleArgs{
RecommendationApplicationIntervals: spotinst.OceanRightSizingRuleRecommendationApplicationIntervalArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationIntervalArgs{
RepetitionBasis: pulumi.String("string"),
MonthlyRepetitionBases: spotinst.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs{
IntervalMonths: pulumi.IntArray{
pulumi.Int(0),
},
WeekOfTheMonths: pulumi.StringArray{
pulumi.String("string"),
},
WeeklyRepetitionBases: spotinst.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArgs{
IntervalDays: pulumi.StringArray{
pulumi.String("string"),
},
IntervalHoursEndTime: pulumi.String("string"),
IntervalHoursStartTime: pulumi.String("string"),
},
},
},
},
WeeklyRepetitionBases: spotinst.OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArgs{
IntervalDays: pulumi.StringArray{
pulumi.String("string"),
},
IntervalHoursEndTime: pulumi.String("string"),
IntervalHoursStartTime: pulumi.String("string"),
},
},
},
},
RuleName: pulumi.String("string"),
RecommendationApplicationBoundaries: spotinst.OceanRightSizingRuleRecommendationApplicationBoundaryArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationBoundaryArgs{
CpuMax: pulumi.Float64(0),
CpuMin: pulumi.Float64(0),
MemoryMax: pulumi.Int(0),
MemoryMin: pulumi.Int(0),
},
},
DownsideOnly: pulumi.Bool(false),
ExcludePreliminaryRecommendations: pulumi.Bool(false),
OceanId: pulumi.String("string"),
AttachWorkloads: spotinst.OceanRightSizingRuleAttachWorkloadArray{
&spotinst.OceanRightSizingRuleAttachWorkloadArgs{
Namespaces: spotinst.OceanRightSizingRuleAttachWorkloadNamespaceArray{
&spotinst.OceanRightSizingRuleAttachWorkloadNamespaceArgs{
NamespaceName: pulumi.String("string"),
Labels: spotinst.OceanRightSizingRuleAttachWorkloadNamespaceLabelArray{
&spotinst.OceanRightSizingRuleAttachWorkloadNamespaceLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Workloads: spotinst.OceanRightSizingRuleAttachWorkloadNamespaceWorkloadArray{
&spotinst.OceanRightSizingRuleAttachWorkloadNamespaceWorkloadArgs{
WorkloadType: pulumi.String("string"),
RegexName: pulumi.String("string"),
WorkloadName: pulumi.String("string"),
},
},
},
},
},
},
RecommendationApplicationHpas: spotinst.OceanRightSizingRuleRecommendationApplicationHpaArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationHpaArgs{
AllowHpaRecommendations: pulumi.Bool(false),
},
},
DetachWorkloads: spotinst.OceanRightSizingRuleDetachWorkloadArray{
&spotinst.OceanRightSizingRuleDetachWorkloadArgs{
Namespaces: spotinst.OceanRightSizingRuleDetachWorkloadNamespaceArray{
&spotinst.OceanRightSizingRuleDetachWorkloadNamespaceArgs{
NamespaceName: pulumi.String("string"),
Labels: spotinst.OceanRightSizingRuleDetachWorkloadNamespaceLabelArray{
&spotinst.OceanRightSizingRuleDetachWorkloadNamespaceLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Workloads: spotinst.OceanRightSizingRuleDetachWorkloadNamespaceWorkloadArray{
&spotinst.OceanRightSizingRuleDetachWorkloadNamespaceWorkloadArgs{
WorkloadType: pulumi.String("string"),
RegexName: pulumi.String("string"),
WorkloadName: pulumi.String("string"),
},
},
},
},
},
},
RecommendationApplicationMinThresholds: spotinst.OceanRightSizingRuleRecommendationApplicationMinThresholdArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationMinThresholdArgs{
CpuPercentage: pulumi.Float64(0),
MemoryPercentage: pulumi.Float64(0),
},
},
RecommendationApplicationOverheadValues: spotinst.OceanRightSizingRuleRecommendationApplicationOverheadValueArray{
&spotinst.OceanRightSizingRuleRecommendationApplicationOverheadValueArgs{
CpuPercentage: pulumi.Float64(0),
MemoryPercentage: pulumi.Float64(0),
},
},
RestartReplicas: pulumi.String("string"),
AutoApplyDefinitions: spotinst.OceanRightSizingRuleAutoApplyDefinitionArray{
&spotinst.OceanRightSizingRuleAutoApplyDefinitionArgs{
Enabled: pulumi.Bool(false),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Namespaces: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
var oceanRightSizingRuleResource = new OceanRightSizingRule("oceanRightSizingRuleResource", OceanRightSizingRuleArgs.builder()
.recommendationApplicationIntervals(OceanRightSizingRuleRecommendationApplicationIntervalArgs.builder()
.repetitionBasis("string")
.monthlyRepetitionBases(OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs.builder()
.intervalMonths(0)
.weekOfTheMonths("string")
.weeklyRepetitionBases(OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArgs.builder()
.intervalDays("string")
.intervalHoursEndTime("string")
.intervalHoursStartTime("string")
.build())
.build())
.weeklyRepetitionBases(OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArgs.builder()
.intervalDays("string")
.intervalHoursEndTime("string")
.intervalHoursStartTime("string")
.build())
.build())
.ruleName("string")
.recommendationApplicationBoundaries(OceanRightSizingRuleRecommendationApplicationBoundaryArgs.builder()
.cpuMax(0.0)
.cpuMin(0.0)
.memoryMax(0)
.memoryMin(0)
.build())
.downsideOnly(false)
.excludePreliminaryRecommendations(false)
.oceanId("string")
.attachWorkloads(OceanRightSizingRuleAttachWorkloadArgs.builder()
.namespaces(OceanRightSizingRuleAttachWorkloadNamespaceArgs.builder()
.namespaceName("string")
.labels(OceanRightSizingRuleAttachWorkloadNamespaceLabelArgs.builder()
.key("string")
.value("string")
.build())
.workloads(OceanRightSizingRuleAttachWorkloadNamespaceWorkloadArgs.builder()
.workloadType("string")
.regexName("string")
.workloadName("string")
.build())
.build())
.build())
.recommendationApplicationHpas(OceanRightSizingRuleRecommendationApplicationHpaArgs.builder()
.allowHpaRecommendations(false)
.build())
.detachWorkloads(OceanRightSizingRuleDetachWorkloadArgs.builder()
.namespaces(OceanRightSizingRuleDetachWorkloadNamespaceArgs.builder()
.namespaceName("string")
.labels(OceanRightSizingRuleDetachWorkloadNamespaceLabelArgs.builder()
.key("string")
.value("string")
.build())
.workloads(OceanRightSizingRuleDetachWorkloadNamespaceWorkloadArgs.builder()
.workloadType("string")
.regexName("string")
.workloadName("string")
.build())
.build())
.build())
.recommendationApplicationMinThresholds(OceanRightSizingRuleRecommendationApplicationMinThresholdArgs.builder()
.cpuPercentage(0.0)
.memoryPercentage(0.0)
.build())
.recommendationApplicationOverheadValues(OceanRightSizingRuleRecommendationApplicationOverheadValueArgs.builder()
.cpuPercentage(0.0)
.memoryPercentage(0.0)
.build())
.restartReplicas("string")
.autoApplyDefinitions(OceanRightSizingRuleAutoApplyDefinitionArgs.builder()
.enabled(false)
.labels(Map.of("string", "string"))
.namespaces("string")
.build())
.build());
ocean_right_sizing_rule_resource = spotinst.OceanRightSizingRule("oceanRightSizingRuleResource",
recommendation_application_intervals=[{
"repetition_basis": "string",
"monthly_repetition_bases": [{
"interval_months": [0],
"week_of_the_months": ["string"],
"weekly_repetition_bases": [{
"interval_days": ["string"],
"interval_hours_end_time": "string",
"interval_hours_start_time": "string",
}],
}],
"weekly_repetition_bases": [{
"interval_days": ["string"],
"interval_hours_end_time": "string",
"interval_hours_start_time": "string",
}],
}],
rule_name="string",
recommendation_application_boundaries=[{
"cpu_max": 0,
"cpu_min": 0,
"memory_max": 0,
"memory_min": 0,
}],
downside_only=False,
exclude_preliminary_recommendations=False,
ocean_id="string",
attach_workloads=[{
"namespaces": [{
"namespace_name": "string",
"labels": [{
"key": "string",
"value": "string",
}],
"workloads": [{
"workload_type": "string",
"regex_name": "string",
"workload_name": "string",
}],
}],
}],
recommendation_application_hpas=[{
"allow_hpa_recommendations": False,
}],
detach_workloads=[{
"namespaces": [{
"namespace_name": "string",
"labels": [{
"key": "string",
"value": "string",
}],
"workloads": [{
"workload_type": "string",
"regex_name": "string",
"workload_name": "string",
}],
}],
}],
recommendation_application_min_thresholds=[{
"cpu_percentage": 0,
"memory_percentage": 0,
}],
recommendation_application_overhead_values=[{
"cpu_percentage": 0,
"memory_percentage": 0,
}],
restart_replicas="string",
auto_apply_definitions=[{
"enabled": False,
"labels": {
"string": "string",
},
"namespaces": ["string"],
}])
const oceanRightSizingRuleResource = new spotinst.OceanRightSizingRule("oceanRightSizingRuleResource", {
recommendationApplicationIntervals: [{
repetitionBasis: "string",
monthlyRepetitionBases: [{
intervalMonths: [0],
weekOfTheMonths: ["string"],
weeklyRepetitionBases: [{
intervalDays: ["string"],
intervalHoursEndTime: "string",
intervalHoursStartTime: "string",
}],
}],
weeklyRepetitionBases: [{
intervalDays: ["string"],
intervalHoursEndTime: "string",
intervalHoursStartTime: "string",
}],
}],
ruleName: "string",
recommendationApplicationBoundaries: [{
cpuMax: 0,
cpuMin: 0,
memoryMax: 0,
memoryMin: 0,
}],
downsideOnly: false,
excludePreliminaryRecommendations: false,
oceanId: "string",
attachWorkloads: [{
namespaces: [{
namespaceName: "string",
labels: [{
key: "string",
value: "string",
}],
workloads: [{
workloadType: "string",
regexName: "string",
workloadName: "string",
}],
}],
}],
recommendationApplicationHpas: [{
allowHpaRecommendations: false,
}],
detachWorkloads: [{
namespaces: [{
namespaceName: "string",
labels: [{
key: "string",
value: "string",
}],
workloads: [{
workloadType: "string",
regexName: "string",
workloadName: "string",
}],
}],
}],
recommendationApplicationMinThresholds: [{
cpuPercentage: 0,
memoryPercentage: 0,
}],
recommendationApplicationOverheadValues: [{
cpuPercentage: 0,
memoryPercentage: 0,
}],
restartReplicas: "string",
autoApplyDefinitions: [{
enabled: false,
labels: {
string: "string",
},
namespaces: ["string"],
}],
});
type: spotinst:OceanRightSizingRule
properties:
attachWorkloads:
- namespaces:
- labels:
- key: string
value: string
namespaceName: string
workloads:
- regexName: string
workloadName: string
workloadType: string
autoApplyDefinitions:
- enabled: false
labels:
string: string
namespaces:
- string
detachWorkloads:
- namespaces:
- labels:
- key: string
value: string
namespaceName: string
workloads:
- regexName: string
workloadName: string
workloadType: string
downsideOnly: false
excludePreliminaryRecommendations: false
oceanId: string
recommendationApplicationBoundaries:
- cpuMax: 0
cpuMin: 0
memoryMax: 0
memoryMin: 0
recommendationApplicationHpas:
- allowHpaRecommendations: false
recommendationApplicationIntervals:
- monthlyRepetitionBases:
- intervalMonths:
- 0
weekOfTheMonths:
- string
weeklyRepetitionBases:
- intervalDays:
- string
intervalHoursEndTime: string
intervalHoursStartTime: string
repetitionBasis: string
weeklyRepetitionBases:
- intervalDays:
- string
intervalHoursEndTime: string
intervalHoursStartTime: string
recommendationApplicationMinThresholds:
- cpuPercentage: 0
memoryPercentage: 0
recommendationApplicationOverheadValues:
- cpuPercentage: 0
memoryPercentage: 0
restartReplicas: string
ruleName: string
OceanRightSizingRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OceanRightSizingRule resource accepts the following input properties:
- Recommendation
Application List<Pulumi.Intervals Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Interval> - Determines the Ocean Rightsizing rule recommendation application intervals.
- Rule
Name string - The unique name of the rule.
- Attach
Workloads List<Pulumi.Spot Inst. Inputs. Ocean Right Sizing Rule Attach Workload> - Auto
Apply List<Pulumi.Definitions Spot Inst. Inputs. Ocean Right Sizing Rule Auto Apply Definition> - Ocean Rightsizing Rule Auto Apply Configuration.
- Detach
Workloads List<Pulumi.Spot Inst. Inputs. Ocean Right Sizing Rule Detach Workload> - Downside
Only bool - Exclude
Preliminary boolRecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- Ocean
Id string - Identifier of the Ocean cluster.
- Recommendation
Application List<Pulumi.Boundaries Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Boundary> - Determines the Ocean Rightsizing rule recommendation application boundaries.
- Recommendation
Application List<Pulumi.Hpas Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Hpa> - HPA Rightsizing Rule Recommendation Configuration
- Recommendation
Application List<Pulumi.Min Thresholds Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Min Threshold> - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- Recommendation
Application List<Pulumi.Overhead Values Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Overhead Value> - Determines the Ocean Rightsizing rule recommendation application overhead values.
- Restart
Replicas string - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- Recommendation
Application []OceanIntervals Right Sizing Rule Recommendation Application Interval Args - Determines the Ocean Rightsizing rule recommendation application intervals.
- Rule
Name string - The unique name of the rule.
- Attach
Workloads []OceanRight Sizing Rule Attach Workload Args - Auto
Apply []OceanDefinitions Right Sizing Rule Auto Apply Definition Args - Ocean Rightsizing Rule Auto Apply Configuration.
- Detach
Workloads []OceanRight Sizing Rule Detach Workload Args - Downside
Only bool - Exclude
Preliminary boolRecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- Ocean
Id string - Identifier of the Ocean cluster.
- Recommendation
Application []OceanBoundaries Right Sizing Rule Recommendation Application Boundary Args - Determines the Ocean Rightsizing rule recommendation application boundaries.
- Recommendation
Application []OceanHpas Right Sizing Rule Recommendation Application Hpa Args - HPA Rightsizing Rule Recommendation Configuration
- Recommendation
Application []OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold Args - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- Recommendation
Application []OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value Args - Determines the Ocean Rightsizing rule recommendation application overhead values.
- Restart
Replicas string - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- recommendation
Application List<OceanIntervals Right Sizing Rule Recommendation Application Interval> - Determines the Ocean Rightsizing rule recommendation application intervals.
- rule
Name String - The unique name of the rule.
- attach
Workloads List<OceanRight Sizing Rule Attach Workload> - auto
Apply List<OceanDefinitions Right Sizing Rule Auto Apply Definition> - Ocean Rightsizing Rule Auto Apply Configuration.
- detach
Workloads List<OceanRight Sizing Rule Detach Workload> - downside
Only Boolean - exclude
Preliminary BooleanRecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- ocean
Id String - Identifier of the Ocean cluster.
- recommendation
Application List<OceanBoundaries Right Sizing Rule Recommendation Application Boundary> - Determines the Ocean Rightsizing rule recommendation application boundaries.
- recommendation
Application List<OceanHpas Right Sizing Rule Recommendation Application Hpa> - HPA Rightsizing Rule Recommendation Configuration
- recommendation
Application List<OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold> - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- recommendation
Application List<OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value> - Determines the Ocean Rightsizing rule recommendation application overhead values.
- restart
Replicas String - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- recommendation
Application OceanIntervals Right Sizing Rule Recommendation Application Interval[] - Determines the Ocean Rightsizing rule recommendation application intervals.
- rule
Name string - The unique name of the rule.
- attach
Workloads OceanRight Sizing Rule Attach Workload[] - auto
Apply OceanDefinitions Right Sizing Rule Auto Apply Definition[] - Ocean Rightsizing Rule Auto Apply Configuration.
- detach
Workloads OceanRight Sizing Rule Detach Workload[] - downside
Only boolean - exclude
Preliminary booleanRecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- ocean
Id string - Identifier of the Ocean cluster.
- recommendation
Application OceanBoundaries Right Sizing Rule Recommendation Application Boundary[] - Determines the Ocean Rightsizing rule recommendation application boundaries.
- recommendation
Application OceanHpas Right Sizing Rule Recommendation Application Hpa[] - HPA Rightsizing Rule Recommendation Configuration
- recommendation
Application OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold[] - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- recommendation
Application OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value[] - Determines the Ocean Rightsizing rule recommendation application overhead values.
- restart
Replicas string - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- recommendation_
application_ Sequence[Oceanintervals Right Sizing Rule Recommendation Application Interval Args] - Determines the Ocean Rightsizing rule recommendation application intervals.
- rule_
name str - The unique name of the rule.
- attach_
workloads Sequence[OceanRight Sizing Rule Attach Workload Args] - auto_
apply_ Sequence[Oceandefinitions Right Sizing Rule Auto Apply Definition Args] - Ocean Rightsizing Rule Auto Apply Configuration.
- detach_
workloads Sequence[OceanRight Sizing Rule Detach Workload Args] - downside_
only bool - exclude_
preliminary_ boolrecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- ocean_
id str - Identifier of the Ocean cluster.
- recommendation_
application_ Sequence[Oceanboundaries Right Sizing Rule Recommendation Application Boundary Args] - Determines the Ocean Rightsizing rule recommendation application boundaries.
- recommendation_
application_ Sequence[Oceanhpas Right Sizing Rule Recommendation Application Hpa Args] - HPA Rightsizing Rule Recommendation Configuration
- recommendation_
application_ Sequence[Oceanmin_ thresholds Right Sizing Rule Recommendation Application Min Threshold Args] - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- recommendation_
application_ Sequence[Oceanoverhead_ values Right Sizing Rule Recommendation Application Overhead Value Args] - Determines the Ocean Rightsizing rule recommendation application overhead values.
- restart_
replicas str - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- recommendation
Application List<Property Map>Intervals - Determines the Ocean Rightsizing rule recommendation application intervals.
- rule
Name String - The unique name of the rule.
- attach
Workloads List<Property Map> - auto
Apply List<Property Map>Definitions - Ocean Rightsizing Rule Auto Apply Configuration.
- detach
Workloads List<Property Map> - downside
Only Boolean - exclude
Preliminary BooleanRecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- ocean
Id String - Identifier of the Ocean cluster.
- recommendation
Application List<Property Map>Boundaries - Determines the Ocean Rightsizing rule recommendation application boundaries.
- recommendation
Application List<Property Map>Hpas - HPA Rightsizing Rule Recommendation Configuration
- recommendation
Application List<Property Map>Min Thresholds - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- recommendation
Application List<Property Map>Overhead Values - Determines the Ocean Rightsizing rule recommendation application overhead values.
- restart
Replicas String - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
Outputs
All input properties are implicitly available as output properties. Additionally, the OceanRightSizingRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OceanRightSizingRule Resource
Get an existing OceanRightSizingRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OceanRightSizingRuleState, opts?: CustomResourceOptions): OceanRightSizingRule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attach_workloads: Optional[Sequence[OceanRightSizingRuleAttachWorkloadArgs]] = None,
auto_apply_definitions: Optional[Sequence[OceanRightSizingRuleAutoApplyDefinitionArgs]] = None,
detach_workloads: Optional[Sequence[OceanRightSizingRuleDetachWorkloadArgs]] = None,
downside_only: Optional[bool] = None,
exclude_preliminary_recommendations: Optional[bool] = None,
ocean_id: Optional[str] = None,
recommendation_application_boundaries: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationBoundaryArgs]] = None,
recommendation_application_hpas: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationHpaArgs]] = None,
recommendation_application_intervals: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationIntervalArgs]] = None,
recommendation_application_min_thresholds: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationMinThresholdArgs]] = None,
recommendation_application_overhead_values: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationOverheadValueArgs]] = None,
restart_replicas: Optional[str] = None,
rule_name: Optional[str] = None) -> OceanRightSizingRulefunc GetOceanRightSizingRule(ctx *Context, name string, id IDInput, state *OceanRightSizingRuleState, opts ...ResourceOption) (*OceanRightSizingRule, error)public static OceanRightSizingRule Get(string name, Input<string> id, OceanRightSizingRuleState? state, CustomResourceOptions? opts = null)public static OceanRightSizingRule get(String name, Output<String> id, OceanRightSizingRuleState state, CustomResourceOptions options)resources: _: type: spotinst:OceanRightSizingRule get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Attach
Workloads List<Pulumi.Spot Inst. Inputs. Ocean Right Sizing Rule Attach Workload> - Auto
Apply List<Pulumi.Definitions Spot Inst. Inputs. Ocean Right Sizing Rule Auto Apply Definition> - Ocean Rightsizing Rule Auto Apply Configuration.
- Detach
Workloads List<Pulumi.Spot Inst. Inputs. Ocean Right Sizing Rule Detach Workload> - Downside
Only bool - Exclude
Preliminary boolRecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- Ocean
Id string - Identifier of the Ocean cluster.
- Recommendation
Application List<Pulumi.Boundaries Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Boundary> - Determines the Ocean Rightsizing rule recommendation application boundaries.
- Recommendation
Application List<Pulumi.Hpas Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Hpa> - HPA Rightsizing Rule Recommendation Configuration
- Recommendation
Application List<Pulumi.Intervals Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Interval> - Determines the Ocean Rightsizing rule recommendation application intervals.
- Recommendation
Application List<Pulumi.Min Thresholds Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Min Threshold> - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- Recommendation
Application List<Pulumi.Overhead Values Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Overhead Value> - Determines the Ocean Rightsizing rule recommendation application overhead values.
- Restart
Replicas string - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- Rule
Name string - The unique name of the rule.
- Attach
Workloads []OceanRight Sizing Rule Attach Workload Args - Auto
Apply []OceanDefinitions Right Sizing Rule Auto Apply Definition Args - Ocean Rightsizing Rule Auto Apply Configuration.
- Detach
Workloads []OceanRight Sizing Rule Detach Workload Args - Downside
Only bool - Exclude
Preliminary boolRecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- Ocean
Id string - Identifier of the Ocean cluster.
- Recommendation
Application []OceanBoundaries Right Sizing Rule Recommendation Application Boundary Args - Determines the Ocean Rightsizing rule recommendation application boundaries.
- Recommendation
Application []OceanHpas Right Sizing Rule Recommendation Application Hpa Args - HPA Rightsizing Rule Recommendation Configuration
- Recommendation
Application []OceanIntervals Right Sizing Rule Recommendation Application Interval Args - Determines the Ocean Rightsizing rule recommendation application intervals.
- Recommendation
Application []OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold Args - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- Recommendation
Application []OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value Args - Determines the Ocean Rightsizing rule recommendation application overhead values.
- Restart
Replicas string - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- Rule
Name string - The unique name of the rule.
- attach
Workloads List<OceanRight Sizing Rule Attach Workload> - auto
Apply List<OceanDefinitions Right Sizing Rule Auto Apply Definition> - Ocean Rightsizing Rule Auto Apply Configuration.
- detach
Workloads List<OceanRight Sizing Rule Detach Workload> - downside
Only Boolean - exclude
Preliminary BooleanRecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- ocean
Id String - Identifier of the Ocean cluster.
- recommendation
Application List<OceanBoundaries Right Sizing Rule Recommendation Application Boundary> - Determines the Ocean Rightsizing rule recommendation application boundaries.
- recommendation
Application List<OceanHpas Right Sizing Rule Recommendation Application Hpa> - HPA Rightsizing Rule Recommendation Configuration
- recommendation
Application List<OceanIntervals Right Sizing Rule Recommendation Application Interval> - Determines the Ocean Rightsizing rule recommendation application intervals.
- recommendation
Application List<OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold> - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- recommendation
Application List<OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value> - Determines the Ocean Rightsizing rule recommendation application overhead values.
- restart
Replicas String - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- rule
Name String - The unique name of the rule.
- attach
Workloads OceanRight Sizing Rule Attach Workload[] - auto
Apply OceanDefinitions Right Sizing Rule Auto Apply Definition[] - Ocean Rightsizing Rule Auto Apply Configuration.
- detach
Workloads OceanRight Sizing Rule Detach Workload[] - downside
Only boolean - exclude
Preliminary booleanRecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- ocean
Id string - Identifier of the Ocean cluster.
- recommendation
Application OceanBoundaries Right Sizing Rule Recommendation Application Boundary[] - Determines the Ocean Rightsizing rule recommendation application boundaries.
- recommendation
Application OceanHpas Right Sizing Rule Recommendation Application Hpa[] - HPA Rightsizing Rule Recommendation Configuration
- recommendation
Application OceanIntervals Right Sizing Rule Recommendation Application Interval[] - Determines the Ocean Rightsizing rule recommendation application intervals.
- recommendation
Application OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold[] - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- recommendation
Application OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value[] - Determines the Ocean Rightsizing rule recommendation application overhead values.
- restart
Replicas string - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- rule
Name string - The unique name of the rule.
- attach_
workloads Sequence[OceanRight Sizing Rule Attach Workload Args] - auto_
apply_ Sequence[Oceandefinitions Right Sizing Rule Auto Apply Definition Args] - Ocean Rightsizing Rule Auto Apply Configuration.
- detach_
workloads Sequence[OceanRight Sizing Rule Detach Workload Args] - downside_
only bool - exclude_
preliminary_ boolrecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- ocean_
id str - Identifier of the Ocean cluster.
- recommendation_
application_ Sequence[Oceanboundaries Right Sizing Rule Recommendation Application Boundary Args] - Determines the Ocean Rightsizing rule recommendation application boundaries.
- recommendation_
application_ Sequence[Oceanhpas Right Sizing Rule Recommendation Application Hpa Args] - HPA Rightsizing Rule Recommendation Configuration
- recommendation_
application_ Sequence[Oceanintervals Right Sizing Rule Recommendation Application Interval Args] - Determines the Ocean Rightsizing rule recommendation application intervals.
- recommendation_
application_ Sequence[Oceanmin_ thresholds Right Sizing Rule Recommendation Application Min Threshold Args] - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- recommendation_
application_ Sequence[Oceanoverhead_ values Right Sizing Rule Recommendation Application Overhead Value Args] - Determines the Ocean Rightsizing rule recommendation application overhead values.
- restart_
replicas str - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- rule_
name str - The unique name of the rule.
- attach
Workloads List<Property Map> - auto
Apply List<Property Map>Definitions - Ocean Rightsizing Rule Auto Apply Configuration.
- detach
Workloads List<Property Map> - downside
Only Boolean - exclude
Preliminary BooleanRecommendations - Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
- ocean
Id String - Identifier of the Ocean cluster.
- recommendation
Application List<Property Map>Boundaries - Determines the Ocean Rightsizing rule recommendation application boundaries.
- recommendation
Application List<Property Map>Hpas - HPA Rightsizing Rule Recommendation Configuration
- recommendation
Application List<Property Map>Intervals - Determines the Ocean Rightsizing rule recommendation application intervals.
- recommendation
Application List<Property Map>Min Thresholds - Determines the extent of difference between current request and recommendation to trigger a change in percentage.
- recommendation
Application List<Property Map>Overhead Values - Determines the Ocean Rightsizing rule recommendation application overhead values.
- restart
Replicas String - Valid values: "MORE_THAN_ONE_REPLICA" "ALL_MANIFEST" "NO_RESTART". Enable to sequentially restart pod batches according to recommendations, for all pods, only more than 1 replica, or not any pod.
- rule
Name String - The unique name of the rule.
Supporting Types
OceanRightSizingRuleAttachWorkload, OceanRightSizingRuleAttachWorkloadArgs
- Namespaces
List<Pulumi.
Spot Inst. Inputs. Ocean Right Sizing Rule Attach Workload Namespace> - List of namespaces that match the auto-apply rule.
- Namespaces
[]Ocean
Right Sizing Rule Attach Workload Namespace - List of namespaces that match the auto-apply rule.
- namespaces
List<Ocean
Right Sizing Rule Attach Workload Namespace> - List of namespaces that match the auto-apply rule.
- namespaces
Ocean
Right Sizing Rule Attach Workload Namespace[] - List of namespaces that match the auto-apply rule.
- namespaces
Sequence[Ocean
Right Sizing Rule Attach Workload Namespace] - List of namespaces that match the auto-apply rule.
- namespaces List<Property Map>
- List of namespaces that match the auto-apply rule.
OceanRightSizingRuleAttachWorkloadNamespace, OceanRightSizingRuleAttachWorkloadNamespaceArgs
- Namespace
Name string - Labels
List<Pulumi.
Spot Inst. Inputs. Ocean Right Sizing Rule Attach Workload Namespace Label> A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- Workloads
List<Pulumi.
Spot Inst. Inputs. Ocean Right Sizing Rule Attach Workload Namespace Workload>
- Namespace
Name string - Labels
[]Ocean
Right Sizing Rule Attach Workload Namespace Label A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- Workloads
[]Ocean
Right Sizing Rule Attach Workload Namespace Workload
- namespace
Name String - labels
List<Ocean
Right Sizing Rule Attach Workload Namespace Label> A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- workloads
List<Ocean
Right Sizing Rule Attach Workload Namespace Workload>
- namespace
Name string - labels
Ocean
Right Sizing Rule Attach Workload Namespace Label[] A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- workloads
Ocean
Right Sizing Rule Attach Workload Namespace Workload[]
- namespace_
name str - labels
Sequence[Ocean
Right Sizing Rule Attach Workload Namespace Label] A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- workloads
Sequence[Ocean
Right Sizing Rule Attach Workload Namespace Workload]
- namespace
Name String - labels List<Property Map>
A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- workloads List<Property Map>
OceanRightSizingRuleAttachWorkloadNamespaceLabel, OceanRightSizingRuleAttachWorkloadNamespaceLabelArgs
OceanRightSizingRuleAttachWorkloadNamespaceWorkload, OceanRightSizingRuleAttachWorkloadNamespaceWorkloadArgs
- Workload
Type string - Regex
Name string - Workload
Name string
- Workload
Type string - Regex
Name string - Workload
Name string
- workload
Type String - regex
Name String - workload
Name String
- workload
Type string - regex
Name string - workload
Name string
- workload_
type str - regex_
name str - workload_
name str
- workload
Type String - regex
Name String - workload
Name String
OceanRightSizingRuleAutoApplyDefinition, OceanRightSizingRuleAutoApplyDefinitionArgs
- Enabled bool
- Determines if auto apply is enabled.
- Labels Dictionary<string, string>
A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- Namespaces List<string>
- List of namespaces that match the auto-apply rule.
- Enabled bool
- Determines if auto apply is enabled.
- Labels map[string]string
A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- Namespaces []string
- List of namespaces that match the auto-apply rule.
- enabled Boolean
- Determines if auto apply is enabled.
- labels Map<String,String>
A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- namespaces List<String>
- List of namespaces that match the auto-apply rule.
- enabled boolean
- Determines if auto apply is enabled.
- labels {[key: string]: string}
A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- namespaces string[]
- List of namespaces that match the auto-apply rule.
- enabled bool
- Determines if auto apply is enabled.
- labels Mapping[str, str]
A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- namespaces Sequence[str]
- List of namespaces that match the auto-apply rule.
- enabled Boolean
- Determines if auto apply is enabled.
- labels Map<String>
A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- namespaces List<String>
- List of namespaces that match the auto-apply rule.
OceanRightSizingRuleDetachWorkload, OceanRightSizingRuleDetachWorkloadArgs
- Namespaces
List<Pulumi.
Spot Inst. Inputs. Ocean Right Sizing Rule Detach Workload Namespace> - List of namespaces that match the auto-apply rule.
- Namespaces
[]Ocean
Right Sizing Rule Detach Workload Namespace - List of namespaces that match the auto-apply rule.
- namespaces
List<Ocean
Right Sizing Rule Detach Workload Namespace> - List of namespaces that match the auto-apply rule.
- namespaces
Ocean
Right Sizing Rule Detach Workload Namespace[] - List of namespaces that match the auto-apply rule.
- namespaces
Sequence[Ocean
Right Sizing Rule Detach Workload Namespace] - List of namespaces that match the auto-apply rule.
- namespaces List<Property Map>
- List of namespaces that match the auto-apply rule.
OceanRightSizingRuleDetachWorkloadNamespace, OceanRightSizingRuleDetachWorkloadNamespaceArgs
- Namespace
Name string - Labels
List<Pulumi.
Spot Inst. Inputs. Ocean Right Sizing Rule Detach Workload Namespace Label> A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- Workloads
List<Pulumi.
Spot Inst. Inputs. Ocean Right Sizing Rule Detach Workload Namespace Workload>
- Namespace
Name string - Labels
[]Ocean
Right Sizing Rule Detach Workload Namespace Label A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- Workloads
[]Ocean
Right Sizing Rule Detach Workload Namespace Workload
- namespace
Name String - labels
List<Ocean
Right Sizing Rule Detach Workload Namespace Label> A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- workloads
List<Ocean
Right Sizing Rule Detach Workload Namespace Workload>
- namespace
Name string - labels
Ocean
Right Sizing Rule Detach Workload Namespace Label[] A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- workloads
Ocean
Right Sizing Rule Detach Workload Namespace Workload[]
- namespace_
name str - labels
Sequence[Ocean
Right Sizing Rule Detach Workload Namespace Label] A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- workloads
Sequence[Ocean
Right Sizing Rule Detach Workload Namespace Workload]
- namespace
Name String - labels List<Property Map>
A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
<a id=<span pulumi-lang-nodejs=""attachWorkloads"" pulumi-lang-dotnet=""AttachWorkloads"" pulumi-lang-go=""attachWorkloads"" pulumi-lang-python=""attach_workloads"" pulumi-lang-yaml=""attachWorkloads"" pulumi-lang-java=""attachWorkloads"">"attach_workloads">
- workloads List<Property Map>
OceanRightSizingRuleDetachWorkloadNamespaceLabel, OceanRightSizingRuleDetachWorkloadNamespaceLabelArgs
OceanRightSizingRuleDetachWorkloadNamespaceWorkload, OceanRightSizingRuleDetachWorkloadNamespaceWorkloadArgs
- Workload
Type string - Regex
Name string - Workload
Name string
- Workload
Type string - Regex
Name string - Workload
Name string
- workload
Type String - regex
Name String - workload
Name String
- workload
Type string - regex
Name string - workload
Name string
- workload_
type str - regex_
name str - workload_
name str
- workload
Type String - regex
Name String - workload
Name String
OceanRightSizingRuleRecommendationApplicationBoundary, OceanRightSizingRuleRecommendationApplicationBoundaryArgs
- cpu_
max float - the maximal value of cpu in vCpu.
- cpu_
min float - the minimal value of cpu in vCpu.
- memory_
max int - the maximal value of memory in Gib.
- memory_
min int - the minimal value of memory in Gib.
OceanRightSizingRuleRecommendationApplicationHpa, OceanRightSizingRuleRecommendationApplicationHpaArgs
- Allow
Hpa boolRecommendations - Determines by the rule if recommendation application is allowed for workloads with HPA definition.
- Allow
Hpa boolRecommendations - Determines by the rule if recommendation application is allowed for workloads with HPA definition.
- allow
Hpa BooleanRecommendations - Determines by the rule if recommendation application is allowed for workloads with HPA definition.
- allow
Hpa booleanRecommendations - Determines by the rule if recommendation application is allowed for workloads with HPA definition.
- allow_
hpa_ boolrecommendations - Determines by the rule if recommendation application is allowed for workloads with HPA definition.
- allow
Hpa BooleanRecommendations - Determines by the rule if recommendation application is allowed for workloads with HPA definition.
OceanRightSizingRuleRecommendationApplicationInterval, OceanRightSizingRuleRecommendationApplicationIntervalArgs
- Repetition
Basis string - Valid values: "WEEKLY" "MONTHLY". The repetition basis.
- Monthly
Repetition List<Pulumi.Bases Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Interval Monthly Repetition Base> - Determines the Ocean Rightsizing rule monthly repetition basis.
- Weekly
Repetition List<Pulumi.Bases Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Interval Weekly Repetition Base> - Determines the Ocean Rightsizing rule weekly repetition basis.
- Repetition
Basis string - Valid values: "WEEKLY" "MONTHLY". The repetition basis.
- Monthly
Repetition []OceanBases Right Sizing Rule Recommendation Application Interval Monthly Repetition Base - Determines the Ocean Rightsizing rule monthly repetition basis.
- Weekly
Repetition []OceanBases Right Sizing Rule Recommendation Application Interval Weekly Repetition Base - Determines the Ocean Rightsizing rule weekly repetition basis.
- repetition
Basis String - Valid values: "WEEKLY" "MONTHLY". The repetition basis.
- monthly
Repetition List<OceanBases Right Sizing Rule Recommendation Application Interval Monthly Repetition Base> - Determines the Ocean Rightsizing rule monthly repetition basis.
- weekly
Repetition List<OceanBases Right Sizing Rule Recommendation Application Interval Weekly Repetition Base> - Determines the Ocean Rightsizing rule weekly repetition basis.
- repetition
Basis string - Valid values: "WEEKLY" "MONTHLY". The repetition basis.
- monthly
Repetition OceanBases Right Sizing Rule Recommendation Application Interval Monthly Repetition Base[] - Determines the Ocean Rightsizing rule monthly repetition basis.
- weekly
Repetition OceanBases Right Sizing Rule Recommendation Application Interval Weekly Repetition Base[] - Determines the Ocean Rightsizing rule weekly repetition basis.
- repetition_
basis str - Valid values: "WEEKLY" "MONTHLY". The repetition basis.
- monthly_
repetition_ Sequence[Oceanbases Right Sizing Rule Recommendation Application Interval Monthly Repetition Base] - Determines the Ocean Rightsizing rule monthly repetition basis.
- weekly_
repetition_ Sequence[Oceanbases Right Sizing Rule Recommendation Application Interval Weekly Repetition Base] - Determines the Ocean Rightsizing rule weekly repetition basis.
- repetition
Basis String - Valid values: "WEEKLY" "MONTHLY". The repetition basis.
- monthly
Repetition List<Property Map>Bases - Determines the Ocean Rightsizing rule monthly repetition basis.
- weekly
Repetition List<Property Map>Bases - Determines the Ocean Rightsizing rule weekly repetition basis.
OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBase, OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs
- Interval
Months List<int> - Array of the months (in number), when we want to trigger the apply recommendations.
- Week
Of List<string>The Months - Valid values: "FIRST" "SECOND" "THIRD" "FOURTH" "LAST". Array of the weeks in the month, when we want to trigger the apply recommendations.
- Weekly
Repetition List<Pulumi.Bases Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Interval Monthly Repetition Base Weekly Repetition Base> - Determines the Ocean Rightsizing rule weekly repetition basis.
- Interval
Months []int - Array of the months (in number), when we want to trigger the apply recommendations.
- Week
Of []stringThe Months - Valid values: "FIRST" "SECOND" "THIRD" "FOURTH" "LAST". Array of the weeks in the month, when we want to trigger the apply recommendations.
- Weekly
Repetition []OceanBases Right Sizing Rule Recommendation Application Interval Monthly Repetition Base Weekly Repetition Base - Determines the Ocean Rightsizing rule weekly repetition basis.
- interval
Months List<Integer> - Array of the months (in number), when we want to trigger the apply recommendations.
- week
Of List<String>The Months - Valid values: "FIRST" "SECOND" "THIRD" "FOURTH" "LAST". Array of the weeks in the month, when we want to trigger the apply recommendations.
- weekly
Repetition List<OceanBases Right Sizing Rule Recommendation Application Interval Monthly Repetition Base Weekly Repetition Base> - Determines the Ocean Rightsizing rule weekly repetition basis.
- interval
Months number[] - Array of the months (in number), when we want to trigger the apply recommendations.
- week
Of string[]The Months - Valid values: "FIRST" "SECOND" "THIRD" "FOURTH" "LAST". Array of the weeks in the month, when we want to trigger the apply recommendations.
- weekly
Repetition OceanBases Right Sizing Rule Recommendation Application Interval Monthly Repetition Base Weekly Repetition Base[] - Determines the Ocean Rightsizing rule weekly repetition basis.
- interval_
months Sequence[int] - Array of the months (in number), when we want to trigger the apply recommendations.
- week_
of_ Sequence[str]the_ months - Valid values: "FIRST" "SECOND" "THIRD" "FOURTH" "LAST". Array of the weeks in the month, when we want to trigger the apply recommendations.
- weekly_
repetition_ Sequence[Oceanbases Right Sizing Rule Recommendation Application Interval Monthly Repetition Base Weekly Repetition Base] - Determines the Ocean Rightsizing rule weekly repetition basis.
- interval
Months List<Number> - Array of the months (in number), when we want to trigger the apply recommendations.
- week
Of List<String>The Months - Valid values: "FIRST" "SECOND" "THIRD" "FOURTH" "LAST". Array of the weeks in the month, when we want to trigger the apply recommendations.
- weekly
Repetition List<Property Map>Bases - Determines the Ocean Rightsizing rule weekly repetition basis.
OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBase, OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArgs
- Interval
Days List<string> - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- Interval
Hours stringEnd Time - End time.
- Interval
Hours stringStart Time - Start time.
- Interval
Days []string - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- Interval
Hours stringEnd Time - End time.
- Interval
Hours stringStart Time - Start time.
- interval
Days List<String> - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- interval
Hours StringEnd Time - End time.
- interval
Hours StringStart Time - Start time.
- interval
Days string[] - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- interval
Hours stringEnd Time - End time.
- interval
Hours stringStart Time - Start time.
- interval_
days Sequence[str] - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- interval_
hours_ strend_ time - End time.
- interval_
hours_ strstart_ time - Start time.
- interval
Days List<String> - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- interval
Hours StringEnd Time - End time.
- interval
Hours StringStart Time - Start time.
OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBase, OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArgs
- Interval
Days List<string> - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- Interval
Hours stringEnd Time - End time.
- Interval
Hours stringStart Time - Start time.
- Interval
Days []string - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- Interval
Hours stringEnd Time - End time.
- Interval
Hours stringStart Time - Start time.
- interval
Days List<String> - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- interval
Hours StringEnd Time - End time.
- interval
Hours StringStart Time - Start time.
- interval
Days string[] - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- interval
Hours stringEnd Time - End time.
- interval
Hours stringStart Time - Start time.
- interval_
days Sequence[str] - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- interval_
hours_ strend_ time - End time.
- interval_
hours_ strstart_ time - Start time.
- interval
Days List<String> - Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
- interval
Hours StringEnd Time - End time.
- interval
Hours StringStart Time - Start time.
OceanRightSizingRuleRecommendationApplicationMinThreshold, OceanRightSizingRuleRecommendationApplicationMinThresholdArgs
- Cpu
Percentage double - .
- Memory
Percentage double - .
- Cpu
Percentage float64 - .
- Memory
Percentage float64 - .
- cpu
Percentage Double - .
- memory
Percentage Double - .
- cpu
Percentage number - .
- memory
Percentage number - .
- cpu_
percentage float - .
- memory_
percentage float - .
- cpu
Percentage Number - .
- memory
Percentage Number - .
OceanRightSizingRuleRecommendationApplicationOverheadValue, OceanRightSizingRuleRecommendationApplicationOverheadValueArgs
- Cpu
Percentage double - .
- Memory
Percentage double - .
- Cpu
Percentage float64 - .
- Memory
Percentage float64 - .
- cpu
Percentage Double - .
- memory
Percentage Double - .
- cpu
Percentage number - .
- memory
Percentage number - .
- cpu_
percentage float - .
- memory_
percentage float - .
- cpu
Percentage Number - .
- memory
Percentage Number - .
Package Details
- Repository
- Spotinst pulumi/pulumi-spotinst
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
spotinstTerraform Provider.
