@aws-sdk/client-servicediscovery 3.183.0 → 3.185.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +2 -2
- package/dist-es/ServiceDiscovery.js +113 -106
- package/dist-es/ServiceDiscoveryClient.js +28 -22
- package/dist-es/commands/CreateHttpNamespaceCommand.js +28 -21
- package/dist-es/commands/CreatePrivateDnsNamespaceCommand.js +28 -21
- package/dist-es/commands/CreatePublicDnsNamespaceCommand.js +28 -21
- package/dist-es/commands/CreateServiceCommand.js +28 -21
- package/dist-es/commands/DeleteNamespaceCommand.js +28 -21
- package/dist-es/commands/DeleteServiceCommand.js +28 -21
- package/dist-es/commands/DeregisterInstanceCommand.js +28 -21
- package/dist-es/commands/DiscoverInstancesCommand.js +28 -21
- package/dist-es/commands/GetInstanceCommand.js +28 -21
- package/dist-es/commands/GetInstancesHealthStatusCommand.js +28 -21
- package/dist-es/commands/GetNamespaceCommand.js +28 -21
- package/dist-es/commands/GetOperationCommand.js +28 -21
- package/dist-es/commands/GetServiceCommand.js +28 -21
- package/dist-es/commands/ListInstancesCommand.js +28 -21
- package/dist-es/commands/ListNamespacesCommand.js +28 -21
- package/dist-es/commands/ListOperationsCommand.js +28 -21
- package/dist-es/commands/ListServicesCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/RegisterInstanceCommand.js +28 -21
- package/dist-es/commands/TagResourceCommand.js +28 -21
- package/dist-es/commands/UntagResourceCommand.js +28 -21
- package/dist-es/commands/UpdateHttpNamespaceCommand.js +28 -21
- package/dist-es/commands/UpdateInstanceCustomHealthStatusCommand.js +29 -22
- package/dist-es/commands/UpdatePrivateDnsNamespaceCommand.js +28 -21
- package/dist-es/commands/UpdatePublicDnsNamespaceCommand.js +28 -21
- package/dist-es/commands/UpdateServiceCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ServiceDiscoveryServiceException.js +10 -5
- package/dist-es/models/models_0.js +261 -432
- package/dist-es/pagination/GetInstancesHealthStatusPaginator.js +68 -25
- package/dist-es/pagination/ListInstancesPaginator.js +68 -25
- package/dist-es/pagination/ListNamespacesPaginator.js +68 -25
- package/dist-es/pagination/ListOperationsPaginator.js +68 -25
- package/dist-es/pagination/ListServicesPaginator.js +68 -25
- package/dist-es/protocols/Aws_json1_1.js +2311 -1863
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-servicediscovery
|
|
@@ -2340,10 +2340,10 @@ const deserializeAws_json1_1UpdateServiceResponse = (output, context) => {
|
|
|
2340
2340
|
};
|
|
2341
2341
|
};
|
|
2342
2342
|
const deserializeMetadata = (output) => {
|
|
2343
|
-
var _a;
|
|
2343
|
+
var _a, _b;
|
|
2344
2344
|
return ({
|
|
2345
2345
|
httpStatusCode: output.statusCode,
|
|
2346
|
-
requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
|
|
2346
|
+
requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
|
|
2347
2347
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2348
2348
|
cfId: output.headers["x-amz-cf-id"],
|
|
2349
2349
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { CreateHttpNamespaceCommand, } from "./commands/CreateHttpNamespaceCommand";
|
|
2
3
|
import { CreatePrivateDnsNamespaceCommand, } from "./commands/CreatePrivateDnsNamespaceCommand";
|
|
3
4
|
import { CreatePublicDnsNamespaceCommand, } from "./commands/CreatePublicDnsNamespaceCommand";
|
|
@@ -25,369 +26,375 @@ import { UpdatePrivateDnsNamespaceCommand, } from "./commands/UpdatePrivateDnsNa
|
|
|
25
26
|
import { UpdatePublicDnsNamespaceCommand, } from "./commands/UpdatePublicDnsNamespaceCommand";
|
|
26
27
|
import { UpdateServiceCommand, } from "./commands/UpdateServiceCommand";
|
|
27
28
|
import { ServiceDiscoveryClient } from "./ServiceDiscoveryClient";
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
var ServiceDiscovery = (function (_super) {
|
|
30
|
+
__extends(ServiceDiscovery, _super);
|
|
31
|
+
function ServiceDiscovery() {
|
|
32
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
33
|
+
}
|
|
34
|
+
ServiceDiscovery.prototype.createHttpNamespace = function (args, optionsOrCb, cb) {
|
|
35
|
+
var command = new CreateHttpNamespaceCommand(args);
|
|
31
36
|
if (typeof optionsOrCb === "function") {
|
|
32
37
|
this.send(command, optionsOrCb);
|
|
33
38
|
}
|
|
34
39
|
else if (typeof cb === "function") {
|
|
35
40
|
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(
|
|
41
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
37
42
|
this.send(command, optionsOrCb || {}, cb);
|
|
38
43
|
}
|
|
39
44
|
else {
|
|
40
45
|
return this.send(command, optionsOrCb);
|
|
41
46
|
}
|
|
42
|
-
}
|
|
43
|
-
createPrivateDnsNamespace(args, optionsOrCb, cb) {
|
|
44
|
-
|
|
47
|
+
};
|
|
48
|
+
ServiceDiscovery.prototype.createPrivateDnsNamespace = function (args, optionsOrCb, cb) {
|
|
49
|
+
var command = new CreatePrivateDnsNamespaceCommand(args);
|
|
45
50
|
if (typeof optionsOrCb === "function") {
|
|
46
51
|
this.send(command, optionsOrCb);
|
|
47
52
|
}
|
|
48
53
|
else if (typeof cb === "function") {
|
|
49
54
|
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(
|
|
55
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
51
56
|
this.send(command, optionsOrCb || {}, cb);
|
|
52
57
|
}
|
|
53
58
|
else {
|
|
54
59
|
return this.send(command, optionsOrCb);
|
|
55
60
|
}
|
|
56
|
-
}
|
|
57
|
-
createPublicDnsNamespace(args, optionsOrCb, cb) {
|
|
58
|
-
|
|
61
|
+
};
|
|
62
|
+
ServiceDiscovery.prototype.createPublicDnsNamespace = function (args, optionsOrCb, cb) {
|
|
63
|
+
var command = new CreatePublicDnsNamespaceCommand(args);
|
|
59
64
|
if (typeof optionsOrCb === "function") {
|
|
60
65
|
this.send(command, optionsOrCb);
|
|
61
66
|
}
|
|
62
67
|
else if (typeof cb === "function") {
|
|
63
68
|
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(
|
|
69
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
65
70
|
this.send(command, optionsOrCb || {}, cb);
|
|
66
71
|
}
|
|
67
72
|
else {
|
|
68
73
|
return this.send(command, optionsOrCb);
|
|
69
74
|
}
|
|
70
|
-
}
|
|
71
|
-
createService(args, optionsOrCb, cb) {
|
|
72
|
-
|
|
75
|
+
};
|
|
76
|
+
ServiceDiscovery.prototype.createService = function (args, optionsOrCb, cb) {
|
|
77
|
+
var command = new CreateServiceCommand(args);
|
|
73
78
|
if (typeof optionsOrCb === "function") {
|
|
74
79
|
this.send(command, optionsOrCb);
|
|
75
80
|
}
|
|
76
81
|
else if (typeof cb === "function") {
|
|
77
82
|
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(
|
|
83
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
79
84
|
this.send(command, optionsOrCb || {}, cb);
|
|
80
85
|
}
|
|
81
86
|
else {
|
|
82
87
|
return this.send(command, optionsOrCb);
|
|
83
88
|
}
|
|
84
|
-
}
|
|
85
|
-
deleteNamespace(args, optionsOrCb, cb) {
|
|
86
|
-
|
|
89
|
+
};
|
|
90
|
+
ServiceDiscovery.prototype.deleteNamespace = function (args, optionsOrCb, cb) {
|
|
91
|
+
var command = new DeleteNamespaceCommand(args);
|
|
87
92
|
if (typeof optionsOrCb === "function") {
|
|
88
93
|
this.send(command, optionsOrCb);
|
|
89
94
|
}
|
|
90
95
|
else if (typeof cb === "function") {
|
|
91
96
|
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(
|
|
97
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
93
98
|
this.send(command, optionsOrCb || {}, cb);
|
|
94
99
|
}
|
|
95
100
|
else {
|
|
96
101
|
return this.send(command, optionsOrCb);
|
|
97
102
|
}
|
|
98
|
-
}
|
|
99
|
-
deleteService(args, optionsOrCb, cb) {
|
|
100
|
-
|
|
103
|
+
};
|
|
104
|
+
ServiceDiscovery.prototype.deleteService = function (args, optionsOrCb, cb) {
|
|
105
|
+
var command = new DeleteServiceCommand(args);
|
|
101
106
|
if (typeof optionsOrCb === "function") {
|
|
102
107
|
this.send(command, optionsOrCb);
|
|
103
108
|
}
|
|
104
109
|
else if (typeof cb === "function") {
|
|
105
110
|
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(
|
|
111
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
107
112
|
this.send(command, optionsOrCb || {}, cb);
|
|
108
113
|
}
|
|
109
114
|
else {
|
|
110
115
|
return this.send(command, optionsOrCb);
|
|
111
116
|
}
|
|
112
|
-
}
|
|
113
|
-
deregisterInstance(args, optionsOrCb, cb) {
|
|
114
|
-
|
|
117
|
+
};
|
|
118
|
+
ServiceDiscovery.prototype.deregisterInstance = function (args, optionsOrCb, cb) {
|
|
119
|
+
var command = new DeregisterInstanceCommand(args);
|
|
115
120
|
if (typeof optionsOrCb === "function") {
|
|
116
121
|
this.send(command, optionsOrCb);
|
|
117
122
|
}
|
|
118
123
|
else if (typeof cb === "function") {
|
|
119
124
|
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(
|
|
125
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
121
126
|
this.send(command, optionsOrCb || {}, cb);
|
|
122
127
|
}
|
|
123
128
|
else {
|
|
124
129
|
return this.send(command, optionsOrCb);
|
|
125
130
|
}
|
|
126
|
-
}
|
|
127
|
-
discoverInstances(args, optionsOrCb, cb) {
|
|
128
|
-
|
|
131
|
+
};
|
|
132
|
+
ServiceDiscovery.prototype.discoverInstances = function (args, optionsOrCb, cb) {
|
|
133
|
+
var command = new DiscoverInstancesCommand(args);
|
|
129
134
|
if (typeof optionsOrCb === "function") {
|
|
130
135
|
this.send(command, optionsOrCb);
|
|
131
136
|
}
|
|
132
137
|
else if (typeof cb === "function") {
|
|
133
138
|
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(
|
|
139
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
135
140
|
this.send(command, optionsOrCb || {}, cb);
|
|
136
141
|
}
|
|
137
142
|
else {
|
|
138
143
|
return this.send(command, optionsOrCb);
|
|
139
144
|
}
|
|
140
|
-
}
|
|
141
|
-
getInstance(args, optionsOrCb, cb) {
|
|
142
|
-
|
|
145
|
+
};
|
|
146
|
+
ServiceDiscovery.prototype.getInstance = function (args, optionsOrCb, cb) {
|
|
147
|
+
var command = new GetInstanceCommand(args);
|
|
143
148
|
if (typeof optionsOrCb === "function") {
|
|
144
149
|
this.send(command, optionsOrCb);
|
|
145
150
|
}
|
|
146
151
|
else if (typeof cb === "function") {
|
|
147
152
|
if (typeof optionsOrCb !== "object")
|
|
148
|
-
throw new Error(
|
|
153
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
149
154
|
this.send(command, optionsOrCb || {}, cb);
|
|
150
155
|
}
|
|
151
156
|
else {
|
|
152
157
|
return this.send(command, optionsOrCb);
|
|
153
158
|
}
|
|
154
|
-
}
|
|
155
|
-
getInstancesHealthStatus(args, optionsOrCb, cb) {
|
|
156
|
-
|
|
159
|
+
};
|
|
160
|
+
ServiceDiscovery.prototype.getInstancesHealthStatus = function (args, optionsOrCb, cb) {
|
|
161
|
+
var command = new GetInstancesHealthStatusCommand(args);
|
|
157
162
|
if (typeof optionsOrCb === "function") {
|
|
158
163
|
this.send(command, optionsOrCb);
|
|
159
164
|
}
|
|
160
165
|
else if (typeof cb === "function") {
|
|
161
166
|
if (typeof optionsOrCb !== "object")
|
|
162
|
-
throw new Error(
|
|
167
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
163
168
|
this.send(command, optionsOrCb || {}, cb);
|
|
164
169
|
}
|
|
165
170
|
else {
|
|
166
171
|
return this.send(command, optionsOrCb);
|
|
167
172
|
}
|
|
168
|
-
}
|
|
169
|
-
getNamespace(args, optionsOrCb, cb) {
|
|
170
|
-
|
|
173
|
+
};
|
|
174
|
+
ServiceDiscovery.prototype.getNamespace = function (args, optionsOrCb, cb) {
|
|
175
|
+
var command = new GetNamespaceCommand(args);
|
|
171
176
|
if (typeof optionsOrCb === "function") {
|
|
172
177
|
this.send(command, optionsOrCb);
|
|
173
178
|
}
|
|
174
179
|
else if (typeof cb === "function") {
|
|
175
180
|
if (typeof optionsOrCb !== "object")
|
|
176
|
-
throw new Error(
|
|
181
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
177
182
|
this.send(command, optionsOrCb || {}, cb);
|
|
178
183
|
}
|
|
179
184
|
else {
|
|
180
185
|
return this.send(command, optionsOrCb);
|
|
181
186
|
}
|
|
182
|
-
}
|
|
183
|
-
getOperation(args, optionsOrCb, cb) {
|
|
184
|
-
|
|
187
|
+
};
|
|
188
|
+
ServiceDiscovery.prototype.getOperation = function (args, optionsOrCb, cb) {
|
|
189
|
+
var command = new GetOperationCommand(args);
|
|
185
190
|
if (typeof optionsOrCb === "function") {
|
|
186
191
|
this.send(command, optionsOrCb);
|
|
187
192
|
}
|
|
188
193
|
else if (typeof cb === "function") {
|
|
189
194
|
if (typeof optionsOrCb !== "object")
|
|
190
|
-
throw new Error(
|
|
195
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
191
196
|
this.send(command, optionsOrCb || {}, cb);
|
|
192
197
|
}
|
|
193
198
|
else {
|
|
194
199
|
return this.send(command, optionsOrCb);
|
|
195
200
|
}
|
|
196
|
-
}
|
|
197
|
-
getService(args, optionsOrCb, cb) {
|
|
198
|
-
|
|
201
|
+
};
|
|
202
|
+
ServiceDiscovery.prototype.getService = function (args, optionsOrCb, cb) {
|
|
203
|
+
var command = new GetServiceCommand(args);
|
|
199
204
|
if (typeof optionsOrCb === "function") {
|
|
200
205
|
this.send(command, optionsOrCb);
|
|
201
206
|
}
|
|
202
207
|
else if (typeof cb === "function") {
|
|
203
208
|
if (typeof optionsOrCb !== "object")
|
|
204
|
-
throw new Error(
|
|
209
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
205
210
|
this.send(command, optionsOrCb || {}, cb);
|
|
206
211
|
}
|
|
207
212
|
else {
|
|
208
213
|
return this.send(command, optionsOrCb);
|
|
209
214
|
}
|
|
210
|
-
}
|
|
211
|
-
listInstances(args, optionsOrCb, cb) {
|
|
212
|
-
|
|
215
|
+
};
|
|
216
|
+
ServiceDiscovery.prototype.listInstances = function (args, optionsOrCb, cb) {
|
|
217
|
+
var command = new ListInstancesCommand(args);
|
|
213
218
|
if (typeof optionsOrCb === "function") {
|
|
214
219
|
this.send(command, optionsOrCb);
|
|
215
220
|
}
|
|
216
221
|
else if (typeof cb === "function") {
|
|
217
222
|
if (typeof optionsOrCb !== "object")
|
|
218
|
-
throw new Error(
|
|
223
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
219
224
|
this.send(command, optionsOrCb || {}, cb);
|
|
220
225
|
}
|
|
221
226
|
else {
|
|
222
227
|
return this.send(command, optionsOrCb);
|
|
223
228
|
}
|
|
224
|
-
}
|
|
225
|
-
listNamespaces(args, optionsOrCb, cb) {
|
|
226
|
-
|
|
229
|
+
};
|
|
230
|
+
ServiceDiscovery.prototype.listNamespaces = function (args, optionsOrCb, cb) {
|
|
231
|
+
var command = new ListNamespacesCommand(args);
|
|
227
232
|
if (typeof optionsOrCb === "function") {
|
|
228
233
|
this.send(command, optionsOrCb);
|
|
229
234
|
}
|
|
230
235
|
else if (typeof cb === "function") {
|
|
231
236
|
if (typeof optionsOrCb !== "object")
|
|
232
|
-
throw new Error(
|
|
237
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
233
238
|
this.send(command, optionsOrCb || {}, cb);
|
|
234
239
|
}
|
|
235
240
|
else {
|
|
236
241
|
return this.send(command, optionsOrCb);
|
|
237
242
|
}
|
|
238
|
-
}
|
|
239
|
-
listOperations(args, optionsOrCb, cb) {
|
|
240
|
-
|
|
243
|
+
};
|
|
244
|
+
ServiceDiscovery.prototype.listOperations = function (args, optionsOrCb, cb) {
|
|
245
|
+
var command = new ListOperationsCommand(args);
|
|
241
246
|
if (typeof optionsOrCb === "function") {
|
|
242
247
|
this.send(command, optionsOrCb);
|
|
243
248
|
}
|
|
244
249
|
else if (typeof cb === "function") {
|
|
245
250
|
if (typeof optionsOrCb !== "object")
|
|
246
|
-
throw new Error(
|
|
251
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
247
252
|
this.send(command, optionsOrCb || {}, cb);
|
|
248
253
|
}
|
|
249
254
|
else {
|
|
250
255
|
return this.send(command, optionsOrCb);
|
|
251
256
|
}
|
|
252
|
-
}
|
|
253
|
-
listServices(args, optionsOrCb, cb) {
|
|
254
|
-
|
|
257
|
+
};
|
|
258
|
+
ServiceDiscovery.prototype.listServices = function (args, optionsOrCb, cb) {
|
|
259
|
+
var command = new ListServicesCommand(args);
|
|
255
260
|
if (typeof optionsOrCb === "function") {
|
|
256
261
|
this.send(command, optionsOrCb);
|
|
257
262
|
}
|
|
258
263
|
else if (typeof cb === "function") {
|
|
259
264
|
if (typeof optionsOrCb !== "object")
|
|
260
|
-
throw new Error(
|
|
265
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
261
266
|
this.send(command, optionsOrCb || {}, cb);
|
|
262
267
|
}
|
|
263
268
|
else {
|
|
264
269
|
return this.send(command, optionsOrCb);
|
|
265
270
|
}
|
|
266
|
-
}
|
|
267
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
268
|
-
|
|
271
|
+
};
|
|
272
|
+
ServiceDiscovery.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
273
|
+
var command = new ListTagsForResourceCommand(args);
|
|
269
274
|
if (typeof optionsOrCb === "function") {
|
|
270
275
|
this.send(command, optionsOrCb);
|
|
271
276
|
}
|
|
272
277
|
else if (typeof cb === "function") {
|
|
273
278
|
if (typeof optionsOrCb !== "object")
|
|
274
|
-
throw new Error(
|
|
279
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
275
280
|
this.send(command, optionsOrCb || {}, cb);
|
|
276
281
|
}
|
|
277
282
|
else {
|
|
278
283
|
return this.send(command, optionsOrCb);
|
|
279
284
|
}
|
|
280
|
-
}
|
|
281
|
-
registerInstance(args, optionsOrCb, cb) {
|
|
282
|
-
|
|
285
|
+
};
|
|
286
|
+
ServiceDiscovery.prototype.registerInstance = function (args, optionsOrCb, cb) {
|
|
287
|
+
var command = new RegisterInstanceCommand(args);
|
|
283
288
|
if (typeof optionsOrCb === "function") {
|
|
284
289
|
this.send(command, optionsOrCb);
|
|
285
290
|
}
|
|
286
291
|
else if (typeof cb === "function") {
|
|
287
292
|
if (typeof optionsOrCb !== "object")
|
|
288
|
-
throw new Error(
|
|
293
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
289
294
|
this.send(command, optionsOrCb || {}, cb);
|
|
290
295
|
}
|
|
291
296
|
else {
|
|
292
297
|
return this.send(command, optionsOrCb);
|
|
293
298
|
}
|
|
294
|
-
}
|
|
295
|
-
tagResource(args, optionsOrCb, cb) {
|
|
296
|
-
|
|
299
|
+
};
|
|
300
|
+
ServiceDiscovery.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
301
|
+
var command = new TagResourceCommand(args);
|
|
297
302
|
if (typeof optionsOrCb === "function") {
|
|
298
303
|
this.send(command, optionsOrCb);
|
|
299
304
|
}
|
|
300
305
|
else if (typeof cb === "function") {
|
|
301
306
|
if (typeof optionsOrCb !== "object")
|
|
302
|
-
throw new Error(
|
|
307
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
303
308
|
this.send(command, optionsOrCb || {}, cb);
|
|
304
309
|
}
|
|
305
310
|
else {
|
|
306
311
|
return this.send(command, optionsOrCb);
|
|
307
312
|
}
|
|
308
|
-
}
|
|
309
|
-
untagResource(args, optionsOrCb, cb) {
|
|
310
|
-
|
|
313
|
+
};
|
|
314
|
+
ServiceDiscovery.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
315
|
+
var command = new UntagResourceCommand(args);
|
|
311
316
|
if (typeof optionsOrCb === "function") {
|
|
312
317
|
this.send(command, optionsOrCb);
|
|
313
318
|
}
|
|
314
319
|
else if (typeof cb === "function") {
|
|
315
320
|
if (typeof optionsOrCb !== "object")
|
|
316
|
-
throw new Error(
|
|
321
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
317
322
|
this.send(command, optionsOrCb || {}, cb);
|
|
318
323
|
}
|
|
319
324
|
else {
|
|
320
325
|
return this.send(command, optionsOrCb);
|
|
321
326
|
}
|
|
322
|
-
}
|
|
323
|
-
updateHttpNamespace(args, optionsOrCb, cb) {
|
|
324
|
-
|
|
327
|
+
};
|
|
328
|
+
ServiceDiscovery.prototype.updateHttpNamespace = function (args, optionsOrCb, cb) {
|
|
329
|
+
var command = new UpdateHttpNamespaceCommand(args);
|
|
325
330
|
if (typeof optionsOrCb === "function") {
|
|
326
331
|
this.send(command, optionsOrCb);
|
|
327
332
|
}
|
|
328
333
|
else if (typeof cb === "function") {
|
|
329
334
|
if (typeof optionsOrCb !== "object")
|
|
330
|
-
throw new Error(
|
|
335
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
331
336
|
this.send(command, optionsOrCb || {}, cb);
|
|
332
337
|
}
|
|
333
338
|
else {
|
|
334
339
|
return this.send(command, optionsOrCb);
|
|
335
340
|
}
|
|
336
|
-
}
|
|
337
|
-
updateInstanceCustomHealthStatus(args, optionsOrCb, cb) {
|
|
338
|
-
|
|
341
|
+
};
|
|
342
|
+
ServiceDiscovery.prototype.updateInstanceCustomHealthStatus = function (args, optionsOrCb, cb) {
|
|
343
|
+
var command = new UpdateInstanceCustomHealthStatusCommand(args);
|
|
339
344
|
if (typeof optionsOrCb === "function") {
|
|
340
345
|
this.send(command, optionsOrCb);
|
|
341
346
|
}
|
|
342
347
|
else if (typeof cb === "function") {
|
|
343
348
|
if (typeof optionsOrCb !== "object")
|
|
344
|
-
throw new Error(
|
|
349
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
345
350
|
this.send(command, optionsOrCb || {}, cb);
|
|
346
351
|
}
|
|
347
352
|
else {
|
|
348
353
|
return this.send(command, optionsOrCb);
|
|
349
354
|
}
|
|
350
|
-
}
|
|
351
|
-
updatePrivateDnsNamespace(args, optionsOrCb, cb) {
|
|
352
|
-
|
|
355
|
+
};
|
|
356
|
+
ServiceDiscovery.prototype.updatePrivateDnsNamespace = function (args, optionsOrCb, cb) {
|
|
357
|
+
var command = new UpdatePrivateDnsNamespaceCommand(args);
|
|
353
358
|
if (typeof optionsOrCb === "function") {
|
|
354
359
|
this.send(command, optionsOrCb);
|
|
355
360
|
}
|
|
356
361
|
else if (typeof cb === "function") {
|
|
357
362
|
if (typeof optionsOrCb !== "object")
|
|
358
|
-
throw new Error(
|
|
363
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
359
364
|
this.send(command, optionsOrCb || {}, cb);
|
|
360
365
|
}
|
|
361
366
|
else {
|
|
362
367
|
return this.send(command, optionsOrCb);
|
|
363
368
|
}
|
|
364
|
-
}
|
|
365
|
-
updatePublicDnsNamespace(args, optionsOrCb, cb) {
|
|
366
|
-
|
|
369
|
+
};
|
|
370
|
+
ServiceDiscovery.prototype.updatePublicDnsNamespace = function (args, optionsOrCb, cb) {
|
|
371
|
+
var command = new UpdatePublicDnsNamespaceCommand(args);
|
|
367
372
|
if (typeof optionsOrCb === "function") {
|
|
368
373
|
this.send(command, optionsOrCb);
|
|
369
374
|
}
|
|
370
375
|
else if (typeof cb === "function") {
|
|
371
376
|
if (typeof optionsOrCb !== "object")
|
|
372
|
-
throw new Error(
|
|
377
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
373
378
|
this.send(command, optionsOrCb || {}, cb);
|
|
374
379
|
}
|
|
375
380
|
else {
|
|
376
381
|
return this.send(command, optionsOrCb);
|
|
377
382
|
}
|
|
378
|
-
}
|
|
379
|
-
updateService(args, optionsOrCb, cb) {
|
|
380
|
-
|
|
383
|
+
};
|
|
384
|
+
ServiceDiscovery.prototype.updateService = function (args, optionsOrCb, cb) {
|
|
385
|
+
var command = new UpdateServiceCommand(args);
|
|
381
386
|
if (typeof optionsOrCb === "function") {
|
|
382
387
|
this.send(command, optionsOrCb);
|
|
383
388
|
}
|
|
384
389
|
else if (typeof cb === "function") {
|
|
385
390
|
if (typeof optionsOrCb !== "object")
|
|
386
|
-
throw new Error(
|
|
391
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
387
392
|
this.send(command, optionsOrCb || {}, cb);
|
|
388
393
|
}
|
|
389
394
|
else {
|
|
390
395
|
return this.send(command, optionsOrCb);
|
|
391
396
|
}
|
|
392
|
-
}
|
|
393
|
-
|
|
397
|
+
};
|
|
398
|
+
return ServiceDiscovery;
|
|
399
|
+
}(ServiceDiscoveryClient));
|
|
400
|
+
export { ServiceDiscovery };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
2
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
8
9
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
9
10
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
10
11
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
var ServiceDiscoveryClient = (function (_super) {
|
|
13
|
+
__extends(ServiceDiscoveryClient, _super);
|
|
14
|
+
function ServiceDiscoveryClient(configuration) {
|
|
15
|
+
var _this = this;
|
|
16
|
+
var _config_0 = __getRuntimeConfig(configuration);
|
|
17
|
+
var _config_1 = resolveRegionConfig(_config_0);
|
|
18
|
+
var _config_2 = resolveEndpointsConfig(_config_1);
|
|
19
|
+
var _config_3 = resolveRetryConfig(_config_2);
|
|
20
|
+
var _config_4 = resolveHostHeaderConfig(_config_3);
|
|
21
|
+
var _config_5 = resolveAwsAuthConfig(_config_4);
|
|
22
|
+
var _config_6 = resolveUserAgentConfig(_config_5);
|
|
23
|
+
_this = _super.call(this, _config_6) || this;
|
|
24
|
+
_this.config = _config_6;
|
|
25
|
+
_this.middlewareStack.use(getRetryPlugin(_this.config));
|
|
26
|
+
_this.middlewareStack.use(getContentLengthPlugin(_this.config));
|
|
27
|
+
_this.middlewareStack.use(getHostHeaderPlugin(_this.config));
|
|
28
|
+
_this.middlewareStack.use(getLoggerPlugin(_this.config));
|
|
29
|
+
_this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
|
|
30
|
+
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
+
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
+
return _this;
|
|
29
33
|
}
|
|
30
|
-
destroy() {
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
+
ServiceDiscoveryClient.prototype.destroy = function () {
|
|
35
|
+
_super.prototype.destroy.call(this);
|
|
36
|
+
};
|
|
37
|
+
return ServiceDiscoveryClient;
|
|
38
|
+
}(__Client));
|
|
39
|
+
export { ServiceDiscoveryClient };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
1
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
4
|
import { CreateHttpNamespaceRequestFilterSensitiveLog, CreateHttpNamespaceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { deserializeAws_json1_1CreateHttpNamespaceCommand, serializeAws_json1_1CreateHttpNamespaceCommand, } from "../protocols/Aws_json1_1";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var CreateHttpNamespaceCommand = (function (_super) {
|
|
7
|
+
__extends(CreateHttpNamespaceCommand, _super);
|
|
8
|
+
function CreateHttpNamespaceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
9
12
|
}
|
|
10
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
13
|
+
CreateHttpNamespaceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
11
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
logger,
|
|
18
|
-
clientName,
|
|
19
|
-
commandName,
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ServiceDiscoveryClient";
|
|
18
|
+
var commandName = "CreateHttpNamespaceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
20
23
|
inputFilterSensitiveLog: CreateHttpNamespaceRequestFilterSensitiveLog,
|
|
21
24
|
outputFilterSensitiveLog: CreateHttpNamespaceResponseFilterSensitiveLog,
|
|
22
25
|
};
|
|
23
|
-
|
|
24
|
-
return stack.resolve((request)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateHttpNamespaceCommand.prototype.serialize = function (input, context) {
|
|
27
32
|
return serializeAws_json1_1CreateHttpNamespaceCommand(input, context);
|
|
28
|
-
}
|
|
29
|
-
deserialize(output, context) {
|
|
33
|
+
};
|
|
34
|
+
CreateHttpNamespaceCommand.prototype.deserialize = function (output, context) {
|
|
30
35
|
return deserializeAws_json1_1CreateHttpNamespaceCommand(output, context);
|
|
31
|
-
}
|
|
32
|
-
|
|
36
|
+
};
|
|
37
|
+
return CreateHttpNamespaceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateHttpNamespaceCommand };
|