@pulumi/spotinst 3.75.0-alpha.1712991090 → 3.75.0-alpha.1713561413

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.
Files changed (72) hide show
  1. package/aws/account.d.ts +1 -1
  2. package/aws/account.js +1 -1
  3. package/aws/beanstalk.d.ts +0 -40
  4. package/aws/beanstalk.js +0 -40
  5. package/aws/beanstalk.js.map +1 -1
  6. package/aws/credentials.d.ts +1 -1
  7. package/aws/credentials.js +1 -1
  8. package/aws/elastigroup.d.ts +136 -18
  9. package/aws/elastigroup.js +136 -0
  10. package/aws/elastigroup.js.map +1 -1
  11. package/aws/mrScalar.d.ts +123 -118
  12. package/aws/mrScalar.js +123 -118
  13. package/aws/mrScalar.js.map +1 -1
  14. package/aws/ocean.d.ts +0 -80
  15. package/aws/ocean.js +0 -80
  16. package/aws/ocean.js.map +1 -1
  17. package/aws/oceanExtendedResourceDefinition.d.ts +7 -4
  18. package/aws/oceanExtendedResourceDefinition.js +7 -4
  19. package/aws/oceanExtendedResourceDefinition.js.map +1 -1
  20. package/aws/oceanLaunchSpec.d.ts +0 -137
  21. package/aws/oceanLaunchSpec.js +0 -137
  22. package/aws/oceanLaunchSpec.js.map +1 -1
  23. package/aws/suspension.d.ts +1 -1
  24. package/aws/suspension.js +1 -1
  25. package/azure/elastigroup.d.ts +72 -41
  26. package/azure/elastigroup.js +72 -41
  27. package/azure/elastigroup.js.map +1 -1
  28. package/azure/ocean.d.ts +93 -5
  29. package/azure/ocean.js +93 -5
  30. package/azure/ocean.js.map +1 -1
  31. package/azure/oceanVirtualNodeGroup.d.ts +20 -19
  32. package/azure/oceanVirtualNodeGroup.js +20 -19
  33. package/azure/oceanVirtualNodeGroup.js.map +1 -1
  34. package/dataIntegration.d.ts +2 -1
  35. package/dataIntegration.js +2 -1
  36. package/dataIntegration.js.map +1 -1
  37. package/ecs/oceanLaunchSpec.d.ts +51 -51
  38. package/ecs/oceanLaunchSpec.js +51 -51
  39. package/gcp/elastigroup.d.ts +45 -62
  40. package/gcp/elastigroup.js +45 -44
  41. package/gcp/elastigroup.js.map +1 -1
  42. package/gke/elastigroup.d.ts +23 -22
  43. package/gke/elastigroup.js +23 -22
  44. package/gke/elastigroup.js.map +1 -1
  45. package/gke/oceanImport.d.ts +13 -57
  46. package/gke/oceanImport.js +13 -57
  47. package/gke/oceanImport.js.map +1 -1
  48. package/gke/oceanLaunchSpec.d.ts +55 -67
  49. package/gke/oceanLaunchSpec.js +55 -67
  50. package/gke/oceanLaunchSpec.js.map +1 -1
  51. package/gke/oceanLaunchSpecImport.d.ts +1 -1
  52. package/gke/oceanLaunchSpecImport.js +1 -1
  53. package/organization/policy.d.ts +2 -1
  54. package/organization/policy.js +2 -1
  55. package/organization/policy.js.map +1 -1
  56. package/organization/programmaticUser.d.ts +3 -2
  57. package/organization/programmaticUser.js +3 -2
  58. package/organization/programmaticUser.js.map +1 -1
  59. package/organization/user.d.ts +3 -3
  60. package/organization/user.js +3 -3
  61. package/organization/userGroup.d.ts +3 -2
  62. package/organization/userGroup.js +3 -2
  63. package/organization/userGroup.js.map +1 -1
  64. package/package.json +1 -1
  65. package/spark/oceanVirtualNodeGroup.d.ts +1 -1
  66. package/spark/oceanVirtualNodeGroup.js +1 -1
  67. package/statefulNodeAzure.d.ts +2 -2
  68. package/statefulNodeAzure.js +2 -2
  69. package/subscription.d.ts +3 -3
  70. package/subscription.js +3 -3
  71. package/types/input.d.ts +0 -203
  72. package/types/output.d.ts +0 -203
package/aws/mrScalar.d.ts CHANGED
@@ -13,8 +13,32 @@ import * as outputs from "../types/output";
13
13
  * import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as spotinst from "@pulumi/spotinst";
15
15
  *
16
+ * // Create a Mr Scaler with New strategy
16
17
  * const sample_MrScaler_01 = new spotinst.aws.MrScalar("sample-MrScaler-01", {
18
+ * name: "sample-MrScaler-01",
19
+ * description: "Testing MrScaler creation",
20
+ * region: "us-west-2",
21
+ * strategy: "new",
22
+ * releaseLabel: "emr-5.17.0",
23
+ * retries: 2,
24
+ * availabilityZones: ["us-west-2a:subnet-123456"],
25
+ * provisioningTimeout: {
26
+ * timeout: 15,
27
+ * timeoutAction: "terminateAndRetry",
28
+ * },
29
+ * logUri: "s3://example-logs",
17
30
  * additionalInfo: "{'test':'more information'}",
31
+ * jobFlowRole: "EMR_EC2_ExampleRole",
32
+ * securityConfig: "example-config",
33
+ * serviceRole: "example-role",
34
+ * terminationProtected: false,
35
+ * keepJobFlowAlive: true,
36
+ * customAmiId: "ami-123456",
37
+ * repoUpgradeOnBoot: "NONE",
38
+ * ec2KeyName: "test-key",
39
+ * managedPrimarySecurityGroup: "sg-123456",
40
+ * managedReplicaSecurityGroup: "sg-987654",
41
+ * serviceAccessSecurityGroup: "access-example",
18
42
  * additionalPrimarySecurityGroups: ["sg-456321"],
19
43
  * additionalReplicaSecurityGroups: ["sg-123654"],
20
44
  * applications: [
@@ -26,40 +50,13 @@ import * as outputs from "../types/output";
26
50
  * name: "Hadoop",
27
51
  * },
28
52
  * {
53
+ * name: "Pig",
29
54
  * args: [
30
55
  * "fake",
31
56
  * "args",
32
57
  * ],
33
- * name: "Pig",
34
58
  * },
35
59
  * ],
36
- * availabilityZones: ["us-west-2a:subnet-123456"],
37
- * bootstrapActionsFiles: [{
38
- * bucket: "sample-emr-test",
39
- * key: "bootstrap-actions.json",
40
- * }],
41
- * configurationsFiles: [{
42
- * bucket: "example-bucket",
43
- * key: "configurations.json",
44
- * }],
45
- * coreDesiredCapacity: 1,
46
- * coreEbsBlockDevices: [{
47
- * sizeInGb: 40,
48
- * volumeType: "gp2",
49
- * volumesPerInstance: 2,
50
- * }],
51
- * coreEbsOptimized: false,
52
- * coreInstanceTypes: [
53
- * "c3.xlarge",
54
- * "c4.xlarge",
55
- * ],
56
- * coreLifecycle: "ON_DEMAND",
57
- * coreMaxSize: 1,
58
- * coreMinSize: 1,
59
- * coreUnit: "instance",
60
- * customAmiId: "ami-123456",
61
- * description: "Testing MrScaler creation",
62
- * ec2KeyName: "test-key",
63
60
  * instanceWeights: [
64
61
  * {
65
62
  * instanceType: "t2.small",
@@ -70,56 +67,61 @@ import * as outputs from "../types/output";
70
67
  * weightedCapacity: 90,
71
68
  * },
72
69
  * ],
73
- * jobFlowRole: "EMR_EC2_ExampleRole",
74
- * keepJobFlowAlive: true,
75
- * logUri: "s3://example-logs",
76
- * managedPrimarySecurityGroup: "sg-123456",
77
- * managedReplicaSecurityGroup: "sg-987654",
78
- * masterEbsBlockDevices: [{
79
- * sizeInGb: 30,
80
- * volumeType: "gp2",
81
- * volumesPerInstance: 1,
82
- * }],
83
- * masterEbsOptimized: true,
84
- * masterInstanceTypes: ["c3.xlarge"],
85
- * masterLifecycle: "SPOT",
86
- * masterTarget: 1,
87
- * provisioningTimeout: {
88
- * timeout: 15,
89
- * timeoutAction: "terminateAndRetry",
90
- * },
91
- * region: "us-west-2",
92
- * releaseLabel: "emr-5.17.0",
93
- * repoUpgradeOnBoot: "NONE",
94
- * retries: 2,
95
- * securityConfig: "example-config",
96
- * serviceAccessSecurityGroup: "access-example",
97
- * serviceRole: "example-role",
98
70
  * stepsFiles: [{
99
71
  * bucket: "example-bucket",
100
72
  * key: "steps.json",
101
73
  * }],
102
- * strategy: "new",
103
- * tags: [{
104
- * key: "Creator",
105
- * value: "Pulumi",
74
+ * configurationsFiles: [{
75
+ * bucket: "example-bucket",
76
+ * key: "configurations.json",
106
77
  * }],
107
- * taskDesiredCapacity: 1,
108
- * taskEbsBlockDevices: [{
109
- * sizeInGb: 40,
78
+ * bootstrapActionsFiles: [{
79
+ * bucket: "sample-emr-test",
80
+ * key: "bootstrap-actions.json",
81
+ * }],
82
+ * masterInstanceTypes: ["c3.xlarge"],
83
+ * masterLifecycle: "SPOT",
84
+ * masterEbsOptimized: true,
85
+ * masterTarget: 1,
86
+ * masterEbsBlockDevices: [{
87
+ * volumesPerInstance: 1,
110
88
  * volumeType: "gp2",
89
+ * sizeInGb: 30,
90
+ * }],
91
+ * coreInstanceTypes: [
92
+ * "c3.xlarge",
93
+ * "c4.xlarge",
94
+ * ],
95
+ * coreMinSize: 1,
96
+ * coreMaxSize: 1,
97
+ * coreDesiredCapacity: 1,
98
+ * coreLifecycle: "ON_DEMAND",
99
+ * coreEbsOptimized: false,
100
+ * coreUnit: "instance",
101
+ * coreEbsBlockDevices: [{
111
102
  * volumesPerInstance: 2,
103
+ * volumeType: "gp2",
104
+ * sizeInGb: 40,
112
105
  * }],
113
- * taskEbsOptimized: false,
114
106
  * taskInstanceTypes: [
115
107
  * "c3.xlarge",
116
108
  * "c4.xlarge",
117
109
  * ],
118
- * taskLifecycle: "SPOT",
119
- * taskMaxSize: 30,
120
110
  * taskMinSize: 0,
111
+ * taskMaxSize: 30,
112
+ * taskDesiredCapacity: 1,
113
+ * taskLifecycle: "SPOT",
114
+ * taskEbsOptimized: false,
121
115
  * taskUnit: "instance",
122
- * terminationProtected: false,
116
+ * taskEbsBlockDevices: [{
117
+ * volumesPerInstance: 2,
118
+ * volumeType: "gp2",
119
+ * sizeInGb: 40,
120
+ * }],
121
+ * tags: [{
122
+ * key: "Creator",
123
+ * value: "Pulumi",
124
+ * }],
123
125
  * });
124
126
  * ```
125
127
  * <!--End PulumiCodeChooser -->
@@ -133,77 +135,78 @@ import * as outputs from "../types/output";
133
135
  *
134
136
  * export = async () => {
135
137
  * const sample_MrScaler_01 = new spotinst.aws.MrScalar("sample-MrScaler-01", {
136
- * availabilityZones: ["us-west-2a:subnet-12345678"],
138
+ * name: "sample-MrScaler-01",
139
+ * description: "Testing MrScaler creation",
140
+ * region: "us-west-2",
141
+ * strategy: "clone",
137
142
  * clusterId: "j-123456789",
138
- * coreDesiredCapacity: 1,
139
- * coreEbsBlockDevices: [{
140
- * sizeInGb: 40,
143
+ * exposeClusterId: true,
144
+ * availabilityZones: ["us-west-2a:subnet-12345678"],
145
+ * masterInstanceTypes: ["c3.xlarge"],
146
+ * masterLifecycle: "SPOT",
147
+ * masterEbsOptimized: true,
148
+ * masterTarget: 1,
149
+ * masterEbsBlockDevices: [{
150
+ * volumesPerInstance: 1,
141
151
  * volumeType: "gp2",
142
- * volumesPerInstance: 2,
152
+ * sizeInGb: 30,
143
153
  * }],
144
- * coreEbsOptimized: false,
145
154
  * coreInstanceTypes: [
146
155
  * "c3.xlarge",
147
156
  * "c4.xlarge",
148
157
  * ],
149
- * coreLifecycle: "ON_DEMAND",
150
- * coreMaxSize: 1,
151
158
  * coreMinSize: 1,
159
+ * coreMaxSize: 1,
160
+ * coreDesiredCapacity: 1,
161
+ * coreLifecycle: "ON_DEMAND",
162
+ * coreEbsOptimized: false,
152
163
  * coreUnit: "instance",
153
- * description: "Testing MrScaler creation",
154
- * exposeClusterId: true,
155
- * masterEbsBlockDevices: [{
156
- * sizeInGb: 30,
164
+ * coreEbsBlockDevices: [{
165
+ * volumesPerInstance: 2,
157
166
  * volumeType: "gp2",
158
- * volumesPerInstance: 1,
159
- * }],
160
- * masterEbsOptimized: true,
161
- * masterInstanceTypes: ["c3.xlarge"],
162
- * masterLifecycle: "SPOT",
163
- * masterTarget: 1,
164
- * region: "us-west-2",
165
- * strategy: "clone",
166
- * tags: [{
167
- * key: "Creator",
168
- * value: "Pulumi",
169
- * }],
170
- * taskDesiredCapacity: 1,
171
- * taskEbsBlockDevices: [{
172
167
  * sizeInGb: 40,
173
- * volumeType: "gp2",
174
- * volumesPerInstance: 2,
175
168
  * }],
176
- * taskEbsOptimized: false,
177
169
  * taskInstanceTypes: [
178
170
  * "c3.xlarge",
179
171
  * "c4.xlarge",
180
172
  * ],
181
- * taskLifecycle: "SPOT",
182
- * taskMaxSize: 30,
183
173
  * taskMinSize: 0,
174
+ * taskMaxSize: 30,
175
+ * taskDesiredCapacity: 1,
176
+ * taskLifecycle: "SPOT",
177
+ * taskEbsOptimized: false,
178
+ * taskUnit: "instance",
179
+ * taskEbsBlockDevices: [{
180
+ * volumesPerInstance: 2,
181
+ * volumeType: "gp2",
182
+ * sizeInGb: 40,
183
+ * }],
184
+ * tags: [{
185
+ * key: "Creator",
186
+ * value: "Pulumi",
187
+ * }],
184
188
  * taskScalingDownPolicies: [{
185
- * actionType: "",
189
+ * policyName: "policy-name",
190
+ * metricName: "CPUUtilization",
191
+ * namespace: "AWS/EC2",
192
+ * statistic: "average",
193
+ * unit: "",
194
+ * threshold: 10,
186
195
  * adjustment: "1",
187
196
  * cooldown: 60,
188
- * dimensions: {
197
+ * dimensions: [{
189
198
  * name: "name-1",
190
199
  * value: "value-1",
191
- * },
192
- * evaluationPeriods: 10,
193
- * maxTargetCapacity: "1",
194
- * maximum: "10",
195
- * metricName: "CPUUtilization",
196
- * minimum: "0",
197
- * namespace: "AWS/EC2",
200
+ * }],
198
201
  * operator: "gt",
202
+ * evaluationPeriods: 10,
199
203
  * period: 60,
200
- * policyName: "policy-name",
201
- * statistic: "average",
204
+ * actionType: "",
205
+ * minimum: "0",
206
+ * maximum: "10",
202
207
  * target: "5",
203
- * threshold: 10,
204
- * unit: "",
208
+ * maxTargetCapacity: "1",
205
209
  * }],
206
- * taskUnit: "instance",
207
210
  * });
208
211
  * return {
209
212
  * "mrscaler-name": sample_MrScaler_01.name,
@@ -220,25 +223,27 @@ import * as outputs from "../types/output";
220
223
  * import * as pulumi from "@pulumi/pulumi";
221
224
  * import * as spotinst from "@pulumi/spotinst";
222
225
  *
226
+ * // Create a Mr Scaler with Wrap strategy
223
227
  * const example_scaler_2 = new spotinst.aws.MrScalar("example-scaler-2", {
224
- * clusterId: "j-27UVDEHXL4OQM",
228
+ * name: "spotinst-mr-scaler-2",
225
229
  * description: "created by Pulumi",
226
230
  * region: "us-west-2",
227
231
  * strategy: "wrap",
228
- * taskDesiredCapacity: 2,
229
- * taskEbsBlockDevices: [{
230
- * sizeInGb: 20,
231
- * volumeType: "gp2",
232
- * volumesPerInstance: 1,
233
- * }],
232
+ * clusterId: "j-27UVDEHXL4OQM",
234
233
  * taskInstanceTypes: [
235
234
  * "c3.xlarge",
236
235
  * "c4.xlarge",
237
236
  * ],
238
- * taskLifecycle: "SPOT",
239
- * taskMaxSize: 4,
237
+ * taskDesiredCapacity: 2,
240
238
  * taskMinSize: 0,
239
+ * taskMaxSize: 4,
240
+ * taskLifecycle: "SPOT",
241
241
  * taskUnit: "instance",
242
+ * taskEbsBlockDevices: [{
243
+ * volumesPerInstance: 1,
244
+ * volumeType: "gp2",
245
+ * sizeInGb: 20,
246
+ * }],
242
247
  * });
243
248
  * ```
244
249
  * <!--End PulumiCodeChooser -->
package/aws/mrScalar.js CHANGED
@@ -17,8 +17,32 @@ const utilities = require("../utilities");
17
17
  * import * as pulumi from "@pulumi/pulumi";
18
18
  * import * as spotinst from "@pulumi/spotinst";
19
19
  *
20
+ * // Create a Mr Scaler with New strategy
20
21
  * const sample_MrScaler_01 = new spotinst.aws.MrScalar("sample-MrScaler-01", {
22
+ * name: "sample-MrScaler-01",
23
+ * description: "Testing MrScaler creation",
24
+ * region: "us-west-2",
25
+ * strategy: "new",
26
+ * releaseLabel: "emr-5.17.0",
27
+ * retries: 2,
28
+ * availabilityZones: ["us-west-2a:subnet-123456"],
29
+ * provisioningTimeout: {
30
+ * timeout: 15,
31
+ * timeoutAction: "terminateAndRetry",
32
+ * },
33
+ * logUri: "s3://example-logs",
21
34
  * additionalInfo: "{'test':'more information'}",
35
+ * jobFlowRole: "EMR_EC2_ExampleRole",
36
+ * securityConfig: "example-config",
37
+ * serviceRole: "example-role",
38
+ * terminationProtected: false,
39
+ * keepJobFlowAlive: true,
40
+ * customAmiId: "ami-123456",
41
+ * repoUpgradeOnBoot: "NONE",
42
+ * ec2KeyName: "test-key",
43
+ * managedPrimarySecurityGroup: "sg-123456",
44
+ * managedReplicaSecurityGroup: "sg-987654",
45
+ * serviceAccessSecurityGroup: "access-example",
22
46
  * additionalPrimarySecurityGroups: ["sg-456321"],
23
47
  * additionalReplicaSecurityGroups: ["sg-123654"],
24
48
  * applications: [
@@ -30,40 +54,13 @@ const utilities = require("../utilities");
30
54
  * name: "Hadoop",
31
55
  * },
32
56
  * {
57
+ * name: "Pig",
33
58
  * args: [
34
59
  * "fake",
35
60
  * "args",
36
61
  * ],
37
- * name: "Pig",
38
62
  * },
39
63
  * ],
40
- * availabilityZones: ["us-west-2a:subnet-123456"],
41
- * bootstrapActionsFiles: [{
42
- * bucket: "sample-emr-test",
43
- * key: "bootstrap-actions.json",
44
- * }],
45
- * configurationsFiles: [{
46
- * bucket: "example-bucket",
47
- * key: "configurations.json",
48
- * }],
49
- * coreDesiredCapacity: 1,
50
- * coreEbsBlockDevices: [{
51
- * sizeInGb: 40,
52
- * volumeType: "gp2",
53
- * volumesPerInstance: 2,
54
- * }],
55
- * coreEbsOptimized: false,
56
- * coreInstanceTypes: [
57
- * "c3.xlarge",
58
- * "c4.xlarge",
59
- * ],
60
- * coreLifecycle: "ON_DEMAND",
61
- * coreMaxSize: 1,
62
- * coreMinSize: 1,
63
- * coreUnit: "instance",
64
- * customAmiId: "ami-123456",
65
- * description: "Testing MrScaler creation",
66
- * ec2KeyName: "test-key",
67
64
  * instanceWeights: [
68
65
  * {
69
66
  * instanceType: "t2.small",
@@ -74,56 +71,61 @@ const utilities = require("../utilities");
74
71
  * weightedCapacity: 90,
75
72
  * },
76
73
  * ],
77
- * jobFlowRole: "EMR_EC2_ExampleRole",
78
- * keepJobFlowAlive: true,
79
- * logUri: "s3://example-logs",
80
- * managedPrimarySecurityGroup: "sg-123456",
81
- * managedReplicaSecurityGroup: "sg-987654",
82
- * masterEbsBlockDevices: [{
83
- * sizeInGb: 30,
84
- * volumeType: "gp2",
85
- * volumesPerInstance: 1,
86
- * }],
87
- * masterEbsOptimized: true,
88
- * masterInstanceTypes: ["c3.xlarge"],
89
- * masterLifecycle: "SPOT",
90
- * masterTarget: 1,
91
- * provisioningTimeout: {
92
- * timeout: 15,
93
- * timeoutAction: "terminateAndRetry",
94
- * },
95
- * region: "us-west-2",
96
- * releaseLabel: "emr-5.17.0",
97
- * repoUpgradeOnBoot: "NONE",
98
- * retries: 2,
99
- * securityConfig: "example-config",
100
- * serviceAccessSecurityGroup: "access-example",
101
- * serviceRole: "example-role",
102
74
  * stepsFiles: [{
103
75
  * bucket: "example-bucket",
104
76
  * key: "steps.json",
105
77
  * }],
106
- * strategy: "new",
107
- * tags: [{
108
- * key: "Creator",
109
- * value: "Pulumi",
78
+ * configurationsFiles: [{
79
+ * bucket: "example-bucket",
80
+ * key: "configurations.json",
110
81
  * }],
111
- * taskDesiredCapacity: 1,
112
- * taskEbsBlockDevices: [{
113
- * sizeInGb: 40,
82
+ * bootstrapActionsFiles: [{
83
+ * bucket: "sample-emr-test",
84
+ * key: "bootstrap-actions.json",
85
+ * }],
86
+ * masterInstanceTypes: ["c3.xlarge"],
87
+ * masterLifecycle: "SPOT",
88
+ * masterEbsOptimized: true,
89
+ * masterTarget: 1,
90
+ * masterEbsBlockDevices: [{
91
+ * volumesPerInstance: 1,
114
92
  * volumeType: "gp2",
93
+ * sizeInGb: 30,
94
+ * }],
95
+ * coreInstanceTypes: [
96
+ * "c3.xlarge",
97
+ * "c4.xlarge",
98
+ * ],
99
+ * coreMinSize: 1,
100
+ * coreMaxSize: 1,
101
+ * coreDesiredCapacity: 1,
102
+ * coreLifecycle: "ON_DEMAND",
103
+ * coreEbsOptimized: false,
104
+ * coreUnit: "instance",
105
+ * coreEbsBlockDevices: [{
115
106
  * volumesPerInstance: 2,
107
+ * volumeType: "gp2",
108
+ * sizeInGb: 40,
116
109
  * }],
117
- * taskEbsOptimized: false,
118
110
  * taskInstanceTypes: [
119
111
  * "c3.xlarge",
120
112
  * "c4.xlarge",
121
113
  * ],
122
- * taskLifecycle: "SPOT",
123
- * taskMaxSize: 30,
124
114
  * taskMinSize: 0,
115
+ * taskMaxSize: 30,
116
+ * taskDesiredCapacity: 1,
117
+ * taskLifecycle: "SPOT",
118
+ * taskEbsOptimized: false,
125
119
  * taskUnit: "instance",
126
- * terminationProtected: false,
120
+ * taskEbsBlockDevices: [{
121
+ * volumesPerInstance: 2,
122
+ * volumeType: "gp2",
123
+ * sizeInGb: 40,
124
+ * }],
125
+ * tags: [{
126
+ * key: "Creator",
127
+ * value: "Pulumi",
128
+ * }],
127
129
  * });
128
130
  * ```
129
131
  * <!--End PulumiCodeChooser -->
@@ -137,77 +139,78 @@ const utilities = require("../utilities");
137
139
  *
138
140
  * export = async () => {
139
141
  * const sample_MrScaler_01 = new spotinst.aws.MrScalar("sample-MrScaler-01", {
140
- * availabilityZones: ["us-west-2a:subnet-12345678"],
142
+ * name: "sample-MrScaler-01",
143
+ * description: "Testing MrScaler creation",
144
+ * region: "us-west-2",
145
+ * strategy: "clone",
141
146
  * clusterId: "j-123456789",
142
- * coreDesiredCapacity: 1,
143
- * coreEbsBlockDevices: [{
144
- * sizeInGb: 40,
147
+ * exposeClusterId: true,
148
+ * availabilityZones: ["us-west-2a:subnet-12345678"],
149
+ * masterInstanceTypes: ["c3.xlarge"],
150
+ * masterLifecycle: "SPOT",
151
+ * masterEbsOptimized: true,
152
+ * masterTarget: 1,
153
+ * masterEbsBlockDevices: [{
154
+ * volumesPerInstance: 1,
145
155
  * volumeType: "gp2",
146
- * volumesPerInstance: 2,
156
+ * sizeInGb: 30,
147
157
  * }],
148
- * coreEbsOptimized: false,
149
158
  * coreInstanceTypes: [
150
159
  * "c3.xlarge",
151
160
  * "c4.xlarge",
152
161
  * ],
153
- * coreLifecycle: "ON_DEMAND",
154
- * coreMaxSize: 1,
155
162
  * coreMinSize: 1,
163
+ * coreMaxSize: 1,
164
+ * coreDesiredCapacity: 1,
165
+ * coreLifecycle: "ON_DEMAND",
166
+ * coreEbsOptimized: false,
156
167
  * coreUnit: "instance",
157
- * description: "Testing MrScaler creation",
158
- * exposeClusterId: true,
159
- * masterEbsBlockDevices: [{
160
- * sizeInGb: 30,
168
+ * coreEbsBlockDevices: [{
169
+ * volumesPerInstance: 2,
161
170
  * volumeType: "gp2",
162
- * volumesPerInstance: 1,
163
- * }],
164
- * masterEbsOptimized: true,
165
- * masterInstanceTypes: ["c3.xlarge"],
166
- * masterLifecycle: "SPOT",
167
- * masterTarget: 1,
168
- * region: "us-west-2",
169
- * strategy: "clone",
170
- * tags: [{
171
- * key: "Creator",
172
- * value: "Pulumi",
173
- * }],
174
- * taskDesiredCapacity: 1,
175
- * taskEbsBlockDevices: [{
176
171
  * sizeInGb: 40,
177
- * volumeType: "gp2",
178
- * volumesPerInstance: 2,
179
172
  * }],
180
- * taskEbsOptimized: false,
181
173
  * taskInstanceTypes: [
182
174
  * "c3.xlarge",
183
175
  * "c4.xlarge",
184
176
  * ],
185
- * taskLifecycle: "SPOT",
186
- * taskMaxSize: 30,
187
177
  * taskMinSize: 0,
178
+ * taskMaxSize: 30,
179
+ * taskDesiredCapacity: 1,
180
+ * taskLifecycle: "SPOT",
181
+ * taskEbsOptimized: false,
182
+ * taskUnit: "instance",
183
+ * taskEbsBlockDevices: [{
184
+ * volumesPerInstance: 2,
185
+ * volumeType: "gp2",
186
+ * sizeInGb: 40,
187
+ * }],
188
+ * tags: [{
189
+ * key: "Creator",
190
+ * value: "Pulumi",
191
+ * }],
188
192
  * taskScalingDownPolicies: [{
189
- * actionType: "",
193
+ * policyName: "policy-name",
194
+ * metricName: "CPUUtilization",
195
+ * namespace: "AWS/EC2",
196
+ * statistic: "average",
197
+ * unit: "",
198
+ * threshold: 10,
190
199
  * adjustment: "1",
191
200
  * cooldown: 60,
192
- * dimensions: {
201
+ * dimensions: [{
193
202
  * name: "name-1",
194
203
  * value: "value-1",
195
- * },
196
- * evaluationPeriods: 10,
197
- * maxTargetCapacity: "1",
198
- * maximum: "10",
199
- * metricName: "CPUUtilization",
200
- * minimum: "0",
201
- * namespace: "AWS/EC2",
204
+ * }],
202
205
  * operator: "gt",
206
+ * evaluationPeriods: 10,
203
207
  * period: 60,
204
- * policyName: "policy-name",
205
- * statistic: "average",
208
+ * actionType: "",
209
+ * minimum: "0",
210
+ * maximum: "10",
206
211
  * target: "5",
207
- * threshold: 10,
208
- * unit: "",
212
+ * maxTargetCapacity: "1",
209
213
  * }],
210
- * taskUnit: "instance",
211
214
  * });
212
215
  * return {
213
216
  * "mrscaler-name": sample_MrScaler_01.name,
@@ -224,25 +227,27 @@ const utilities = require("../utilities");
224
227
  * import * as pulumi from "@pulumi/pulumi";
225
228
  * import * as spotinst from "@pulumi/spotinst";
226
229
  *
230
+ * // Create a Mr Scaler with Wrap strategy
227
231
  * const example_scaler_2 = new spotinst.aws.MrScalar("example-scaler-2", {
228
- * clusterId: "j-27UVDEHXL4OQM",
232
+ * name: "spotinst-mr-scaler-2",
229
233
  * description: "created by Pulumi",
230
234
  * region: "us-west-2",
231
235
  * strategy: "wrap",
232
- * taskDesiredCapacity: 2,
233
- * taskEbsBlockDevices: [{
234
- * sizeInGb: 20,
235
- * volumeType: "gp2",
236
- * volumesPerInstance: 1,
237
- * }],
236
+ * clusterId: "j-27UVDEHXL4OQM",
238
237
  * taskInstanceTypes: [
239
238
  * "c3.xlarge",
240
239
  * "c4.xlarge",
241
240
  * ],
242
- * taskLifecycle: "SPOT",
243
- * taskMaxSize: 4,
241
+ * taskDesiredCapacity: 2,
244
242
  * taskMinSize: 0,
243
+ * taskMaxSize: 4,
244
+ * taskLifecycle: "SPOT",
245
245
  * taskUnit: "instance",
246
+ * taskEbsBlockDevices: [{
247
+ * volumesPerInstance: 1,
248
+ * volumeType: "gp2",
249
+ * sizeInGb: 20,
250
+ * }],
246
251
  * });
247
252
  * ```
248
253
  * <!--End PulumiCodeChooser -->