@aws-sdk/client-ecs 3.986.0 → 3.988.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/dist-cjs/index.js +83 -3897
- package/dist-cjs/models/ECSServiceException.js +12 -0
- package/dist-cjs/models/errors.js +370 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +3113 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +247 -241
- package/dist-types/schemas/schemas_0.d.ts +36 -29
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +31 -29
- package/package.json +13 -13
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ECSServiceException = exports.__ServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
+
class ECSServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, ECSServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ECSServiceException = ECSServiceException;
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoUpdateAvailableException = exports.MissingVersionException = exports.ServiceDeploymentNotFoundException = exports.ConflictException = exports.BlockedException = exports.ResourceInUseException = exports.AttributeLimitExceededException = exports.TargetNotConnectedException = exports.ResourceNotFoundException = exports.TaskSetNotFoundException = exports.ClusterContainsTasksException = exports.ClusterContainsServicesException = exports.ClusterContainsContainerInstancesException = exports.ClusterContainsCapacityProviderException = exports.TargetNotFoundException = exports.ServiceNotFoundException = exports.ServiceNotActiveException = exports.PlatformUnknownException = exports.PlatformTaskDefinitionIncompatibilityException = exports.NamespaceNotFoundException = exports.UpdateInProgressException = exports.UnsupportedFeatureException = exports.ServerException = exports.LimitExceededException = exports.InvalidParameterException = exports.ClusterNotFoundException = exports.ClientException = exports.AccessDeniedException = void 0;
|
|
4
|
+
const ECSServiceException_1 = require("./ECSServiceException");
|
|
5
|
+
class AccessDeniedException extends ECSServiceException_1.ECSServiceException {
|
|
6
|
+
name = "AccessDeniedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AccessDeniedException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
18
|
+
class ClientException extends ECSServiceException_1.ECSServiceException {
|
|
19
|
+
name = "ClientException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "ClientException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, ClientException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.ClientException = ClientException;
|
|
31
|
+
class ClusterNotFoundException extends ECSServiceException_1.ECSServiceException {
|
|
32
|
+
name = "ClusterNotFoundException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "ClusterNotFoundException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, ClusterNotFoundException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ClusterNotFoundException = ClusterNotFoundException;
|
|
44
|
+
class InvalidParameterException extends ECSServiceException_1.ECSServiceException {
|
|
45
|
+
name = "InvalidParameterException";
|
|
46
|
+
$fault = "client";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "InvalidParameterException",
|
|
50
|
+
$fault: "client",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, InvalidParameterException.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.InvalidParameterException = InvalidParameterException;
|
|
57
|
+
class LimitExceededException extends ECSServiceException_1.ECSServiceException {
|
|
58
|
+
name = "LimitExceededException";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "LimitExceededException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.LimitExceededException = LimitExceededException;
|
|
70
|
+
class ServerException extends ECSServiceException_1.ECSServiceException {
|
|
71
|
+
name = "ServerException";
|
|
72
|
+
$fault = "server";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "ServerException",
|
|
76
|
+
$fault: "server",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, ServerException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.ServerException = ServerException;
|
|
83
|
+
class UnsupportedFeatureException extends ECSServiceException_1.ECSServiceException {
|
|
84
|
+
name = "UnsupportedFeatureException";
|
|
85
|
+
$fault = "client";
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "UnsupportedFeatureException",
|
|
89
|
+
$fault: "client",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
Object.setPrototypeOf(this, UnsupportedFeatureException.prototype);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.UnsupportedFeatureException = UnsupportedFeatureException;
|
|
96
|
+
class UpdateInProgressException extends ECSServiceException_1.ECSServiceException {
|
|
97
|
+
name = "UpdateInProgressException";
|
|
98
|
+
$fault = "client";
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "UpdateInProgressException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, UpdateInProgressException.prototype);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.UpdateInProgressException = UpdateInProgressException;
|
|
109
|
+
class NamespaceNotFoundException extends ECSServiceException_1.ECSServiceException {
|
|
110
|
+
name = "NamespaceNotFoundException";
|
|
111
|
+
$fault = "client";
|
|
112
|
+
constructor(opts) {
|
|
113
|
+
super({
|
|
114
|
+
name: "NamespaceNotFoundException",
|
|
115
|
+
$fault: "client",
|
|
116
|
+
...opts,
|
|
117
|
+
});
|
|
118
|
+
Object.setPrototypeOf(this, NamespaceNotFoundException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.NamespaceNotFoundException = NamespaceNotFoundException;
|
|
122
|
+
class PlatformTaskDefinitionIncompatibilityException extends ECSServiceException_1.ECSServiceException {
|
|
123
|
+
name = "PlatformTaskDefinitionIncompatibilityException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "PlatformTaskDefinitionIncompatibilityException",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, PlatformTaskDefinitionIncompatibilityException.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.PlatformTaskDefinitionIncompatibilityException = PlatformTaskDefinitionIncompatibilityException;
|
|
135
|
+
class PlatformUnknownException extends ECSServiceException_1.ECSServiceException {
|
|
136
|
+
name = "PlatformUnknownException";
|
|
137
|
+
$fault = "client";
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "PlatformUnknownException",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, PlatformUnknownException.prototype);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.PlatformUnknownException = PlatformUnknownException;
|
|
148
|
+
class ServiceNotActiveException extends ECSServiceException_1.ECSServiceException {
|
|
149
|
+
name = "ServiceNotActiveException";
|
|
150
|
+
$fault = "client";
|
|
151
|
+
constructor(opts) {
|
|
152
|
+
super({
|
|
153
|
+
name: "ServiceNotActiveException",
|
|
154
|
+
$fault: "client",
|
|
155
|
+
...opts,
|
|
156
|
+
});
|
|
157
|
+
Object.setPrototypeOf(this, ServiceNotActiveException.prototype);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.ServiceNotActiveException = ServiceNotActiveException;
|
|
161
|
+
class ServiceNotFoundException extends ECSServiceException_1.ECSServiceException {
|
|
162
|
+
name = "ServiceNotFoundException";
|
|
163
|
+
$fault = "client";
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "ServiceNotFoundException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
Object.setPrototypeOf(this, ServiceNotFoundException.prototype);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.ServiceNotFoundException = ServiceNotFoundException;
|
|
174
|
+
class TargetNotFoundException extends ECSServiceException_1.ECSServiceException {
|
|
175
|
+
name = "TargetNotFoundException";
|
|
176
|
+
$fault = "client";
|
|
177
|
+
constructor(opts) {
|
|
178
|
+
super({
|
|
179
|
+
name: "TargetNotFoundException",
|
|
180
|
+
$fault: "client",
|
|
181
|
+
...opts,
|
|
182
|
+
});
|
|
183
|
+
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
exports.TargetNotFoundException = TargetNotFoundException;
|
|
187
|
+
class ClusterContainsCapacityProviderException extends ECSServiceException_1.ECSServiceException {
|
|
188
|
+
name = "ClusterContainsCapacityProviderException";
|
|
189
|
+
$fault = "client";
|
|
190
|
+
constructor(opts) {
|
|
191
|
+
super({
|
|
192
|
+
name: "ClusterContainsCapacityProviderException",
|
|
193
|
+
$fault: "client",
|
|
194
|
+
...opts,
|
|
195
|
+
});
|
|
196
|
+
Object.setPrototypeOf(this, ClusterContainsCapacityProviderException.prototype);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
exports.ClusterContainsCapacityProviderException = ClusterContainsCapacityProviderException;
|
|
200
|
+
class ClusterContainsContainerInstancesException extends ECSServiceException_1.ECSServiceException {
|
|
201
|
+
name = "ClusterContainsContainerInstancesException";
|
|
202
|
+
$fault = "client";
|
|
203
|
+
constructor(opts) {
|
|
204
|
+
super({
|
|
205
|
+
name: "ClusterContainsContainerInstancesException",
|
|
206
|
+
$fault: "client",
|
|
207
|
+
...opts,
|
|
208
|
+
});
|
|
209
|
+
Object.setPrototypeOf(this, ClusterContainsContainerInstancesException.prototype);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.ClusterContainsContainerInstancesException = ClusterContainsContainerInstancesException;
|
|
213
|
+
class ClusterContainsServicesException extends ECSServiceException_1.ECSServiceException {
|
|
214
|
+
name = "ClusterContainsServicesException";
|
|
215
|
+
$fault = "client";
|
|
216
|
+
constructor(opts) {
|
|
217
|
+
super({
|
|
218
|
+
name: "ClusterContainsServicesException",
|
|
219
|
+
$fault: "client",
|
|
220
|
+
...opts,
|
|
221
|
+
});
|
|
222
|
+
Object.setPrototypeOf(this, ClusterContainsServicesException.prototype);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
exports.ClusterContainsServicesException = ClusterContainsServicesException;
|
|
226
|
+
class ClusterContainsTasksException extends ECSServiceException_1.ECSServiceException {
|
|
227
|
+
name = "ClusterContainsTasksException";
|
|
228
|
+
$fault = "client";
|
|
229
|
+
constructor(opts) {
|
|
230
|
+
super({
|
|
231
|
+
name: "ClusterContainsTasksException",
|
|
232
|
+
$fault: "client",
|
|
233
|
+
...opts,
|
|
234
|
+
});
|
|
235
|
+
Object.setPrototypeOf(this, ClusterContainsTasksException.prototype);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
exports.ClusterContainsTasksException = ClusterContainsTasksException;
|
|
239
|
+
class TaskSetNotFoundException extends ECSServiceException_1.ECSServiceException {
|
|
240
|
+
name = "TaskSetNotFoundException";
|
|
241
|
+
$fault = "client";
|
|
242
|
+
constructor(opts) {
|
|
243
|
+
super({
|
|
244
|
+
name: "TaskSetNotFoundException",
|
|
245
|
+
$fault: "client",
|
|
246
|
+
...opts,
|
|
247
|
+
});
|
|
248
|
+
Object.setPrototypeOf(this, TaskSetNotFoundException.prototype);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
exports.TaskSetNotFoundException = TaskSetNotFoundException;
|
|
252
|
+
class ResourceNotFoundException extends ECSServiceException_1.ECSServiceException {
|
|
253
|
+
name = "ResourceNotFoundException";
|
|
254
|
+
$fault = "client";
|
|
255
|
+
constructor(opts) {
|
|
256
|
+
super({
|
|
257
|
+
name: "ResourceNotFoundException",
|
|
258
|
+
$fault: "client",
|
|
259
|
+
...opts,
|
|
260
|
+
});
|
|
261
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
265
|
+
class TargetNotConnectedException extends ECSServiceException_1.ECSServiceException {
|
|
266
|
+
name = "TargetNotConnectedException";
|
|
267
|
+
$fault = "client";
|
|
268
|
+
constructor(opts) {
|
|
269
|
+
super({
|
|
270
|
+
name: "TargetNotConnectedException",
|
|
271
|
+
$fault: "client",
|
|
272
|
+
...opts,
|
|
273
|
+
});
|
|
274
|
+
Object.setPrototypeOf(this, TargetNotConnectedException.prototype);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
exports.TargetNotConnectedException = TargetNotConnectedException;
|
|
278
|
+
class AttributeLimitExceededException extends ECSServiceException_1.ECSServiceException {
|
|
279
|
+
name = "AttributeLimitExceededException";
|
|
280
|
+
$fault = "client";
|
|
281
|
+
constructor(opts) {
|
|
282
|
+
super({
|
|
283
|
+
name: "AttributeLimitExceededException",
|
|
284
|
+
$fault: "client",
|
|
285
|
+
...opts,
|
|
286
|
+
});
|
|
287
|
+
Object.setPrototypeOf(this, AttributeLimitExceededException.prototype);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
exports.AttributeLimitExceededException = AttributeLimitExceededException;
|
|
291
|
+
class ResourceInUseException extends ECSServiceException_1.ECSServiceException {
|
|
292
|
+
name = "ResourceInUseException";
|
|
293
|
+
$fault = "client";
|
|
294
|
+
constructor(opts) {
|
|
295
|
+
super({
|
|
296
|
+
name: "ResourceInUseException",
|
|
297
|
+
$fault: "client",
|
|
298
|
+
...opts,
|
|
299
|
+
});
|
|
300
|
+
Object.setPrototypeOf(this, ResourceInUseException.prototype);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
exports.ResourceInUseException = ResourceInUseException;
|
|
304
|
+
class BlockedException extends ECSServiceException_1.ECSServiceException {
|
|
305
|
+
name = "BlockedException";
|
|
306
|
+
$fault = "client";
|
|
307
|
+
constructor(opts) {
|
|
308
|
+
super({
|
|
309
|
+
name: "BlockedException",
|
|
310
|
+
$fault: "client",
|
|
311
|
+
...opts,
|
|
312
|
+
});
|
|
313
|
+
Object.setPrototypeOf(this, BlockedException.prototype);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
exports.BlockedException = BlockedException;
|
|
317
|
+
class ConflictException extends ECSServiceException_1.ECSServiceException {
|
|
318
|
+
name = "ConflictException";
|
|
319
|
+
$fault = "client";
|
|
320
|
+
resourceIds;
|
|
321
|
+
constructor(opts) {
|
|
322
|
+
super({
|
|
323
|
+
name: "ConflictException",
|
|
324
|
+
$fault: "client",
|
|
325
|
+
...opts,
|
|
326
|
+
});
|
|
327
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
328
|
+
this.resourceIds = opts.resourceIds;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
exports.ConflictException = ConflictException;
|
|
332
|
+
class ServiceDeploymentNotFoundException extends ECSServiceException_1.ECSServiceException {
|
|
333
|
+
name = "ServiceDeploymentNotFoundException";
|
|
334
|
+
$fault = "client";
|
|
335
|
+
constructor(opts) {
|
|
336
|
+
super({
|
|
337
|
+
name: "ServiceDeploymentNotFoundException",
|
|
338
|
+
$fault: "client",
|
|
339
|
+
...opts,
|
|
340
|
+
});
|
|
341
|
+
Object.setPrototypeOf(this, ServiceDeploymentNotFoundException.prototype);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
exports.ServiceDeploymentNotFoundException = ServiceDeploymentNotFoundException;
|
|
345
|
+
class MissingVersionException extends ECSServiceException_1.ECSServiceException {
|
|
346
|
+
name = "MissingVersionException";
|
|
347
|
+
$fault = "client";
|
|
348
|
+
constructor(opts) {
|
|
349
|
+
super({
|
|
350
|
+
name: "MissingVersionException",
|
|
351
|
+
$fault: "client",
|
|
352
|
+
...opts,
|
|
353
|
+
});
|
|
354
|
+
Object.setPrototypeOf(this, MissingVersionException.prototype);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
exports.MissingVersionException = MissingVersionException;
|
|
358
|
+
class NoUpdateAvailableException extends ECSServiceException_1.ECSServiceException {
|
|
359
|
+
name = "NoUpdateAvailableException";
|
|
360
|
+
$fault = "client";
|
|
361
|
+
constructor(opts) {
|
|
362
|
+
super({
|
|
363
|
+
name: "NoUpdateAvailableException",
|
|
364
|
+
$fault: "client",
|
|
365
|
+
...opts,
|
|
366
|
+
});
|
|
367
|
+
Object.setPrototypeOf(this, NoUpdateAvailableException.prototype);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
exports.NoUpdateAvailableException = NoUpdateAvailableException;
|
|
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
9
9
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
10
10
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
11
11
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
12
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
13
|
const getRuntimeConfig = (config) => {
|
|
13
14
|
return {
|
|
14
15
|
apiVersion: "2014-11-13",
|
|
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
|
|
|
29
30
|
protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
|
|
30
31
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
32
|
defaultNamespace: "com.amazonaws.ecs",
|
|
33
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
32
34
|
xmlNamespace: "http://ecs.amazonaws.com/doc/2014-11-13/",
|
|
33
35
|
version: "2014-11-13",
|
|
34
36
|
serviceTarget: "AmazonEC2ContainerServiceV20141113",
|