1. Packages
  2. Spotinst Provider
  3. API Docs
  4. OceanRightSizingRule
Spotinst v3.100.0 published on Wednesday, Nov 20, 2024 by Pulumi

spotinst.OceanRightSizingRule

Explore with Pulumi AI

spotinst logo
Spotinst v3.100.0 published on Wednesday, Nov 20, 2024 by Pulumi

    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,
                             attach_workloads: Optional[Sequence[OceanRightSizingRuleAttachWorkloadArgs]] = None,
                             detach_workloads: Optional[Sequence[OceanRightSizingRuleDetachWorkloadArgs]] = 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_min_thresholds: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationMinThresholdArgs]] = None,
                             recommendation_application_overhead_values: Optional[Sequence[OceanRightSizingRuleRecommendationApplicationOverheadValueArgs]] = None,
                             restart_replicas: Optional[str] = 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",
        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",
                            },
                        },
                    },
                },
            },
        },
        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",
                            },
                        },
                    },
                },
            },
        },
        ExcludePreliminaryRecommendations = false,
        OceanId = "string",
        RecommendationApplicationBoundaries = new[]
        {
            new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationBoundaryArgs
            {
                CpuMax = 0,
                CpuMin = 0,
                MemoryMax = 0,
                MemoryMin = 0,
            },
        },
        RecommendationApplicationHpas = new[]
        {
            new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationHpaArgs
            {
                AllowHpaRecommendations = false,
            },
        },
        RecommendationApplicationMinThresholds = new[]
        {
            new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationMinThresholdArgs
            {
                CpuPercentage = 0,
                MemoryPercentage = 0,
            },
        },
        RecommendationApplicationOverheadValues = new[]
        {
            new SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationOverheadValueArgs
            {
                CpuPercentage = 0,
                MemoryPercentage = 0,
            },
        },
        RestartReplicas = "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"),
    	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"),
    						},
    					},
    				},
    			},
    		},
    	},
    	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"),
    						},
    					},
    				},
    			},
    		},
    	},
    	ExcludePreliminaryRecommendations: pulumi.Bool(false),
    	OceanId:                           pulumi.String("string"),
    	RecommendationApplicationBoundaries: spotinst.OceanRightSizingRuleRecommendationApplicationBoundaryArray{
    		&spotinst.OceanRightSizingRuleRecommendationApplicationBoundaryArgs{
    			CpuMax:    pulumi.Float64(0),
    			CpuMin:    pulumi.Float64(0),
    			MemoryMax: pulumi.Int(0),
    			MemoryMin: pulumi.Int(0),
    		},
    	},
    	RecommendationApplicationHpas: spotinst.OceanRightSizingRuleRecommendationApplicationHpaArray{
    		&spotinst.OceanRightSizingRuleRecommendationApplicationHpaArgs{
    			AllowHpaRecommendations: pulumi.Bool(false),
    		},
    	},
    	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"),
    })
    
    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")
        .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())
        .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())
        .excludePreliminaryRecommendations(false)
        .oceanId("string")
        .recommendationApplicationBoundaries(OceanRightSizingRuleRecommendationApplicationBoundaryArgs.builder()
            .cpuMax(0)
            .cpuMin(0)
            .memoryMax(0)
            .memoryMin(0)
            .build())
        .recommendationApplicationHpas(OceanRightSizingRuleRecommendationApplicationHpaArgs.builder()
            .allowHpaRecommendations(false)
            .build())
        .recommendationApplicationMinThresholds(OceanRightSizingRuleRecommendationApplicationMinThresholdArgs.builder()
            .cpuPercentage(0)
            .memoryPercentage(0)
            .build())
        .recommendationApplicationOverheadValues(OceanRightSizingRuleRecommendationApplicationOverheadValueArgs.builder()
            .cpuPercentage(0)
            .memoryPercentage(0)
            .build())
        .restartReplicas("string")
        .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",
        attach_workloads=[{
            "namespaces": [{
                "namespace_name": "string",
                "labels": [{
                    "key": "string",
                    "value": "string",
                }],
                "workloads": [{
                    "workload_type": "string",
                    "regex_name": "string",
                    "workload_name": "string",
                }],
            }],
        }],
        detach_workloads=[{
            "namespaces": [{
                "namespace_name": "string",
                "labels": [{
                    "key": "string",
                    "value": "string",
                }],
                "workloads": [{
                    "workload_type": "string",
                    "regex_name": "string",
                    "workload_name": "string",
                }],
            }],
        }],
        exclude_preliminary_recommendations=False,
        ocean_id="string",
        recommendation_application_boundaries=[{
            "cpu_max": 0,
            "cpu_min": 0,
            "memory_max": 0,
            "memory_min": 0,
        }],
        recommendation_application_hpas=[{
            "allow_hpa_recommendations": False,
        }],
        recommendation_application_min_thresholds=[{
            "cpu_percentage": 0,
            "memory_percentage": 0,
        }],
        recommendation_application_overhead_values=[{
            "cpu_percentage": 0,
            "memory_percentage": 0,
        }],
        restart_replicas="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",
        attachWorkloads: [{
            namespaces: [{
                namespaceName: "string",
                labels: [{
                    key: "string",
                    value: "string",
                }],
                workloads: [{
                    workloadType: "string",
                    regexName: "string",
                    workloadName: "string",
                }],
            }],
        }],
        detachWorkloads: [{
            namespaces: [{
                namespaceName: "string",
                labels: [{
                    key: "string",
                    value: "string",
                }],
                workloads: [{
                    workloadType: "string",
                    regexName: "string",
                    workloadName: "string",
                }],
            }],
        }],
        excludePreliminaryRecommendations: false,
        oceanId: "string",
        recommendationApplicationBoundaries: [{
            cpuMax: 0,
            cpuMin: 0,
            memoryMax: 0,
            memoryMin: 0,
        }],
        recommendationApplicationHpas: [{
            allowHpaRecommendations: false,
        }],
        recommendationApplicationMinThresholds: [{
            cpuPercentage: 0,
            memoryPercentage: 0,
        }],
        recommendationApplicationOverheadValues: [{
            cpuPercentage: 0,
            memoryPercentage: 0,
        }],
        restartReplicas: "string",
    });
    
    type: spotinst:OceanRightSizingRule
    properties:
        attachWorkloads:
            - namespaces:
                - labels:
                    - key: string
                      value: string
                  namespaceName: string
                  workloads:
                    - regexName: string
                      workloadName: string
                      workloadType: string
        detachWorkloads:
            - namespaces:
                - labels:
                    - key: string
                      value: string
                  namespaceName: string
                  workloads:
                    - regexName: string
                      workloadName: string
                      workloadType: string
        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:

    RecommendationApplicationIntervals List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationInterval>
    RuleName string
    AttachWorkloads List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleAttachWorkload>
    DetachWorkloads List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleDetachWorkload>
    ExcludePreliminaryRecommendations bool
    OceanId string
    RecommendationApplicationBoundaries List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationBoundary>
    RecommendationApplicationHpas List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationHpa>
    RecommendationApplicationMinThresholds List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationMinThreshold>
    RecommendationApplicationOverheadValues List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationOverheadValue>
    RestartReplicas string

    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,
            detach_workloads: Optional[Sequence[OceanRightSizingRuleDetachWorkloadArgs]] = 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) -> OceanRightSizingRule
    func 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)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AttachWorkloads List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleAttachWorkload>
    DetachWorkloads List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleDetachWorkload>
    ExcludePreliminaryRecommendations bool
    OceanId string
    RecommendationApplicationBoundaries List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationBoundary>
    RecommendationApplicationHpas List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationHpa>
    RecommendationApplicationIntervals List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationInterval>
    RecommendationApplicationMinThresholds List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationMinThreshold>
    RecommendationApplicationOverheadValues List<Pulumi.SpotInst.Inputs.OceanRightSizingRuleRecommendationApplicationOverheadValue>
    RestartReplicas string
    RuleName string

    Supporting Types

    OceanRightSizingRuleAttachWorkload, OceanRightSizingRuleAttachWorkloadArgs

    OceanRightSizingRuleAttachWorkloadNamespace, OceanRightSizingRuleAttachWorkloadNamespaceArgs

    OceanRightSizingRuleAttachWorkloadNamespaceLabel, OceanRightSizingRuleAttachWorkloadNamespaceLabelArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    OceanRightSizingRuleAttachWorkloadNamespaceWorkload, OceanRightSizingRuleAttachWorkloadNamespaceWorkloadArgs

    OceanRightSizingRuleDetachWorkload, OceanRightSizingRuleDetachWorkloadArgs

    OceanRightSizingRuleDetachWorkloadNamespace, OceanRightSizingRuleDetachWorkloadNamespaceArgs

    OceanRightSizingRuleDetachWorkloadNamespaceLabel, OceanRightSizingRuleDetachWorkloadNamespaceLabelArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    OceanRightSizingRuleDetachWorkloadNamespaceWorkload, OceanRightSizingRuleDetachWorkloadNamespaceWorkloadArgs

    OceanRightSizingRuleRecommendationApplicationBoundary, OceanRightSizingRuleRecommendationApplicationBoundaryArgs

    CpuMax double
    CpuMin double
    MemoryMax int
    MemoryMin int
    CpuMax float64
    CpuMin float64
    MemoryMax int
    MemoryMin int
    cpuMax Double
    cpuMin Double
    memoryMax Integer
    memoryMin Integer
    cpuMax number
    cpuMin number
    memoryMax number
    memoryMin number
    cpuMax Number
    cpuMin Number
    memoryMax Number
    memoryMin Number

    OceanRightSizingRuleRecommendationApplicationHpa, OceanRightSizingRuleRecommendationApplicationHpaArgs

    OceanRightSizingRuleRecommendationApplicationInterval, OceanRightSizingRuleRecommendationApplicationIntervalArgs

    OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBase, OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs

    OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBase, OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArgs

    OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBase, OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArgs

    OceanRightSizingRuleRecommendationApplicationMinThreshold, OceanRightSizingRuleRecommendationApplicationMinThresholdArgs

    OceanRightSizingRuleRecommendationApplicationOverheadValue, OceanRightSizingRuleRecommendationApplicationOverheadValueArgs

    Package Details

    Repository
    Spotinst pulumi/pulumi-spotinst
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the spotinst Terraform Provider.
    spotinst logo
    Spotinst v3.100.0 published on Wednesday, Nov 20, 2024 by Pulumi