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