spotinst.OceanRightSizingRule
Explore with Pulumi AI
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:
- Recommendation
Application List<Pulumi.Intervals Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Interval> - Rule
Name string - Attach
Workloads List<Pulumi.Spot Inst. Inputs. Ocean Right Sizing Rule Attach Workload> - Detach
Workloads List<Pulumi.Spot Inst. Inputs. Ocean Right Sizing Rule Detach Workload> - Exclude
Preliminary boolRecommendations - Ocean
Id string - Recommendation
Application List<Pulumi.Boundaries Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Boundary> - Recommendation
Application List<Pulumi.Hpas Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Hpa> - Recommendation
Application List<Pulumi.Min Thresholds Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Min Threshold> - Recommendation
Application List<Pulumi.Overhead Values Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Overhead Value> - Restart
Replicas string
- Recommendation
Application []OceanIntervals Right Sizing Rule Recommendation Application Interval Args - Rule
Name string - Attach
Workloads []OceanRight Sizing Rule Attach Workload Args - Detach
Workloads []OceanRight Sizing Rule Detach Workload Args - Exclude
Preliminary boolRecommendations - Ocean
Id string - Recommendation
Application []OceanBoundaries Right Sizing Rule Recommendation Application Boundary Args - Recommendation
Application []OceanHpas Right Sizing Rule Recommendation Application Hpa Args - Recommendation
Application []OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold Args - Recommendation
Application []OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value Args - Restart
Replicas string
- recommendation
Application List<OceanIntervals Right Sizing Rule Recommendation Application Interval> - rule
Name String - attach
Workloads List<OceanRight Sizing Rule Attach Workload> - detach
Workloads List<OceanRight Sizing Rule Detach Workload> - exclude
Preliminary BooleanRecommendations - ocean
Id String - recommendation
Application List<OceanBoundaries Right Sizing Rule Recommendation Application Boundary> - recommendation
Application List<OceanHpas Right Sizing Rule Recommendation Application Hpa> - recommendation
Application List<OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold> - recommendation
Application List<OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value> - restart
Replicas String
- recommendation
Application OceanIntervals Right Sizing Rule Recommendation Application Interval[] - rule
Name string - attach
Workloads OceanRight Sizing Rule Attach Workload[] - detach
Workloads OceanRight Sizing Rule Detach Workload[] - exclude
Preliminary booleanRecommendations - ocean
Id string - recommendation
Application OceanBoundaries Right Sizing Rule Recommendation Application Boundary[] - recommendation
Application OceanHpas Right Sizing Rule Recommendation Application Hpa[] - recommendation
Application OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold[] - recommendation
Application OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value[] - restart
Replicas string
- recommendation_
application_ Sequence[Oceanintervals Right Sizing Rule Recommendation Application Interval Args] - rule_
name str - attach_
workloads Sequence[OceanRight Sizing Rule Attach Workload Args] - detach_
workloads Sequence[OceanRight Sizing Rule Detach Workload Args] - exclude_
preliminary_ boolrecommendations - ocean_
id str - recommendation_
application_ Sequence[Oceanboundaries Right Sizing Rule Recommendation Application Boundary Args] - recommendation_
application_ Sequence[Oceanhpas Right Sizing Rule Recommendation Application Hpa Args] - recommendation_
application_ Sequence[Oceanmin_ thresholds Right Sizing Rule Recommendation Application Min Threshold Args] - recommendation_
application_ Sequence[Oceanoverhead_ values Right Sizing Rule Recommendation Application Overhead Value Args] - restart_
replicas str
- recommendation
Application List<Property Map>Intervals - rule
Name String - attach
Workloads List<Property Map> - detach
Workloads List<Property Map> - exclude
Preliminary BooleanRecommendations - ocean
Id String - recommendation
Application List<Property Map>Boundaries - recommendation
Application List<Property Map>Hpas - recommendation
Application List<Property Map>Min Thresholds - recommendation
Application List<Property Map>Overhead Values - restart
Replicas 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.
- Attach
Workloads List<Pulumi.Spot Inst. Inputs. Ocean Right Sizing Rule Attach Workload> - Detach
Workloads List<Pulumi.Spot Inst. Inputs. Ocean Right Sizing Rule Detach Workload> - Exclude
Preliminary boolRecommendations - Ocean
Id string - Recommendation
Application List<Pulumi.Boundaries Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Boundary> - Recommendation
Application List<Pulumi.Hpas Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Hpa> - Recommendation
Application List<Pulumi.Intervals Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Interval> - Recommendation
Application List<Pulumi.Min Thresholds Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Min Threshold> - Recommendation
Application List<Pulumi.Overhead Values Spot Inst. Inputs. Ocean Right Sizing Rule Recommendation Application Overhead Value> - Restart
Replicas string - Rule
Name string
- Attach
Workloads []OceanRight Sizing Rule Attach Workload Args - Detach
Workloads []OceanRight Sizing Rule Detach Workload Args - Exclude
Preliminary boolRecommendations - Ocean
Id string - Recommendation
Application []OceanBoundaries Right Sizing Rule Recommendation Application Boundary Args - Recommendation
Application []OceanHpas Right Sizing Rule Recommendation Application Hpa Args - Recommendation
Application []OceanIntervals Right Sizing Rule Recommendation Application Interval Args - Recommendation
Application []OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold Args - Recommendation
Application []OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value Args - Restart
Replicas string - Rule
Name string
- attach
Workloads List<OceanRight Sizing Rule Attach Workload> - detach
Workloads List<OceanRight Sizing Rule Detach Workload> - exclude
Preliminary BooleanRecommendations - ocean
Id String - recommendation
Application List<OceanBoundaries Right Sizing Rule Recommendation Application Boundary> - recommendation
Application List<OceanHpas Right Sizing Rule Recommendation Application Hpa> - recommendation
Application List<OceanIntervals Right Sizing Rule Recommendation Application Interval> - recommendation
Application List<OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold> - recommendation
Application List<OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value> - restart
Replicas String - rule
Name String
- attach
Workloads OceanRight Sizing Rule Attach Workload[] - detach
Workloads OceanRight Sizing Rule Detach Workload[] - exclude
Preliminary booleanRecommendations - ocean
Id string - recommendation
Application OceanBoundaries Right Sizing Rule Recommendation Application Boundary[] - recommendation
Application OceanHpas Right Sizing Rule Recommendation Application Hpa[] - recommendation
Application OceanIntervals Right Sizing Rule Recommendation Application Interval[] - recommendation
Application OceanMin Thresholds Right Sizing Rule Recommendation Application Min Threshold[] - recommendation
Application OceanOverhead Values Right Sizing Rule Recommendation Application Overhead Value[] - restart
Replicas string - rule
Name string
- attach_
workloads Sequence[OceanRight Sizing Rule Attach Workload Args] - detach_
workloads Sequence[OceanRight Sizing Rule Detach Workload Args] - exclude_
preliminary_ boolrecommendations - ocean_
id str - recommendation_
application_ Sequence[Oceanboundaries Right Sizing Rule Recommendation Application Boundary Args] - recommendation_
application_ Sequence[Oceanhpas Right Sizing Rule Recommendation Application Hpa Args] - recommendation_
application_ Sequence[Oceanintervals Right Sizing Rule Recommendation Application Interval Args] - recommendation_
application_ Sequence[Oceanmin_ thresholds Right Sizing Rule Recommendation Application Min Threshold Args] - recommendation_
application_ Sequence[Oceanoverhead_ values Right Sizing Rule Recommendation Application Overhead Value Args] - restart_
replicas str - rule_
name str
- attach
Workloads List<Property Map> - detach
Workloads List<Property Map> - exclude
Preliminary BooleanRecommendations - ocean
Id String - recommendation
Application List<Property Map>Boundaries - recommendation
Application List<Property Map>Hpas - recommendation
Application List<Property Map>Intervals - recommendation
Application List<Property Map>Min Thresholds - recommendation
Application List<Property Map>Overhead Values - restart
Replicas String - rule
Name String
Supporting Types
OceanRightSizingRuleAttachWorkload, OceanRightSizingRuleAttachWorkloadArgs
OceanRightSizingRuleAttachWorkloadNamespace, OceanRightSizingRuleAttachWorkloadNamespaceArgs
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
OceanRightSizingRuleDetachWorkload, OceanRightSizingRuleDetachWorkloadArgs
OceanRightSizingRuleDetachWorkloadNamespace, OceanRightSizingRuleDetachWorkloadNamespaceArgs
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 - cpu_
min float - memory_
max int - memory_
min int
OceanRightSizingRuleRecommendationApplicationHpa, OceanRightSizingRuleRecommendationApplicationHpaArgs
- allow
Hpa BooleanRecommendations
- allow
Hpa booleanRecommendations
- allow
Hpa BooleanRecommendations
OceanRightSizingRuleRecommendationApplicationInterval, OceanRightSizingRuleRecommendationApplicationIntervalArgs
OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBase, OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseArgs
- interval
Months List<Number> - week
Of List<String>The Months - weekly
Repetition List<Property Map>Bases
OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBase, OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBaseArgs
- Interval
Days List<string> - Interval
Hours stringEnd Time - Interval
Hours stringStart Time
- Interval
Days []string - Interval
Hours stringEnd Time - Interval
Hours stringStart Time
- interval
Days List<String> - interval
Hours StringEnd Time - interval
Hours StringStart Time
- interval
Days string[] - interval
Hours stringEnd Time - interval
Hours stringStart Time
- interval_
days Sequence[str] - interval_
hours_ strend_ time - interval_
hours_ strstart_ time
- interval
Days List<String> - interval
Hours StringEnd Time - interval
Hours StringStart Time
OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBase, OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBaseArgs
- Interval
Days List<string> - Interval
Hours stringEnd Time - Interval
Hours stringStart Time
- Interval
Days []string - Interval
Hours stringEnd Time - Interval
Hours stringStart Time
- interval
Days List<String> - interval
Hours StringEnd Time - interval
Hours StringStart Time
- interval
Days string[] - interval
Hours stringEnd Time - interval
Hours stringStart Time
- interval_
days Sequence[str] - interval_
hours_ strend_ time - interval_
hours_ strstart_ time
- interval
Days List<String> - interval
Hours StringEnd Time - interval
Hours StringStart 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
spotinst
Terraform Provider.