@aws-sdk/client-ecs 3.184.0 → 3.186.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/ECS.js +217 -210
  4. package/dist-es/ECSClient.js +28 -22
  5. package/dist-es/commands/CreateCapacityProviderCommand.js +28 -21
  6. package/dist-es/commands/CreateClusterCommand.js +28 -21
  7. package/dist-es/commands/CreateServiceCommand.js +28 -21
  8. package/dist-es/commands/CreateTaskSetCommand.js +28 -21
  9. package/dist-es/commands/DeleteAccountSettingCommand.js +28 -21
  10. package/dist-es/commands/DeleteAttributesCommand.js +28 -21
  11. package/dist-es/commands/DeleteCapacityProviderCommand.js +28 -21
  12. package/dist-es/commands/DeleteClusterCommand.js +28 -21
  13. package/dist-es/commands/DeleteServiceCommand.js +28 -21
  14. package/dist-es/commands/DeleteTaskSetCommand.js +28 -21
  15. package/dist-es/commands/DeregisterContainerInstanceCommand.js +28 -21
  16. package/dist-es/commands/DeregisterTaskDefinitionCommand.js +28 -21
  17. package/dist-es/commands/DescribeCapacityProvidersCommand.js +28 -21
  18. package/dist-es/commands/DescribeClustersCommand.js +28 -21
  19. package/dist-es/commands/DescribeContainerInstancesCommand.js +28 -21
  20. package/dist-es/commands/DescribeServicesCommand.js +28 -21
  21. package/dist-es/commands/DescribeTaskDefinitionCommand.js +28 -21
  22. package/dist-es/commands/DescribeTaskSetsCommand.js +28 -21
  23. package/dist-es/commands/DescribeTasksCommand.js +28 -21
  24. package/dist-es/commands/DiscoverPollEndpointCommand.js +28 -21
  25. package/dist-es/commands/ExecuteCommandCommand.js +28 -21
  26. package/dist-es/commands/ListAccountSettingsCommand.js +28 -21
  27. package/dist-es/commands/ListAttributesCommand.js +28 -21
  28. package/dist-es/commands/ListClustersCommand.js +28 -21
  29. package/dist-es/commands/ListContainerInstancesCommand.js +28 -21
  30. package/dist-es/commands/ListServicesCommand.js +28 -21
  31. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  32. package/dist-es/commands/ListTaskDefinitionFamiliesCommand.js +28 -21
  33. package/dist-es/commands/ListTaskDefinitionsCommand.js +28 -21
  34. package/dist-es/commands/ListTasksCommand.js +28 -21
  35. package/dist-es/commands/PutAccountSettingCommand.js +28 -21
  36. package/dist-es/commands/PutAccountSettingDefaultCommand.js +28 -21
  37. package/dist-es/commands/PutAttributesCommand.js +28 -21
  38. package/dist-es/commands/PutClusterCapacityProvidersCommand.js +28 -21
  39. package/dist-es/commands/RegisterContainerInstanceCommand.js +28 -21
  40. package/dist-es/commands/RegisterTaskDefinitionCommand.js +28 -21
  41. package/dist-es/commands/RunTaskCommand.js +28 -21
  42. package/dist-es/commands/StartTaskCommand.js +28 -21
  43. package/dist-es/commands/StopTaskCommand.js +28 -21
  44. package/dist-es/commands/SubmitAttachmentStateChangesCommand.js +28 -21
  45. package/dist-es/commands/SubmitContainerStateChangeCommand.js +28 -21
  46. package/dist-es/commands/SubmitTaskStateChangeCommand.js +28 -21
  47. package/dist-es/commands/TagResourceCommand.js +28 -21
  48. package/dist-es/commands/UntagResourceCommand.js +28 -21
  49. package/dist-es/commands/UpdateCapacityProviderCommand.js +28 -21
  50. package/dist-es/commands/UpdateClusterCommand.js +28 -21
  51. package/dist-es/commands/UpdateClusterSettingsCommand.js +28 -21
  52. package/dist-es/commands/UpdateContainerAgentCommand.js +28 -21
  53. package/dist-es/commands/UpdateContainerInstancesStateCommand.js +28 -21
  54. package/dist-es/commands/UpdateServiceCommand.js +28 -21
  55. package/dist-es/commands/UpdateServicePrimaryTaskSetCommand.js +28 -21
  56. package/dist-es/commands/UpdateTaskSetCommand.js +28 -21
  57. package/dist-es/endpoints.js +8 -8
  58. package/dist-es/models/ECSServiceException.js +10 -5
  59. package/dist-es/models/models_0.js +449 -818
  60. package/dist-es/pagination/ListAccountSettingsPaginator.js +68 -25
  61. package/dist-es/pagination/ListAttributesPaginator.js +68 -25
  62. package/dist-es/pagination/ListClustersPaginator.js +68 -25
  63. package/dist-es/pagination/ListContainerInstancesPaginator.js +68 -25
  64. package/dist-es/pagination/ListServicesPaginator.js +68 -25
  65. package/dist-es/pagination/ListTaskDefinitionFamiliesPaginator.js +68 -25
  66. package/dist-es/pagination/ListTaskDefinitionsPaginator.js +68 -25
  67. package/dist-es/pagination/ListTasksPaginator.js +68 -25
  68. package/dist-es/protocols/Aws_json1_1.js +5280 -4631
  69. package/dist-es/runtimeConfig.browser.js +12 -26
  70. package/dist-es/runtimeConfig.js +12 -30
  71. package/dist-es/runtimeConfig.native.js +5 -8
  72. package/dist-es/runtimeConfig.shared.js +11 -8
  73. package/dist-es/waiters/waitForServicesInactive.js +88 -47
  74. package/dist-es/waiters/waitForServicesStable.js +123 -72
  75. package/dist-es/waiters/waitForTasksRunning.js +114 -63
  76. package/dist-es/waiters/waitForTasksStopped.js +67 -36
  77. package/package.json +34 -34
package/dist-es/ECS.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateCapacityProviderCommand, } from "./commands/CreateCapacityProviderCommand";
2
3
  import { CreateClusterCommand, } from "./commands/CreateClusterCommand";
3
4
  import { CreateServiceCommand, } from "./commands/CreateServiceCommand";
@@ -51,733 +52,739 @@ import { UpdateServiceCommand, } from "./commands/UpdateServiceCommand";
51
52
  import { UpdateServicePrimaryTaskSetCommand, } from "./commands/UpdateServicePrimaryTaskSetCommand";
52
53
  import { UpdateTaskSetCommand, } from "./commands/UpdateTaskSetCommand";
53
54
  import { ECSClient } from "./ECSClient";
54
- export class ECS extends ECSClient {
55
- createCapacityProvider(args, optionsOrCb, cb) {
56
- const command = new CreateCapacityProviderCommand(args);
55
+ var ECS = (function (_super) {
56
+ __extends(ECS, _super);
57
+ function ECS() {
58
+ return _super !== null && _super.apply(this, arguments) || this;
59
+ }
60
+ ECS.prototype.createCapacityProvider = function (args, optionsOrCb, cb) {
61
+ var command = new CreateCapacityProviderCommand(args);
57
62
  if (typeof optionsOrCb === "function") {
58
63
  this.send(command, optionsOrCb);
59
64
  }
60
65
  else if (typeof cb === "function") {
61
66
  if (typeof optionsOrCb !== "object")
62
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
67
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
63
68
  this.send(command, optionsOrCb || {}, cb);
64
69
  }
65
70
  else {
66
71
  return this.send(command, optionsOrCb);
67
72
  }
68
- }
69
- createCluster(args, optionsOrCb, cb) {
70
- const command = new CreateClusterCommand(args);
73
+ };
74
+ ECS.prototype.createCluster = function (args, optionsOrCb, cb) {
75
+ var command = new CreateClusterCommand(args);
71
76
  if (typeof optionsOrCb === "function") {
72
77
  this.send(command, optionsOrCb);
73
78
  }
74
79
  else if (typeof cb === "function") {
75
80
  if (typeof optionsOrCb !== "object")
76
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
81
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
77
82
  this.send(command, optionsOrCb || {}, cb);
78
83
  }
79
84
  else {
80
85
  return this.send(command, optionsOrCb);
81
86
  }
82
- }
83
- createService(args, optionsOrCb, cb) {
84
- const command = new CreateServiceCommand(args);
87
+ };
88
+ ECS.prototype.createService = function (args, optionsOrCb, cb) {
89
+ var command = new CreateServiceCommand(args);
85
90
  if (typeof optionsOrCb === "function") {
86
91
  this.send(command, optionsOrCb);
87
92
  }
88
93
  else if (typeof cb === "function") {
89
94
  if (typeof optionsOrCb !== "object")
90
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
95
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
91
96
  this.send(command, optionsOrCb || {}, cb);
92
97
  }
93
98
  else {
94
99
  return this.send(command, optionsOrCb);
95
100
  }
96
- }
97
- createTaskSet(args, optionsOrCb, cb) {
98
- const command = new CreateTaskSetCommand(args);
101
+ };
102
+ ECS.prototype.createTaskSet = function (args, optionsOrCb, cb) {
103
+ var command = new CreateTaskSetCommand(args);
99
104
  if (typeof optionsOrCb === "function") {
100
105
  this.send(command, optionsOrCb);
101
106
  }
102
107
  else if (typeof cb === "function") {
103
108
  if (typeof optionsOrCb !== "object")
104
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
109
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
105
110
  this.send(command, optionsOrCb || {}, cb);
106
111
  }
107
112
  else {
108
113
  return this.send(command, optionsOrCb);
109
114
  }
110
- }
111
- deleteAccountSetting(args, optionsOrCb, cb) {
112
- const command = new DeleteAccountSettingCommand(args);
115
+ };
116
+ ECS.prototype.deleteAccountSetting = function (args, optionsOrCb, cb) {
117
+ var command = new DeleteAccountSettingCommand(args);
113
118
  if (typeof optionsOrCb === "function") {
114
119
  this.send(command, optionsOrCb);
115
120
  }
116
121
  else if (typeof cb === "function") {
117
122
  if (typeof optionsOrCb !== "object")
118
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
123
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
119
124
  this.send(command, optionsOrCb || {}, cb);
120
125
  }
121
126
  else {
122
127
  return this.send(command, optionsOrCb);
123
128
  }
124
- }
125
- deleteAttributes(args, optionsOrCb, cb) {
126
- const command = new DeleteAttributesCommand(args);
129
+ };
130
+ ECS.prototype.deleteAttributes = function (args, optionsOrCb, cb) {
131
+ var command = new DeleteAttributesCommand(args);
127
132
  if (typeof optionsOrCb === "function") {
128
133
  this.send(command, optionsOrCb);
129
134
  }
130
135
  else if (typeof cb === "function") {
131
136
  if (typeof optionsOrCb !== "object")
132
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
137
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
133
138
  this.send(command, optionsOrCb || {}, cb);
134
139
  }
135
140
  else {
136
141
  return this.send(command, optionsOrCb);
137
142
  }
138
- }
139
- deleteCapacityProvider(args, optionsOrCb, cb) {
140
- const command = new DeleteCapacityProviderCommand(args);
143
+ };
144
+ ECS.prototype.deleteCapacityProvider = function (args, optionsOrCb, cb) {
145
+ var command = new DeleteCapacityProviderCommand(args);
141
146
  if (typeof optionsOrCb === "function") {
142
147
  this.send(command, optionsOrCb);
143
148
  }
144
149
  else if (typeof cb === "function") {
145
150
  if (typeof optionsOrCb !== "object")
146
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
151
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
147
152
  this.send(command, optionsOrCb || {}, cb);
148
153
  }
149
154
  else {
150
155
  return this.send(command, optionsOrCb);
151
156
  }
152
- }
153
- deleteCluster(args, optionsOrCb, cb) {
154
- const command = new DeleteClusterCommand(args);
157
+ };
158
+ ECS.prototype.deleteCluster = function (args, optionsOrCb, cb) {
159
+ var command = new DeleteClusterCommand(args);
155
160
  if (typeof optionsOrCb === "function") {
156
161
  this.send(command, optionsOrCb);
157
162
  }
158
163
  else if (typeof cb === "function") {
159
164
  if (typeof optionsOrCb !== "object")
160
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
165
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
161
166
  this.send(command, optionsOrCb || {}, cb);
162
167
  }
163
168
  else {
164
169
  return this.send(command, optionsOrCb);
165
170
  }
166
- }
167
- deleteService(args, optionsOrCb, cb) {
168
- const command = new DeleteServiceCommand(args);
171
+ };
172
+ ECS.prototype.deleteService = function (args, optionsOrCb, cb) {
173
+ var command = new DeleteServiceCommand(args);
169
174
  if (typeof optionsOrCb === "function") {
170
175
  this.send(command, optionsOrCb);
171
176
  }
172
177
  else if (typeof cb === "function") {
173
178
  if (typeof optionsOrCb !== "object")
174
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
179
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
175
180
  this.send(command, optionsOrCb || {}, cb);
176
181
  }
177
182
  else {
178
183
  return this.send(command, optionsOrCb);
179
184
  }
180
- }
181
- deleteTaskSet(args, optionsOrCb, cb) {
182
- const command = new DeleteTaskSetCommand(args);
185
+ };
186
+ ECS.prototype.deleteTaskSet = function (args, optionsOrCb, cb) {
187
+ var command = new DeleteTaskSetCommand(args);
183
188
  if (typeof optionsOrCb === "function") {
184
189
  this.send(command, optionsOrCb);
185
190
  }
186
191
  else if (typeof cb === "function") {
187
192
  if (typeof optionsOrCb !== "object")
188
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
193
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
189
194
  this.send(command, optionsOrCb || {}, cb);
190
195
  }
191
196
  else {
192
197
  return this.send(command, optionsOrCb);
193
198
  }
194
- }
195
- deregisterContainerInstance(args, optionsOrCb, cb) {
196
- const command = new DeregisterContainerInstanceCommand(args);
199
+ };
200
+ ECS.prototype.deregisterContainerInstance = function (args, optionsOrCb, cb) {
201
+ var command = new DeregisterContainerInstanceCommand(args);
197
202
  if (typeof optionsOrCb === "function") {
198
203
  this.send(command, optionsOrCb);
199
204
  }
200
205
  else if (typeof cb === "function") {
201
206
  if (typeof optionsOrCb !== "object")
202
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
207
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
203
208
  this.send(command, optionsOrCb || {}, cb);
204
209
  }
205
210
  else {
206
211
  return this.send(command, optionsOrCb);
207
212
  }
208
- }
209
- deregisterTaskDefinition(args, optionsOrCb, cb) {
210
- const command = new DeregisterTaskDefinitionCommand(args);
213
+ };
214
+ ECS.prototype.deregisterTaskDefinition = function (args, optionsOrCb, cb) {
215
+ var command = new DeregisterTaskDefinitionCommand(args);
211
216
  if (typeof optionsOrCb === "function") {
212
217
  this.send(command, optionsOrCb);
213
218
  }
214
219
  else if (typeof cb === "function") {
215
220
  if (typeof optionsOrCb !== "object")
216
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
221
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
217
222
  this.send(command, optionsOrCb || {}, cb);
218
223
  }
219
224
  else {
220
225
  return this.send(command, optionsOrCb);
221
226
  }
222
- }
223
- describeCapacityProviders(args, optionsOrCb, cb) {
224
- const command = new DescribeCapacityProvidersCommand(args);
227
+ };
228
+ ECS.prototype.describeCapacityProviders = function (args, optionsOrCb, cb) {
229
+ var command = new DescribeCapacityProvidersCommand(args);
225
230
  if (typeof optionsOrCb === "function") {
226
231
  this.send(command, optionsOrCb);
227
232
  }
228
233
  else if (typeof cb === "function") {
229
234
  if (typeof optionsOrCb !== "object")
230
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
235
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
231
236
  this.send(command, optionsOrCb || {}, cb);
232
237
  }
233
238
  else {
234
239
  return this.send(command, optionsOrCb);
235
240
  }
236
- }
237
- describeClusters(args, optionsOrCb, cb) {
238
- const command = new DescribeClustersCommand(args);
241
+ };
242
+ ECS.prototype.describeClusters = function (args, optionsOrCb, cb) {
243
+ var command = new DescribeClustersCommand(args);
239
244
  if (typeof optionsOrCb === "function") {
240
245
  this.send(command, optionsOrCb);
241
246
  }
242
247
  else if (typeof cb === "function") {
243
248
  if (typeof optionsOrCb !== "object")
244
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
249
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
245
250
  this.send(command, optionsOrCb || {}, cb);
246
251
  }
247
252
  else {
248
253
  return this.send(command, optionsOrCb);
249
254
  }
250
- }
251
- describeContainerInstances(args, optionsOrCb, cb) {
252
- const command = new DescribeContainerInstancesCommand(args);
255
+ };
256
+ ECS.prototype.describeContainerInstances = function (args, optionsOrCb, cb) {
257
+ var command = new DescribeContainerInstancesCommand(args);
253
258
  if (typeof optionsOrCb === "function") {
254
259
  this.send(command, optionsOrCb);
255
260
  }
256
261
  else if (typeof cb === "function") {
257
262
  if (typeof optionsOrCb !== "object")
258
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
263
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
259
264
  this.send(command, optionsOrCb || {}, cb);
260
265
  }
261
266
  else {
262
267
  return this.send(command, optionsOrCb);
263
268
  }
264
- }
265
- describeServices(args, optionsOrCb, cb) {
266
- const command = new DescribeServicesCommand(args);
269
+ };
270
+ ECS.prototype.describeServices = function (args, optionsOrCb, cb) {
271
+ var command = new DescribeServicesCommand(args);
267
272
  if (typeof optionsOrCb === "function") {
268
273
  this.send(command, optionsOrCb);
269
274
  }
270
275
  else if (typeof cb === "function") {
271
276
  if (typeof optionsOrCb !== "object")
272
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
277
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
273
278
  this.send(command, optionsOrCb || {}, cb);
274
279
  }
275
280
  else {
276
281
  return this.send(command, optionsOrCb);
277
282
  }
278
- }
279
- describeTaskDefinition(args, optionsOrCb, cb) {
280
- const command = new DescribeTaskDefinitionCommand(args);
283
+ };
284
+ ECS.prototype.describeTaskDefinition = function (args, optionsOrCb, cb) {
285
+ var command = new DescribeTaskDefinitionCommand(args);
281
286
  if (typeof optionsOrCb === "function") {
282
287
  this.send(command, optionsOrCb);
283
288
  }
284
289
  else if (typeof cb === "function") {
285
290
  if (typeof optionsOrCb !== "object")
286
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
291
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
287
292
  this.send(command, optionsOrCb || {}, cb);
288
293
  }
289
294
  else {
290
295
  return this.send(command, optionsOrCb);
291
296
  }
292
- }
293
- describeTasks(args, optionsOrCb, cb) {
294
- const command = new DescribeTasksCommand(args);
297
+ };
298
+ ECS.prototype.describeTasks = function (args, optionsOrCb, cb) {
299
+ var command = new DescribeTasksCommand(args);
295
300
  if (typeof optionsOrCb === "function") {
296
301
  this.send(command, optionsOrCb);
297
302
  }
298
303
  else if (typeof cb === "function") {
299
304
  if (typeof optionsOrCb !== "object")
300
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
305
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
301
306
  this.send(command, optionsOrCb || {}, cb);
302
307
  }
303
308
  else {
304
309
  return this.send(command, optionsOrCb);
305
310
  }
306
- }
307
- describeTaskSets(args, optionsOrCb, cb) {
308
- const command = new DescribeTaskSetsCommand(args);
311
+ };
312
+ ECS.prototype.describeTaskSets = function (args, optionsOrCb, cb) {
313
+ var command = new DescribeTaskSetsCommand(args);
309
314
  if (typeof optionsOrCb === "function") {
310
315
  this.send(command, optionsOrCb);
311
316
  }
312
317
  else if (typeof cb === "function") {
313
318
  if (typeof optionsOrCb !== "object")
314
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
319
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
315
320
  this.send(command, optionsOrCb || {}, cb);
316
321
  }
317
322
  else {
318
323
  return this.send(command, optionsOrCb);
319
324
  }
320
- }
321
- discoverPollEndpoint(args, optionsOrCb, cb) {
322
- const command = new DiscoverPollEndpointCommand(args);
325
+ };
326
+ ECS.prototype.discoverPollEndpoint = function (args, optionsOrCb, cb) {
327
+ var command = new DiscoverPollEndpointCommand(args);
323
328
  if (typeof optionsOrCb === "function") {
324
329
  this.send(command, optionsOrCb);
325
330
  }
326
331
  else if (typeof cb === "function") {
327
332
  if (typeof optionsOrCb !== "object")
328
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
333
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
329
334
  this.send(command, optionsOrCb || {}, cb);
330
335
  }
331
336
  else {
332
337
  return this.send(command, optionsOrCb);
333
338
  }
334
- }
335
- executeCommand(args, optionsOrCb, cb) {
336
- const command = new ExecuteCommandCommand(args);
339
+ };
340
+ ECS.prototype.executeCommand = function (args, optionsOrCb, cb) {
341
+ var command = new ExecuteCommandCommand(args);
337
342
  if (typeof optionsOrCb === "function") {
338
343
  this.send(command, optionsOrCb);
339
344
  }
340
345
  else if (typeof cb === "function") {
341
346
  if (typeof optionsOrCb !== "object")
342
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
347
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
343
348
  this.send(command, optionsOrCb || {}, cb);
344
349
  }
345
350
  else {
346
351
  return this.send(command, optionsOrCb);
347
352
  }
348
- }
349
- listAccountSettings(args, optionsOrCb, cb) {
350
- const command = new ListAccountSettingsCommand(args);
353
+ };
354
+ ECS.prototype.listAccountSettings = function (args, optionsOrCb, cb) {
355
+ var command = new ListAccountSettingsCommand(args);
351
356
  if (typeof optionsOrCb === "function") {
352
357
  this.send(command, optionsOrCb);
353
358
  }
354
359
  else if (typeof cb === "function") {
355
360
  if (typeof optionsOrCb !== "object")
356
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
361
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
357
362
  this.send(command, optionsOrCb || {}, cb);
358
363
  }
359
364
  else {
360
365
  return this.send(command, optionsOrCb);
361
366
  }
362
- }
363
- listAttributes(args, optionsOrCb, cb) {
364
- const command = new ListAttributesCommand(args);
367
+ };
368
+ ECS.prototype.listAttributes = function (args, optionsOrCb, cb) {
369
+ var command = new ListAttributesCommand(args);
365
370
  if (typeof optionsOrCb === "function") {
366
371
  this.send(command, optionsOrCb);
367
372
  }
368
373
  else if (typeof cb === "function") {
369
374
  if (typeof optionsOrCb !== "object")
370
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
375
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
371
376
  this.send(command, optionsOrCb || {}, cb);
372
377
  }
373
378
  else {
374
379
  return this.send(command, optionsOrCb);
375
380
  }
376
- }
377
- listClusters(args, optionsOrCb, cb) {
378
- const command = new ListClustersCommand(args);
381
+ };
382
+ ECS.prototype.listClusters = function (args, optionsOrCb, cb) {
383
+ var command = new ListClustersCommand(args);
379
384
  if (typeof optionsOrCb === "function") {
380
385
  this.send(command, optionsOrCb);
381
386
  }
382
387
  else if (typeof cb === "function") {
383
388
  if (typeof optionsOrCb !== "object")
384
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
389
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
385
390
  this.send(command, optionsOrCb || {}, cb);
386
391
  }
387
392
  else {
388
393
  return this.send(command, optionsOrCb);
389
394
  }
390
- }
391
- listContainerInstances(args, optionsOrCb, cb) {
392
- const command = new ListContainerInstancesCommand(args);
395
+ };
396
+ ECS.prototype.listContainerInstances = function (args, optionsOrCb, cb) {
397
+ var command = new ListContainerInstancesCommand(args);
393
398
  if (typeof optionsOrCb === "function") {
394
399
  this.send(command, optionsOrCb);
395
400
  }
396
401
  else if (typeof cb === "function") {
397
402
  if (typeof optionsOrCb !== "object")
398
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
403
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
399
404
  this.send(command, optionsOrCb || {}, cb);
400
405
  }
401
406
  else {
402
407
  return this.send(command, optionsOrCb);
403
408
  }
404
- }
405
- listServices(args, optionsOrCb, cb) {
406
- const command = new ListServicesCommand(args);
409
+ };
410
+ ECS.prototype.listServices = function (args, optionsOrCb, cb) {
411
+ var command = new ListServicesCommand(args);
407
412
  if (typeof optionsOrCb === "function") {
408
413
  this.send(command, optionsOrCb);
409
414
  }
410
415
  else if (typeof cb === "function") {
411
416
  if (typeof optionsOrCb !== "object")
412
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
417
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
413
418
  this.send(command, optionsOrCb || {}, cb);
414
419
  }
415
420
  else {
416
421
  return this.send(command, optionsOrCb);
417
422
  }
418
- }
419
- listTagsForResource(args, optionsOrCb, cb) {
420
- const command = new ListTagsForResourceCommand(args);
423
+ };
424
+ ECS.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
425
+ var command = new ListTagsForResourceCommand(args);
421
426
  if (typeof optionsOrCb === "function") {
422
427
  this.send(command, optionsOrCb);
423
428
  }
424
429
  else if (typeof cb === "function") {
425
430
  if (typeof optionsOrCb !== "object")
426
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
431
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
427
432
  this.send(command, optionsOrCb || {}, cb);
428
433
  }
429
434
  else {
430
435
  return this.send(command, optionsOrCb);
431
436
  }
432
- }
433
- listTaskDefinitionFamilies(args, optionsOrCb, cb) {
434
- const command = new ListTaskDefinitionFamiliesCommand(args);
437
+ };
438
+ ECS.prototype.listTaskDefinitionFamilies = function (args, optionsOrCb, cb) {
439
+ var command = new ListTaskDefinitionFamiliesCommand(args);
435
440
  if (typeof optionsOrCb === "function") {
436
441
  this.send(command, optionsOrCb);
437
442
  }
438
443
  else if (typeof cb === "function") {
439
444
  if (typeof optionsOrCb !== "object")
440
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
445
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
441
446
  this.send(command, optionsOrCb || {}, cb);
442
447
  }
443
448
  else {
444
449
  return this.send(command, optionsOrCb);
445
450
  }
446
- }
447
- listTaskDefinitions(args, optionsOrCb, cb) {
448
- const command = new ListTaskDefinitionsCommand(args);
451
+ };
452
+ ECS.prototype.listTaskDefinitions = function (args, optionsOrCb, cb) {
453
+ var command = new ListTaskDefinitionsCommand(args);
449
454
  if (typeof optionsOrCb === "function") {
450
455
  this.send(command, optionsOrCb);
451
456
  }
452
457
  else if (typeof cb === "function") {
453
458
  if (typeof optionsOrCb !== "object")
454
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
459
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
455
460
  this.send(command, optionsOrCb || {}, cb);
456
461
  }
457
462
  else {
458
463
  return this.send(command, optionsOrCb);
459
464
  }
460
- }
461
- listTasks(args, optionsOrCb, cb) {
462
- const command = new ListTasksCommand(args);
465
+ };
466
+ ECS.prototype.listTasks = function (args, optionsOrCb, cb) {
467
+ var command = new ListTasksCommand(args);
463
468
  if (typeof optionsOrCb === "function") {
464
469
  this.send(command, optionsOrCb);
465
470
  }
466
471
  else if (typeof cb === "function") {
467
472
  if (typeof optionsOrCb !== "object")
468
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
473
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
469
474
  this.send(command, optionsOrCb || {}, cb);
470
475
  }
471
476
  else {
472
477
  return this.send(command, optionsOrCb);
473
478
  }
474
- }
475
- putAccountSetting(args, optionsOrCb, cb) {
476
- const command = new PutAccountSettingCommand(args);
479
+ };
480
+ ECS.prototype.putAccountSetting = function (args, optionsOrCb, cb) {
481
+ var command = new PutAccountSettingCommand(args);
477
482
  if (typeof optionsOrCb === "function") {
478
483
  this.send(command, optionsOrCb);
479
484
  }
480
485
  else if (typeof cb === "function") {
481
486
  if (typeof optionsOrCb !== "object")
482
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
487
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
483
488
  this.send(command, optionsOrCb || {}, cb);
484
489
  }
485
490
  else {
486
491
  return this.send(command, optionsOrCb);
487
492
  }
488
- }
489
- putAccountSettingDefault(args, optionsOrCb, cb) {
490
- const command = new PutAccountSettingDefaultCommand(args);
493
+ };
494
+ ECS.prototype.putAccountSettingDefault = function (args, optionsOrCb, cb) {
495
+ var command = new PutAccountSettingDefaultCommand(args);
491
496
  if (typeof optionsOrCb === "function") {
492
497
  this.send(command, optionsOrCb);
493
498
  }
494
499
  else if (typeof cb === "function") {
495
500
  if (typeof optionsOrCb !== "object")
496
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
501
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
497
502
  this.send(command, optionsOrCb || {}, cb);
498
503
  }
499
504
  else {
500
505
  return this.send(command, optionsOrCb);
501
506
  }
502
- }
503
- putAttributes(args, optionsOrCb, cb) {
504
- const command = new PutAttributesCommand(args);
507
+ };
508
+ ECS.prototype.putAttributes = function (args, optionsOrCb, cb) {
509
+ var command = new PutAttributesCommand(args);
505
510
  if (typeof optionsOrCb === "function") {
506
511
  this.send(command, optionsOrCb);
507
512
  }
508
513
  else if (typeof cb === "function") {
509
514
  if (typeof optionsOrCb !== "object")
510
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
515
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
511
516
  this.send(command, optionsOrCb || {}, cb);
512
517
  }
513
518
  else {
514
519
  return this.send(command, optionsOrCb);
515
520
  }
516
- }
517
- putClusterCapacityProviders(args, optionsOrCb, cb) {
518
- const command = new PutClusterCapacityProvidersCommand(args);
521
+ };
522
+ ECS.prototype.putClusterCapacityProviders = function (args, optionsOrCb, cb) {
523
+ var command = new PutClusterCapacityProvidersCommand(args);
519
524
  if (typeof optionsOrCb === "function") {
520
525
  this.send(command, optionsOrCb);
521
526
  }
522
527
  else if (typeof cb === "function") {
523
528
  if (typeof optionsOrCb !== "object")
524
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
529
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
525
530
  this.send(command, optionsOrCb || {}, cb);
526
531
  }
527
532
  else {
528
533
  return this.send(command, optionsOrCb);
529
534
  }
530
- }
531
- registerContainerInstance(args, optionsOrCb, cb) {
532
- const command = new RegisterContainerInstanceCommand(args);
535
+ };
536
+ ECS.prototype.registerContainerInstance = function (args, optionsOrCb, cb) {
537
+ var command = new RegisterContainerInstanceCommand(args);
533
538
  if (typeof optionsOrCb === "function") {
534
539
  this.send(command, optionsOrCb);
535
540
  }
536
541
  else if (typeof cb === "function") {
537
542
  if (typeof optionsOrCb !== "object")
538
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
543
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
539
544
  this.send(command, optionsOrCb || {}, cb);
540
545
  }
541
546
  else {
542
547
  return this.send(command, optionsOrCb);
543
548
  }
544
- }
545
- registerTaskDefinition(args, optionsOrCb, cb) {
546
- const command = new RegisterTaskDefinitionCommand(args);
549
+ };
550
+ ECS.prototype.registerTaskDefinition = function (args, optionsOrCb, cb) {
551
+ var command = new RegisterTaskDefinitionCommand(args);
547
552
  if (typeof optionsOrCb === "function") {
548
553
  this.send(command, optionsOrCb);
549
554
  }
550
555
  else if (typeof cb === "function") {
551
556
  if (typeof optionsOrCb !== "object")
552
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
557
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
553
558
  this.send(command, optionsOrCb || {}, cb);
554
559
  }
555
560
  else {
556
561
  return this.send(command, optionsOrCb);
557
562
  }
558
- }
559
- runTask(args, optionsOrCb, cb) {
560
- const command = new RunTaskCommand(args);
563
+ };
564
+ ECS.prototype.runTask = function (args, optionsOrCb, cb) {
565
+ var command = new RunTaskCommand(args);
561
566
  if (typeof optionsOrCb === "function") {
562
567
  this.send(command, optionsOrCb);
563
568
  }
564
569
  else if (typeof cb === "function") {
565
570
  if (typeof optionsOrCb !== "object")
566
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
571
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
567
572
  this.send(command, optionsOrCb || {}, cb);
568
573
  }
569
574
  else {
570
575
  return this.send(command, optionsOrCb);
571
576
  }
572
- }
573
- startTask(args, optionsOrCb, cb) {
574
- const command = new StartTaskCommand(args);
577
+ };
578
+ ECS.prototype.startTask = function (args, optionsOrCb, cb) {
579
+ var command = new StartTaskCommand(args);
575
580
  if (typeof optionsOrCb === "function") {
576
581
  this.send(command, optionsOrCb);
577
582
  }
578
583
  else if (typeof cb === "function") {
579
584
  if (typeof optionsOrCb !== "object")
580
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
585
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
581
586
  this.send(command, optionsOrCb || {}, cb);
582
587
  }
583
588
  else {
584
589
  return this.send(command, optionsOrCb);
585
590
  }
586
- }
587
- stopTask(args, optionsOrCb, cb) {
588
- const command = new StopTaskCommand(args);
591
+ };
592
+ ECS.prototype.stopTask = function (args, optionsOrCb, cb) {
593
+ var command = new StopTaskCommand(args);
589
594
  if (typeof optionsOrCb === "function") {
590
595
  this.send(command, optionsOrCb);
591
596
  }
592
597
  else if (typeof cb === "function") {
593
598
  if (typeof optionsOrCb !== "object")
594
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
599
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
595
600
  this.send(command, optionsOrCb || {}, cb);
596
601
  }
597
602
  else {
598
603
  return this.send(command, optionsOrCb);
599
604
  }
600
- }
601
- submitAttachmentStateChanges(args, optionsOrCb, cb) {
602
- const command = new SubmitAttachmentStateChangesCommand(args);
605
+ };
606
+ ECS.prototype.submitAttachmentStateChanges = function (args, optionsOrCb, cb) {
607
+ var command = new SubmitAttachmentStateChangesCommand(args);
603
608
  if (typeof optionsOrCb === "function") {
604
609
  this.send(command, optionsOrCb);
605
610
  }
606
611
  else if (typeof cb === "function") {
607
612
  if (typeof optionsOrCb !== "object")
608
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
613
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
609
614
  this.send(command, optionsOrCb || {}, cb);
610
615
  }
611
616
  else {
612
617
  return this.send(command, optionsOrCb);
613
618
  }
614
- }
615
- submitContainerStateChange(args, optionsOrCb, cb) {
616
- const command = new SubmitContainerStateChangeCommand(args);
619
+ };
620
+ ECS.prototype.submitContainerStateChange = function (args, optionsOrCb, cb) {
621
+ var command = new SubmitContainerStateChangeCommand(args);
617
622
  if (typeof optionsOrCb === "function") {
618
623
  this.send(command, optionsOrCb);
619
624
  }
620
625
  else if (typeof cb === "function") {
621
626
  if (typeof optionsOrCb !== "object")
622
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
627
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
623
628
  this.send(command, optionsOrCb || {}, cb);
624
629
  }
625
630
  else {
626
631
  return this.send(command, optionsOrCb);
627
632
  }
628
- }
629
- submitTaskStateChange(args, optionsOrCb, cb) {
630
- const command = new SubmitTaskStateChangeCommand(args);
633
+ };
634
+ ECS.prototype.submitTaskStateChange = function (args, optionsOrCb, cb) {
635
+ var command = new SubmitTaskStateChangeCommand(args);
631
636
  if (typeof optionsOrCb === "function") {
632
637
  this.send(command, optionsOrCb);
633
638
  }
634
639
  else if (typeof cb === "function") {
635
640
  if (typeof optionsOrCb !== "object")
636
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
641
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
637
642
  this.send(command, optionsOrCb || {}, cb);
638
643
  }
639
644
  else {
640
645
  return this.send(command, optionsOrCb);
641
646
  }
642
- }
643
- tagResource(args, optionsOrCb, cb) {
644
- const command = new TagResourceCommand(args);
647
+ };
648
+ ECS.prototype.tagResource = function (args, optionsOrCb, cb) {
649
+ var command = new TagResourceCommand(args);
645
650
  if (typeof optionsOrCb === "function") {
646
651
  this.send(command, optionsOrCb);
647
652
  }
648
653
  else if (typeof cb === "function") {
649
654
  if (typeof optionsOrCb !== "object")
650
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
655
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
651
656
  this.send(command, optionsOrCb || {}, cb);
652
657
  }
653
658
  else {
654
659
  return this.send(command, optionsOrCb);
655
660
  }
656
- }
657
- untagResource(args, optionsOrCb, cb) {
658
- const command = new UntagResourceCommand(args);
661
+ };
662
+ ECS.prototype.untagResource = function (args, optionsOrCb, cb) {
663
+ var command = new UntagResourceCommand(args);
659
664
  if (typeof optionsOrCb === "function") {
660
665
  this.send(command, optionsOrCb);
661
666
  }
662
667
  else if (typeof cb === "function") {
663
668
  if (typeof optionsOrCb !== "object")
664
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
669
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
665
670
  this.send(command, optionsOrCb || {}, cb);
666
671
  }
667
672
  else {
668
673
  return this.send(command, optionsOrCb);
669
674
  }
670
- }
671
- updateCapacityProvider(args, optionsOrCb, cb) {
672
- const command = new UpdateCapacityProviderCommand(args);
675
+ };
676
+ ECS.prototype.updateCapacityProvider = function (args, optionsOrCb, cb) {
677
+ var command = new UpdateCapacityProviderCommand(args);
673
678
  if (typeof optionsOrCb === "function") {
674
679
  this.send(command, optionsOrCb);
675
680
  }
676
681
  else if (typeof cb === "function") {
677
682
  if (typeof optionsOrCb !== "object")
678
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
683
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
679
684
  this.send(command, optionsOrCb || {}, cb);
680
685
  }
681
686
  else {
682
687
  return this.send(command, optionsOrCb);
683
688
  }
684
- }
685
- updateCluster(args, optionsOrCb, cb) {
686
- const command = new UpdateClusterCommand(args);
689
+ };
690
+ ECS.prototype.updateCluster = function (args, optionsOrCb, cb) {
691
+ var command = new UpdateClusterCommand(args);
687
692
  if (typeof optionsOrCb === "function") {
688
693
  this.send(command, optionsOrCb);
689
694
  }
690
695
  else if (typeof cb === "function") {
691
696
  if (typeof optionsOrCb !== "object")
692
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
697
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
693
698
  this.send(command, optionsOrCb || {}, cb);
694
699
  }
695
700
  else {
696
701
  return this.send(command, optionsOrCb);
697
702
  }
698
- }
699
- updateClusterSettings(args, optionsOrCb, cb) {
700
- const command = new UpdateClusterSettingsCommand(args);
703
+ };
704
+ ECS.prototype.updateClusterSettings = function (args, optionsOrCb, cb) {
705
+ var command = new UpdateClusterSettingsCommand(args);
701
706
  if (typeof optionsOrCb === "function") {
702
707
  this.send(command, optionsOrCb);
703
708
  }
704
709
  else if (typeof cb === "function") {
705
710
  if (typeof optionsOrCb !== "object")
706
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
711
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
707
712
  this.send(command, optionsOrCb || {}, cb);
708
713
  }
709
714
  else {
710
715
  return this.send(command, optionsOrCb);
711
716
  }
712
- }
713
- updateContainerAgent(args, optionsOrCb, cb) {
714
- const command = new UpdateContainerAgentCommand(args);
717
+ };
718
+ ECS.prototype.updateContainerAgent = function (args, optionsOrCb, cb) {
719
+ var command = new UpdateContainerAgentCommand(args);
715
720
  if (typeof optionsOrCb === "function") {
716
721
  this.send(command, optionsOrCb);
717
722
  }
718
723
  else if (typeof cb === "function") {
719
724
  if (typeof optionsOrCb !== "object")
720
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
725
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
721
726
  this.send(command, optionsOrCb || {}, cb);
722
727
  }
723
728
  else {
724
729
  return this.send(command, optionsOrCb);
725
730
  }
726
- }
727
- updateContainerInstancesState(args, optionsOrCb, cb) {
728
- const command = new UpdateContainerInstancesStateCommand(args);
731
+ };
732
+ ECS.prototype.updateContainerInstancesState = function (args, optionsOrCb, cb) {
733
+ var command = new UpdateContainerInstancesStateCommand(args);
729
734
  if (typeof optionsOrCb === "function") {
730
735
  this.send(command, optionsOrCb);
731
736
  }
732
737
  else if (typeof cb === "function") {
733
738
  if (typeof optionsOrCb !== "object")
734
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
739
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
735
740
  this.send(command, optionsOrCb || {}, cb);
736
741
  }
737
742
  else {
738
743
  return this.send(command, optionsOrCb);
739
744
  }
740
- }
741
- updateService(args, optionsOrCb, cb) {
742
- const command = new UpdateServiceCommand(args);
745
+ };
746
+ ECS.prototype.updateService = function (args, optionsOrCb, cb) {
747
+ var command = new UpdateServiceCommand(args);
743
748
  if (typeof optionsOrCb === "function") {
744
749
  this.send(command, optionsOrCb);
745
750
  }
746
751
  else if (typeof cb === "function") {
747
752
  if (typeof optionsOrCb !== "object")
748
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
753
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
749
754
  this.send(command, optionsOrCb || {}, cb);
750
755
  }
751
756
  else {
752
757
  return this.send(command, optionsOrCb);
753
758
  }
754
- }
755
- updateServicePrimaryTaskSet(args, optionsOrCb, cb) {
756
- const command = new UpdateServicePrimaryTaskSetCommand(args);
759
+ };
760
+ ECS.prototype.updateServicePrimaryTaskSet = function (args, optionsOrCb, cb) {
761
+ var command = new UpdateServicePrimaryTaskSetCommand(args);
757
762
  if (typeof optionsOrCb === "function") {
758
763
  this.send(command, optionsOrCb);
759
764
  }
760
765
  else if (typeof cb === "function") {
761
766
  if (typeof optionsOrCb !== "object")
762
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
767
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
763
768
  this.send(command, optionsOrCb || {}, cb);
764
769
  }
765
770
  else {
766
771
  return this.send(command, optionsOrCb);
767
772
  }
768
- }
769
- updateTaskSet(args, optionsOrCb, cb) {
770
- const command = new UpdateTaskSetCommand(args);
773
+ };
774
+ ECS.prototype.updateTaskSet = function (args, optionsOrCb, cb) {
775
+ var command = new UpdateTaskSetCommand(args);
771
776
  if (typeof optionsOrCb === "function") {
772
777
  this.send(command, optionsOrCb);
773
778
  }
774
779
  else if (typeof cb === "function") {
775
780
  if (typeof optionsOrCb !== "object")
776
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
781
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
777
782
  this.send(command, optionsOrCb || {}, cb);
778
783
  }
779
784
  else {
780
785
  return this.send(command, optionsOrCb);
781
786
  }
782
- }
783
- }
787
+ };
788
+ return ECS;
789
+ }(ECSClient));
790
+ export { ECS };