@aws-sdk/client-ec2 3.39.0 → 3.40.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.
@@ -1,34 +1,132 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "fips-ca-central-1": {
5
- hostname: "ec2-fips.ca-central-1.amazonaws.com",
6
- signingRegion: "ca-central-1",
4
+ "ap-south-1": {
5
+ variants: [
6
+ {
7
+ hostname: "ec2.ap-south-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "api.ec2.ap-south-1.aws",
12
+ tags: ["dualstack"],
13
+ },
14
+ ],
7
15
  },
8
- "fips-us-east-1": {
9
- hostname: "ec2-fips.us-east-1.amazonaws.com",
10
- signingRegion: "us-east-1",
16
+ "ca-central-1": {
17
+ variants: [
18
+ {
19
+ hostname: "ec2.ca-central-1.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "ec2-fips.ca-central-1.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
- "fips-us-east-2": {
13
- hostname: "ec2-fips.us-east-2.amazonaws.com",
14
- signingRegion: "us-east-2",
28
+ "eu-west-1": {
29
+ variants: [
30
+ {
31
+ hostname: "ec2.eu-west-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ {
35
+ hostname: "api.ec2.eu-west-1.aws",
36
+ tags: ["dualstack"],
37
+ },
38
+ ],
15
39
  },
16
- "fips-us-west-1": {
17
- hostname: "ec2-fips.us-west-1.amazonaws.com",
18
- signingRegion: "us-west-1",
40
+ "sa-east-1": {
41
+ variants: [
42
+ {
43
+ hostname: "ec2.sa-east-1.amazonaws.com",
44
+ tags: [],
45
+ },
46
+ {
47
+ hostname: "api.ec2.sa-east-1.aws",
48
+ tags: ["dualstack"],
49
+ },
50
+ ],
19
51
  },
20
- "fips-us-west-2": {
21
- hostname: "ec2-fips.us-west-2.amazonaws.com",
22
- signingRegion: "us-west-2",
52
+ "us-east-1": {
53
+ variants: [
54
+ {
55
+ hostname: "ec2.us-east-1.amazonaws.com",
56
+ tags: [],
57
+ },
58
+ {
59
+ hostname: "api.ec2.us-east-1.aws",
60
+ tags: ["dualstack"],
61
+ },
62
+ {
63
+ hostname: "ec2-fips.us-east-1.amazonaws.com",
64
+ tags: ["fips"],
65
+ },
66
+ ],
67
+ },
68
+ "us-east-2": {
69
+ variants: [
70
+ {
71
+ hostname: "ec2.us-east-2.amazonaws.com",
72
+ tags: [],
73
+ },
74
+ {
75
+ hostname: "api.ec2.us-east-2.aws",
76
+ tags: ["dualstack"],
77
+ },
78
+ {
79
+ hostname: "ec2-fips.us-east-2.amazonaws.com",
80
+ tags: ["fips"],
81
+ },
82
+ ],
23
83
  },
24
84
  "us-gov-east-1": {
25
- hostname: "ec2.us-gov-east-1.amazonaws.com",
85
+ variants: [
86
+ {
87
+ hostname: "ec2.us-gov-east-1.amazonaws.com",
88
+ tags: [],
89
+ },
90
+ ],
26
91
  signingRegion: "us-gov-east-1",
27
92
  },
28
93
  "us-gov-west-1": {
29
- hostname: "ec2.us-gov-west-1.amazonaws.com",
94
+ variants: [
95
+ {
96
+ hostname: "ec2.us-gov-west-1.amazonaws.com",
97
+ tags: [],
98
+ },
99
+ ],
30
100
  signingRegion: "us-gov-west-1",
31
101
  },
102
+ "us-west-1": {
103
+ variants: [
104
+ {
105
+ hostname: "ec2.us-west-1.amazonaws.com",
106
+ tags: [],
107
+ },
108
+ {
109
+ hostname: "ec2-fips.us-west-1.amazonaws.com",
110
+ tags: ["fips"],
111
+ },
112
+ ],
113
+ },
114
+ "us-west-2": {
115
+ variants: [
116
+ {
117
+ hostname: "ec2.us-west-2.amazonaws.com",
118
+ tags: [],
119
+ },
120
+ {
121
+ hostname: "api.ec2.us-west-2.aws",
122
+ tags: ["dualstack"],
123
+ },
124
+ {
125
+ hostname: "ec2-fips.us-west-2.amazonaws.com",
126
+ tags: ["fips"],
127
+ },
128
+ ],
129
+ },
32
130
  };
33
131
  var partitionHash = {
34
132
  aws: {
@@ -61,27 +159,88 @@ var partitionHash = {
61
159
  "us-west-2",
62
160
  ],
63
161
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
64
- hostname: "ec2.{region}.amazonaws.com",
162
+ variants: [
163
+ {
164
+ hostname: "ec2.{region}.amazonaws.com",
165
+ tags: [],
166
+ },
167
+ {
168
+ hostname: "ec2-fips.{region}.amazonaws.com",
169
+ tags: ["fips"],
170
+ },
171
+ {
172
+ hostname: "ec2-fips.{region}.api.aws",
173
+ tags: ["dualstack", "fips"],
174
+ },
175
+ {
176
+ hostname: "ec2.{region}.api.aws",
177
+ tags: ["dualstack"],
178
+ },
179
+ ],
65
180
  },
66
181
  "aws-cn": {
67
182
  regions: ["cn-north-1", "cn-northwest-1"],
68
183
  regionRegex: "^cn\\-\\w+\\-\\d+$",
69
- hostname: "ec2.{region}.amazonaws.com.cn",
184
+ variants: [
185
+ {
186
+ hostname: "ec2.{region}.amazonaws.com.cn",
187
+ tags: [],
188
+ },
189
+ {
190
+ hostname: "ec2-fips.{region}.amazonaws.com.cn",
191
+ tags: ["fips"],
192
+ },
193
+ {
194
+ hostname: "ec2-fips.{region}.api.amazonwebservices.com.cn",
195
+ tags: ["dualstack", "fips"],
196
+ },
197
+ {
198
+ hostname: "ec2.{region}.api.amazonwebservices.com.cn",
199
+ tags: ["dualstack"],
200
+ },
201
+ ],
70
202
  },
71
203
  "aws-iso": {
72
204
  regions: ["us-iso-east-1", "us-iso-west-1"],
73
205
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
74
- hostname: "ec2.{region}.c2s.ic.gov",
206
+ variants: [
207
+ {
208
+ hostname: "ec2.{region}.c2s.ic.gov",
209
+ tags: [],
210
+ },
211
+ ],
75
212
  },
76
213
  "aws-iso-b": {
77
214
  regions: ["us-isob-east-1"],
78
215
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
79
- hostname: "ec2.{region}.sc2s.sgov.gov",
216
+ variants: [
217
+ {
218
+ hostname: "ec2.{region}.sc2s.sgov.gov",
219
+ tags: [],
220
+ },
221
+ ],
80
222
  },
81
223
  "aws-us-gov": {
82
224
  regions: ["us-gov-east-1", "us-gov-west-1"],
83
225
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
84
- hostname: "ec2.{region}.amazonaws.com",
226
+ variants: [
227
+ {
228
+ hostname: "ec2.{region}.amazonaws.com",
229
+ tags: [],
230
+ },
231
+ {
232
+ hostname: "ec2-fips.{region}.amazonaws.com",
233
+ tags: ["fips"],
234
+ },
235
+ {
236
+ hostname: "ec2-fips.{region}.api.aws",
237
+ tags: ["dualstack", "fips"],
238
+ },
239
+ {
240
+ hostname: "ec2.{region}.api.aws",
241
+ tags: ["dualstack"],
242
+ },
243
+ ],
85
244
  },
86
245
  };
87
246
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
@@ -1048,6 +1048,7 @@ export var SpotAllocationStrategy;
1048
1048
  export var FleetReplacementStrategy;
1049
1049
  (function (FleetReplacementStrategy) {
1050
1050
  FleetReplacementStrategy["LAUNCH"] = "launch";
1051
+ FleetReplacementStrategy["LAUNCH_BEFORE_TERMINATE"] = "launch-before-terminate";
1051
1052
  })(FleetReplacementStrategy || (FleetReplacementStrategy = {}));
1052
1053
  export var FleetSpotCapacityRebalanceRequest;
1053
1054
  (function (FleetSpotCapacityRebalanceRequest) {
@@ -973,6 +973,7 @@ export var OnDemandAllocationStrategy;
973
973
  export var ReplacementStrategy;
974
974
  (function (ReplacementStrategy) {
975
975
  ReplacementStrategy["LAUNCH"] = "launch";
976
+ ReplacementStrategy["LAUNCH_BEFORE_TERMINATE"] = "launch-before-terminate";
976
977
  })(ReplacementStrategy || (ReplacementStrategy = {}));
977
978
  export var SpotCapacityRebalance;
978
979
  (function (SpotCapacityRebalance) {