@aws-sdk/client-servicediscovery 3.315.0 → 3.316.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/ServiceDiscovery.js +30 -364
- package/dist-cjs/protocols/Aws_json1_1.js +8 -8
- package/dist-es/ServiceDiscovery.js +30 -364
- package/dist-es/protocols/Aws_json1_1.js +8 -8
- package/dist-types/ServiceDiscovery.d.ts +39 -219
- package/dist-types/ts3.4/ServiceDiscovery.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ServiceDiscovery = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateHttpNamespaceCommand_1 = require("./commands/CreateHttpNamespaceCommand");
|
|
5
6
|
const CreatePrivateDnsNamespaceCommand_1 = require("./commands/CreatePrivateDnsNamespaceCommand");
|
|
6
7
|
const CreatePublicDnsNamespaceCommand_1 = require("./commands/CreatePublicDnsNamespaceCommand");
|
|
@@ -28,370 +29,35 @@ const UpdatePrivateDnsNamespaceCommand_1 = require("./commands/UpdatePrivateDnsN
|
|
|
28
29
|
const UpdatePublicDnsNamespaceCommand_1 = require("./commands/UpdatePublicDnsNamespaceCommand");
|
|
29
30
|
const UpdateServiceCommand_1 = require("./commands/UpdateServiceCommand");
|
|
30
31
|
const ServiceDiscoveryClient_1 = require("./ServiceDiscoveryClient");
|
|
32
|
+
const commands = {
|
|
33
|
+
CreateHttpNamespaceCommand: CreateHttpNamespaceCommand_1.CreateHttpNamespaceCommand,
|
|
34
|
+
CreatePrivateDnsNamespaceCommand: CreatePrivateDnsNamespaceCommand_1.CreatePrivateDnsNamespaceCommand,
|
|
35
|
+
CreatePublicDnsNamespaceCommand: CreatePublicDnsNamespaceCommand_1.CreatePublicDnsNamespaceCommand,
|
|
36
|
+
CreateServiceCommand: CreateServiceCommand_1.CreateServiceCommand,
|
|
37
|
+
DeleteNamespaceCommand: DeleteNamespaceCommand_1.DeleteNamespaceCommand,
|
|
38
|
+
DeleteServiceCommand: DeleteServiceCommand_1.DeleteServiceCommand,
|
|
39
|
+
DeregisterInstanceCommand: DeregisterInstanceCommand_1.DeregisterInstanceCommand,
|
|
40
|
+
DiscoverInstancesCommand: DiscoverInstancesCommand_1.DiscoverInstancesCommand,
|
|
41
|
+
GetInstanceCommand: GetInstanceCommand_1.GetInstanceCommand,
|
|
42
|
+
GetInstancesHealthStatusCommand: GetInstancesHealthStatusCommand_1.GetInstancesHealthStatusCommand,
|
|
43
|
+
GetNamespaceCommand: GetNamespaceCommand_1.GetNamespaceCommand,
|
|
44
|
+
GetOperationCommand: GetOperationCommand_1.GetOperationCommand,
|
|
45
|
+
GetServiceCommand: GetServiceCommand_1.GetServiceCommand,
|
|
46
|
+
ListInstancesCommand: ListInstancesCommand_1.ListInstancesCommand,
|
|
47
|
+
ListNamespacesCommand: ListNamespacesCommand_1.ListNamespacesCommand,
|
|
48
|
+
ListOperationsCommand: ListOperationsCommand_1.ListOperationsCommand,
|
|
49
|
+
ListServicesCommand: ListServicesCommand_1.ListServicesCommand,
|
|
50
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
51
|
+
RegisterInstanceCommand: RegisterInstanceCommand_1.RegisterInstanceCommand,
|
|
52
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
53
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
54
|
+
UpdateHttpNamespaceCommand: UpdateHttpNamespaceCommand_1.UpdateHttpNamespaceCommand,
|
|
55
|
+
UpdateInstanceCustomHealthStatusCommand: UpdateInstanceCustomHealthStatusCommand_1.UpdateInstanceCustomHealthStatusCommand,
|
|
56
|
+
UpdatePrivateDnsNamespaceCommand: UpdatePrivateDnsNamespaceCommand_1.UpdatePrivateDnsNamespaceCommand,
|
|
57
|
+
UpdatePublicDnsNamespaceCommand: UpdatePublicDnsNamespaceCommand_1.UpdatePublicDnsNamespaceCommand,
|
|
58
|
+
UpdateServiceCommand: UpdateServiceCommand_1.UpdateServiceCommand,
|
|
59
|
+
};
|
|
31
60
|
class ServiceDiscovery extends ServiceDiscoveryClient_1.ServiceDiscoveryClient {
|
|
32
|
-
createHttpNamespace(args, optionsOrCb, cb) {
|
|
33
|
-
const command = new CreateHttpNamespaceCommand_1.CreateHttpNamespaceCommand(args);
|
|
34
|
-
if (typeof optionsOrCb === "function") {
|
|
35
|
-
this.send(command, optionsOrCb);
|
|
36
|
-
}
|
|
37
|
-
else if (typeof cb === "function") {
|
|
38
|
-
if (typeof optionsOrCb !== "object")
|
|
39
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
40
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
return this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
createPrivateDnsNamespace(args, optionsOrCb, cb) {
|
|
47
|
-
const command = new CreatePrivateDnsNamespaceCommand_1.CreatePrivateDnsNamespaceCommand(args);
|
|
48
|
-
if (typeof optionsOrCb === "function") {
|
|
49
|
-
this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
else if (typeof cb === "function") {
|
|
52
|
-
if (typeof optionsOrCb !== "object")
|
|
53
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
54
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
createPublicDnsNamespace(args, optionsOrCb, cb) {
|
|
61
|
-
const command = new CreatePublicDnsNamespaceCommand_1.CreatePublicDnsNamespaceCommand(args);
|
|
62
|
-
if (typeof optionsOrCb === "function") {
|
|
63
|
-
this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
else if (typeof cb === "function") {
|
|
66
|
-
if (typeof optionsOrCb !== "object")
|
|
67
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
68
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
createService(args, optionsOrCb, cb) {
|
|
75
|
-
const command = new CreateServiceCommand_1.CreateServiceCommand(args);
|
|
76
|
-
if (typeof optionsOrCb === "function") {
|
|
77
|
-
this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
else if (typeof cb === "function") {
|
|
80
|
-
if (typeof optionsOrCb !== "object")
|
|
81
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
82
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
deleteNamespace(args, optionsOrCb, cb) {
|
|
89
|
-
const command = new DeleteNamespaceCommand_1.DeleteNamespaceCommand(args);
|
|
90
|
-
if (typeof optionsOrCb === "function") {
|
|
91
|
-
this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
else if (typeof cb === "function") {
|
|
94
|
-
if (typeof optionsOrCb !== "object")
|
|
95
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
96
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
return this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
deleteService(args, optionsOrCb, cb) {
|
|
103
|
-
const command = new DeleteServiceCommand_1.DeleteServiceCommand(args);
|
|
104
|
-
if (typeof optionsOrCb === "function") {
|
|
105
|
-
this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
else if (typeof cb === "function") {
|
|
108
|
-
if (typeof optionsOrCb !== "object")
|
|
109
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
110
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
return this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
deregisterInstance(args, optionsOrCb, cb) {
|
|
117
|
-
const command = new DeregisterInstanceCommand_1.DeregisterInstanceCommand(args);
|
|
118
|
-
if (typeof optionsOrCb === "function") {
|
|
119
|
-
this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
else if (typeof cb === "function") {
|
|
122
|
-
if (typeof optionsOrCb !== "object")
|
|
123
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
124
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
return this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
discoverInstances(args, optionsOrCb, cb) {
|
|
131
|
-
const command = new DiscoverInstancesCommand_1.DiscoverInstancesCommand(args);
|
|
132
|
-
if (typeof optionsOrCb === "function") {
|
|
133
|
-
this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
else if (typeof cb === "function") {
|
|
136
|
-
if (typeof optionsOrCb !== "object")
|
|
137
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
138
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
return this.send(command, optionsOrCb);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
getInstance(args, optionsOrCb, cb) {
|
|
145
|
-
const command = new GetInstanceCommand_1.GetInstanceCommand(args);
|
|
146
|
-
if (typeof optionsOrCb === "function") {
|
|
147
|
-
this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
else if (typeof cb === "function") {
|
|
150
|
-
if (typeof optionsOrCb !== "object")
|
|
151
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
152
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
return this.send(command, optionsOrCb);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
getInstancesHealthStatus(args, optionsOrCb, cb) {
|
|
159
|
-
const command = new GetInstancesHealthStatusCommand_1.GetInstancesHealthStatusCommand(args);
|
|
160
|
-
if (typeof optionsOrCb === "function") {
|
|
161
|
-
this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
else if (typeof cb === "function") {
|
|
164
|
-
if (typeof optionsOrCb !== "object")
|
|
165
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
166
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
return this.send(command, optionsOrCb);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
getNamespace(args, optionsOrCb, cb) {
|
|
173
|
-
const command = new GetNamespaceCommand_1.GetNamespaceCommand(args);
|
|
174
|
-
if (typeof optionsOrCb === "function") {
|
|
175
|
-
this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
else if (typeof cb === "function") {
|
|
178
|
-
if (typeof optionsOrCb !== "object")
|
|
179
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
180
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
return this.send(command, optionsOrCb);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
getOperation(args, optionsOrCb, cb) {
|
|
187
|
-
const command = new GetOperationCommand_1.GetOperationCommand(args);
|
|
188
|
-
if (typeof optionsOrCb === "function") {
|
|
189
|
-
this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
else if (typeof cb === "function") {
|
|
192
|
-
if (typeof optionsOrCb !== "object")
|
|
193
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
194
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
return this.send(command, optionsOrCb);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
getService(args, optionsOrCb, cb) {
|
|
201
|
-
const command = new GetServiceCommand_1.GetServiceCommand(args);
|
|
202
|
-
if (typeof optionsOrCb === "function") {
|
|
203
|
-
this.send(command, optionsOrCb);
|
|
204
|
-
}
|
|
205
|
-
else if (typeof cb === "function") {
|
|
206
|
-
if (typeof optionsOrCb !== "object")
|
|
207
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
208
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
return this.send(command, optionsOrCb);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
listInstances(args, optionsOrCb, cb) {
|
|
215
|
-
const command = new ListInstancesCommand_1.ListInstancesCommand(args);
|
|
216
|
-
if (typeof optionsOrCb === "function") {
|
|
217
|
-
this.send(command, optionsOrCb);
|
|
218
|
-
}
|
|
219
|
-
else if (typeof cb === "function") {
|
|
220
|
-
if (typeof optionsOrCb !== "object")
|
|
221
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
222
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
return this.send(command, optionsOrCb);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
listNamespaces(args, optionsOrCb, cb) {
|
|
229
|
-
const command = new ListNamespacesCommand_1.ListNamespacesCommand(args);
|
|
230
|
-
if (typeof optionsOrCb === "function") {
|
|
231
|
-
this.send(command, optionsOrCb);
|
|
232
|
-
}
|
|
233
|
-
else if (typeof cb === "function") {
|
|
234
|
-
if (typeof optionsOrCb !== "object")
|
|
235
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
236
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
return this.send(command, optionsOrCb);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
listOperations(args, optionsOrCb, cb) {
|
|
243
|
-
const command = new ListOperationsCommand_1.ListOperationsCommand(args);
|
|
244
|
-
if (typeof optionsOrCb === "function") {
|
|
245
|
-
this.send(command, optionsOrCb);
|
|
246
|
-
}
|
|
247
|
-
else if (typeof cb === "function") {
|
|
248
|
-
if (typeof optionsOrCb !== "object")
|
|
249
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
250
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
251
|
-
}
|
|
252
|
-
else {
|
|
253
|
-
return this.send(command, optionsOrCb);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
listServices(args, optionsOrCb, cb) {
|
|
257
|
-
const command = new ListServicesCommand_1.ListServicesCommand(args);
|
|
258
|
-
if (typeof optionsOrCb === "function") {
|
|
259
|
-
this.send(command, optionsOrCb);
|
|
260
|
-
}
|
|
261
|
-
else if (typeof cb === "function") {
|
|
262
|
-
if (typeof optionsOrCb !== "object")
|
|
263
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
264
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
265
|
-
}
|
|
266
|
-
else {
|
|
267
|
-
return this.send(command, optionsOrCb);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
271
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
272
|
-
if (typeof optionsOrCb === "function") {
|
|
273
|
-
this.send(command, optionsOrCb);
|
|
274
|
-
}
|
|
275
|
-
else if (typeof cb === "function") {
|
|
276
|
-
if (typeof optionsOrCb !== "object")
|
|
277
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
278
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
return this.send(command, optionsOrCb);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
registerInstance(args, optionsOrCb, cb) {
|
|
285
|
-
const command = new RegisterInstanceCommand_1.RegisterInstanceCommand(args);
|
|
286
|
-
if (typeof optionsOrCb === "function") {
|
|
287
|
-
this.send(command, optionsOrCb);
|
|
288
|
-
}
|
|
289
|
-
else if (typeof cb === "function") {
|
|
290
|
-
if (typeof optionsOrCb !== "object")
|
|
291
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
292
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
return this.send(command, optionsOrCb);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
tagResource(args, optionsOrCb, cb) {
|
|
299
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
300
|
-
if (typeof optionsOrCb === "function") {
|
|
301
|
-
this.send(command, optionsOrCb);
|
|
302
|
-
}
|
|
303
|
-
else if (typeof cb === "function") {
|
|
304
|
-
if (typeof optionsOrCb !== "object")
|
|
305
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
306
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
return this.send(command, optionsOrCb);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
untagResource(args, optionsOrCb, cb) {
|
|
313
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
314
|
-
if (typeof optionsOrCb === "function") {
|
|
315
|
-
this.send(command, optionsOrCb);
|
|
316
|
-
}
|
|
317
|
-
else if (typeof cb === "function") {
|
|
318
|
-
if (typeof optionsOrCb !== "object")
|
|
319
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
320
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
return this.send(command, optionsOrCb);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
updateHttpNamespace(args, optionsOrCb, cb) {
|
|
327
|
-
const command = new UpdateHttpNamespaceCommand_1.UpdateHttpNamespaceCommand(args);
|
|
328
|
-
if (typeof optionsOrCb === "function") {
|
|
329
|
-
this.send(command, optionsOrCb);
|
|
330
|
-
}
|
|
331
|
-
else if (typeof cb === "function") {
|
|
332
|
-
if (typeof optionsOrCb !== "object")
|
|
333
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
334
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
335
|
-
}
|
|
336
|
-
else {
|
|
337
|
-
return this.send(command, optionsOrCb);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
updateInstanceCustomHealthStatus(args, optionsOrCb, cb) {
|
|
341
|
-
const command = new UpdateInstanceCustomHealthStatusCommand_1.UpdateInstanceCustomHealthStatusCommand(args);
|
|
342
|
-
if (typeof optionsOrCb === "function") {
|
|
343
|
-
this.send(command, optionsOrCb);
|
|
344
|
-
}
|
|
345
|
-
else if (typeof cb === "function") {
|
|
346
|
-
if (typeof optionsOrCb !== "object")
|
|
347
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
348
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
return this.send(command, optionsOrCb);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
updatePrivateDnsNamespace(args, optionsOrCb, cb) {
|
|
355
|
-
const command = new UpdatePrivateDnsNamespaceCommand_1.UpdatePrivateDnsNamespaceCommand(args);
|
|
356
|
-
if (typeof optionsOrCb === "function") {
|
|
357
|
-
this.send(command, optionsOrCb);
|
|
358
|
-
}
|
|
359
|
-
else if (typeof cb === "function") {
|
|
360
|
-
if (typeof optionsOrCb !== "object")
|
|
361
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
362
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
return this.send(command, optionsOrCb);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
updatePublicDnsNamespace(args, optionsOrCb, cb) {
|
|
369
|
-
const command = new UpdatePublicDnsNamespaceCommand_1.UpdatePublicDnsNamespaceCommand(args);
|
|
370
|
-
if (typeof optionsOrCb === "function") {
|
|
371
|
-
this.send(command, optionsOrCb);
|
|
372
|
-
}
|
|
373
|
-
else if (typeof cb === "function") {
|
|
374
|
-
if (typeof optionsOrCb !== "object")
|
|
375
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
376
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
377
|
-
}
|
|
378
|
-
else {
|
|
379
|
-
return this.send(command, optionsOrCb);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
updateService(args, optionsOrCb, cb) {
|
|
383
|
-
const command = new UpdateServiceCommand_1.UpdateServiceCommand(args);
|
|
384
|
-
if (typeof optionsOrCb === "function") {
|
|
385
|
-
this.send(command, optionsOrCb);
|
|
386
|
-
}
|
|
387
|
-
else if (typeof cb === "function") {
|
|
388
|
-
if (typeof optionsOrCb !== "object")
|
|
389
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
390
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
return this.send(command, optionsOrCb);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
61
|
}
|
|
397
62
|
exports.ServiceDiscovery = ServiceDiscovery;
|
|
63
|
+
(0, smithy_client_1.createAggregatedClient)(commands, ServiceDiscovery);
|
|
@@ -1353,7 +1353,7 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
1353
1353
|
};
|
|
1354
1354
|
const se_CreateHttpNamespaceRequest = (input, context) => {
|
|
1355
1355
|
return (0, smithy_client_1.take)(input, {
|
|
1356
|
-
CreatorRequestId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1356
|
+
CreatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1357
1357
|
Description: [],
|
|
1358
1358
|
Name: [],
|
|
1359
1359
|
Tags: smithy_client_1._json,
|
|
@@ -1361,7 +1361,7 @@ const se_CreateHttpNamespaceRequest = (input, context) => {
|
|
|
1361
1361
|
};
|
|
1362
1362
|
const se_CreatePrivateDnsNamespaceRequest = (input, context) => {
|
|
1363
1363
|
return (0, smithy_client_1.take)(input, {
|
|
1364
|
-
CreatorRequestId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1364
|
+
CreatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1365
1365
|
Description: [],
|
|
1366
1366
|
Name: [],
|
|
1367
1367
|
Properties: smithy_client_1._json,
|
|
@@ -1371,7 +1371,7 @@ const se_CreatePrivateDnsNamespaceRequest = (input, context) => {
|
|
|
1371
1371
|
};
|
|
1372
1372
|
const se_CreatePublicDnsNamespaceRequest = (input, context) => {
|
|
1373
1373
|
return (0, smithy_client_1.take)(input, {
|
|
1374
|
-
CreatorRequestId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1374
|
+
CreatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1375
1375
|
Description: [],
|
|
1376
1376
|
Name: [],
|
|
1377
1377
|
Properties: smithy_client_1._json,
|
|
@@ -1380,7 +1380,7 @@ const se_CreatePublicDnsNamespaceRequest = (input, context) => {
|
|
|
1380
1380
|
};
|
|
1381
1381
|
const se_CreateServiceRequest = (input, context) => {
|
|
1382
1382
|
return (0, smithy_client_1.take)(input, {
|
|
1383
|
-
CreatorRequestId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1383
|
+
CreatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1384
1384
|
Description: [],
|
|
1385
1385
|
DnsConfig: smithy_client_1._json,
|
|
1386
1386
|
HealthCheckConfig: smithy_client_1._json,
|
|
@@ -1394,7 +1394,7 @@ const se_CreateServiceRequest = (input, context) => {
|
|
|
1394
1394
|
const se_RegisterInstanceRequest = (input, context) => {
|
|
1395
1395
|
return (0, smithy_client_1.take)(input, {
|
|
1396
1396
|
Attributes: smithy_client_1._json,
|
|
1397
|
-
CreatorRequestId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1397
|
+
CreatorRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1398
1398
|
InstanceId: [],
|
|
1399
1399
|
ServiceId: [],
|
|
1400
1400
|
});
|
|
@@ -1403,21 +1403,21 @@ const se_UpdateHttpNamespaceRequest = (input, context) => {
|
|
|
1403
1403
|
return (0, smithy_client_1.take)(input, {
|
|
1404
1404
|
Id: [],
|
|
1405
1405
|
Namespace: smithy_client_1._json,
|
|
1406
|
-
UpdaterRequestId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1406
|
+
UpdaterRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1407
1407
|
});
|
|
1408
1408
|
};
|
|
1409
1409
|
const se_UpdatePrivateDnsNamespaceRequest = (input, context) => {
|
|
1410
1410
|
return (0, smithy_client_1.take)(input, {
|
|
1411
1411
|
Id: [],
|
|
1412
1412
|
Namespace: smithy_client_1._json,
|
|
1413
|
-
UpdaterRequestId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1413
|
+
UpdaterRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1414
1414
|
});
|
|
1415
1415
|
};
|
|
1416
1416
|
const se_UpdatePublicDnsNamespaceRequest = (input, context) => {
|
|
1417
1417
|
return (0, smithy_client_1.take)(input, {
|
|
1418
1418
|
Id: [],
|
|
1419
1419
|
Namespace: smithy_client_1._json,
|
|
1420
|
-
UpdaterRequestId: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1420
|
+
UpdaterRequestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
1421
1421
|
});
|
|
1422
1422
|
};
|
|
1423
1423
|
const de_CreateServiceResponse = (output, context) => {
|