@aws-sdk/client-servicediscovery 3.927.0 → 3.929.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/index.js +1126 -1260
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/ServiceDiscoveryClient.js +2 -0
- package/dist-es/commands/CreateHttpNamespaceCommand.js +3 -9
- package/dist-es/commands/CreatePrivateDnsNamespaceCommand.js +3 -9
- package/dist-es/commands/CreatePublicDnsNamespaceCommand.js +3 -9
- package/dist-es/commands/CreateServiceCommand.js +3 -9
- package/dist-es/commands/DeleteNamespaceCommand.js +3 -9
- package/dist-es/commands/DeleteServiceAttributesCommand.js +3 -9
- package/dist-es/commands/DeleteServiceCommand.js +3 -9
- package/dist-es/commands/DeregisterInstanceCommand.js +3 -9
- package/dist-es/commands/DiscoverInstancesCommand.js +3 -9
- package/dist-es/commands/DiscoverInstancesRevisionCommand.js +3 -9
- package/dist-es/commands/GetInstanceCommand.js +3 -9
- package/dist-es/commands/GetInstancesHealthStatusCommand.js +3 -9
- package/dist-es/commands/GetNamespaceCommand.js +3 -9
- package/dist-es/commands/GetOperationCommand.js +3 -9
- package/dist-es/commands/GetServiceAttributesCommand.js +3 -9
- package/dist-es/commands/GetServiceCommand.js +3 -9
- package/dist-es/commands/ListInstancesCommand.js +3 -9
- package/dist-es/commands/ListNamespacesCommand.js +3 -9
- package/dist-es/commands/ListOperationsCommand.js +3 -9
- package/dist-es/commands/ListServicesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/RegisterInstanceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateHttpNamespaceCommand.js +3 -9
- package/dist-es/commands/UpdateInstanceCustomHealthStatusCommand.js +3 -9
- package/dist-es/commands/UpdatePrivateDnsNamespaceCommand.js +3 -9
- package/dist-es/commands/UpdatePublicDnsNamespaceCommand.js +3 -9
- package/dist-es/commands/UpdateServiceAttributesCommand.js +3 -9
- package/dist-es/commands/UpdateServiceCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1025 -0
- package/dist-types/ServiceDiscoveryClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +161 -0
- package/dist-types/ts3.4/ServiceDiscoveryClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +166 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_1.js +0 -1006
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -272
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -365
|
@@ -1,1006 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { CustomHealthNotFound, DuplicateRequest, InstanceNotFound, InvalidInput, NamespaceAlreadyExists, NamespaceNotFound, OperationNotFound, RequestLimitExceeded, ResourceInUse, ResourceLimitExceeded, ResourceNotFoundException, ServiceAlreadyExists, ServiceAttributesLimitExceededException, ServiceNotFound, TooManyTagsException, } from "../models/models_0";
|
|
6
|
-
import { ServiceDiscoveryServiceException as __BaseException } from "../models/ServiceDiscoveryServiceException";
|
|
7
|
-
export const se_CreateHttpNamespaceCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("CreateHttpNamespace");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(se_CreateHttpNamespaceRequest(input, context));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_CreatePrivateDnsNamespaceCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("CreatePrivateDnsNamespace");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(se_CreatePrivateDnsNamespaceRequest(input, context));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_CreatePublicDnsNamespaceCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("CreatePublicDnsNamespace");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(se_CreatePublicDnsNamespaceRequest(input, context));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_CreateServiceCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CreateService");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(se_CreateServiceRequest(input, context));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_DeleteNamespaceCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("DeleteNamespace");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(_json(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_DeleteServiceCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("DeleteService");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(_json(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_DeleteServiceAttributesCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("DeleteServiceAttributes");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(_json(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_DeregisterInstanceCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("DeregisterInstance");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(_json(input));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_DiscoverInstancesCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("DiscoverInstances");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
60
|
-
if (context.disableHostPrefix !== true) {
|
|
61
|
-
resolvedHostname = "data-" + resolvedHostname;
|
|
62
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
63
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
67
|
-
};
|
|
68
|
-
export const se_DiscoverInstancesRevisionCommand = async (input, context) => {
|
|
69
|
-
const headers = sharedHeaders("DiscoverInstancesRevision");
|
|
70
|
-
let body;
|
|
71
|
-
body = JSON.stringify(_json(input));
|
|
72
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
73
|
-
if (context.disableHostPrefix !== true) {
|
|
74
|
-
resolvedHostname = "data-" + resolvedHostname;
|
|
75
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
76
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
80
|
-
};
|
|
81
|
-
export const se_GetInstanceCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("GetInstance");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify(_json(input));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
export const se_GetInstancesHealthStatusCommand = async (input, context) => {
|
|
88
|
-
const headers = sharedHeaders("GetInstancesHealthStatus");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify(_json(input));
|
|
91
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
-
};
|
|
93
|
-
export const se_GetNamespaceCommand = async (input, context) => {
|
|
94
|
-
const headers = sharedHeaders("GetNamespace");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify(_json(input));
|
|
97
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
-
};
|
|
99
|
-
export const se_GetOperationCommand = async (input, context) => {
|
|
100
|
-
const headers = sharedHeaders("GetOperation");
|
|
101
|
-
let body;
|
|
102
|
-
body = JSON.stringify(_json(input));
|
|
103
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
-
};
|
|
105
|
-
export const se_GetServiceCommand = async (input, context) => {
|
|
106
|
-
const headers = sharedHeaders("GetService");
|
|
107
|
-
let body;
|
|
108
|
-
body = JSON.stringify(_json(input));
|
|
109
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
110
|
-
};
|
|
111
|
-
export const se_GetServiceAttributesCommand = async (input, context) => {
|
|
112
|
-
const headers = sharedHeaders("GetServiceAttributes");
|
|
113
|
-
let body;
|
|
114
|
-
body = JSON.stringify(_json(input));
|
|
115
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
|
-
};
|
|
117
|
-
export const se_ListInstancesCommand = async (input, context) => {
|
|
118
|
-
const headers = sharedHeaders("ListInstances");
|
|
119
|
-
let body;
|
|
120
|
-
body = JSON.stringify(_json(input));
|
|
121
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
|
-
};
|
|
123
|
-
export const se_ListNamespacesCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("ListNamespaces");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify(_json(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
export const se_ListOperationsCommand = async (input, context) => {
|
|
130
|
-
const headers = sharedHeaders("ListOperations");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify(_json(input));
|
|
133
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
-
};
|
|
135
|
-
export const se_ListServicesCommand = async (input, context) => {
|
|
136
|
-
const headers = sharedHeaders("ListServices");
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify(_json(input));
|
|
139
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
-
};
|
|
141
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
142
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
143
|
-
let body;
|
|
144
|
-
body = JSON.stringify(_json(input));
|
|
145
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
146
|
-
};
|
|
147
|
-
export const se_RegisterInstanceCommand = async (input, context) => {
|
|
148
|
-
const headers = sharedHeaders("RegisterInstance");
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify(se_RegisterInstanceRequest(input, context));
|
|
151
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
152
|
-
};
|
|
153
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
154
|
-
const headers = sharedHeaders("TagResource");
|
|
155
|
-
let body;
|
|
156
|
-
body = JSON.stringify(_json(input));
|
|
157
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
|
-
};
|
|
159
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
160
|
-
const headers = sharedHeaders("UntagResource");
|
|
161
|
-
let body;
|
|
162
|
-
body = JSON.stringify(_json(input));
|
|
163
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
164
|
-
};
|
|
165
|
-
export const se_UpdateHttpNamespaceCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("UpdateHttpNamespace");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify(se_UpdateHttpNamespaceRequest(input, context));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
export const se_UpdateInstanceCustomHealthStatusCommand = async (input, context) => {
|
|
172
|
-
const headers = sharedHeaders("UpdateInstanceCustomHealthStatus");
|
|
173
|
-
let body;
|
|
174
|
-
body = JSON.stringify(_json(input));
|
|
175
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
-
};
|
|
177
|
-
export const se_UpdatePrivateDnsNamespaceCommand = async (input, context) => {
|
|
178
|
-
const headers = sharedHeaders("UpdatePrivateDnsNamespace");
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify(se_UpdatePrivateDnsNamespaceRequest(input, context));
|
|
181
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
|
-
};
|
|
183
|
-
export const se_UpdatePublicDnsNamespaceCommand = async (input, context) => {
|
|
184
|
-
const headers = sharedHeaders("UpdatePublicDnsNamespace");
|
|
185
|
-
let body;
|
|
186
|
-
body = JSON.stringify(se_UpdatePublicDnsNamespaceRequest(input, context));
|
|
187
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
|
-
};
|
|
189
|
-
export const se_UpdateServiceCommand = async (input, context) => {
|
|
190
|
-
const headers = sharedHeaders("UpdateService");
|
|
191
|
-
let body;
|
|
192
|
-
body = JSON.stringify(_json(input));
|
|
193
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
|
-
};
|
|
195
|
-
export const se_UpdateServiceAttributesCommand = async (input, context) => {
|
|
196
|
-
const headers = sharedHeaders("UpdateServiceAttributes");
|
|
197
|
-
let body;
|
|
198
|
-
body = JSON.stringify(_json(input));
|
|
199
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
200
|
-
};
|
|
201
|
-
export const de_CreateHttpNamespaceCommand = async (output, context) => {
|
|
202
|
-
if (output.statusCode >= 300) {
|
|
203
|
-
return de_CommandError(output, context);
|
|
204
|
-
}
|
|
205
|
-
const data = await parseBody(output.body, context);
|
|
206
|
-
let contents = {};
|
|
207
|
-
contents = _json(data);
|
|
208
|
-
const response = {
|
|
209
|
-
$metadata: deserializeMetadata(output),
|
|
210
|
-
...contents,
|
|
211
|
-
};
|
|
212
|
-
return response;
|
|
213
|
-
};
|
|
214
|
-
export const de_CreatePrivateDnsNamespaceCommand = async (output, context) => {
|
|
215
|
-
if (output.statusCode >= 300) {
|
|
216
|
-
return de_CommandError(output, context);
|
|
217
|
-
}
|
|
218
|
-
const data = await parseBody(output.body, context);
|
|
219
|
-
let contents = {};
|
|
220
|
-
contents = _json(data);
|
|
221
|
-
const response = {
|
|
222
|
-
$metadata: deserializeMetadata(output),
|
|
223
|
-
...contents,
|
|
224
|
-
};
|
|
225
|
-
return response;
|
|
226
|
-
};
|
|
227
|
-
export const de_CreatePublicDnsNamespaceCommand = async (output, context) => {
|
|
228
|
-
if (output.statusCode >= 300) {
|
|
229
|
-
return de_CommandError(output, context);
|
|
230
|
-
}
|
|
231
|
-
const data = await parseBody(output.body, context);
|
|
232
|
-
let contents = {};
|
|
233
|
-
contents = _json(data);
|
|
234
|
-
const response = {
|
|
235
|
-
$metadata: deserializeMetadata(output),
|
|
236
|
-
...contents,
|
|
237
|
-
};
|
|
238
|
-
return response;
|
|
239
|
-
};
|
|
240
|
-
export const de_CreateServiceCommand = async (output, context) => {
|
|
241
|
-
if (output.statusCode >= 300) {
|
|
242
|
-
return de_CommandError(output, context);
|
|
243
|
-
}
|
|
244
|
-
const data = await parseBody(output.body, context);
|
|
245
|
-
let contents = {};
|
|
246
|
-
contents = de_CreateServiceResponse(data, context);
|
|
247
|
-
const response = {
|
|
248
|
-
$metadata: deserializeMetadata(output),
|
|
249
|
-
...contents,
|
|
250
|
-
};
|
|
251
|
-
return response;
|
|
252
|
-
};
|
|
253
|
-
export const de_DeleteNamespaceCommand = async (output, context) => {
|
|
254
|
-
if (output.statusCode >= 300) {
|
|
255
|
-
return de_CommandError(output, context);
|
|
256
|
-
}
|
|
257
|
-
const data = await parseBody(output.body, context);
|
|
258
|
-
let contents = {};
|
|
259
|
-
contents = _json(data);
|
|
260
|
-
const response = {
|
|
261
|
-
$metadata: deserializeMetadata(output),
|
|
262
|
-
...contents,
|
|
263
|
-
};
|
|
264
|
-
return response;
|
|
265
|
-
};
|
|
266
|
-
export const de_DeleteServiceCommand = async (output, context) => {
|
|
267
|
-
if (output.statusCode >= 300) {
|
|
268
|
-
return de_CommandError(output, context);
|
|
269
|
-
}
|
|
270
|
-
const data = await parseBody(output.body, context);
|
|
271
|
-
let contents = {};
|
|
272
|
-
contents = _json(data);
|
|
273
|
-
const response = {
|
|
274
|
-
$metadata: deserializeMetadata(output),
|
|
275
|
-
...contents,
|
|
276
|
-
};
|
|
277
|
-
return response;
|
|
278
|
-
};
|
|
279
|
-
export const de_DeleteServiceAttributesCommand = async (output, context) => {
|
|
280
|
-
if (output.statusCode >= 300) {
|
|
281
|
-
return de_CommandError(output, context);
|
|
282
|
-
}
|
|
283
|
-
const data = await parseBody(output.body, context);
|
|
284
|
-
let contents = {};
|
|
285
|
-
contents = _json(data);
|
|
286
|
-
const response = {
|
|
287
|
-
$metadata: deserializeMetadata(output),
|
|
288
|
-
...contents,
|
|
289
|
-
};
|
|
290
|
-
return response;
|
|
291
|
-
};
|
|
292
|
-
export const de_DeregisterInstanceCommand = async (output, context) => {
|
|
293
|
-
if (output.statusCode >= 300) {
|
|
294
|
-
return de_CommandError(output, context);
|
|
295
|
-
}
|
|
296
|
-
const data = await parseBody(output.body, context);
|
|
297
|
-
let contents = {};
|
|
298
|
-
contents = _json(data);
|
|
299
|
-
const response = {
|
|
300
|
-
$metadata: deserializeMetadata(output),
|
|
301
|
-
...contents,
|
|
302
|
-
};
|
|
303
|
-
return response;
|
|
304
|
-
};
|
|
305
|
-
export const de_DiscoverInstancesCommand = async (output, context) => {
|
|
306
|
-
if (output.statusCode >= 300) {
|
|
307
|
-
return de_CommandError(output, context);
|
|
308
|
-
}
|
|
309
|
-
const data = await parseBody(output.body, context);
|
|
310
|
-
let contents = {};
|
|
311
|
-
contents = _json(data);
|
|
312
|
-
const response = {
|
|
313
|
-
$metadata: deserializeMetadata(output),
|
|
314
|
-
...contents,
|
|
315
|
-
};
|
|
316
|
-
return response;
|
|
317
|
-
};
|
|
318
|
-
export const de_DiscoverInstancesRevisionCommand = async (output, context) => {
|
|
319
|
-
if (output.statusCode >= 300) {
|
|
320
|
-
return de_CommandError(output, context);
|
|
321
|
-
}
|
|
322
|
-
const data = await parseBody(output.body, context);
|
|
323
|
-
let contents = {};
|
|
324
|
-
contents = _json(data);
|
|
325
|
-
const response = {
|
|
326
|
-
$metadata: deserializeMetadata(output),
|
|
327
|
-
...contents,
|
|
328
|
-
};
|
|
329
|
-
return response;
|
|
330
|
-
};
|
|
331
|
-
export const de_GetInstanceCommand = async (output, context) => {
|
|
332
|
-
if (output.statusCode >= 300) {
|
|
333
|
-
return de_CommandError(output, context);
|
|
334
|
-
}
|
|
335
|
-
const data = await parseBody(output.body, context);
|
|
336
|
-
let contents = {};
|
|
337
|
-
contents = _json(data);
|
|
338
|
-
const response = {
|
|
339
|
-
$metadata: deserializeMetadata(output),
|
|
340
|
-
...contents,
|
|
341
|
-
};
|
|
342
|
-
return response;
|
|
343
|
-
};
|
|
344
|
-
export const de_GetInstancesHealthStatusCommand = async (output, context) => {
|
|
345
|
-
if (output.statusCode >= 300) {
|
|
346
|
-
return de_CommandError(output, context);
|
|
347
|
-
}
|
|
348
|
-
const data = await parseBody(output.body, context);
|
|
349
|
-
let contents = {};
|
|
350
|
-
contents = _json(data);
|
|
351
|
-
const response = {
|
|
352
|
-
$metadata: deserializeMetadata(output),
|
|
353
|
-
...contents,
|
|
354
|
-
};
|
|
355
|
-
return response;
|
|
356
|
-
};
|
|
357
|
-
export const de_GetNamespaceCommand = async (output, context) => {
|
|
358
|
-
if (output.statusCode >= 300) {
|
|
359
|
-
return de_CommandError(output, context);
|
|
360
|
-
}
|
|
361
|
-
const data = await parseBody(output.body, context);
|
|
362
|
-
let contents = {};
|
|
363
|
-
contents = de_GetNamespaceResponse(data, context);
|
|
364
|
-
const response = {
|
|
365
|
-
$metadata: deserializeMetadata(output),
|
|
366
|
-
...contents,
|
|
367
|
-
};
|
|
368
|
-
return response;
|
|
369
|
-
};
|
|
370
|
-
export const de_GetOperationCommand = async (output, context) => {
|
|
371
|
-
if (output.statusCode >= 300) {
|
|
372
|
-
return de_CommandError(output, context);
|
|
373
|
-
}
|
|
374
|
-
const data = await parseBody(output.body, context);
|
|
375
|
-
let contents = {};
|
|
376
|
-
contents = de_GetOperationResponse(data, context);
|
|
377
|
-
const response = {
|
|
378
|
-
$metadata: deserializeMetadata(output),
|
|
379
|
-
...contents,
|
|
380
|
-
};
|
|
381
|
-
return response;
|
|
382
|
-
};
|
|
383
|
-
export const de_GetServiceCommand = async (output, context) => {
|
|
384
|
-
if (output.statusCode >= 300) {
|
|
385
|
-
return de_CommandError(output, context);
|
|
386
|
-
}
|
|
387
|
-
const data = await parseBody(output.body, context);
|
|
388
|
-
let contents = {};
|
|
389
|
-
contents = de_GetServiceResponse(data, context);
|
|
390
|
-
const response = {
|
|
391
|
-
$metadata: deserializeMetadata(output),
|
|
392
|
-
...contents,
|
|
393
|
-
};
|
|
394
|
-
return response;
|
|
395
|
-
};
|
|
396
|
-
export const de_GetServiceAttributesCommand = async (output, context) => {
|
|
397
|
-
if (output.statusCode >= 300) {
|
|
398
|
-
return de_CommandError(output, context);
|
|
399
|
-
}
|
|
400
|
-
const data = await parseBody(output.body, context);
|
|
401
|
-
let contents = {};
|
|
402
|
-
contents = _json(data);
|
|
403
|
-
const response = {
|
|
404
|
-
$metadata: deserializeMetadata(output),
|
|
405
|
-
...contents,
|
|
406
|
-
};
|
|
407
|
-
return response;
|
|
408
|
-
};
|
|
409
|
-
export const de_ListInstancesCommand = async (output, context) => {
|
|
410
|
-
if (output.statusCode >= 300) {
|
|
411
|
-
return de_CommandError(output, context);
|
|
412
|
-
}
|
|
413
|
-
const data = await parseBody(output.body, context);
|
|
414
|
-
let contents = {};
|
|
415
|
-
contents = _json(data);
|
|
416
|
-
const response = {
|
|
417
|
-
$metadata: deserializeMetadata(output),
|
|
418
|
-
...contents,
|
|
419
|
-
};
|
|
420
|
-
return response;
|
|
421
|
-
};
|
|
422
|
-
export const de_ListNamespacesCommand = async (output, context) => {
|
|
423
|
-
if (output.statusCode >= 300) {
|
|
424
|
-
return de_CommandError(output, context);
|
|
425
|
-
}
|
|
426
|
-
const data = await parseBody(output.body, context);
|
|
427
|
-
let contents = {};
|
|
428
|
-
contents = de_ListNamespacesResponse(data, context);
|
|
429
|
-
const response = {
|
|
430
|
-
$metadata: deserializeMetadata(output),
|
|
431
|
-
...contents,
|
|
432
|
-
};
|
|
433
|
-
return response;
|
|
434
|
-
};
|
|
435
|
-
export const de_ListOperationsCommand = async (output, context) => {
|
|
436
|
-
if (output.statusCode >= 300) {
|
|
437
|
-
return de_CommandError(output, context);
|
|
438
|
-
}
|
|
439
|
-
const data = await parseBody(output.body, context);
|
|
440
|
-
let contents = {};
|
|
441
|
-
contents = _json(data);
|
|
442
|
-
const response = {
|
|
443
|
-
$metadata: deserializeMetadata(output),
|
|
444
|
-
...contents,
|
|
445
|
-
};
|
|
446
|
-
return response;
|
|
447
|
-
};
|
|
448
|
-
export const de_ListServicesCommand = async (output, context) => {
|
|
449
|
-
if (output.statusCode >= 300) {
|
|
450
|
-
return de_CommandError(output, context);
|
|
451
|
-
}
|
|
452
|
-
const data = await parseBody(output.body, context);
|
|
453
|
-
let contents = {};
|
|
454
|
-
contents = de_ListServicesResponse(data, context);
|
|
455
|
-
const response = {
|
|
456
|
-
$metadata: deserializeMetadata(output),
|
|
457
|
-
...contents,
|
|
458
|
-
};
|
|
459
|
-
return response;
|
|
460
|
-
};
|
|
461
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
462
|
-
if (output.statusCode >= 300) {
|
|
463
|
-
return de_CommandError(output, context);
|
|
464
|
-
}
|
|
465
|
-
const data = await parseBody(output.body, context);
|
|
466
|
-
let contents = {};
|
|
467
|
-
contents = _json(data);
|
|
468
|
-
const response = {
|
|
469
|
-
$metadata: deserializeMetadata(output),
|
|
470
|
-
...contents,
|
|
471
|
-
};
|
|
472
|
-
return response;
|
|
473
|
-
};
|
|
474
|
-
export const de_RegisterInstanceCommand = async (output, context) => {
|
|
475
|
-
if (output.statusCode >= 300) {
|
|
476
|
-
return de_CommandError(output, context);
|
|
477
|
-
}
|
|
478
|
-
const data = await parseBody(output.body, context);
|
|
479
|
-
let contents = {};
|
|
480
|
-
contents = _json(data);
|
|
481
|
-
const response = {
|
|
482
|
-
$metadata: deserializeMetadata(output),
|
|
483
|
-
...contents,
|
|
484
|
-
};
|
|
485
|
-
return response;
|
|
486
|
-
};
|
|
487
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
488
|
-
if (output.statusCode >= 300) {
|
|
489
|
-
return de_CommandError(output, context);
|
|
490
|
-
}
|
|
491
|
-
const data = await parseBody(output.body, context);
|
|
492
|
-
let contents = {};
|
|
493
|
-
contents = _json(data);
|
|
494
|
-
const response = {
|
|
495
|
-
$metadata: deserializeMetadata(output),
|
|
496
|
-
...contents,
|
|
497
|
-
};
|
|
498
|
-
return response;
|
|
499
|
-
};
|
|
500
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
501
|
-
if (output.statusCode >= 300) {
|
|
502
|
-
return de_CommandError(output, context);
|
|
503
|
-
}
|
|
504
|
-
const data = await parseBody(output.body, context);
|
|
505
|
-
let contents = {};
|
|
506
|
-
contents = _json(data);
|
|
507
|
-
const response = {
|
|
508
|
-
$metadata: deserializeMetadata(output),
|
|
509
|
-
...contents,
|
|
510
|
-
};
|
|
511
|
-
return response;
|
|
512
|
-
};
|
|
513
|
-
export const de_UpdateHttpNamespaceCommand = async (output, context) => {
|
|
514
|
-
if (output.statusCode >= 300) {
|
|
515
|
-
return de_CommandError(output, context);
|
|
516
|
-
}
|
|
517
|
-
const data = await parseBody(output.body, context);
|
|
518
|
-
let contents = {};
|
|
519
|
-
contents = _json(data);
|
|
520
|
-
const response = {
|
|
521
|
-
$metadata: deserializeMetadata(output),
|
|
522
|
-
...contents,
|
|
523
|
-
};
|
|
524
|
-
return response;
|
|
525
|
-
};
|
|
526
|
-
export const de_UpdateInstanceCustomHealthStatusCommand = async (output, context) => {
|
|
527
|
-
if (output.statusCode >= 300) {
|
|
528
|
-
return de_CommandError(output, context);
|
|
529
|
-
}
|
|
530
|
-
await collectBody(output.body, context);
|
|
531
|
-
const response = {
|
|
532
|
-
$metadata: deserializeMetadata(output),
|
|
533
|
-
};
|
|
534
|
-
return response;
|
|
535
|
-
};
|
|
536
|
-
export const de_UpdatePrivateDnsNamespaceCommand = async (output, context) => {
|
|
537
|
-
if (output.statusCode >= 300) {
|
|
538
|
-
return de_CommandError(output, context);
|
|
539
|
-
}
|
|
540
|
-
const data = await parseBody(output.body, context);
|
|
541
|
-
let contents = {};
|
|
542
|
-
contents = _json(data);
|
|
543
|
-
const response = {
|
|
544
|
-
$metadata: deserializeMetadata(output),
|
|
545
|
-
...contents,
|
|
546
|
-
};
|
|
547
|
-
return response;
|
|
548
|
-
};
|
|
549
|
-
export const de_UpdatePublicDnsNamespaceCommand = async (output, context) => {
|
|
550
|
-
if (output.statusCode >= 300) {
|
|
551
|
-
return de_CommandError(output, context);
|
|
552
|
-
}
|
|
553
|
-
const data = await parseBody(output.body, context);
|
|
554
|
-
let contents = {};
|
|
555
|
-
contents = _json(data);
|
|
556
|
-
const response = {
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
...contents,
|
|
559
|
-
};
|
|
560
|
-
return response;
|
|
561
|
-
};
|
|
562
|
-
export const de_UpdateServiceCommand = async (output, context) => {
|
|
563
|
-
if (output.statusCode >= 300) {
|
|
564
|
-
return de_CommandError(output, context);
|
|
565
|
-
}
|
|
566
|
-
const data = await parseBody(output.body, context);
|
|
567
|
-
let contents = {};
|
|
568
|
-
contents = _json(data);
|
|
569
|
-
const response = {
|
|
570
|
-
$metadata: deserializeMetadata(output),
|
|
571
|
-
...contents,
|
|
572
|
-
};
|
|
573
|
-
return response;
|
|
574
|
-
};
|
|
575
|
-
export const de_UpdateServiceAttributesCommand = async (output, context) => {
|
|
576
|
-
if (output.statusCode >= 300) {
|
|
577
|
-
return de_CommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
const data = await parseBody(output.body, context);
|
|
580
|
-
let contents = {};
|
|
581
|
-
contents = _json(data);
|
|
582
|
-
const response = {
|
|
583
|
-
$metadata: deserializeMetadata(output),
|
|
584
|
-
...contents,
|
|
585
|
-
};
|
|
586
|
-
return response;
|
|
587
|
-
};
|
|
588
|
-
const de_CommandError = async (output, context) => {
|
|
589
|
-
const parsedOutput = {
|
|
590
|
-
...output,
|
|
591
|
-
body: await parseErrorBody(output.body, context),
|
|
592
|
-
};
|
|
593
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
594
|
-
switch (errorCode) {
|
|
595
|
-
case "DuplicateRequest":
|
|
596
|
-
case "com.amazonaws.servicediscovery#DuplicateRequest":
|
|
597
|
-
throw await de_DuplicateRequestRes(parsedOutput, context);
|
|
598
|
-
case "InvalidInput":
|
|
599
|
-
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
600
|
-
throw await de_InvalidInputRes(parsedOutput, context);
|
|
601
|
-
case "NamespaceAlreadyExists":
|
|
602
|
-
case "com.amazonaws.servicediscovery#NamespaceAlreadyExists":
|
|
603
|
-
throw await de_NamespaceAlreadyExistsRes(parsedOutput, context);
|
|
604
|
-
case "ResourceLimitExceeded":
|
|
605
|
-
case "com.amazonaws.servicediscovery#ResourceLimitExceeded":
|
|
606
|
-
throw await de_ResourceLimitExceededRes(parsedOutput, context);
|
|
607
|
-
case "TooManyTagsException":
|
|
608
|
-
case "com.amazonaws.servicediscovery#TooManyTagsException":
|
|
609
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
610
|
-
case "NamespaceNotFound":
|
|
611
|
-
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
612
|
-
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
613
|
-
case "ServiceAlreadyExists":
|
|
614
|
-
case "com.amazonaws.servicediscovery#ServiceAlreadyExists":
|
|
615
|
-
throw await de_ServiceAlreadyExistsRes(parsedOutput, context);
|
|
616
|
-
case "ResourceInUse":
|
|
617
|
-
case "com.amazonaws.servicediscovery#ResourceInUse":
|
|
618
|
-
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
619
|
-
case "ServiceNotFound":
|
|
620
|
-
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
621
|
-
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
622
|
-
case "InstanceNotFound":
|
|
623
|
-
case "com.amazonaws.servicediscovery#InstanceNotFound":
|
|
624
|
-
throw await de_InstanceNotFoundRes(parsedOutput, context);
|
|
625
|
-
case "RequestLimitExceeded":
|
|
626
|
-
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
627
|
-
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
628
|
-
case "OperationNotFound":
|
|
629
|
-
case "com.amazonaws.servicediscovery#OperationNotFound":
|
|
630
|
-
throw await de_OperationNotFoundRes(parsedOutput, context);
|
|
631
|
-
case "ResourceNotFoundException":
|
|
632
|
-
case "com.amazonaws.servicediscovery#ResourceNotFoundException":
|
|
633
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
634
|
-
case "CustomHealthNotFound":
|
|
635
|
-
case "com.amazonaws.servicediscovery#CustomHealthNotFound":
|
|
636
|
-
throw await de_CustomHealthNotFoundRes(parsedOutput, context);
|
|
637
|
-
case "ServiceAttributesLimitExceededException":
|
|
638
|
-
case "com.amazonaws.servicediscovery#ServiceAttributesLimitExceededException":
|
|
639
|
-
throw await de_ServiceAttributesLimitExceededExceptionRes(parsedOutput, context);
|
|
640
|
-
default:
|
|
641
|
-
const parsedBody = parsedOutput.body;
|
|
642
|
-
return throwDefaultError({
|
|
643
|
-
output,
|
|
644
|
-
parsedBody,
|
|
645
|
-
errorCode,
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
const de_CustomHealthNotFoundRes = async (parsedOutput, context) => {
|
|
650
|
-
const body = parsedOutput.body;
|
|
651
|
-
const deserialized = _json(body);
|
|
652
|
-
const exception = new CustomHealthNotFound({
|
|
653
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
654
|
-
...deserialized,
|
|
655
|
-
});
|
|
656
|
-
return __decorateServiceException(exception, body);
|
|
657
|
-
};
|
|
658
|
-
const de_DuplicateRequestRes = async (parsedOutput, context) => {
|
|
659
|
-
const body = parsedOutput.body;
|
|
660
|
-
const deserialized = _json(body);
|
|
661
|
-
const exception = new DuplicateRequest({
|
|
662
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
663
|
-
...deserialized,
|
|
664
|
-
});
|
|
665
|
-
return __decorateServiceException(exception, body);
|
|
666
|
-
};
|
|
667
|
-
const de_InstanceNotFoundRes = async (parsedOutput, context) => {
|
|
668
|
-
const body = parsedOutput.body;
|
|
669
|
-
const deserialized = _json(body);
|
|
670
|
-
const exception = new InstanceNotFound({
|
|
671
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
672
|
-
...deserialized,
|
|
673
|
-
});
|
|
674
|
-
return __decorateServiceException(exception, body);
|
|
675
|
-
};
|
|
676
|
-
const de_InvalidInputRes = async (parsedOutput, context) => {
|
|
677
|
-
const body = parsedOutput.body;
|
|
678
|
-
const deserialized = _json(body);
|
|
679
|
-
const exception = new InvalidInput({
|
|
680
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
681
|
-
...deserialized,
|
|
682
|
-
});
|
|
683
|
-
return __decorateServiceException(exception, body);
|
|
684
|
-
};
|
|
685
|
-
const de_NamespaceAlreadyExistsRes = async (parsedOutput, context) => {
|
|
686
|
-
const body = parsedOutput.body;
|
|
687
|
-
const deserialized = _json(body);
|
|
688
|
-
const exception = new NamespaceAlreadyExists({
|
|
689
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
690
|
-
...deserialized,
|
|
691
|
-
});
|
|
692
|
-
return __decorateServiceException(exception, body);
|
|
693
|
-
};
|
|
694
|
-
const de_NamespaceNotFoundRes = async (parsedOutput, context) => {
|
|
695
|
-
const body = parsedOutput.body;
|
|
696
|
-
const deserialized = _json(body);
|
|
697
|
-
const exception = new NamespaceNotFound({
|
|
698
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
699
|
-
...deserialized,
|
|
700
|
-
});
|
|
701
|
-
return __decorateServiceException(exception, body);
|
|
702
|
-
};
|
|
703
|
-
const de_OperationNotFoundRes = async (parsedOutput, context) => {
|
|
704
|
-
const body = parsedOutput.body;
|
|
705
|
-
const deserialized = _json(body);
|
|
706
|
-
const exception = new OperationNotFound({
|
|
707
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
708
|
-
...deserialized,
|
|
709
|
-
});
|
|
710
|
-
return __decorateServiceException(exception, body);
|
|
711
|
-
};
|
|
712
|
-
const de_RequestLimitExceededRes = async (parsedOutput, context) => {
|
|
713
|
-
const body = parsedOutput.body;
|
|
714
|
-
const deserialized = _json(body);
|
|
715
|
-
const exception = new RequestLimitExceeded({
|
|
716
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
717
|
-
...deserialized,
|
|
718
|
-
});
|
|
719
|
-
return __decorateServiceException(exception, body);
|
|
720
|
-
};
|
|
721
|
-
const de_ResourceInUseRes = async (parsedOutput, context) => {
|
|
722
|
-
const body = parsedOutput.body;
|
|
723
|
-
const deserialized = _json(body);
|
|
724
|
-
const exception = new ResourceInUse({
|
|
725
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
726
|
-
...deserialized,
|
|
727
|
-
});
|
|
728
|
-
return __decorateServiceException(exception, body);
|
|
729
|
-
};
|
|
730
|
-
const de_ResourceLimitExceededRes = async (parsedOutput, context) => {
|
|
731
|
-
const body = parsedOutput.body;
|
|
732
|
-
const deserialized = _json(body);
|
|
733
|
-
const exception = new ResourceLimitExceeded({
|
|
734
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
735
|
-
...deserialized,
|
|
736
|
-
});
|
|
737
|
-
return __decorateServiceException(exception, body);
|
|
738
|
-
};
|
|
739
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
740
|
-
const body = parsedOutput.body;
|
|
741
|
-
const deserialized = _json(body);
|
|
742
|
-
const exception = new ResourceNotFoundException({
|
|
743
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
744
|
-
...deserialized,
|
|
745
|
-
});
|
|
746
|
-
return __decorateServiceException(exception, body);
|
|
747
|
-
};
|
|
748
|
-
const de_ServiceAlreadyExistsRes = async (parsedOutput, context) => {
|
|
749
|
-
const body = parsedOutput.body;
|
|
750
|
-
const deserialized = _json(body);
|
|
751
|
-
const exception = new ServiceAlreadyExists({
|
|
752
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
753
|
-
...deserialized,
|
|
754
|
-
});
|
|
755
|
-
return __decorateServiceException(exception, body);
|
|
756
|
-
};
|
|
757
|
-
const de_ServiceAttributesLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
758
|
-
const body = parsedOutput.body;
|
|
759
|
-
const deserialized = _json(body);
|
|
760
|
-
const exception = new ServiceAttributesLimitExceededException({
|
|
761
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
762
|
-
...deserialized,
|
|
763
|
-
});
|
|
764
|
-
return __decorateServiceException(exception, body);
|
|
765
|
-
};
|
|
766
|
-
const de_ServiceNotFoundRes = async (parsedOutput, context) => {
|
|
767
|
-
const body = parsedOutput.body;
|
|
768
|
-
const deserialized = _json(body);
|
|
769
|
-
const exception = new ServiceNotFound({
|
|
770
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
771
|
-
...deserialized,
|
|
772
|
-
});
|
|
773
|
-
return __decorateServiceException(exception, body);
|
|
774
|
-
};
|
|
775
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
776
|
-
const body = parsedOutput.body;
|
|
777
|
-
const deserialized = _json(body);
|
|
778
|
-
const exception = new TooManyTagsException({
|
|
779
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
780
|
-
...deserialized,
|
|
781
|
-
});
|
|
782
|
-
return __decorateServiceException(exception, body);
|
|
783
|
-
};
|
|
784
|
-
const se_CreateHttpNamespaceRequest = (input, context) => {
|
|
785
|
-
return take(input, {
|
|
786
|
-
CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
787
|
-
Description: [],
|
|
788
|
-
Name: [],
|
|
789
|
-
Tags: _json,
|
|
790
|
-
});
|
|
791
|
-
};
|
|
792
|
-
const se_CreatePrivateDnsNamespaceRequest = (input, context) => {
|
|
793
|
-
return take(input, {
|
|
794
|
-
CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
795
|
-
Description: [],
|
|
796
|
-
Name: [],
|
|
797
|
-
Properties: _json,
|
|
798
|
-
Tags: _json,
|
|
799
|
-
Vpc: [],
|
|
800
|
-
});
|
|
801
|
-
};
|
|
802
|
-
const se_CreatePublicDnsNamespaceRequest = (input, context) => {
|
|
803
|
-
return take(input, {
|
|
804
|
-
CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
805
|
-
Description: [],
|
|
806
|
-
Name: [],
|
|
807
|
-
Properties: _json,
|
|
808
|
-
Tags: _json,
|
|
809
|
-
});
|
|
810
|
-
};
|
|
811
|
-
const se_CreateServiceRequest = (input, context) => {
|
|
812
|
-
return take(input, {
|
|
813
|
-
CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
814
|
-
Description: [],
|
|
815
|
-
DnsConfig: _json,
|
|
816
|
-
HealthCheckConfig: _json,
|
|
817
|
-
HealthCheckCustomConfig: _json,
|
|
818
|
-
Name: [],
|
|
819
|
-
NamespaceId: [],
|
|
820
|
-
Tags: _json,
|
|
821
|
-
Type: [],
|
|
822
|
-
});
|
|
823
|
-
};
|
|
824
|
-
const se_RegisterInstanceRequest = (input, context) => {
|
|
825
|
-
return take(input, {
|
|
826
|
-
Attributes: _json,
|
|
827
|
-
CreatorRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
828
|
-
InstanceId: [],
|
|
829
|
-
ServiceId: [],
|
|
830
|
-
});
|
|
831
|
-
};
|
|
832
|
-
const se_UpdateHttpNamespaceRequest = (input, context) => {
|
|
833
|
-
return take(input, {
|
|
834
|
-
Id: [],
|
|
835
|
-
Namespace: _json,
|
|
836
|
-
UpdaterRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
837
|
-
});
|
|
838
|
-
};
|
|
839
|
-
const se_UpdatePrivateDnsNamespaceRequest = (input, context) => {
|
|
840
|
-
return take(input, {
|
|
841
|
-
Id: [],
|
|
842
|
-
Namespace: _json,
|
|
843
|
-
UpdaterRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
844
|
-
});
|
|
845
|
-
};
|
|
846
|
-
const se_UpdatePublicDnsNamespaceRequest = (input, context) => {
|
|
847
|
-
return take(input, {
|
|
848
|
-
Id: [],
|
|
849
|
-
Namespace: _json,
|
|
850
|
-
UpdaterRequestId: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
851
|
-
});
|
|
852
|
-
};
|
|
853
|
-
const de_CreateServiceResponse = (output, context) => {
|
|
854
|
-
return take(output, {
|
|
855
|
-
Service: (_) => de_Service(_, context),
|
|
856
|
-
});
|
|
857
|
-
};
|
|
858
|
-
const de_GetNamespaceResponse = (output, context) => {
|
|
859
|
-
return take(output, {
|
|
860
|
-
Namespace: (_) => de_Namespace(_, context),
|
|
861
|
-
});
|
|
862
|
-
};
|
|
863
|
-
const de_GetOperationResponse = (output, context) => {
|
|
864
|
-
return take(output, {
|
|
865
|
-
Operation: (_) => de_Operation(_, context),
|
|
866
|
-
});
|
|
867
|
-
};
|
|
868
|
-
const de_GetServiceResponse = (output, context) => {
|
|
869
|
-
return take(output, {
|
|
870
|
-
Service: (_) => de_Service(_, context),
|
|
871
|
-
});
|
|
872
|
-
};
|
|
873
|
-
const de_ListNamespacesResponse = (output, context) => {
|
|
874
|
-
return take(output, {
|
|
875
|
-
Namespaces: (_) => de_NamespaceSummariesList(_, context),
|
|
876
|
-
NextToken: __expectString,
|
|
877
|
-
});
|
|
878
|
-
};
|
|
879
|
-
const de_ListServicesResponse = (output, context) => {
|
|
880
|
-
return take(output, {
|
|
881
|
-
NextToken: __expectString,
|
|
882
|
-
Services: (_) => de_ServiceSummariesList(_, context),
|
|
883
|
-
});
|
|
884
|
-
};
|
|
885
|
-
const de_Namespace = (output, context) => {
|
|
886
|
-
return take(output, {
|
|
887
|
-
Arn: __expectString,
|
|
888
|
-
CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
889
|
-
CreatorRequestId: __expectString,
|
|
890
|
-
Description: __expectString,
|
|
891
|
-
Id: __expectString,
|
|
892
|
-
Name: __expectString,
|
|
893
|
-
Properties: _json,
|
|
894
|
-
ResourceOwner: __expectString,
|
|
895
|
-
ServiceCount: __expectInt32,
|
|
896
|
-
Type: __expectString,
|
|
897
|
-
});
|
|
898
|
-
};
|
|
899
|
-
const de_NamespaceSummariesList = (output, context) => {
|
|
900
|
-
const retVal = (output || [])
|
|
901
|
-
.filter((e) => e != null)
|
|
902
|
-
.map((entry) => {
|
|
903
|
-
return de_NamespaceSummary(entry, context);
|
|
904
|
-
});
|
|
905
|
-
return retVal;
|
|
906
|
-
};
|
|
907
|
-
const de_NamespaceSummary = (output, context) => {
|
|
908
|
-
return take(output, {
|
|
909
|
-
Arn: __expectString,
|
|
910
|
-
CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
911
|
-
Description: __expectString,
|
|
912
|
-
Id: __expectString,
|
|
913
|
-
Name: __expectString,
|
|
914
|
-
Properties: _json,
|
|
915
|
-
ResourceOwner: __expectString,
|
|
916
|
-
ServiceCount: __expectInt32,
|
|
917
|
-
Type: __expectString,
|
|
918
|
-
});
|
|
919
|
-
};
|
|
920
|
-
const de_Operation = (output, context) => {
|
|
921
|
-
return take(output, {
|
|
922
|
-
CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
923
|
-
ErrorCode: __expectString,
|
|
924
|
-
ErrorMessage: __expectString,
|
|
925
|
-
Id: __expectString,
|
|
926
|
-
OwnerAccount: __expectString,
|
|
927
|
-
Status: __expectString,
|
|
928
|
-
Targets: _json,
|
|
929
|
-
Type: __expectString,
|
|
930
|
-
UpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
931
|
-
});
|
|
932
|
-
};
|
|
933
|
-
const de_Service = (output, context) => {
|
|
934
|
-
return take(output, {
|
|
935
|
-
Arn: __expectString,
|
|
936
|
-
CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
937
|
-
CreatedByAccount: __expectString,
|
|
938
|
-
CreatorRequestId: __expectString,
|
|
939
|
-
Description: __expectString,
|
|
940
|
-
DnsConfig: _json,
|
|
941
|
-
HealthCheckConfig: _json,
|
|
942
|
-
HealthCheckCustomConfig: _json,
|
|
943
|
-
Id: __expectString,
|
|
944
|
-
InstanceCount: __expectInt32,
|
|
945
|
-
Name: __expectString,
|
|
946
|
-
NamespaceId: __expectString,
|
|
947
|
-
ResourceOwner: __expectString,
|
|
948
|
-
Type: __expectString,
|
|
949
|
-
});
|
|
950
|
-
};
|
|
951
|
-
const de_ServiceSummariesList = (output, context) => {
|
|
952
|
-
const retVal = (output || [])
|
|
953
|
-
.filter((e) => e != null)
|
|
954
|
-
.map((entry) => {
|
|
955
|
-
return de_ServiceSummary(entry, context);
|
|
956
|
-
});
|
|
957
|
-
return retVal;
|
|
958
|
-
};
|
|
959
|
-
const de_ServiceSummary = (output, context) => {
|
|
960
|
-
return take(output, {
|
|
961
|
-
Arn: __expectString,
|
|
962
|
-
CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
963
|
-
CreatedByAccount: __expectString,
|
|
964
|
-
Description: __expectString,
|
|
965
|
-
DnsConfig: _json,
|
|
966
|
-
HealthCheckConfig: _json,
|
|
967
|
-
HealthCheckCustomConfig: _json,
|
|
968
|
-
Id: __expectString,
|
|
969
|
-
InstanceCount: __expectInt32,
|
|
970
|
-
Name: __expectString,
|
|
971
|
-
ResourceOwner: __expectString,
|
|
972
|
-
Type: __expectString,
|
|
973
|
-
});
|
|
974
|
-
};
|
|
975
|
-
const deserializeMetadata = (output) => ({
|
|
976
|
-
httpStatusCode: output.statusCode,
|
|
977
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
978
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
979
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
980
|
-
});
|
|
981
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
982
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
983
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
984
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
985
|
-
const contents = {
|
|
986
|
-
protocol,
|
|
987
|
-
hostname,
|
|
988
|
-
port,
|
|
989
|
-
method: "POST",
|
|
990
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
991
|
-
headers,
|
|
992
|
-
};
|
|
993
|
-
if (resolvedHostname !== undefined) {
|
|
994
|
-
contents.hostname = resolvedHostname;
|
|
995
|
-
}
|
|
996
|
-
if (body !== undefined) {
|
|
997
|
-
contents.body = body;
|
|
998
|
-
}
|
|
999
|
-
return new __HttpRequest(contents);
|
|
1000
|
-
};
|
|
1001
|
-
function sharedHeaders(operation) {
|
|
1002
|
-
return {
|
|
1003
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1004
|
-
"x-amz-target": `Route53AutoNaming_v20170314.${operation}`,
|
|
1005
|
-
};
|
|
1006
|
-
}
|