@pulumi/spotinst 3.130.0-alpha.1775780833 → 3.130.0
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/package.json +2 -2
- package/types/input.d.ts +49 -0
- package/types/output.d.ts +49 -0
package/aws/oceanLaunchSpec.d.ts
CHANGED
|
@@ -93,6 +93,10 @@ export declare class OceanLaunchSpec extends pulumi.CustomResource {
|
|
|
93
93
|
* The ID of the Ocean cluster.
|
|
94
94
|
*/
|
|
95
95
|
readonly oceanId: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* An object used to specify time windows during which certain optimization constraints can be eased.
|
|
98
|
+
*/
|
|
99
|
+
readonly optimizationWindows: pulumi.Output<outputs.aws.OceanLaunchSpecOptimizationWindows | undefined>;
|
|
96
100
|
/**
|
|
97
101
|
* A list of instance types. Takes the preferred types into consideration while maintaining a variety of machine types running for optimized distribution.
|
|
98
102
|
*/
|
|
@@ -234,6 +238,10 @@ export interface OceanLaunchSpecState {
|
|
|
234
238
|
* The ID of the Ocean cluster.
|
|
235
239
|
*/
|
|
236
240
|
oceanId?: pulumi.Input<string>;
|
|
241
|
+
/**
|
|
242
|
+
* An object used to specify time windows during which certain optimization constraints can be eased.
|
|
243
|
+
*/
|
|
244
|
+
optimizationWindows?: pulumi.Input<inputs.aws.OceanLaunchSpecOptimizationWindows>;
|
|
237
245
|
/**
|
|
238
246
|
* A list of instance types. Takes the preferred types into consideration while maintaining a variety of machine types running for optimized distribution.
|
|
239
247
|
*/
|
|
@@ -367,6 +375,10 @@ export interface OceanLaunchSpecArgs {
|
|
|
367
375
|
* The ID of the Ocean cluster.
|
|
368
376
|
*/
|
|
369
377
|
oceanId: pulumi.Input<string>;
|
|
378
|
+
/**
|
|
379
|
+
* An object used to specify time windows during which certain optimization constraints can be eased.
|
|
380
|
+
*/
|
|
381
|
+
optimizationWindows?: pulumi.Input<inputs.aws.OceanLaunchSpecOptimizationWindows>;
|
|
370
382
|
/**
|
|
371
383
|
* A list of instance types. Takes the preferred types into consideration while maintaining a variety of machine types running for optimized distribution.
|
|
372
384
|
*/
|
package/aws/oceanLaunchSpec.js
CHANGED
|
@@ -56,6 +56,7 @@ class OceanLaunchSpec extends pulumi.CustomResource {
|
|
|
56
56
|
resourceInputs["loadBalancers"] = state?.loadBalancers;
|
|
57
57
|
resourceInputs["name"] = state?.name;
|
|
58
58
|
resourceInputs["oceanId"] = state?.oceanId;
|
|
59
|
+
resourceInputs["optimizationWindows"] = state?.optimizationWindows;
|
|
59
60
|
resourceInputs["preferredOdTypes"] = state?.preferredOdTypes;
|
|
60
61
|
resourceInputs["preferredSpotTypes"] = state?.preferredSpotTypes;
|
|
61
62
|
resourceInputs["reservedEnis"] = state?.reservedEnis;
|
|
@@ -98,6 +99,7 @@ class OceanLaunchSpec extends pulumi.CustomResource {
|
|
|
98
99
|
resourceInputs["loadBalancers"] = args?.loadBalancers;
|
|
99
100
|
resourceInputs["name"] = args?.name;
|
|
100
101
|
resourceInputs["oceanId"] = args?.oceanId;
|
|
102
|
+
resourceInputs["optimizationWindows"] = args?.optimizationWindows;
|
|
101
103
|
resourceInputs["preferredOdTypes"] = args?.preferredOdTypes;
|
|
102
104
|
resourceInputs["preferredSpotTypes"] = args?.preferredSpotTypes;
|
|
103
105
|
resourceInputs["reservedEnis"] = args?.reservedEnis;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oceanLaunchSpec.js","sourceRoot":"","sources":["../../aws/oceanLaunchSpec.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,E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,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAhQL,0CAiQC;AAnPG,gBAAgB;AACO,4BAAY,GAAG,8CAA8C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/spotinst",
|
|
3
|
-
"version": "3.130.0
|
|
3
|
+
"version": "3.130.0",
|
|
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.130.0
|
|
26
|
+
"version": "3.130.0"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/types/input.d.ts
CHANGED
|
@@ -2866,6 +2866,27 @@ export declare namespace aws {
|
|
|
2866
2866
|
*/
|
|
2867
2867
|
type: pulumi.Input<string>;
|
|
2868
2868
|
}
|
|
2869
|
+
interface OceanLaunchSpecOptimizationWindows {
|
|
2870
|
+
/**
|
|
2871
|
+
* Used to enable or disable the optimization windows mechanism. Must be a boolean (null is invalid). When `true`, at least one window must be defined. When `false`, windows can be empty or omitted.
|
|
2872
|
+
*/
|
|
2873
|
+
isEnabled: pulumi.Input<boolean>;
|
|
2874
|
+
/**
|
|
2875
|
+
* The times when the optimization windows will apply. Required if `isEnabled` is `true`.
|
|
2876
|
+
*/
|
|
2877
|
+
windows?: pulumi.Input<pulumi.Input<inputs.aws.OceanLaunchSpecOptimizationWindowsWindow>[]>;
|
|
2878
|
+
}
|
|
2879
|
+
interface OceanLaunchSpecOptimizationWindowsWindow {
|
|
2880
|
+
cronExpression: pulumi.Input<string>;
|
|
2881
|
+
/**
|
|
2882
|
+
* The duration of the optimization window. Must be in the format where unit is `m` (minutes), `h` (hours), or `d` (days). Examples: `10m`, `5h`, `2d`.
|
|
2883
|
+
*/
|
|
2884
|
+
duration: pulumi.Input<string>;
|
|
2885
|
+
/**
|
|
2886
|
+
* Items Enum: `ignorePdb` `ignoreRestrictScaleDown`. The list of effects that will be applied during this optimization window.
|
|
2887
|
+
*/
|
|
2888
|
+
effects: pulumi.Input<pulumi.Input<string>[]>;
|
|
2889
|
+
}
|
|
2869
2890
|
interface OceanLaunchSpecResourceLimit {
|
|
2870
2891
|
/**
|
|
2871
2892
|
* Set a maximum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
|
|
@@ -3041,6 +3062,10 @@ export declare namespace aws {
|
|
|
3041
3062
|
shouldTagVolumes?: pulumi.Input<boolean>;
|
|
3042
3063
|
}
|
|
3043
3064
|
interface OceanScheduledTask {
|
|
3065
|
+
/**
|
|
3066
|
+
* An object used to specify time windows during which certain optimization constraints can be eased.
|
|
3067
|
+
*/
|
|
3068
|
+
optimizationWindows?: pulumi.Input<inputs.aws.OceanScheduledTaskOptimizationWindows>;
|
|
3044
3069
|
/**
|
|
3045
3070
|
* Set shutdown hours for cluster object.
|
|
3046
3071
|
*/
|
|
@@ -3050,6 +3075,30 @@ export declare namespace aws {
|
|
|
3050
3075
|
*/
|
|
3051
3076
|
tasks?: pulumi.Input<pulumi.Input<inputs.aws.OceanScheduledTaskTask>[]>;
|
|
3052
3077
|
}
|
|
3078
|
+
interface OceanScheduledTaskOptimizationWindows {
|
|
3079
|
+
/**
|
|
3080
|
+
* Used to enable or disable the optimization windows mechanism. Must be a boolean (null is invalid). When `true`, at least one window must be defined. When `false`, windows can be empty or omitted.
|
|
3081
|
+
*/
|
|
3082
|
+
isEnabled: pulumi.Input<boolean>;
|
|
3083
|
+
/**
|
|
3084
|
+
* The times when the optimization windows will apply. Required if `isEnabled` is `true`.
|
|
3085
|
+
*/
|
|
3086
|
+
windows?: pulumi.Input<pulumi.Input<inputs.aws.OceanScheduledTaskOptimizationWindowsWindow>[]>;
|
|
3087
|
+
}
|
|
3088
|
+
interface OceanScheduledTaskOptimizationWindowsWindow {
|
|
3089
|
+
/**
|
|
3090
|
+
* A valid cron expression defining when the optimization window starts. For example: `0 0 * * *` (daily at midnight). The cron job runs in UTC time and follows Unix cron format.
|
|
3091
|
+
*/
|
|
3092
|
+
cronExpression: pulumi.Input<string>;
|
|
3093
|
+
/**
|
|
3094
|
+
* The duration of the optimization window. Must be in the format where unit is `m` (minutes), `h` (hours), or `d` (days). Examples: `10m`, `5h`, `2d`.
|
|
3095
|
+
*/
|
|
3096
|
+
duration: pulumi.Input<string>;
|
|
3097
|
+
/**
|
|
3098
|
+
* Items Enum: `ignorePdb` `ignoreRestrictScaleDown`. The list of effects that will be applied during this optimization window.
|
|
3099
|
+
*/
|
|
3100
|
+
effects: pulumi.Input<pulumi.Input<string>[]>;
|
|
3101
|
+
}
|
|
3053
3102
|
interface OceanScheduledTaskShutdownHours {
|
|
3054
3103
|
/**
|
|
3055
3104
|
* Toggle the shutdown hours task. (Example: `true`).
|
package/types/output.d.ts
CHANGED
|
@@ -2865,6 +2865,27 @@ export declare namespace aws {
|
|
|
2865
2865
|
*/
|
|
2866
2866
|
type: string;
|
|
2867
2867
|
}
|
|
2868
|
+
interface OceanLaunchSpecOptimizationWindows {
|
|
2869
|
+
/**
|
|
2870
|
+
* Used to enable or disable the optimization windows mechanism. Must be a boolean (null is invalid). When `true`, at least one window must be defined. When `false`, windows can be empty or omitted.
|
|
2871
|
+
*/
|
|
2872
|
+
isEnabled: boolean;
|
|
2873
|
+
/**
|
|
2874
|
+
* The times when the optimization windows will apply. Required if `isEnabled` is `true`.
|
|
2875
|
+
*/
|
|
2876
|
+
windows?: outputs.aws.OceanLaunchSpecOptimizationWindowsWindow[];
|
|
2877
|
+
}
|
|
2878
|
+
interface OceanLaunchSpecOptimizationWindowsWindow {
|
|
2879
|
+
cronExpression: string;
|
|
2880
|
+
/**
|
|
2881
|
+
* The duration of the optimization window. Must be in the format where unit is `m` (minutes), `h` (hours), or `d` (days). Examples: `10m`, `5h`, `2d`.
|
|
2882
|
+
*/
|
|
2883
|
+
duration: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* Items Enum: `ignorePdb` `ignoreRestrictScaleDown`. The list of effects that will be applied during this optimization window.
|
|
2886
|
+
*/
|
|
2887
|
+
effects: string[];
|
|
2888
|
+
}
|
|
2868
2889
|
interface OceanLaunchSpecResourceLimit {
|
|
2869
2890
|
/**
|
|
2870
2891
|
* Set a maximum number of instances per Virtual Node Group. Can be null. If set, value must be greater than or equal to 0.
|
|
@@ -3040,6 +3061,10 @@ export declare namespace aws {
|
|
|
3040
3061
|
shouldTagVolumes?: boolean;
|
|
3041
3062
|
}
|
|
3042
3063
|
interface OceanScheduledTask {
|
|
3064
|
+
/**
|
|
3065
|
+
* An object used to specify time windows during which certain optimization constraints can be eased.
|
|
3066
|
+
*/
|
|
3067
|
+
optimizationWindows?: outputs.aws.OceanScheduledTaskOptimizationWindows;
|
|
3043
3068
|
/**
|
|
3044
3069
|
* Set shutdown hours for cluster object.
|
|
3045
3070
|
*/
|
|
@@ -3049,6 +3074,30 @@ export declare namespace aws {
|
|
|
3049
3074
|
*/
|
|
3050
3075
|
tasks?: outputs.aws.OceanScheduledTaskTask[];
|
|
3051
3076
|
}
|
|
3077
|
+
interface OceanScheduledTaskOptimizationWindows {
|
|
3078
|
+
/**
|
|
3079
|
+
* Used to enable or disable the optimization windows mechanism. Must be a boolean (null is invalid). When `true`, at least one window must be defined. When `false`, windows can be empty or omitted.
|
|
3080
|
+
*/
|
|
3081
|
+
isEnabled: boolean;
|
|
3082
|
+
/**
|
|
3083
|
+
* The times when the optimization windows will apply. Required if `isEnabled` is `true`.
|
|
3084
|
+
*/
|
|
3085
|
+
windows?: outputs.aws.OceanScheduledTaskOptimizationWindowsWindow[];
|
|
3086
|
+
}
|
|
3087
|
+
interface OceanScheduledTaskOptimizationWindowsWindow {
|
|
3088
|
+
/**
|
|
3089
|
+
* A valid cron expression defining when the optimization window starts. For example: `0 0 * * *` (daily at midnight). The cron job runs in UTC time and follows Unix cron format.
|
|
3090
|
+
*/
|
|
3091
|
+
cronExpression: string;
|
|
3092
|
+
/**
|
|
3093
|
+
* The duration of the optimization window. Must be in the format where unit is `m` (minutes), `h` (hours), or `d` (days). Examples: `10m`, `5h`, `2d`.
|
|
3094
|
+
*/
|
|
3095
|
+
duration: string;
|
|
3096
|
+
/**
|
|
3097
|
+
* Items Enum: `ignorePdb` `ignoreRestrictScaleDown`. The list of effects that will be applied during this optimization window.
|
|
3098
|
+
*/
|
|
3099
|
+
effects: string[];
|
|
3100
|
+
}
|
|
3052
3101
|
interface OceanScheduledTaskShutdownHours {
|
|
3053
3102
|
/**
|
|
3054
3103
|
* Toggle the shutdown hours task. (Example: `true`).
|