@pulumi/spotinst 3.126.0-alpha.1761894726 → 3.126.0-alpha.1761967904
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aws/oceanLaunchSpec.d.ts +12 -0
- package/aws/oceanLaunchSpec.js +2 -0
- package/aws/oceanLaunchSpec.js.map +1 -1
- package/oceanRightSizingRule.d.ts +167 -0
- package/oceanRightSizingRule.js +77 -0
- package/oceanRightSizingRule.js.map +1 -1
- package/package.json +2 -2
- package/types/input.d.ts +108 -0
- package/types/output.d.ts +108 -0
package/aws/oceanLaunchSpec.d.ts
CHANGED
|
@@ -91,6 +91,10 @@ export declare class OceanLaunchSpec extends pulumi.CustomResource {
|
|
|
91
91
|
* Optionally adds labels to instances launched in the cluster.
|
|
92
92
|
*/
|
|
93
93
|
readonly labels: pulumi.Output<outputs.aws.OceanLaunchSpecLabel[] | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* Array of load balancer objects to add to VNG
|
|
96
|
+
*/
|
|
97
|
+
readonly loadBalancers: pulumi.Output<outputs.aws.OceanLaunchSpecLoadBalancer[] | undefined>;
|
|
94
98
|
/**
|
|
95
99
|
* The name of the Virtual Node Group.
|
|
96
100
|
*/
|
|
@@ -228,6 +232,10 @@ export interface OceanLaunchSpecState {
|
|
|
228
232
|
* Optionally adds labels to instances launched in the cluster.
|
|
229
233
|
*/
|
|
230
234
|
labels?: pulumi.Input<pulumi.Input<inputs.aws.OceanLaunchSpecLabel>[]>;
|
|
235
|
+
/**
|
|
236
|
+
* Array of load balancer objects to add to VNG
|
|
237
|
+
*/
|
|
238
|
+
loadBalancers?: pulumi.Input<pulumi.Input<inputs.aws.OceanLaunchSpecLoadBalancer>[]>;
|
|
231
239
|
/**
|
|
232
240
|
* The name of the Virtual Node Group.
|
|
233
241
|
*/
|
|
@@ -357,6 +365,10 @@ export interface OceanLaunchSpecArgs {
|
|
|
357
365
|
* Optionally adds labels to instances launched in the cluster.
|
|
358
366
|
*/
|
|
359
367
|
labels?: pulumi.Input<pulumi.Input<inputs.aws.OceanLaunchSpecLabel>[]>;
|
|
368
|
+
/**
|
|
369
|
+
* Array of load balancer objects to add to VNG
|
|
370
|
+
*/
|
|
371
|
+
loadBalancers?: pulumi.Input<pulumi.Input<inputs.aws.OceanLaunchSpecLoadBalancer>[]>;
|
|
360
372
|
/**
|
|
361
373
|
* The name of the Virtual Node Group.
|
|
362
374
|
*/
|
package/aws/oceanLaunchSpec.js
CHANGED
|
@@ -63,6 +63,7 @@ class OceanLaunchSpec extends pulumi.CustomResource {
|
|
|
63
63
|
resourceInputs["instanceTypes"] = state?.instanceTypes;
|
|
64
64
|
resourceInputs["instanceTypesFilters"] = state?.instanceTypesFilters;
|
|
65
65
|
resourceInputs["labels"] = state?.labels;
|
|
66
|
+
resourceInputs["loadBalancers"] = state?.loadBalancers;
|
|
66
67
|
resourceInputs["name"] = state?.name;
|
|
67
68
|
resourceInputs["oceanId"] = state?.oceanId;
|
|
68
69
|
resourceInputs["preferredOdTypes"] = state?.preferredOdTypes;
|
|
@@ -104,6 +105,7 @@ class OceanLaunchSpec extends pulumi.CustomResource {
|
|
|
104
105
|
resourceInputs["instanceTypes"] = args?.instanceTypes;
|
|
105
106
|
resourceInputs["instanceTypesFilters"] = args?.instanceTypesFilters;
|
|
106
107
|
resourceInputs["labels"] = args?.labels;
|
|
108
|
+
resourceInputs["loadBalancers"] = args?.loadBalancers;
|
|
107
109
|
resourceInputs["name"] = args?.name;
|
|
108
110
|
resourceInputs["oceanId"] = args?.oceanId;
|
|
109
111
|
resourceInputs["preferredOdTypes"] = args?.preferredOdTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oceanLaunchSpec.js","sourceRoot":"","sources":["../../aws/oceanLaunchSpec.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;GAYG;AACH,MAAa,eAAg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Ae,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AA1PL,0CA2PC;AA7OG,gBAAgB;AACO,4BAAY,GAAG,8CAA8C,CAAC"}
|
|
@@ -1,6 +1,83 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
import * as inputs from "./types/input";
|
|
3
3
|
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Manages a Spotinst Ocean right sizing rule resource.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as spotinst from "@pulumi/spotinst";
|
|
12
|
+
*
|
|
13
|
+
* const example = new spotinst.OceanRightSizingRule("example", {
|
|
14
|
+
* oceanId: "o-123456",
|
|
15
|
+
* ruleName: "test-rule",
|
|
16
|
+
* excludePreliminaryRecommendations: true,
|
|
17
|
+
* restartReplicas: "ALL_MANIFEST",
|
|
18
|
+
* recommendationApplicationHpas: [{
|
|
19
|
+
* allowHpaRecommendations: true,
|
|
20
|
+
* }],
|
|
21
|
+
* recommendationApplicationIntervals: [
|
|
22
|
+
* {
|
|
23
|
+
* repetitionBasis: "WEEKLY",
|
|
24
|
+
* weeklyRepetitionBases: [{
|
|
25
|
+
* intervalDays: [
|
|
26
|
+
* "MONDAY",
|
|
27
|
+
* "WEDNESDAY",
|
|
28
|
+
* ],
|
|
29
|
+
* intervalHoursStartTime: "12:00",
|
|
30
|
+
* intervalHoursEndTime: "14:00",
|
|
31
|
+
* }],
|
|
32
|
+
* },
|
|
33
|
+
* {
|
|
34
|
+
* repetitionBasis: "MONTHLY",
|
|
35
|
+
* monthlyRepetitionBases: [{
|
|
36
|
+
* intervalMonths: [
|
|
37
|
+
* 2,
|
|
38
|
+
* 6,
|
|
39
|
+
* 9,
|
|
40
|
+
* ],
|
|
41
|
+
* weekOfTheMonths: [
|
|
42
|
+
* "FIRST",
|
|
43
|
+
* "LAST",
|
|
44
|
+
* ],
|
|
45
|
+
* weeklyRepetitionBases: [{
|
|
46
|
+
* intervalDays: ["MONDAY"],
|
|
47
|
+
* intervalHoursStartTime: "03:00",
|
|
48
|
+
* intervalHoursEndTime: "04:00",
|
|
49
|
+
* }],
|
|
50
|
+
* }],
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* recommendationApplicationBoundaries: [{
|
|
54
|
+
* cpuMin: 120,
|
|
55
|
+
* cpuMax: 190,
|
|
56
|
+
* memoryMin: 160,
|
|
57
|
+
* memoryMax: 190,
|
|
58
|
+
* }],
|
|
59
|
+
* recommendationApplicationMinThresholds: [{
|
|
60
|
+
* cpuPercentage: 0.412,
|
|
61
|
+
* memoryPercentage: 0.36,
|
|
62
|
+
* }],
|
|
63
|
+
* recommendationApplicationOverheadValues: [{
|
|
64
|
+
* cpuPercentage: 0.8,
|
|
65
|
+
* memoryPercentage: 0.5,
|
|
66
|
+
* }],
|
|
67
|
+
* autoApplyDefinitions: [{
|
|
68
|
+
* enabled: true,
|
|
69
|
+
* namespaces: [
|
|
70
|
+
* "kube-system",
|
|
71
|
+
* "spot-system",
|
|
72
|
+
* ],
|
|
73
|
+
* labels: {
|
|
74
|
+
* "k8s-app": "kube-proxy",
|
|
75
|
+
* "app.kubernetes.io/name": "metrics-server",
|
|
76
|
+
* },
|
|
77
|
+
* }],
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
4
81
|
export declare class OceanRightSizingRule extends pulumi.CustomResource {
|
|
5
82
|
/**
|
|
6
83
|
* Get an existing OceanRightSizingRule resource's state with the given name, ID, and optional extra
|
|
@@ -18,17 +95,47 @@ export declare class OceanRightSizingRule extends pulumi.CustomResource {
|
|
|
18
95
|
*/
|
|
19
96
|
static isInstance(obj: any): obj is OceanRightSizingRule;
|
|
20
97
|
readonly attachWorkloads: pulumi.Output<outputs.OceanRightSizingRuleAttachWorkload[] | undefined>;
|
|
98
|
+
/**
|
|
99
|
+
* Ocean Rightsizing Rule Auto Apply Configuration.
|
|
100
|
+
*/
|
|
21
101
|
readonly autoApplyDefinitions: pulumi.Output<outputs.OceanRightSizingRuleAutoApplyDefinition[] | undefined>;
|
|
22
102
|
readonly detachWorkloads: pulumi.Output<outputs.OceanRightSizingRuleDetachWorkload[] | undefined>;
|
|
23
103
|
readonly downsideOnly: pulumi.Output<boolean | undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
|
|
106
|
+
*/
|
|
24
107
|
readonly excludePreliminaryRecommendations: pulumi.Output<boolean | undefined>;
|
|
108
|
+
/**
|
|
109
|
+
* Identifier of the Ocean cluster.
|
|
110
|
+
*/
|
|
25
111
|
readonly oceanId: pulumi.Output<string | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* Determines the Ocean Rightsizing rule recommendation application boundaries.
|
|
114
|
+
*/
|
|
26
115
|
readonly recommendationApplicationBoundaries: pulumi.Output<outputs.OceanRightSizingRuleRecommendationApplicationBoundary[] | undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* HPA Rightsizing Rule Recommendation Configuration
|
|
118
|
+
*/
|
|
27
119
|
readonly recommendationApplicationHpas: pulumi.Output<outputs.OceanRightSizingRuleRecommendationApplicationHpa[] | undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* Determines the Ocean Rightsizing rule recommendation application intervals.
|
|
122
|
+
*/
|
|
28
123
|
readonly recommendationApplicationIntervals: pulumi.Output<outputs.OceanRightSizingRuleRecommendationApplicationInterval[]>;
|
|
124
|
+
/**
|
|
125
|
+
* Determines the extent of difference between current request and recommendation to trigger a change in percentage.
|
|
126
|
+
*/
|
|
29
127
|
readonly recommendationApplicationMinThresholds: pulumi.Output<outputs.OceanRightSizingRuleRecommendationApplicationMinThreshold[] | undefined>;
|
|
128
|
+
/**
|
|
129
|
+
* Determines the Ocean Rightsizing rule recommendation application overhead values.
|
|
130
|
+
*/
|
|
30
131
|
readonly recommendationApplicationOverheadValues: pulumi.Output<outputs.OceanRightSizingRuleRecommendationApplicationOverheadValue[] | undefined>;
|
|
132
|
+
/**
|
|
133
|
+
* 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.
|
|
134
|
+
*/
|
|
31
135
|
readonly restartReplicas: pulumi.Output<string | undefined>;
|
|
136
|
+
/**
|
|
137
|
+
* The unique name of the rule.
|
|
138
|
+
*/
|
|
32
139
|
readonly ruleName: pulumi.Output<string>;
|
|
33
140
|
/**
|
|
34
141
|
* Create a OceanRightSizingRule resource with the given unique name, arguments, and options.
|
|
@@ -44,17 +151,47 @@ export declare class OceanRightSizingRule extends pulumi.CustomResource {
|
|
|
44
151
|
*/
|
|
45
152
|
export interface OceanRightSizingRuleState {
|
|
46
153
|
attachWorkloads?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleAttachWorkload>[]>;
|
|
154
|
+
/**
|
|
155
|
+
* Ocean Rightsizing Rule Auto Apply Configuration.
|
|
156
|
+
*/
|
|
47
157
|
autoApplyDefinitions?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleAutoApplyDefinition>[]>;
|
|
48
158
|
detachWorkloads?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleDetachWorkload>[]>;
|
|
49
159
|
downsideOnly?: pulumi.Input<boolean>;
|
|
160
|
+
/**
|
|
161
|
+
* Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
|
|
162
|
+
*/
|
|
50
163
|
excludePreliminaryRecommendations?: pulumi.Input<boolean>;
|
|
164
|
+
/**
|
|
165
|
+
* Identifier of the Ocean cluster.
|
|
166
|
+
*/
|
|
51
167
|
oceanId?: pulumi.Input<string>;
|
|
168
|
+
/**
|
|
169
|
+
* Determines the Ocean Rightsizing rule recommendation application boundaries.
|
|
170
|
+
*/
|
|
52
171
|
recommendationApplicationBoundaries?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationBoundary>[]>;
|
|
172
|
+
/**
|
|
173
|
+
* HPA Rightsizing Rule Recommendation Configuration
|
|
174
|
+
*/
|
|
53
175
|
recommendationApplicationHpas?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationHpa>[]>;
|
|
176
|
+
/**
|
|
177
|
+
* Determines the Ocean Rightsizing rule recommendation application intervals.
|
|
178
|
+
*/
|
|
54
179
|
recommendationApplicationIntervals?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationInterval>[]>;
|
|
180
|
+
/**
|
|
181
|
+
* Determines the extent of difference between current request and recommendation to trigger a change in percentage.
|
|
182
|
+
*/
|
|
55
183
|
recommendationApplicationMinThresholds?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationMinThreshold>[]>;
|
|
184
|
+
/**
|
|
185
|
+
* Determines the Ocean Rightsizing rule recommendation application overhead values.
|
|
186
|
+
*/
|
|
56
187
|
recommendationApplicationOverheadValues?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationOverheadValue>[]>;
|
|
188
|
+
/**
|
|
189
|
+
* 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.
|
|
190
|
+
*/
|
|
57
191
|
restartReplicas?: pulumi.Input<string>;
|
|
192
|
+
/**
|
|
193
|
+
* The unique name of the rule.
|
|
194
|
+
*/
|
|
58
195
|
ruleName?: pulumi.Input<string>;
|
|
59
196
|
}
|
|
60
197
|
/**
|
|
@@ -62,16 +199,46 @@ export interface OceanRightSizingRuleState {
|
|
|
62
199
|
*/
|
|
63
200
|
export interface OceanRightSizingRuleArgs {
|
|
64
201
|
attachWorkloads?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleAttachWorkload>[]>;
|
|
202
|
+
/**
|
|
203
|
+
* Ocean Rightsizing Rule Auto Apply Configuration.
|
|
204
|
+
*/
|
|
65
205
|
autoApplyDefinitions?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleAutoApplyDefinition>[]>;
|
|
66
206
|
detachWorkloads?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleDetachWorkload>[]>;
|
|
67
207
|
downsideOnly?: pulumi.Input<boolean>;
|
|
208
|
+
/**
|
|
209
|
+
* Exclude preliminary recommendations (recommendations based on less than 4 full days of data).
|
|
210
|
+
*/
|
|
68
211
|
excludePreliminaryRecommendations?: pulumi.Input<boolean>;
|
|
212
|
+
/**
|
|
213
|
+
* Identifier of the Ocean cluster.
|
|
214
|
+
*/
|
|
69
215
|
oceanId?: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Determines the Ocean Rightsizing rule recommendation application boundaries.
|
|
218
|
+
*/
|
|
70
219
|
recommendationApplicationBoundaries?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationBoundary>[]>;
|
|
220
|
+
/**
|
|
221
|
+
* HPA Rightsizing Rule Recommendation Configuration
|
|
222
|
+
*/
|
|
71
223
|
recommendationApplicationHpas?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationHpa>[]>;
|
|
224
|
+
/**
|
|
225
|
+
* Determines the Ocean Rightsizing rule recommendation application intervals.
|
|
226
|
+
*/
|
|
72
227
|
recommendationApplicationIntervals: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationInterval>[]>;
|
|
228
|
+
/**
|
|
229
|
+
* Determines the extent of difference between current request and recommendation to trigger a change in percentage.
|
|
230
|
+
*/
|
|
73
231
|
recommendationApplicationMinThresholds?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationMinThreshold>[]>;
|
|
232
|
+
/**
|
|
233
|
+
* Determines the Ocean Rightsizing rule recommendation application overhead values.
|
|
234
|
+
*/
|
|
74
235
|
recommendationApplicationOverheadValues?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationOverheadValue>[]>;
|
|
236
|
+
/**
|
|
237
|
+
* 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.
|
|
238
|
+
*/
|
|
75
239
|
restartReplicas?: pulumi.Input<string>;
|
|
240
|
+
/**
|
|
241
|
+
* The unique name of the rule.
|
|
242
|
+
*/
|
|
76
243
|
ruleName: pulumi.Input<string>;
|
|
77
244
|
}
|
package/oceanRightSizingRule.js
CHANGED
|
@@ -5,6 +5,83 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.OceanRightSizingRule = void 0;
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Spotinst Ocean right sizing rule resource.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as spotinst from "@pulumi/spotinst";
|
|
16
|
+
*
|
|
17
|
+
* const example = new spotinst.OceanRightSizingRule("example", {
|
|
18
|
+
* oceanId: "o-123456",
|
|
19
|
+
* ruleName: "test-rule",
|
|
20
|
+
* excludePreliminaryRecommendations: true,
|
|
21
|
+
* restartReplicas: "ALL_MANIFEST",
|
|
22
|
+
* recommendationApplicationHpas: [{
|
|
23
|
+
* allowHpaRecommendations: true,
|
|
24
|
+
* }],
|
|
25
|
+
* recommendationApplicationIntervals: [
|
|
26
|
+
* {
|
|
27
|
+
* repetitionBasis: "WEEKLY",
|
|
28
|
+
* weeklyRepetitionBases: [{
|
|
29
|
+
* intervalDays: [
|
|
30
|
+
* "MONDAY",
|
|
31
|
+
* "WEDNESDAY",
|
|
32
|
+
* ],
|
|
33
|
+
* intervalHoursStartTime: "12:00",
|
|
34
|
+
* intervalHoursEndTime: "14:00",
|
|
35
|
+
* }],
|
|
36
|
+
* },
|
|
37
|
+
* {
|
|
38
|
+
* repetitionBasis: "MONTHLY",
|
|
39
|
+
* monthlyRepetitionBases: [{
|
|
40
|
+
* intervalMonths: [
|
|
41
|
+
* 2,
|
|
42
|
+
* 6,
|
|
43
|
+
* 9,
|
|
44
|
+
* ],
|
|
45
|
+
* weekOfTheMonths: [
|
|
46
|
+
* "FIRST",
|
|
47
|
+
* "LAST",
|
|
48
|
+
* ],
|
|
49
|
+
* weeklyRepetitionBases: [{
|
|
50
|
+
* intervalDays: ["MONDAY"],
|
|
51
|
+
* intervalHoursStartTime: "03:00",
|
|
52
|
+
* intervalHoursEndTime: "04:00",
|
|
53
|
+
* }],
|
|
54
|
+
* }],
|
|
55
|
+
* },
|
|
56
|
+
* ],
|
|
57
|
+
* recommendationApplicationBoundaries: [{
|
|
58
|
+
* cpuMin: 120,
|
|
59
|
+
* cpuMax: 190,
|
|
60
|
+
* memoryMin: 160,
|
|
61
|
+
* memoryMax: 190,
|
|
62
|
+
* }],
|
|
63
|
+
* recommendationApplicationMinThresholds: [{
|
|
64
|
+
* cpuPercentage: 0.412,
|
|
65
|
+
* memoryPercentage: 0.36,
|
|
66
|
+
* }],
|
|
67
|
+
* recommendationApplicationOverheadValues: [{
|
|
68
|
+
* cpuPercentage: 0.8,
|
|
69
|
+
* memoryPercentage: 0.5,
|
|
70
|
+
* }],
|
|
71
|
+
* autoApplyDefinitions: [{
|
|
72
|
+
* enabled: true,
|
|
73
|
+
* namespaces: [
|
|
74
|
+
* "kube-system",
|
|
75
|
+
* "spot-system",
|
|
76
|
+
* ],
|
|
77
|
+
* labels: {
|
|
78
|
+
* "k8s-app": "kube-proxy",
|
|
79
|
+
* "app.kubernetes.io/name": "metrics-server",
|
|
80
|
+
* },
|
|
81
|
+
* }],
|
|
82
|
+
* });
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
8
85
|
class OceanRightSizingRule extends pulumi.CustomResource {
|
|
9
86
|
/**
|
|
10
87
|
* Get an existing OceanRightSizingRule resource's state with the given name, ID, and optional extra
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oceanRightSizingRule.js","sourceRoot":"","sources":["../oceanRightSizingRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;
|
|
1
|
+
{"version":3,"file":"oceanRightSizingRule.js","sourceRoot":"","sources":["../oceanRightSizingRule.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IA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;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AA1HL,oDA2HC;AA7GG,gBAAgB;AACO,iCAAY,GAAG,0DAA0D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/spotinst",
|
|
3
|
-
"version": "3.126.0-alpha.
|
|
3
|
+
"version": "3.126.0-alpha.1761967904",
|
|
4
4
|
"description": "A Pulumi package for creating and managing spotinst cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "spotinst",
|
|
26
|
-
"version": "3.126.0-alpha.
|
|
26
|
+
"version": "3.126.0-alpha.1761967904"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/types/input.d.ts
CHANGED
|
@@ -296,9 +296,17 @@ export interface NotificationCenterSubscription {
|
|
|
296
296
|
subscriptionType?: pulumi.Input<string>;
|
|
297
297
|
}
|
|
298
298
|
export interface OceanRightSizingRuleAttachWorkload {
|
|
299
|
+
/**
|
|
300
|
+
* List of namespaces that match the auto-apply rule.
|
|
301
|
+
*/
|
|
299
302
|
namespaces: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleAttachWorkloadNamespace>[]>;
|
|
300
303
|
}
|
|
301
304
|
export interface OceanRightSizingRuleAttachWorkloadNamespace {
|
|
305
|
+
/**
|
|
306
|
+
* A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
|
|
307
|
+
*
|
|
308
|
+
* <a id="attachWorkloads"></a>
|
|
309
|
+
*/
|
|
302
310
|
labels?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleAttachWorkloadNamespaceLabel>[]>;
|
|
303
311
|
namespaceName: pulumi.Input<string>;
|
|
304
312
|
workloads?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleAttachWorkloadNamespaceWorkload>[]>;
|
|
@@ -313,16 +321,35 @@ export interface OceanRightSizingRuleAttachWorkloadNamespaceWorkload {
|
|
|
313
321
|
workloadType: pulumi.Input<string>;
|
|
314
322
|
}
|
|
315
323
|
export interface OceanRightSizingRuleAutoApplyDefinition {
|
|
324
|
+
/**
|
|
325
|
+
* Determines if auto apply is enabled.
|
|
326
|
+
*/
|
|
316
327
|
enabled?: pulumi.Input<boolean>;
|
|
328
|
+
/**
|
|
329
|
+
* A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
|
|
330
|
+
*
|
|
331
|
+
* <a id="attachWorkloads"></a>
|
|
332
|
+
*/
|
|
317
333
|
labels?: pulumi.Input<{
|
|
318
334
|
[key: string]: pulumi.Input<string>;
|
|
319
335
|
}>;
|
|
336
|
+
/**
|
|
337
|
+
* List of namespaces that match the auto-apply rule.
|
|
338
|
+
*/
|
|
320
339
|
namespaces?: pulumi.Input<pulumi.Input<string>[]>;
|
|
321
340
|
}
|
|
322
341
|
export interface OceanRightSizingRuleDetachWorkload {
|
|
342
|
+
/**
|
|
343
|
+
* List of namespaces that match the auto-apply rule.
|
|
344
|
+
*/
|
|
323
345
|
namespaces: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleDetachWorkloadNamespace>[]>;
|
|
324
346
|
}
|
|
325
347
|
export interface OceanRightSizingRuleDetachWorkloadNamespace {
|
|
348
|
+
/**
|
|
349
|
+
* A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
|
|
350
|
+
*
|
|
351
|
+
* <a id="attachWorkloads"></a>
|
|
352
|
+
*/
|
|
326
353
|
labels?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleDetachWorkloadNamespaceLabel>[]>;
|
|
327
354
|
namespaceName: pulumi.Input<string>;
|
|
328
355
|
workloads?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleDetachWorkloadNamespaceWorkload>[]>;
|
|
@@ -337,40 +364,103 @@ export interface OceanRightSizingRuleDetachWorkloadNamespaceWorkload {
|
|
|
337
364
|
workloadType: pulumi.Input<string>;
|
|
338
365
|
}
|
|
339
366
|
export interface OceanRightSizingRuleRecommendationApplicationBoundary {
|
|
367
|
+
/**
|
|
368
|
+
* the maximal value of cpu in vCpu.
|
|
369
|
+
*/
|
|
340
370
|
cpuMax?: pulumi.Input<number>;
|
|
371
|
+
/**
|
|
372
|
+
* the minimal value of cpu in vCpu.
|
|
373
|
+
*/
|
|
341
374
|
cpuMin?: pulumi.Input<number>;
|
|
375
|
+
/**
|
|
376
|
+
* the maximal value of memory in Gib.
|
|
377
|
+
*/
|
|
342
378
|
memoryMax?: pulumi.Input<number>;
|
|
379
|
+
/**
|
|
380
|
+
* the minimal value of memory in Gib.
|
|
381
|
+
*/
|
|
343
382
|
memoryMin?: pulumi.Input<number>;
|
|
344
383
|
}
|
|
345
384
|
export interface OceanRightSizingRuleRecommendationApplicationHpa {
|
|
385
|
+
/**
|
|
386
|
+
* Determines by the rule if recommendation application is allowed for workloads with HPA definition.
|
|
387
|
+
*/
|
|
346
388
|
allowHpaRecommendations?: pulumi.Input<boolean>;
|
|
347
389
|
}
|
|
348
390
|
export interface OceanRightSizingRuleRecommendationApplicationInterval {
|
|
391
|
+
/**
|
|
392
|
+
* Determines the Ocean Rightsizing rule monthly repetition basis.
|
|
393
|
+
*/
|
|
349
394
|
monthlyRepetitionBases?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBase>[]>;
|
|
395
|
+
/**
|
|
396
|
+
* Valid values: "WEEKLY" "MONTHLY". The repetition basis.
|
|
397
|
+
*/
|
|
350
398
|
repetitionBasis: pulumi.Input<string>;
|
|
399
|
+
/**
|
|
400
|
+
* Determines the Ocean Rightsizing rule weekly repetition basis.
|
|
401
|
+
*/
|
|
351
402
|
weeklyRepetitionBases?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBase>[]>;
|
|
352
403
|
}
|
|
353
404
|
export interface OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBase {
|
|
405
|
+
/**
|
|
406
|
+
* Array of the months (in number), when we want to trigger the apply recommendations.
|
|
407
|
+
*/
|
|
354
408
|
intervalMonths: pulumi.Input<pulumi.Input<number>[]>;
|
|
409
|
+
/**
|
|
410
|
+
* Valid values: "FIRST" "SECOND" "THIRD" "FOURTH" "LAST". Array of the weeks in the month, when we want to trigger the apply recommendations.
|
|
411
|
+
*/
|
|
355
412
|
weekOfTheMonths: pulumi.Input<pulumi.Input<string>[]>;
|
|
413
|
+
/**
|
|
414
|
+
* Determines the Ocean Rightsizing rule weekly repetition basis.
|
|
415
|
+
*/
|
|
356
416
|
weeklyRepetitionBases?: pulumi.Input<pulumi.Input<inputs.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBase>[]>;
|
|
357
417
|
}
|
|
358
418
|
export interface OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBase {
|
|
419
|
+
/**
|
|
420
|
+
* Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
|
|
421
|
+
*/
|
|
359
422
|
intervalDays: pulumi.Input<pulumi.Input<string>[]>;
|
|
423
|
+
/**
|
|
424
|
+
* End time.
|
|
425
|
+
*/
|
|
360
426
|
intervalHoursEndTime: pulumi.Input<string>;
|
|
427
|
+
/**
|
|
428
|
+
* Start time.
|
|
429
|
+
*/
|
|
361
430
|
intervalHoursStartTime: pulumi.Input<string>;
|
|
362
431
|
}
|
|
363
432
|
export interface OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBase {
|
|
433
|
+
/**
|
|
434
|
+
* Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
|
|
435
|
+
*/
|
|
364
436
|
intervalDays: pulumi.Input<pulumi.Input<string>[]>;
|
|
437
|
+
/**
|
|
438
|
+
* End time.
|
|
439
|
+
*/
|
|
365
440
|
intervalHoursEndTime: pulumi.Input<string>;
|
|
441
|
+
/**
|
|
442
|
+
* Start time.
|
|
443
|
+
*/
|
|
366
444
|
intervalHoursStartTime: pulumi.Input<string>;
|
|
367
445
|
}
|
|
368
446
|
export interface OceanRightSizingRuleRecommendationApplicationMinThreshold {
|
|
447
|
+
/**
|
|
448
|
+
* .
|
|
449
|
+
*/
|
|
369
450
|
cpuPercentage?: pulumi.Input<number>;
|
|
451
|
+
/**
|
|
452
|
+
* .
|
|
453
|
+
*/
|
|
370
454
|
memoryPercentage?: pulumi.Input<number>;
|
|
371
455
|
}
|
|
372
456
|
export interface OceanRightSizingRuleRecommendationApplicationOverheadValue {
|
|
457
|
+
/**
|
|
458
|
+
* .
|
|
459
|
+
*/
|
|
373
460
|
cpuPercentage?: pulumi.Input<number>;
|
|
461
|
+
/**
|
|
462
|
+
* .
|
|
463
|
+
*/
|
|
374
464
|
memoryPercentage?: pulumi.Input<number>;
|
|
375
465
|
}
|
|
376
466
|
export interface StatefulNodeAzureAttachDataDisk {
|
|
@@ -2496,6 +2586,10 @@ export declare namespace aws {
|
|
|
2496
2586
|
instanceStorePolicyType?: pulumi.Input<string>;
|
|
2497
2587
|
}
|
|
2498
2588
|
interface OceanLaunchSpecAutoscaleDown {
|
|
2589
|
+
/**
|
|
2590
|
+
* When set to 'true', the Aggressive Scale Down feature is enabled.
|
|
2591
|
+
*/
|
|
2592
|
+
isAggressiveScaleDownEnabled?: pulumi.Input<boolean>;
|
|
2499
2593
|
/**
|
|
2500
2594
|
* The maximum percentage allowed to scale down in a single scaling action on the nodes running in a specific VNG. Allowed only if maxScaleDownPercentage is set to null at the cluster level. Number between [0.1-100].
|
|
2501
2595
|
*/
|
|
@@ -2733,6 +2827,20 @@ export declare namespace aws {
|
|
|
2733
2827
|
*/
|
|
2734
2828
|
value: pulumi.Input<string>;
|
|
2735
2829
|
}
|
|
2830
|
+
interface OceanLaunchSpecLoadBalancer {
|
|
2831
|
+
/**
|
|
2832
|
+
* Required if type is set to `TARGET_GROUP`
|
|
2833
|
+
*/
|
|
2834
|
+
arn?: pulumi.Input<string>;
|
|
2835
|
+
/**
|
|
2836
|
+
* Required if type is set to `CLASSIC`
|
|
2837
|
+
*/
|
|
2838
|
+
name?: pulumi.Input<string>;
|
|
2839
|
+
/**
|
|
2840
|
+
* Can be set to `CLASSIC` or `TARGET_GROUP`
|
|
2841
|
+
*/
|
|
2842
|
+
type: pulumi.Input<string>;
|
|
2843
|
+
}
|
|
2736
2844
|
interface OceanLaunchSpecResourceLimit {
|
|
2737
2845
|
/**
|
|
2738
2846
|
* Set a maximum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
|
package/types/output.d.ts
CHANGED
|
@@ -295,9 +295,17 @@ export interface NotificationCenterSubscription {
|
|
|
295
295
|
subscriptionType?: string;
|
|
296
296
|
}
|
|
297
297
|
export interface OceanRightSizingRuleAttachWorkload {
|
|
298
|
+
/**
|
|
299
|
+
* List of namespaces that match the auto-apply rule.
|
|
300
|
+
*/
|
|
298
301
|
namespaces: outputs.OceanRightSizingRuleAttachWorkloadNamespace[];
|
|
299
302
|
}
|
|
300
303
|
export interface OceanRightSizingRuleAttachWorkloadNamespace {
|
|
304
|
+
/**
|
|
305
|
+
* A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
|
|
306
|
+
*
|
|
307
|
+
* <a id="attachWorkloads"></a>
|
|
308
|
+
*/
|
|
301
309
|
labels?: outputs.OceanRightSizingRuleAttachWorkloadNamespaceLabel[];
|
|
302
310
|
namespaceName: string;
|
|
303
311
|
workloads?: outputs.OceanRightSizingRuleAttachWorkloadNamespaceWorkload[];
|
|
@@ -312,16 +320,35 @@ export interface OceanRightSizingRuleAttachWorkloadNamespaceWorkload {
|
|
|
312
320
|
workloadType: string;
|
|
313
321
|
}
|
|
314
322
|
export interface OceanRightSizingRuleAutoApplyDefinition {
|
|
323
|
+
/**
|
|
324
|
+
* Determines if auto apply is enabled.
|
|
325
|
+
*/
|
|
315
326
|
enabled?: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
|
|
329
|
+
*
|
|
330
|
+
* <a id="attachWorkloads"></a>
|
|
331
|
+
*/
|
|
316
332
|
labels?: {
|
|
317
333
|
[key: string]: string;
|
|
318
334
|
};
|
|
335
|
+
/**
|
|
336
|
+
* List of namespaces that match the auto-apply rule.
|
|
337
|
+
*/
|
|
319
338
|
namespaces?: string[];
|
|
320
339
|
}
|
|
321
340
|
export interface OceanRightSizingRuleDetachWorkload {
|
|
341
|
+
/**
|
|
342
|
+
* List of namespaces that match the auto-apply rule.
|
|
343
|
+
*/
|
|
322
344
|
namespaces: outputs.OceanRightSizingRuleDetachWorkloadNamespace[];
|
|
323
345
|
}
|
|
324
346
|
export interface OceanRightSizingRuleDetachWorkloadNamespace {
|
|
347
|
+
/**
|
|
348
|
+
* A set of key-value label pairs used to automatically apply this rule to all workloads in the cluster that match these labels.
|
|
349
|
+
*
|
|
350
|
+
* <a id="attachWorkloads"></a>
|
|
351
|
+
*/
|
|
325
352
|
labels?: outputs.OceanRightSizingRuleDetachWorkloadNamespaceLabel[];
|
|
326
353
|
namespaceName: string;
|
|
327
354
|
workloads?: outputs.OceanRightSizingRuleDetachWorkloadNamespaceWorkload[];
|
|
@@ -336,40 +363,103 @@ export interface OceanRightSizingRuleDetachWorkloadNamespaceWorkload {
|
|
|
336
363
|
workloadType: string;
|
|
337
364
|
}
|
|
338
365
|
export interface OceanRightSizingRuleRecommendationApplicationBoundary {
|
|
366
|
+
/**
|
|
367
|
+
* the maximal value of cpu in vCpu.
|
|
368
|
+
*/
|
|
339
369
|
cpuMax?: number;
|
|
370
|
+
/**
|
|
371
|
+
* the minimal value of cpu in vCpu.
|
|
372
|
+
*/
|
|
340
373
|
cpuMin?: number;
|
|
374
|
+
/**
|
|
375
|
+
* the maximal value of memory in Gib.
|
|
376
|
+
*/
|
|
341
377
|
memoryMax?: number;
|
|
378
|
+
/**
|
|
379
|
+
* the minimal value of memory in Gib.
|
|
380
|
+
*/
|
|
342
381
|
memoryMin?: number;
|
|
343
382
|
}
|
|
344
383
|
export interface OceanRightSizingRuleRecommendationApplicationHpa {
|
|
384
|
+
/**
|
|
385
|
+
* Determines by the rule if recommendation application is allowed for workloads with HPA definition.
|
|
386
|
+
*/
|
|
345
387
|
allowHpaRecommendations?: boolean;
|
|
346
388
|
}
|
|
347
389
|
export interface OceanRightSizingRuleRecommendationApplicationInterval {
|
|
390
|
+
/**
|
|
391
|
+
* Determines the Ocean Rightsizing rule monthly repetition basis.
|
|
392
|
+
*/
|
|
348
393
|
monthlyRepetitionBases?: outputs.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBase[];
|
|
394
|
+
/**
|
|
395
|
+
* Valid values: "WEEKLY" "MONTHLY". The repetition basis.
|
|
396
|
+
*/
|
|
349
397
|
repetitionBasis: string;
|
|
398
|
+
/**
|
|
399
|
+
* Determines the Ocean Rightsizing rule weekly repetition basis.
|
|
400
|
+
*/
|
|
350
401
|
weeklyRepetitionBases?: outputs.OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBase[];
|
|
351
402
|
}
|
|
352
403
|
export interface OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBase {
|
|
404
|
+
/**
|
|
405
|
+
* Array of the months (in number), when we want to trigger the apply recommendations.
|
|
406
|
+
*/
|
|
353
407
|
intervalMonths: number[];
|
|
408
|
+
/**
|
|
409
|
+
* Valid values: "FIRST" "SECOND" "THIRD" "FOURTH" "LAST". Array of the weeks in the month, when we want to trigger the apply recommendations.
|
|
410
|
+
*/
|
|
354
411
|
weekOfTheMonths: string[];
|
|
412
|
+
/**
|
|
413
|
+
* Determines the Ocean Rightsizing rule weekly repetition basis.
|
|
414
|
+
*/
|
|
355
415
|
weeklyRepetitionBases?: outputs.OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBase[];
|
|
356
416
|
}
|
|
357
417
|
export interface OceanRightSizingRuleRecommendationApplicationIntervalMonthlyRepetitionBaseWeeklyRepetitionBase {
|
|
418
|
+
/**
|
|
419
|
+
* Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
|
|
420
|
+
*/
|
|
358
421
|
intervalDays: string[];
|
|
422
|
+
/**
|
|
423
|
+
* End time.
|
|
424
|
+
*/
|
|
359
425
|
intervalHoursEndTime: string;
|
|
426
|
+
/**
|
|
427
|
+
* Start time.
|
|
428
|
+
*/
|
|
360
429
|
intervalHoursStartTime: string;
|
|
361
430
|
}
|
|
362
431
|
export interface OceanRightSizingRuleRecommendationApplicationIntervalWeeklyRepetitionBase {
|
|
432
|
+
/**
|
|
433
|
+
* Valid values: "SUNDAY" "MONDAY" "TUESDAY" "WEDNESDAY" "THURSDAY" "FRIDAY" "SATURDAY". Array of the days of the week, when we want to trigger the apply recommendations.
|
|
434
|
+
*/
|
|
363
435
|
intervalDays: string[];
|
|
436
|
+
/**
|
|
437
|
+
* End time.
|
|
438
|
+
*/
|
|
364
439
|
intervalHoursEndTime: string;
|
|
440
|
+
/**
|
|
441
|
+
* Start time.
|
|
442
|
+
*/
|
|
365
443
|
intervalHoursStartTime: string;
|
|
366
444
|
}
|
|
367
445
|
export interface OceanRightSizingRuleRecommendationApplicationMinThreshold {
|
|
446
|
+
/**
|
|
447
|
+
* .
|
|
448
|
+
*/
|
|
368
449
|
cpuPercentage?: number;
|
|
450
|
+
/**
|
|
451
|
+
* .
|
|
452
|
+
*/
|
|
369
453
|
memoryPercentage?: number;
|
|
370
454
|
}
|
|
371
455
|
export interface OceanRightSizingRuleRecommendationApplicationOverheadValue {
|
|
456
|
+
/**
|
|
457
|
+
* .
|
|
458
|
+
*/
|
|
372
459
|
cpuPercentage?: number;
|
|
460
|
+
/**
|
|
461
|
+
* .
|
|
462
|
+
*/
|
|
373
463
|
memoryPercentage?: number;
|
|
374
464
|
}
|
|
375
465
|
export interface StatefulNodeAzureAttachDataDisk {
|
|
@@ -2495,6 +2585,10 @@ export declare namespace aws {
|
|
|
2495
2585
|
instanceStorePolicyType?: string;
|
|
2496
2586
|
}
|
|
2497
2587
|
interface OceanLaunchSpecAutoscaleDown {
|
|
2588
|
+
/**
|
|
2589
|
+
* When set to 'true', the Aggressive Scale Down feature is enabled.
|
|
2590
|
+
*/
|
|
2591
|
+
isAggressiveScaleDownEnabled?: boolean;
|
|
2498
2592
|
/**
|
|
2499
2593
|
* The maximum percentage allowed to scale down in a single scaling action on the nodes running in a specific VNG. Allowed only if maxScaleDownPercentage is set to null at the cluster level. Number between [0.1-100].
|
|
2500
2594
|
*/
|
|
@@ -2732,6 +2826,20 @@ export declare namespace aws {
|
|
|
2732
2826
|
*/
|
|
2733
2827
|
value: string;
|
|
2734
2828
|
}
|
|
2829
|
+
interface OceanLaunchSpecLoadBalancer {
|
|
2830
|
+
/**
|
|
2831
|
+
* Required if type is set to `TARGET_GROUP`
|
|
2832
|
+
*/
|
|
2833
|
+
arn?: string;
|
|
2834
|
+
/**
|
|
2835
|
+
* Required if type is set to `CLASSIC`
|
|
2836
|
+
*/
|
|
2837
|
+
name?: string;
|
|
2838
|
+
/**
|
|
2839
|
+
* Can be set to `CLASSIC` or `TARGET_GROUP`
|
|
2840
|
+
*/
|
|
2841
|
+
type: string;
|
|
2842
|
+
}
|
|
2735
2843
|
interface OceanLaunchSpecResourceLimit {
|
|
2736
2844
|
/**
|
|
2737
2845
|
* Set a maximum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
|