cdk-ec2spot 0.1.68 → 1.0.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/.gitattributes +23 -21
- package/.jsii +2677 -836
- package/API.md +17 -17
- package/CHANGELOG.md +1 -96
- package/README.md +15 -0
- package/lib/index.d.ts +20 -138
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +34 -68
- package/lib/integ.default.d.ts +3 -2
- package/lib/integ.default.d.ts.map +1 -0
- package/lib/integ.default.js +6 -7
- package/package.json +31 -31
- package/releasetag.txt +1 -0
- package/version.txt +1 -0
package/API.md
CHANGED
|
@@ -14,7 +14,7 @@ new Provider(scope: Construct, id: string)
|
|
|
14
14
|
|
|
15
15
|
##### `scope`<sup>Required</sup> <a name="cdk-ec2spot.Provider.parameter.scope"></a>
|
|
16
16
|
|
|
17
|
-
- *Type:* [
|
|
17
|
+
- *Type:* [`constructs.Construct`](#constructs.Construct)
|
|
18
18
|
|
|
19
19
|
---
|
|
20
20
|
|
|
@@ -130,7 +130,7 @@ public getOrCreateVpc(scope: Construct)
|
|
|
130
130
|
|
|
131
131
|
###### `scope`<sup>Required</sup> <a name="cdk-ec2spot.Provider.parameter.scope"></a>
|
|
132
132
|
|
|
133
|
-
- *Type:* [
|
|
133
|
+
- *Type:* [`constructs.Construct`](#constructs.Construct)
|
|
134
134
|
|
|
135
135
|
---
|
|
136
136
|
|
|
@@ -166,7 +166,7 @@ const autoScalingGroupOptions: AutoScalingGroupOptions = { ... }
|
|
|
166
166
|
public readonly instanceProfile: CfnInstanceProfile;
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
-
- *Type:* [
|
|
169
|
+
- *Type:* [`aws-cdk-lib.aws_iam.CfnInstanceProfile`](#aws-cdk-lib.aws_iam.CfnInstanceProfile)
|
|
170
170
|
|
|
171
171
|
---
|
|
172
172
|
|
|
@@ -176,7 +176,7 @@ public readonly instanceProfile: CfnInstanceProfile;
|
|
|
176
176
|
public readonly instanceType: InstanceType;
|
|
177
177
|
```
|
|
178
178
|
|
|
179
|
-
- *Type:* [
|
|
179
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.InstanceType`](#aws-cdk-lib.aws_ec2.InstanceType)
|
|
180
180
|
|
|
181
181
|
---
|
|
182
182
|
|
|
@@ -186,7 +186,7 @@ public readonly instanceType: InstanceType;
|
|
|
186
186
|
public readonly machineImage: IMachineImage;
|
|
187
187
|
```
|
|
188
188
|
|
|
189
|
-
- *Type:* [
|
|
189
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.IMachineImage`](#aws-cdk-lib.aws_ec2.IMachineImage)
|
|
190
190
|
|
|
191
191
|
---
|
|
192
192
|
|
|
@@ -206,7 +206,7 @@ public readonly spotOptions: SpotOptions;
|
|
|
206
206
|
public readonly userData: UserData;
|
|
207
207
|
```
|
|
208
208
|
|
|
209
|
-
- *Type:* [
|
|
209
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.UserData`](#aws-cdk-lib.aws_ec2.UserData)
|
|
210
210
|
|
|
211
211
|
---
|
|
212
212
|
|
|
@@ -216,7 +216,7 @@ public readonly userData: UserData;
|
|
|
216
216
|
public readonly vpc: IVpc;
|
|
217
217
|
```
|
|
218
218
|
|
|
219
|
-
- *Type:* [
|
|
219
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.IVpc`](#aws-cdk-lib.aws_ec2.IVpc)
|
|
220
220
|
|
|
221
221
|
The vpc for the AutoScalingGroup.
|
|
222
222
|
|
|
@@ -251,7 +251,7 @@ const launchTemplateOptions: LaunchTemplateOptions = { ... }
|
|
|
251
251
|
public readonly instanceProfile: CfnInstanceProfile;
|
|
252
252
|
```
|
|
253
253
|
|
|
254
|
-
- *Type:* [
|
|
254
|
+
- *Type:* [`aws-cdk-lib.aws_iam.CfnInstanceProfile`](#aws-cdk-lib.aws_iam.CfnInstanceProfile)
|
|
255
255
|
|
|
256
256
|
---
|
|
257
257
|
|
|
@@ -261,7 +261,7 @@ public readonly instanceProfile: CfnInstanceProfile;
|
|
|
261
261
|
public readonly instanceType: InstanceType;
|
|
262
262
|
```
|
|
263
263
|
|
|
264
|
-
- *Type:* [
|
|
264
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.InstanceType`](#aws-cdk-lib.aws_ec2.InstanceType)
|
|
265
265
|
|
|
266
266
|
---
|
|
267
267
|
|
|
@@ -271,7 +271,7 @@ public readonly instanceType: InstanceType;
|
|
|
271
271
|
public readonly machineImage: IMachineImage;
|
|
272
272
|
```
|
|
273
273
|
|
|
274
|
-
- *Type:* [
|
|
274
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.IMachineImage`](#aws-cdk-lib.aws_ec2.IMachineImage)
|
|
275
275
|
|
|
276
276
|
---
|
|
277
277
|
|
|
@@ -291,7 +291,7 @@ public readonly spotOptions: SpotOptions;
|
|
|
291
291
|
public readonly userData: UserData;
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
-
- *Type:* [
|
|
294
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.UserData`](#aws-cdk-lib.aws_ec2.UserData)
|
|
295
295
|
|
|
296
296
|
---
|
|
297
297
|
|
|
@@ -311,7 +311,7 @@ const spotFleetOptions: SpotFleetOptions = { ... }
|
|
|
311
311
|
public readonly instanceProfile: CfnInstanceProfile;
|
|
312
312
|
```
|
|
313
313
|
|
|
314
|
-
- *Type:* [
|
|
314
|
+
- *Type:* [`aws-cdk-lib.aws_iam.CfnInstanceProfile`](#aws-cdk-lib.aws_iam.CfnInstanceProfile)
|
|
315
315
|
|
|
316
316
|
---
|
|
317
317
|
|
|
@@ -321,7 +321,7 @@ public readonly instanceProfile: CfnInstanceProfile;
|
|
|
321
321
|
public readonly instanceType: InstanceType;
|
|
322
322
|
```
|
|
323
323
|
|
|
324
|
-
- *Type:* [
|
|
324
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.InstanceType`](#aws-cdk-lib.aws_ec2.InstanceType)
|
|
325
325
|
|
|
326
326
|
---
|
|
327
327
|
|
|
@@ -331,7 +331,7 @@ public readonly instanceType: InstanceType;
|
|
|
331
331
|
public readonly machineImage: IMachineImage;
|
|
332
332
|
```
|
|
333
333
|
|
|
334
|
-
- *Type:* [
|
|
334
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.IMachineImage`](#aws-cdk-lib.aws_ec2.IMachineImage)
|
|
335
335
|
|
|
336
336
|
---
|
|
337
337
|
|
|
@@ -351,7 +351,7 @@ public readonly spotOptions: SpotOptions;
|
|
|
351
351
|
public readonly userData: UserData;
|
|
352
352
|
```
|
|
353
353
|
|
|
354
|
-
- *Type:* [
|
|
354
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.UserData`](#aws-cdk-lib.aws_ec2.UserData)
|
|
355
355
|
|
|
356
356
|
---
|
|
357
357
|
|
|
@@ -361,7 +361,7 @@ public readonly userData: UserData;
|
|
|
361
361
|
public readonly vpc: IVpc;
|
|
362
362
|
```
|
|
363
363
|
|
|
364
|
-
- *Type:* [
|
|
364
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.IVpc`](#aws-cdk-lib.aws_ec2.IVpc)
|
|
365
365
|
|
|
366
366
|
The vpc for the AutoScalingGroup.
|
|
367
367
|
|
|
@@ -425,7 +425,7 @@ The timestamp of the beginning of the valid duration.
|
|
|
425
425
|
public readonly vpcSubnet: SubnetSelection;
|
|
426
426
|
```
|
|
427
427
|
|
|
428
|
-
- *Type:* [
|
|
428
|
+
- *Type:* [`aws-cdk-lib.aws_ec2.SubnetSelection`](#aws-cdk-lib.aws_ec2.SubnetSelection)
|
|
429
429
|
- *Default:* ec2.SubnetType.PRIVATE
|
|
430
430
|
|
|
431
431
|
VPC subnet selection.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,97 +1,2 @@
|
|
|
1
|
-
# Changelog
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
### [0.1.1](https://github.com/pahud/cdk-ec2spot/compare/v0.0.68...v0.1.1) (2021-07-06)
|
|
6
|
-
|
|
7
|
-
## [0.1.0](https://github.com/pahud/cdk-ec2spot/compare/v0.0.68...v0.1.0) (2021-07-06)
|
|
8
|
-
|
|
9
|
-
### [0.0.37](https://github.com/pahud/cdk-ec2spot/compare/v0.0.36...v0.0.37) (2021-02-23)
|
|
10
|
-
|
|
11
|
-
### [0.0.36](https://github.com/pahud/cdk-ec2spot/compare/v0.0.35...v0.0.36) (2021-02-23)
|
|
12
|
-
|
|
13
|
-
### [0.0.35](https://github.com/pahud/cdk-ec2spot/compare/v0.0.34...v0.0.35) (2021-02-19)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
### Features
|
|
17
|
-
|
|
18
|
-
* add spot instance support ([9c3d182](https://github.com/pahud/cdk-ec2spot/commit/9c3d182418660aa1245de760d9aaff6102da9718))
|
|
19
|
-
* spotfleet support ([7e29883](https://github.com/pahud/cdk-ec2spot/commit/7e29883c8cbbd2dc67c8a196e2ac004c5a9e731c))
|
|
20
|
-
|
|
21
|
-
### [0.0.34](https://github.com/pahud/cdk-ec2spot/compare/v0.0.33...v0.0.34) (2021-02-19)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### Features
|
|
25
|
-
|
|
26
|
-
* Spot instance support ([#49](https://github.com/pahud/cdk-ec2spot/issues/49)) ([d2f83af](https://github.com/pahud/cdk-ec2spot/commit/d2f83af51585dc46df9385ade3cbe5e30e48b925))
|
|
27
|
-
|
|
28
|
-
### [0.0.33](https://github.com/pahud/cdk-ec2spot/compare/v0.0.32...v0.0.33) (2021-02-18)
|
|
29
|
-
|
|
30
|
-
### [0.0.32](https://github.com/pahud/cdk-ec2spot/compare/v0.0.31...v0.0.32) (2021-02-17)
|
|
31
|
-
|
|
32
|
-
### [0.0.31](https://github.com/pahud/cdk-ec2spot/compare/v0.0.30...v0.0.31) (2021-02-16)
|
|
33
|
-
|
|
34
|
-
### [0.0.30](https://github.com/pahud/cdk-ec2spot/compare/v0.0.29...v0.0.30) (2021-02-15)
|
|
35
|
-
|
|
36
|
-
### [0.0.29](https://github.com/pahud/cdk-ec2spot/compare/v0.0.28...v0.0.29) (2021-02-14)
|
|
37
|
-
|
|
38
|
-
### [0.0.28](https://github.com/pahud/cdk-ec2spot/compare/v0.0.27...v0.0.28) (2021-02-13)
|
|
39
|
-
|
|
40
|
-
### [0.0.27](https://github.com/pahud/cdk-ec2spot/compare/v0.0.26...v0.0.27) (2021-02-12)
|
|
41
|
-
|
|
42
|
-
### [0.0.26](https://github.com/pahud/cdk-ec2spot/compare/v0.0.25...v0.0.26) (2021-02-11)
|
|
43
|
-
|
|
44
|
-
### [0.0.25](https://github.com/pahud/cdk-ec2spot/compare/v0.0.24...v0.0.25) (2021-02-11)
|
|
45
|
-
|
|
46
|
-
### [0.0.24](https://github.com/pahud/cdk-ec2spot/compare/v0.0.23...v0.0.24) (2021-02-10)
|
|
47
|
-
|
|
48
|
-
### [0.0.23](https://github.com/pahud/cdk-ec2spot/compare/v0.0.22...v0.0.23) (2021-02-09)
|
|
49
|
-
|
|
50
|
-
### [0.0.22](https://github.com/pahud/cdk-ec2spot/compare/v0.0.21...v0.0.22) (2021-02-08)
|
|
51
|
-
|
|
52
|
-
### [0.0.21](https://github.com/pahud/cdk-ec2spot/compare/v0.0.20...v0.0.21) (2021-02-07)
|
|
53
|
-
|
|
54
|
-
### [0.0.20](https://github.com/pahud/cdk-ec2spot/compare/v0.0.19...v0.0.20) (2021-02-06)
|
|
55
|
-
|
|
56
|
-
### [0.0.19](https://github.com/pahud/cdk-ec2spot/compare/v0.0.18...v0.0.19) (2021-02-05)
|
|
57
|
-
|
|
58
|
-
### [0.0.18](https://github.com/pahud/cdk-ec2spot/compare/v0.0.17...v0.0.18) (2021-02-04)
|
|
59
|
-
|
|
60
|
-
### [0.0.17](https://github.com/pahud/cdk-ec2spot/compare/v0.0.16...v0.0.17) (2021-02-04)
|
|
61
|
-
|
|
62
|
-
### [0.0.16](https://github.com/pahud/cdk-ec2spot/compare/v0.0.15...v0.0.16) (2021-02-03)
|
|
63
|
-
|
|
64
|
-
### [0.0.15](https://github.com/pahud/cdk-ec2spot/compare/v0.0.14...v0.0.15) (2021-02-02)
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### Features
|
|
68
|
-
|
|
69
|
-
* spotfleet support ([#20](https://github.com/pahud/cdk-ec2spot/issues/20)) ([7e0f7b7](https://github.com/pahud/cdk-ec2spot/commit/7e0f7b7e3f6dcde4636b970cd0d4b2f53231f6aa)), closes [#19](https://github.com/pahud/cdk-ec2spot/issues/19)
|
|
70
|
-
|
|
71
|
-
### [0.0.14](https://github.com/pahud/cdk-ec2spot/compare/v0.0.13...v0.0.14) (2021-02-02)
|
|
72
|
-
|
|
73
|
-
### [0.0.13](https://github.com/pahud/cdk-ec2spot/compare/v0.0.12...v0.0.13) (2021-02-01)
|
|
74
|
-
|
|
75
|
-
### [0.0.12](https://github.com/pahud/cdk-ec2spot/compare/v0.0.11...v0.0.12) (2021-02-01)
|
|
76
|
-
|
|
77
|
-
### [0.0.11](https://github.com/pahud/cdk-ec2spot/compare/v0.0.10...v0.0.11) (2021-01-30)
|
|
78
|
-
|
|
79
|
-
### [0.0.10](https://github.com/pahud/cdk-ec2spot/compare/v0.0.9...v0.0.10) (2021-01-29)
|
|
80
|
-
|
|
81
|
-
### [0.0.9](https://github.com/pahud/cdk-ec2spot/compare/v0.0.8...v0.0.9) (2021-01-28)
|
|
82
|
-
|
|
83
|
-
### [0.0.8](https://github.com/pahud/cdk-ec2spot/compare/v0.0.7...v0.0.8) (2021-01-27)
|
|
84
|
-
|
|
85
|
-
### [0.0.7](https://github.com/pahud/cdk-ec2spot/compare/v0.0.6...v0.0.7) (2021-01-26)
|
|
86
|
-
|
|
87
|
-
### [0.0.6](https://github.com/pahud/cdk-ec2spot/compare/v0.0.5...v0.0.6) (2021-01-25)
|
|
88
|
-
|
|
89
|
-
### [0.0.5](https://github.com/pahud/cdk-ec2spot/compare/v0.0.4...v0.0.5) (2021-01-23)
|
|
90
|
-
|
|
91
|
-
### [0.0.4](https://github.com/pahud/cdk-ec2spot/compare/v0.0.3...v0.0.4) (2021-01-22)
|
|
92
|
-
|
|
93
|
-
### [0.0.3](https://github.com/pahud/cdk-ec2spot/compare/v0.0.2...v0.0.3) (2021-01-21)
|
|
94
|
-
|
|
95
|
-
### [0.0.2](https://github.com/pahud/cdk-ec2spot/compare/v0.0.1...v0.0.2) (2021-01-20)
|
|
96
|
-
|
|
97
|
-
### 0.0.1 (2021-01-20)
|
|
2
|
+
## [1.0.0](https://github.com/pahud/cdk-ec2spot/compare/v2.0.3...v1.0.0) (2022-05-24)
|
package/README.md
CHANGED
|
@@ -6,6 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
CDK construct library that allows you to create EC2 Spot instances with `AWS AutoScaling Group`, `Spot Fleet` or just single `Spot Instance`.
|
|
8
8
|
|
|
9
|
+
|
|
10
|
+
# Install
|
|
11
|
+
|
|
12
|
+
Use the npm dist tag to opt in CDKv1 or CDKv2:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
// for CDKv2
|
|
16
|
+
npm install cdk-ec2spot
|
|
17
|
+
or
|
|
18
|
+
npm install cdk-ec2spot@latest
|
|
19
|
+
|
|
20
|
+
// for CDKv1
|
|
21
|
+
npm install cdk-ec2spot@cdkv1
|
|
22
|
+
```
|
|
23
|
+
|
|
9
24
|
# Sample
|
|
10
25
|
|
|
11
26
|
```ts
|
package/lib/index.d.ts
CHANGED
|
@@ -1,215 +1,97 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as ec2 from '@aws-cdk/aws-ec2';
|
|
3
|
-
import * as iam from '@aws-cdk/aws-iam';
|
|
4
|
-
import * as cdk from '@aws-cdk/core';
|
|
1
|
+
import { aws_autoscaling as autoscaling, aws_ec2 as ec2, aws_iam as iam } from 'aws-cdk-lib';
|
|
5
2
|
import * as spotone from 'cdk-spot-one';
|
|
6
|
-
|
|
7
|
-
* @stability stable
|
|
8
|
-
*/
|
|
3
|
+
import { Construct } from 'constructs';
|
|
9
4
|
export declare enum SpotInstanceType {
|
|
10
|
-
/**
|
|
11
|
-
* @stability stable
|
|
12
|
-
*/
|
|
13
5
|
ONE_TIME = "one-time",
|
|
14
|
-
/**
|
|
15
|
-
* @stability stable
|
|
16
|
-
*/
|
|
17
6
|
PERSISTENT = "persistent"
|
|
18
7
|
}
|
|
19
|
-
/**
|
|
20
|
-
* @stability stable
|
|
21
|
-
*/
|
|
22
8
|
export declare enum InstanceInterruptionBehavior {
|
|
23
|
-
/**
|
|
24
|
-
* @stability stable
|
|
25
|
-
*/
|
|
26
9
|
HIBERNATE = "hibernate",
|
|
27
|
-
/**
|
|
28
|
-
* @stability stable
|
|
29
|
-
*/
|
|
30
10
|
STOP = "stop",
|
|
31
|
-
/**
|
|
32
|
-
* @stability stable
|
|
33
|
-
*/
|
|
34
11
|
TERMINATE = "terminate"
|
|
35
12
|
}
|
|
36
|
-
/**
|
|
37
|
-
* @stability stable
|
|
38
|
-
*/
|
|
39
13
|
export declare enum BlockDurationMinutes {
|
|
40
|
-
/**
|
|
41
|
-
* @stability stable
|
|
42
|
-
*/
|
|
43
14
|
ONE_HOUR = 60,
|
|
44
|
-
/**
|
|
45
|
-
* @stability stable
|
|
46
|
-
*/
|
|
47
15
|
TWO_HOURS = 120,
|
|
48
|
-
/**
|
|
49
|
-
* @stability stable
|
|
50
|
-
*/
|
|
51
16
|
THREE_HOURS = 180,
|
|
52
|
-
/**
|
|
53
|
-
* @stability stable
|
|
54
|
-
*/
|
|
55
17
|
FOUR_HOURS = 240,
|
|
56
|
-
/**
|
|
57
|
-
* @stability stable
|
|
58
|
-
*/
|
|
59
18
|
FIVE_HOURS = 300,
|
|
60
|
-
/**
|
|
61
|
-
* @stability stable
|
|
62
|
-
*/
|
|
63
19
|
SIX_HOURS = 360
|
|
64
20
|
}
|
|
65
|
-
/**
|
|
66
|
-
* @stability stable
|
|
67
|
-
*/
|
|
68
21
|
export interface SpotOptions {
|
|
69
|
-
/**
|
|
70
|
-
* @stability stable
|
|
71
|
-
*/
|
|
72
22
|
readonly spotInstanceType?: SpotInstanceType;
|
|
73
|
-
/**
|
|
74
|
-
* @stability stable
|
|
75
|
-
*/
|
|
76
23
|
readonly validUntil?: string;
|
|
77
|
-
/**
|
|
78
|
-
* @stability stable
|
|
79
|
-
*/
|
|
80
24
|
readonly maxPrice?: string;
|
|
81
|
-
/**
|
|
82
|
-
* @stability stable
|
|
83
|
-
*/
|
|
84
25
|
readonly instanceInterruptionBehavior?: InstanceInterruptionBehavior;
|
|
85
|
-
/**
|
|
86
|
-
* @stability stable
|
|
87
|
-
*/
|
|
88
26
|
readonly blockDurationMinutes?: BlockDurationMinutes;
|
|
89
27
|
}
|
|
90
|
-
/**
|
|
91
|
-
* @stability stable
|
|
92
|
-
*/
|
|
93
28
|
export interface LaunchTemplateOptions {
|
|
94
|
-
/**
|
|
95
|
-
* @stability stable
|
|
96
|
-
*/
|
|
97
29
|
readonly machineImage?: ec2.IMachineImage;
|
|
98
|
-
/**
|
|
99
|
-
* @stability stable
|
|
100
|
-
*/
|
|
101
30
|
readonly instanceType?: ec2.InstanceType;
|
|
102
|
-
/**
|
|
103
|
-
* @stability stable
|
|
104
|
-
*/
|
|
105
31
|
readonly spotOptions?: SpotOptions;
|
|
106
|
-
/**
|
|
107
|
-
* @stability stable
|
|
108
|
-
*/
|
|
109
32
|
readonly userData?: ec2.UserData;
|
|
110
|
-
/**
|
|
111
|
-
* @stability stable
|
|
112
|
-
*/
|
|
113
33
|
readonly instanceProfile?: iam.CfnInstanceProfile;
|
|
114
34
|
}
|
|
115
|
-
/**
|
|
116
|
-
* @stability stable
|
|
117
|
-
*/
|
|
118
35
|
export interface AutoScalingGroupOptions extends LaunchTemplateOptions {
|
|
119
36
|
/**
|
|
120
|
-
* The vpc for the AutoScalingGroup
|
|
121
|
-
*
|
|
122
|
-
* @stability stable
|
|
37
|
+
* The vpc for the AutoScalingGroup
|
|
123
38
|
*/
|
|
124
39
|
readonly vpc: ec2.IVpc;
|
|
125
40
|
/**
|
|
126
|
-
* default capacity size for the Auto Scaling Group
|
|
41
|
+
* default capacity size for the Auto Scaling Group
|
|
127
42
|
*
|
|
128
43
|
* @default 1
|
|
129
|
-
* @stability stable
|
|
130
44
|
*/
|
|
131
45
|
readonly defaultCapacitySize?: number;
|
|
132
46
|
}
|
|
133
|
-
/**
|
|
134
|
-
* @stability stable
|
|
135
|
-
*/
|
|
136
47
|
export interface SpotFleetOptions extends AutoScalingGroupOptions {
|
|
137
48
|
/**
|
|
138
49
|
* VPC subnet selection.
|
|
139
50
|
*
|
|
140
51
|
* @default ec2.SubnetType.PRIVATE
|
|
141
|
-
* @stability stable
|
|
142
52
|
*/
|
|
143
53
|
readonly vpcSubnet?: ec2.SubnetSelection;
|
|
144
54
|
/**
|
|
145
|
-
* The timestamp of the beginning of the valid duration
|
|
146
|
-
*
|
|
55
|
+
* The timestamp of the beginning of the valid duration
|
|
147
56
|
* @default - now
|
|
148
|
-
* @stability stable
|
|
149
57
|
*/
|
|
150
58
|
readonly validFrom?: string;
|
|
151
59
|
/**
|
|
152
|
-
* The timestamp of the beginning of the valid duration
|
|
153
|
-
*
|
|
60
|
+
* The timestamp of the beginning of the valid duration
|
|
154
61
|
* @default - unlimited
|
|
155
|
-
* @stability stable
|
|
156
62
|
*/
|
|
157
63
|
readonly validUntil?: string;
|
|
158
64
|
/**
|
|
159
|
-
* Whether to terminate the fleet with expiration
|
|
65
|
+
* Whether to terminate the fleet with expiration
|
|
160
66
|
*
|
|
161
67
|
* @default true
|
|
162
|
-
* @stability stable
|
|
163
68
|
*/
|
|
164
69
|
readonly terminateInstancesWithExpiration?: boolean;
|
|
165
70
|
}
|
|
166
|
-
|
|
167
|
-
* @stability stable
|
|
168
|
-
*/
|
|
169
|
-
export declare class Provider extends cdk.Construct {
|
|
71
|
+
export declare class Provider extends Construct {
|
|
170
72
|
private readonly defaultInstanceType;
|
|
171
|
-
|
|
172
|
-
* @stability stable
|
|
173
|
-
*/
|
|
174
|
-
constructor(scope: cdk.Construct, id: string);
|
|
175
|
-
/**
|
|
176
|
-
* @stability stable
|
|
177
|
-
*/
|
|
73
|
+
constructor(scope: Construct, id: string);
|
|
178
74
|
get amazonLinuxAmiImageId(): string;
|
|
179
|
-
|
|
180
|
-
* @stability stable
|
|
181
|
-
*/
|
|
182
|
-
getOrCreateVpc(scope: cdk.Construct): ec2.IVpc;
|
|
183
|
-
/**
|
|
184
|
-
* @stability stable
|
|
185
|
-
*/
|
|
75
|
+
getOrCreateVpc(scope: Construct): ec2.IVpc;
|
|
186
76
|
createInstanceProfile(id: string): iam.CfnInstanceProfile;
|
|
187
77
|
/**
|
|
188
|
-
* Create Launch Template
|
|
189
|
-
*
|
|
190
|
-
* @param
|
|
191
|
-
* @param options launch template options.
|
|
192
|
-
* @stability stable
|
|
78
|
+
* Create Launch Template
|
|
79
|
+
* @param id launch template id
|
|
80
|
+
* @param options launch template options
|
|
193
81
|
*/
|
|
194
82
|
createLaunchTemplate(id: string, options?: LaunchTemplateOptions): ec2.CfnLaunchTemplate;
|
|
195
83
|
/**
|
|
196
|
-
* Create EC2 Spot Fleet
|
|
197
|
-
*
|
|
198
|
-
* @param
|
|
199
|
-
* @param options spot fleet options.
|
|
200
|
-
* @stability stable
|
|
84
|
+
* Create EC2 Spot Fleet
|
|
85
|
+
* @param id fleet id
|
|
86
|
+
* @param options spot fleet options
|
|
201
87
|
*/
|
|
202
88
|
createFleet(id: string, options: SpotFleetOptions): ec2.CfnSpotFleet;
|
|
203
89
|
/**
|
|
204
|
-
* Create AutoScaling Group
|
|
205
|
-
*
|
|
206
|
-
* @param
|
|
207
|
-
* @param options AutoScaling Group options.
|
|
208
|
-
* @stability stable
|
|
90
|
+
* Create AutoScaling Group
|
|
91
|
+
* @param id AutoScaling Group ID
|
|
92
|
+
* @param options AutoScaling Group options
|
|
209
93
|
*/
|
|
210
94
|
createAutoScalingGroup(id: string, options: AutoScalingGroupOptions): autoscaling.AutoScalingGroup;
|
|
211
|
-
/**
|
|
212
|
-
* @stability stable
|
|
213
|
-
*/
|
|
214
95
|
createInstance(id: string, optons: spotone.SpotInstanceProps): spotone.SpotInstance;
|
|
215
96
|
}
|
|
97
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,IAAI,WAAW,EAC9B,OAAO,IAAI,GAAG,EACd,OAAO,IAAI,GAAG,EACf,MAAM,aAAa,CAAC;AAErB,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,oBAAY,gBAAgB;IAC1B,QAAQ,aAAa;IACrB,UAAU,eAAe;CAC1B;AAED,oBAAY,4BAA4B;IACtC,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,SAAS,cAAc;CACxB;AAED,oBAAY,oBAAoB;IAC9B,QAAQ,KAAK;IACb,SAAS,MAAM;IACf,WAAW,MAAM;IACjB,UAAU,MAAM;IAChB,UAAU,MAAM;IAChB,SAAS,MAAM;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IAC7C,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IACrE,QAAQ,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CACtD;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,aAAa,CAAC;IAC1C,QAAQ,CAAC,YAAY,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC;IACzC,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;IACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC;IACjC,QAAQ,CAAC,eAAe,CAAC,EAAE,GAAG,CAAC,kBAAkB,CAAC;CACnD;AAED,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB;IACpE;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC;IACvB;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CACvC;AAED,MAAM,WAAW,gBAAiB,SAAQ,uBAAuB;IAC/D;;;;OAIG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,eAAe,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,gCAAgC,CAAC,EAAE,OAAO,CAAC;CACrD;AAED,qBAAa,QAAS,SAAQ,SAAS;IACrC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAsD;gBAC9E,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE,MAAM;IAGxC,IAAW,qBAAqB,WAI/B;IACM,cAAc,CAAC,KAAK,EAAE,SAAS,GAAG,GAAG,CAAC,IAAI;IAQ1C,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,GAAG,CAAC,kBAAkB;IAQhE;;;;OAIG;IACI,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,GAAG,GAAG,CAAC,iBAAiB;IAkCnG;;;;OAIG;IACI,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,gBAAgB,GAAG,GAAG,CAAC,YAAY;IA4C3E;;;;OAIG;IACI,sBAAsB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,WAAW,CAAC,gBAAgB;IA0BlG,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,YAAY;CAG3F"}
|