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