@aws-sdk/client-servicediscovery 3.312.0 → 3.315.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/protocols/Aws_json1_1.js +228 -913
- package/dist-es/protocols/Aws_json1_1.js +229 -914
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { CustomHealthNotFound, DuplicateRequest, InstanceNotFound, InvalidInput, NamespaceAlreadyExists, NamespaceNotFound, OperationNotFound, RequestLimitExceeded, ResourceInUse, ResourceLimitExceeded, ResourceNotFoundException, ServiceAlreadyExists, ServiceNotFound, TooManyTagsException, } from "../models/models_0";
|
|
5
5
|
import { ServiceDiscoveryServiceException as __BaseException } from "../models/ServiceDiscoveryServiceException";
|
|
@@ -30,25 +30,25 @@ export const se_CreateServiceCommand = async (input, context) => {
|
|
|
30
30
|
export const se_DeleteNamespaceCommand = async (input, context) => {
|
|
31
31
|
const headers = sharedHeaders("DeleteNamespace");
|
|
32
32
|
let body;
|
|
33
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify(_json(input));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
36
|
export const se_DeleteServiceCommand = async (input, context) => {
|
|
37
37
|
const headers = sharedHeaders("DeleteService");
|
|
38
38
|
let body;
|
|
39
|
-
body = JSON.stringify(
|
|
39
|
+
body = JSON.stringify(_json(input));
|
|
40
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
41
|
};
|
|
42
42
|
export const se_DeregisterInstanceCommand = async (input, context) => {
|
|
43
43
|
const headers = sharedHeaders("DeregisterInstance");
|
|
44
44
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
45
|
+
body = JSON.stringify(_json(input));
|
|
46
46
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
47
|
};
|
|
48
48
|
export const se_DiscoverInstancesCommand = async (input, context) => {
|
|
49
49
|
const headers = sharedHeaders("DiscoverInstances");
|
|
50
50
|
let body;
|
|
51
|
-
body = JSON.stringify(
|
|
51
|
+
body = JSON.stringify(_json(input));
|
|
52
52
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
53
53
|
if (context.disableHostPrefix !== true) {
|
|
54
54
|
resolvedHostname = "data-" + resolvedHostname;
|
|
@@ -61,61 +61,61 @@ export const se_DiscoverInstancesCommand = async (input, context) => {
|
|
|
61
61
|
export const se_GetInstanceCommand = async (input, context) => {
|
|
62
62
|
const headers = sharedHeaders("GetInstance");
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
64
|
+
body = JSON.stringify(_json(input));
|
|
65
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
66
|
};
|
|
67
67
|
export const se_GetInstancesHealthStatusCommand = async (input, context) => {
|
|
68
68
|
const headers = sharedHeaders("GetInstancesHealthStatus");
|
|
69
69
|
let body;
|
|
70
|
-
body = JSON.stringify(
|
|
70
|
+
body = JSON.stringify(_json(input));
|
|
71
71
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
72
|
};
|
|
73
73
|
export const se_GetNamespaceCommand = async (input, context) => {
|
|
74
74
|
const headers = sharedHeaders("GetNamespace");
|
|
75
75
|
let body;
|
|
76
|
-
body = JSON.stringify(
|
|
76
|
+
body = JSON.stringify(_json(input));
|
|
77
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
78
|
};
|
|
79
79
|
export const se_GetOperationCommand = async (input, context) => {
|
|
80
80
|
const headers = sharedHeaders("GetOperation");
|
|
81
81
|
let body;
|
|
82
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify(_json(input));
|
|
83
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
84
|
};
|
|
85
85
|
export const se_GetServiceCommand = async (input, context) => {
|
|
86
86
|
const headers = sharedHeaders("GetService");
|
|
87
87
|
let body;
|
|
88
|
-
body = JSON.stringify(
|
|
88
|
+
body = JSON.stringify(_json(input));
|
|
89
89
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
90
|
};
|
|
91
91
|
export const se_ListInstancesCommand = async (input, context) => {
|
|
92
92
|
const headers = sharedHeaders("ListInstances");
|
|
93
93
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
94
|
+
body = JSON.stringify(_json(input));
|
|
95
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
96
|
};
|
|
97
97
|
export const se_ListNamespacesCommand = async (input, context) => {
|
|
98
98
|
const headers = sharedHeaders("ListNamespaces");
|
|
99
99
|
let body;
|
|
100
|
-
body = JSON.stringify(
|
|
100
|
+
body = JSON.stringify(_json(input));
|
|
101
101
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
102
|
};
|
|
103
103
|
export const se_ListOperationsCommand = async (input, context) => {
|
|
104
104
|
const headers = sharedHeaders("ListOperations");
|
|
105
105
|
let body;
|
|
106
|
-
body = JSON.stringify(
|
|
106
|
+
body = JSON.stringify(_json(input));
|
|
107
107
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
108
|
};
|
|
109
109
|
export const se_ListServicesCommand = async (input, context) => {
|
|
110
110
|
const headers = sharedHeaders("ListServices");
|
|
111
111
|
let body;
|
|
112
|
-
body = JSON.stringify(
|
|
112
|
+
body = JSON.stringify(_json(input));
|
|
113
113
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
114
|
};
|
|
115
115
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
116
116
|
const headers = sharedHeaders("ListTagsForResource");
|
|
117
117
|
let body;
|
|
118
|
-
body = JSON.stringify(
|
|
118
|
+
body = JSON.stringify(_json(input));
|
|
119
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
120
|
};
|
|
121
121
|
export const se_RegisterInstanceCommand = async (input, context) => {
|
|
@@ -127,13 +127,13 @@ export const se_RegisterInstanceCommand = async (input, context) => {
|
|
|
127
127
|
export const se_TagResourceCommand = async (input, context) => {
|
|
128
128
|
const headers = sharedHeaders("TagResource");
|
|
129
129
|
let body;
|
|
130
|
-
body = JSON.stringify(
|
|
130
|
+
body = JSON.stringify(_json(input));
|
|
131
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
132
|
};
|
|
133
133
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
134
134
|
const headers = sharedHeaders("UntagResource");
|
|
135
135
|
let body;
|
|
136
|
-
body = JSON.stringify(
|
|
136
|
+
body = JSON.stringify(_json(input));
|
|
137
137
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
138
|
};
|
|
139
139
|
export const se_UpdateHttpNamespaceCommand = async (input, context) => {
|
|
@@ -145,7 +145,7 @@ export const se_UpdateHttpNamespaceCommand = async (input, context) => {
|
|
|
145
145
|
export const se_UpdateInstanceCustomHealthStatusCommand = async (input, context) => {
|
|
146
146
|
const headers = sharedHeaders("UpdateInstanceCustomHealthStatus");
|
|
147
147
|
let body;
|
|
148
|
-
body = JSON.stringify(
|
|
148
|
+
body = JSON.stringify(_json(input));
|
|
149
149
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
150
|
};
|
|
151
151
|
export const se_UpdatePrivateDnsNamespaceCommand = async (input, context) => {
|
|
@@ -163,7 +163,7 @@ export const se_UpdatePublicDnsNamespaceCommand = async (input, context) => {
|
|
|
163
163
|
export const se_UpdateServiceCommand = async (input, context) => {
|
|
164
164
|
const headers = sharedHeaders("UpdateService");
|
|
165
165
|
let body;
|
|
166
|
-
body = JSON.stringify(
|
|
166
|
+
body = JSON.stringify(_json(input));
|
|
167
167
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
168
|
};
|
|
169
169
|
export const de_CreateHttpNamespaceCommand = async (output, context) => {
|
|
@@ -172,12 +172,12 @@ export const de_CreateHttpNamespaceCommand = async (output, context) => {
|
|
|
172
172
|
}
|
|
173
173
|
const data = await parseBody(output.body, context);
|
|
174
174
|
let contents = {};
|
|
175
|
-
contents =
|
|
175
|
+
contents = _json(data);
|
|
176
176
|
const response = {
|
|
177
177
|
$metadata: deserializeMetadata(output),
|
|
178
178
|
...contents,
|
|
179
179
|
};
|
|
180
|
-
return
|
|
180
|
+
return response;
|
|
181
181
|
};
|
|
182
182
|
const de_CreateHttpNamespaceCommandError = async (output, context) => {
|
|
183
183
|
const parsedOutput = {
|
|
@@ -203,10 +203,9 @@ const de_CreateHttpNamespaceCommandError = async (output, context) => {
|
|
|
203
203
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
204
204
|
default:
|
|
205
205
|
const parsedBody = parsedOutput.body;
|
|
206
|
-
throwDefaultError({
|
|
206
|
+
return throwDefaultError({
|
|
207
207
|
output,
|
|
208
208
|
parsedBody,
|
|
209
|
-
exceptionCtor: __BaseException,
|
|
210
209
|
errorCode,
|
|
211
210
|
});
|
|
212
211
|
}
|
|
@@ -217,12 +216,12 @@ export const de_CreatePrivateDnsNamespaceCommand = async (output, context) => {
|
|
|
217
216
|
}
|
|
218
217
|
const data = await parseBody(output.body, context);
|
|
219
218
|
let contents = {};
|
|
220
|
-
contents =
|
|
219
|
+
contents = _json(data);
|
|
221
220
|
const response = {
|
|
222
221
|
$metadata: deserializeMetadata(output),
|
|
223
222
|
...contents,
|
|
224
223
|
};
|
|
225
|
-
return
|
|
224
|
+
return response;
|
|
226
225
|
};
|
|
227
226
|
const de_CreatePrivateDnsNamespaceCommandError = async (output, context) => {
|
|
228
227
|
const parsedOutput = {
|
|
@@ -248,10 +247,9 @@ const de_CreatePrivateDnsNamespaceCommandError = async (output, context) => {
|
|
|
248
247
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
249
248
|
default:
|
|
250
249
|
const parsedBody = parsedOutput.body;
|
|
251
|
-
throwDefaultError({
|
|
250
|
+
return throwDefaultError({
|
|
252
251
|
output,
|
|
253
252
|
parsedBody,
|
|
254
|
-
exceptionCtor: __BaseException,
|
|
255
253
|
errorCode,
|
|
256
254
|
});
|
|
257
255
|
}
|
|
@@ -262,12 +260,12 @@ export const de_CreatePublicDnsNamespaceCommand = async (output, context) => {
|
|
|
262
260
|
}
|
|
263
261
|
const data = await parseBody(output.body, context);
|
|
264
262
|
let contents = {};
|
|
265
|
-
contents =
|
|
263
|
+
contents = _json(data);
|
|
266
264
|
const response = {
|
|
267
265
|
$metadata: deserializeMetadata(output),
|
|
268
266
|
...contents,
|
|
269
267
|
};
|
|
270
|
-
return
|
|
268
|
+
return response;
|
|
271
269
|
};
|
|
272
270
|
const de_CreatePublicDnsNamespaceCommandError = async (output, context) => {
|
|
273
271
|
const parsedOutput = {
|
|
@@ -293,10 +291,9 @@ const de_CreatePublicDnsNamespaceCommandError = async (output, context) => {
|
|
|
293
291
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
294
292
|
default:
|
|
295
293
|
const parsedBody = parsedOutput.body;
|
|
296
|
-
throwDefaultError({
|
|
294
|
+
return throwDefaultError({
|
|
297
295
|
output,
|
|
298
296
|
parsedBody,
|
|
299
|
-
exceptionCtor: __BaseException,
|
|
300
297
|
errorCode,
|
|
301
298
|
});
|
|
302
299
|
}
|
|
@@ -312,7 +309,7 @@ export const de_CreateServiceCommand = async (output, context) => {
|
|
|
312
309
|
$metadata: deserializeMetadata(output),
|
|
313
310
|
...contents,
|
|
314
311
|
};
|
|
315
|
-
return
|
|
312
|
+
return response;
|
|
316
313
|
};
|
|
317
314
|
const de_CreateServiceCommandError = async (output, context) => {
|
|
318
315
|
const parsedOutput = {
|
|
@@ -338,10 +335,9 @@ const de_CreateServiceCommandError = async (output, context) => {
|
|
|
338
335
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
339
336
|
default:
|
|
340
337
|
const parsedBody = parsedOutput.body;
|
|
341
|
-
throwDefaultError({
|
|
338
|
+
return throwDefaultError({
|
|
342
339
|
output,
|
|
343
340
|
parsedBody,
|
|
344
|
-
exceptionCtor: __BaseException,
|
|
345
341
|
errorCode,
|
|
346
342
|
});
|
|
347
343
|
}
|
|
@@ -352,12 +348,12 @@ export const de_DeleteNamespaceCommand = async (output, context) => {
|
|
|
352
348
|
}
|
|
353
349
|
const data = await parseBody(output.body, context);
|
|
354
350
|
let contents = {};
|
|
355
|
-
contents =
|
|
351
|
+
contents = _json(data);
|
|
356
352
|
const response = {
|
|
357
353
|
$metadata: deserializeMetadata(output),
|
|
358
354
|
...contents,
|
|
359
355
|
};
|
|
360
|
-
return
|
|
356
|
+
return response;
|
|
361
357
|
};
|
|
362
358
|
const de_DeleteNamespaceCommandError = async (output, context) => {
|
|
363
359
|
const parsedOutput = {
|
|
@@ -380,10 +376,9 @@ const de_DeleteNamespaceCommandError = async (output, context) => {
|
|
|
380
376
|
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
381
377
|
default:
|
|
382
378
|
const parsedBody = parsedOutput.body;
|
|
383
|
-
throwDefaultError({
|
|
379
|
+
return throwDefaultError({
|
|
384
380
|
output,
|
|
385
381
|
parsedBody,
|
|
386
|
-
exceptionCtor: __BaseException,
|
|
387
382
|
errorCode,
|
|
388
383
|
});
|
|
389
384
|
}
|
|
@@ -394,12 +389,12 @@ export const de_DeleteServiceCommand = async (output, context) => {
|
|
|
394
389
|
}
|
|
395
390
|
const data = await parseBody(output.body, context);
|
|
396
391
|
let contents = {};
|
|
397
|
-
contents =
|
|
392
|
+
contents = _json(data);
|
|
398
393
|
const response = {
|
|
399
394
|
$metadata: deserializeMetadata(output),
|
|
400
395
|
...contents,
|
|
401
396
|
};
|
|
402
|
-
return
|
|
397
|
+
return response;
|
|
403
398
|
};
|
|
404
399
|
const de_DeleteServiceCommandError = async (output, context) => {
|
|
405
400
|
const parsedOutput = {
|
|
@@ -419,10 +414,9 @@ const de_DeleteServiceCommandError = async (output, context) => {
|
|
|
419
414
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
420
415
|
default:
|
|
421
416
|
const parsedBody = parsedOutput.body;
|
|
422
|
-
throwDefaultError({
|
|
417
|
+
return throwDefaultError({
|
|
423
418
|
output,
|
|
424
419
|
parsedBody,
|
|
425
|
-
exceptionCtor: __BaseException,
|
|
426
420
|
errorCode,
|
|
427
421
|
});
|
|
428
422
|
}
|
|
@@ -433,12 +427,12 @@ export const de_DeregisterInstanceCommand = async (output, context) => {
|
|
|
433
427
|
}
|
|
434
428
|
const data = await parseBody(output.body, context);
|
|
435
429
|
let contents = {};
|
|
436
|
-
contents =
|
|
430
|
+
contents = _json(data);
|
|
437
431
|
const response = {
|
|
438
432
|
$metadata: deserializeMetadata(output),
|
|
439
433
|
...contents,
|
|
440
434
|
};
|
|
441
|
-
return
|
|
435
|
+
return response;
|
|
442
436
|
};
|
|
443
437
|
const de_DeregisterInstanceCommandError = async (output, context) => {
|
|
444
438
|
const parsedOutput = {
|
|
@@ -464,10 +458,9 @@ const de_DeregisterInstanceCommandError = async (output, context) => {
|
|
|
464
458
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
465
459
|
default:
|
|
466
460
|
const parsedBody = parsedOutput.body;
|
|
467
|
-
throwDefaultError({
|
|
461
|
+
return throwDefaultError({
|
|
468
462
|
output,
|
|
469
463
|
parsedBody,
|
|
470
|
-
exceptionCtor: __BaseException,
|
|
471
464
|
errorCode,
|
|
472
465
|
});
|
|
473
466
|
}
|
|
@@ -478,12 +471,12 @@ export const de_DiscoverInstancesCommand = async (output, context) => {
|
|
|
478
471
|
}
|
|
479
472
|
const data = await parseBody(output.body, context);
|
|
480
473
|
let contents = {};
|
|
481
|
-
contents =
|
|
474
|
+
contents = _json(data);
|
|
482
475
|
const response = {
|
|
483
476
|
$metadata: deserializeMetadata(output),
|
|
484
477
|
...contents,
|
|
485
478
|
};
|
|
486
|
-
return
|
|
479
|
+
return response;
|
|
487
480
|
};
|
|
488
481
|
const de_DiscoverInstancesCommandError = async (output, context) => {
|
|
489
482
|
const parsedOutput = {
|
|
@@ -506,10 +499,9 @@ const de_DiscoverInstancesCommandError = async (output, context) => {
|
|
|
506
499
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
507
500
|
default:
|
|
508
501
|
const parsedBody = parsedOutput.body;
|
|
509
|
-
throwDefaultError({
|
|
502
|
+
return throwDefaultError({
|
|
510
503
|
output,
|
|
511
504
|
parsedBody,
|
|
512
|
-
exceptionCtor: __BaseException,
|
|
513
505
|
errorCode,
|
|
514
506
|
});
|
|
515
507
|
}
|
|
@@ -520,12 +512,12 @@ export const de_GetInstanceCommand = async (output, context) => {
|
|
|
520
512
|
}
|
|
521
513
|
const data = await parseBody(output.body, context);
|
|
522
514
|
let contents = {};
|
|
523
|
-
contents =
|
|
515
|
+
contents = _json(data);
|
|
524
516
|
const response = {
|
|
525
517
|
$metadata: deserializeMetadata(output),
|
|
526
518
|
...contents,
|
|
527
519
|
};
|
|
528
|
-
return
|
|
520
|
+
return response;
|
|
529
521
|
};
|
|
530
522
|
const de_GetInstanceCommandError = async (output, context) => {
|
|
531
523
|
const parsedOutput = {
|
|
@@ -545,10 +537,9 @@ const de_GetInstanceCommandError = async (output, context) => {
|
|
|
545
537
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
546
538
|
default:
|
|
547
539
|
const parsedBody = parsedOutput.body;
|
|
548
|
-
throwDefaultError({
|
|
540
|
+
return throwDefaultError({
|
|
549
541
|
output,
|
|
550
542
|
parsedBody,
|
|
551
|
-
exceptionCtor: __BaseException,
|
|
552
543
|
errorCode,
|
|
553
544
|
});
|
|
554
545
|
}
|
|
@@ -559,12 +550,12 @@ export const de_GetInstancesHealthStatusCommand = async (output, context) => {
|
|
|
559
550
|
}
|
|
560
551
|
const data = await parseBody(output.body, context);
|
|
561
552
|
let contents = {};
|
|
562
|
-
contents =
|
|
553
|
+
contents = _json(data);
|
|
563
554
|
const response = {
|
|
564
555
|
$metadata: deserializeMetadata(output),
|
|
565
556
|
...contents,
|
|
566
557
|
};
|
|
567
|
-
return
|
|
558
|
+
return response;
|
|
568
559
|
};
|
|
569
560
|
const de_GetInstancesHealthStatusCommandError = async (output, context) => {
|
|
570
561
|
const parsedOutput = {
|
|
@@ -584,10 +575,9 @@ const de_GetInstancesHealthStatusCommandError = async (output, context) => {
|
|
|
584
575
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
585
576
|
default:
|
|
586
577
|
const parsedBody = parsedOutput.body;
|
|
587
|
-
throwDefaultError({
|
|
578
|
+
return throwDefaultError({
|
|
588
579
|
output,
|
|
589
580
|
parsedBody,
|
|
590
|
-
exceptionCtor: __BaseException,
|
|
591
581
|
errorCode,
|
|
592
582
|
});
|
|
593
583
|
}
|
|
@@ -603,7 +593,7 @@ export const de_GetNamespaceCommand = async (output, context) => {
|
|
|
603
593
|
$metadata: deserializeMetadata(output),
|
|
604
594
|
...contents,
|
|
605
595
|
};
|
|
606
|
-
return
|
|
596
|
+
return response;
|
|
607
597
|
};
|
|
608
598
|
const de_GetNamespaceCommandError = async (output, context) => {
|
|
609
599
|
const parsedOutput = {
|
|
@@ -620,10 +610,9 @@ const de_GetNamespaceCommandError = async (output, context) => {
|
|
|
620
610
|
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
621
611
|
default:
|
|
622
612
|
const parsedBody = parsedOutput.body;
|
|
623
|
-
throwDefaultError({
|
|
613
|
+
return throwDefaultError({
|
|
624
614
|
output,
|
|
625
615
|
parsedBody,
|
|
626
|
-
exceptionCtor: __BaseException,
|
|
627
616
|
errorCode,
|
|
628
617
|
});
|
|
629
618
|
}
|
|
@@ -639,7 +628,7 @@ export const de_GetOperationCommand = async (output, context) => {
|
|
|
639
628
|
$metadata: deserializeMetadata(output),
|
|
640
629
|
...contents,
|
|
641
630
|
};
|
|
642
|
-
return
|
|
631
|
+
return response;
|
|
643
632
|
};
|
|
644
633
|
const de_GetOperationCommandError = async (output, context) => {
|
|
645
634
|
const parsedOutput = {
|
|
@@ -656,10 +645,9 @@ const de_GetOperationCommandError = async (output, context) => {
|
|
|
656
645
|
throw await de_OperationNotFoundRes(parsedOutput, context);
|
|
657
646
|
default:
|
|
658
647
|
const parsedBody = parsedOutput.body;
|
|
659
|
-
throwDefaultError({
|
|
648
|
+
return throwDefaultError({
|
|
660
649
|
output,
|
|
661
650
|
parsedBody,
|
|
662
|
-
exceptionCtor: __BaseException,
|
|
663
651
|
errorCode,
|
|
664
652
|
});
|
|
665
653
|
}
|
|
@@ -675,7 +663,7 @@ export const de_GetServiceCommand = async (output, context) => {
|
|
|
675
663
|
$metadata: deserializeMetadata(output),
|
|
676
664
|
...contents,
|
|
677
665
|
};
|
|
678
|
-
return
|
|
666
|
+
return response;
|
|
679
667
|
};
|
|
680
668
|
const de_GetServiceCommandError = async (output, context) => {
|
|
681
669
|
const parsedOutput = {
|
|
@@ -692,10 +680,9 @@ const de_GetServiceCommandError = async (output, context) => {
|
|
|
692
680
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
693
681
|
default:
|
|
694
682
|
const parsedBody = parsedOutput.body;
|
|
695
|
-
throwDefaultError({
|
|
683
|
+
return throwDefaultError({
|
|
696
684
|
output,
|
|
697
685
|
parsedBody,
|
|
698
|
-
exceptionCtor: __BaseException,
|
|
699
686
|
errorCode,
|
|
700
687
|
});
|
|
701
688
|
}
|
|
@@ -706,12 +693,12 @@ export const de_ListInstancesCommand = async (output, context) => {
|
|
|
706
693
|
}
|
|
707
694
|
const data = await parseBody(output.body, context);
|
|
708
695
|
let contents = {};
|
|
709
|
-
contents =
|
|
696
|
+
contents = _json(data);
|
|
710
697
|
const response = {
|
|
711
698
|
$metadata: deserializeMetadata(output),
|
|
712
699
|
...contents,
|
|
713
700
|
};
|
|
714
|
-
return
|
|
701
|
+
return response;
|
|
715
702
|
};
|
|
716
703
|
const de_ListInstancesCommandError = async (output, context) => {
|
|
717
704
|
const parsedOutput = {
|
|
@@ -728,10 +715,9 @@ const de_ListInstancesCommandError = async (output, context) => {
|
|
|
728
715
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
729
716
|
default:
|
|
730
717
|
const parsedBody = parsedOutput.body;
|
|
731
|
-
throwDefaultError({
|
|
718
|
+
return throwDefaultError({
|
|
732
719
|
output,
|
|
733
720
|
parsedBody,
|
|
734
|
-
exceptionCtor: __BaseException,
|
|
735
721
|
errorCode,
|
|
736
722
|
});
|
|
737
723
|
}
|
|
@@ -747,7 +733,7 @@ export const de_ListNamespacesCommand = async (output, context) => {
|
|
|
747
733
|
$metadata: deserializeMetadata(output),
|
|
748
734
|
...contents,
|
|
749
735
|
};
|
|
750
|
-
return
|
|
736
|
+
return response;
|
|
751
737
|
};
|
|
752
738
|
const de_ListNamespacesCommandError = async (output, context) => {
|
|
753
739
|
const parsedOutput = {
|
|
@@ -761,10 +747,9 @@ const de_ListNamespacesCommandError = async (output, context) => {
|
|
|
761
747
|
throw await de_InvalidInputRes(parsedOutput, context);
|
|
762
748
|
default:
|
|
763
749
|
const parsedBody = parsedOutput.body;
|
|
764
|
-
throwDefaultError({
|
|
750
|
+
return throwDefaultError({
|
|
765
751
|
output,
|
|
766
752
|
parsedBody,
|
|
767
|
-
exceptionCtor: __BaseException,
|
|
768
753
|
errorCode,
|
|
769
754
|
});
|
|
770
755
|
}
|
|
@@ -775,12 +760,12 @@ export const de_ListOperationsCommand = async (output, context) => {
|
|
|
775
760
|
}
|
|
776
761
|
const data = await parseBody(output.body, context);
|
|
777
762
|
let contents = {};
|
|
778
|
-
contents =
|
|
763
|
+
contents = _json(data);
|
|
779
764
|
const response = {
|
|
780
765
|
$metadata: deserializeMetadata(output),
|
|
781
766
|
...contents,
|
|
782
767
|
};
|
|
783
|
-
return
|
|
768
|
+
return response;
|
|
784
769
|
};
|
|
785
770
|
const de_ListOperationsCommandError = async (output, context) => {
|
|
786
771
|
const parsedOutput = {
|
|
@@ -794,10 +779,9 @@ const de_ListOperationsCommandError = async (output, context) => {
|
|
|
794
779
|
throw await de_InvalidInputRes(parsedOutput, context);
|
|
795
780
|
default:
|
|
796
781
|
const parsedBody = parsedOutput.body;
|
|
797
|
-
throwDefaultError({
|
|
782
|
+
return throwDefaultError({
|
|
798
783
|
output,
|
|
799
784
|
parsedBody,
|
|
800
|
-
exceptionCtor: __BaseException,
|
|
801
785
|
errorCode,
|
|
802
786
|
});
|
|
803
787
|
}
|
|
@@ -813,7 +797,7 @@ export const de_ListServicesCommand = async (output, context) => {
|
|
|
813
797
|
$metadata: deserializeMetadata(output),
|
|
814
798
|
...contents,
|
|
815
799
|
};
|
|
816
|
-
return
|
|
800
|
+
return response;
|
|
817
801
|
};
|
|
818
802
|
const de_ListServicesCommandError = async (output, context) => {
|
|
819
803
|
const parsedOutput = {
|
|
@@ -827,10 +811,9 @@ const de_ListServicesCommandError = async (output, context) => {
|
|
|
827
811
|
throw await de_InvalidInputRes(parsedOutput, context);
|
|
828
812
|
default:
|
|
829
813
|
const parsedBody = parsedOutput.body;
|
|
830
|
-
throwDefaultError({
|
|
814
|
+
return throwDefaultError({
|
|
831
815
|
output,
|
|
832
816
|
parsedBody,
|
|
833
|
-
exceptionCtor: __BaseException,
|
|
834
817
|
errorCode,
|
|
835
818
|
});
|
|
836
819
|
}
|
|
@@ -841,12 +824,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
841
824
|
}
|
|
842
825
|
const data = await parseBody(output.body, context);
|
|
843
826
|
let contents = {};
|
|
844
|
-
contents =
|
|
827
|
+
contents = _json(data);
|
|
845
828
|
const response = {
|
|
846
829
|
$metadata: deserializeMetadata(output),
|
|
847
830
|
...contents,
|
|
848
831
|
};
|
|
849
|
-
return
|
|
832
|
+
return response;
|
|
850
833
|
};
|
|
851
834
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
852
835
|
const parsedOutput = {
|
|
@@ -863,10 +846,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
863
846
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
864
847
|
default:
|
|
865
848
|
const parsedBody = parsedOutput.body;
|
|
866
|
-
throwDefaultError({
|
|
849
|
+
return throwDefaultError({
|
|
867
850
|
output,
|
|
868
851
|
parsedBody,
|
|
869
|
-
exceptionCtor: __BaseException,
|
|
870
852
|
errorCode,
|
|
871
853
|
});
|
|
872
854
|
}
|
|
@@ -877,12 +859,12 @@ export const de_RegisterInstanceCommand = async (output, context) => {
|
|
|
877
859
|
}
|
|
878
860
|
const data = await parseBody(output.body, context);
|
|
879
861
|
let contents = {};
|
|
880
|
-
contents =
|
|
862
|
+
contents = _json(data);
|
|
881
863
|
const response = {
|
|
882
864
|
$metadata: deserializeMetadata(output),
|
|
883
865
|
...contents,
|
|
884
866
|
};
|
|
885
|
-
return
|
|
867
|
+
return response;
|
|
886
868
|
};
|
|
887
869
|
const de_RegisterInstanceCommandError = async (output, context) => {
|
|
888
870
|
const parsedOutput = {
|
|
@@ -908,10 +890,9 @@ const de_RegisterInstanceCommandError = async (output, context) => {
|
|
|
908
890
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
909
891
|
default:
|
|
910
892
|
const parsedBody = parsedOutput.body;
|
|
911
|
-
throwDefaultError({
|
|
893
|
+
return throwDefaultError({
|
|
912
894
|
output,
|
|
913
895
|
parsedBody,
|
|
914
|
-
exceptionCtor: __BaseException,
|
|
915
896
|
errorCode,
|
|
916
897
|
});
|
|
917
898
|
}
|
|
@@ -922,12 +903,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
922
903
|
}
|
|
923
904
|
const data = await parseBody(output.body, context);
|
|
924
905
|
let contents = {};
|
|
925
|
-
contents =
|
|
906
|
+
contents = _json(data);
|
|
926
907
|
const response = {
|
|
927
908
|
$metadata: deserializeMetadata(output),
|
|
928
909
|
...contents,
|
|
929
910
|
};
|
|
930
|
-
return
|
|
911
|
+
return response;
|
|
931
912
|
};
|
|
932
913
|
const de_TagResourceCommandError = async (output, context) => {
|
|
933
914
|
const parsedOutput = {
|
|
@@ -947,10 +928,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
947
928
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
948
929
|
default:
|
|
949
930
|
const parsedBody = parsedOutput.body;
|
|
950
|
-
throwDefaultError({
|
|
931
|
+
return throwDefaultError({
|
|
951
932
|
output,
|
|
952
933
|
parsedBody,
|
|
953
|
-
exceptionCtor: __BaseException,
|
|
954
934
|
errorCode,
|
|
955
935
|
});
|
|
956
936
|
}
|
|
@@ -961,12 +941,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
961
941
|
}
|
|
962
942
|
const data = await parseBody(output.body, context);
|
|
963
943
|
let contents = {};
|
|
964
|
-
contents =
|
|
944
|
+
contents = _json(data);
|
|
965
945
|
const response = {
|
|
966
946
|
$metadata: deserializeMetadata(output),
|
|
967
947
|
...contents,
|
|
968
948
|
};
|
|
969
|
-
return
|
|
949
|
+
return response;
|
|
970
950
|
};
|
|
971
951
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
972
952
|
const parsedOutput = {
|
|
@@ -983,10 +963,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
983
963
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
984
964
|
default:
|
|
985
965
|
const parsedBody = parsedOutput.body;
|
|
986
|
-
throwDefaultError({
|
|
966
|
+
return throwDefaultError({
|
|
987
967
|
output,
|
|
988
968
|
parsedBody,
|
|
989
|
-
exceptionCtor: __BaseException,
|
|
990
969
|
errorCode,
|
|
991
970
|
});
|
|
992
971
|
}
|
|
@@ -997,12 +976,12 @@ export const de_UpdateHttpNamespaceCommand = async (output, context) => {
|
|
|
997
976
|
}
|
|
998
977
|
const data = await parseBody(output.body, context);
|
|
999
978
|
let contents = {};
|
|
1000
|
-
contents =
|
|
979
|
+
contents = _json(data);
|
|
1001
980
|
const response = {
|
|
1002
981
|
$metadata: deserializeMetadata(output),
|
|
1003
982
|
...contents,
|
|
1004
983
|
};
|
|
1005
|
-
return
|
|
984
|
+
return response;
|
|
1006
985
|
};
|
|
1007
986
|
const de_UpdateHttpNamespaceCommandError = async (output, context) => {
|
|
1008
987
|
const parsedOutput = {
|
|
@@ -1025,10 +1004,9 @@ const de_UpdateHttpNamespaceCommandError = async (output, context) => {
|
|
|
1025
1004
|
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1026
1005
|
default:
|
|
1027
1006
|
const parsedBody = parsedOutput.body;
|
|
1028
|
-
throwDefaultError({
|
|
1007
|
+
return throwDefaultError({
|
|
1029
1008
|
output,
|
|
1030
1009
|
parsedBody,
|
|
1031
|
-
exceptionCtor: __BaseException,
|
|
1032
1010
|
errorCode,
|
|
1033
1011
|
});
|
|
1034
1012
|
}
|
|
@@ -1041,7 +1019,7 @@ export const de_UpdateInstanceCustomHealthStatusCommand = async (output, context
|
|
|
1041
1019
|
const response = {
|
|
1042
1020
|
$metadata: deserializeMetadata(output),
|
|
1043
1021
|
};
|
|
1044
|
-
return
|
|
1022
|
+
return response;
|
|
1045
1023
|
};
|
|
1046
1024
|
const de_UpdateInstanceCustomHealthStatusCommandError = async (output, context) => {
|
|
1047
1025
|
const parsedOutput = {
|
|
@@ -1064,10 +1042,9 @@ const de_UpdateInstanceCustomHealthStatusCommandError = async (output, context)
|
|
|
1064
1042
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1065
1043
|
default:
|
|
1066
1044
|
const parsedBody = parsedOutput.body;
|
|
1067
|
-
throwDefaultError({
|
|
1045
|
+
return throwDefaultError({
|
|
1068
1046
|
output,
|
|
1069
1047
|
parsedBody,
|
|
1070
|
-
exceptionCtor: __BaseException,
|
|
1071
1048
|
errorCode,
|
|
1072
1049
|
});
|
|
1073
1050
|
}
|
|
@@ -1078,12 +1055,12 @@ export const de_UpdatePrivateDnsNamespaceCommand = async (output, context) => {
|
|
|
1078
1055
|
}
|
|
1079
1056
|
const data = await parseBody(output.body, context);
|
|
1080
1057
|
let contents = {};
|
|
1081
|
-
contents =
|
|
1058
|
+
contents = _json(data);
|
|
1082
1059
|
const response = {
|
|
1083
1060
|
$metadata: deserializeMetadata(output),
|
|
1084
1061
|
...contents,
|
|
1085
1062
|
};
|
|
1086
|
-
return
|
|
1063
|
+
return response;
|
|
1087
1064
|
};
|
|
1088
1065
|
const de_UpdatePrivateDnsNamespaceCommandError = async (output, context) => {
|
|
1089
1066
|
const parsedOutput = {
|
|
@@ -1106,10 +1083,9 @@ const de_UpdatePrivateDnsNamespaceCommandError = async (output, context) => {
|
|
|
1106
1083
|
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1107
1084
|
default:
|
|
1108
1085
|
const parsedBody = parsedOutput.body;
|
|
1109
|
-
throwDefaultError({
|
|
1086
|
+
return throwDefaultError({
|
|
1110
1087
|
output,
|
|
1111
1088
|
parsedBody,
|
|
1112
|
-
exceptionCtor: __BaseException,
|
|
1113
1089
|
errorCode,
|
|
1114
1090
|
});
|
|
1115
1091
|
}
|
|
@@ -1120,12 +1096,12 @@ export const de_UpdatePublicDnsNamespaceCommand = async (output, context) => {
|
|
|
1120
1096
|
}
|
|
1121
1097
|
const data = await parseBody(output.body, context);
|
|
1122
1098
|
let contents = {};
|
|
1123
|
-
contents =
|
|
1099
|
+
contents = _json(data);
|
|
1124
1100
|
const response = {
|
|
1125
1101
|
$metadata: deserializeMetadata(output),
|
|
1126
1102
|
...contents,
|
|
1127
1103
|
};
|
|
1128
|
-
return
|
|
1104
|
+
return response;
|
|
1129
1105
|
};
|
|
1130
1106
|
const de_UpdatePublicDnsNamespaceCommandError = async (output, context) => {
|
|
1131
1107
|
const parsedOutput = {
|
|
@@ -1148,10 +1124,9 @@ const de_UpdatePublicDnsNamespaceCommandError = async (output, context) => {
|
|
|
1148
1124
|
throw await de_ResourceInUseRes(parsedOutput, context);
|
|
1149
1125
|
default:
|
|
1150
1126
|
const parsedBody = parsedOutput.body;
|
|
1151
|
-
throwDefaultError({
|
|
1127
|
+
return throwDefaultError({
|
|
1152
1128
|
output,
|
|
1153
1129
|
parsedBody,
|
|
1154
|
-
exceptionCtor: __BaseException,
|
|
1155
1130
|
errorCode,
|
|
1156
1131
|
});
|
|
1157
1132
|
}
|
|
@@ -1162,12 +1137,12 @@ export const de_UpdateServiceCommand = async (output, context) => {
|
|
|
1162
1137
|
}
|
|
1163
1138
|
const data = await parseBody(output.body, context);
|
|
1164
1139
|
let contents = {};
|
|
1165
|
-
contents =
|
|
1140
|
+
contents = _json(data);
|
|
1166
1141
|
const response = {
|
|
1167
1142
|
$metadata: deserializeMetadata(output),
|
|
1168
1143
|
...contents,
|
|
1169
1144
|
};
|
|
1170
|
-
return
|
|
1145
|
+
return response;
|
|
1171
1146
|
};
|
|
1172
1147
|
const de_UpdateServiceCommandError = async (output, context) => {
|
|
1173
1148
|
const parsedOutput = {
|
|
@@ -1187,17 +1162,16 @@ const de_UpdateServiceCommandError = async (output, context) => {
|
|
|
1187
1162
|
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
1188
1163
|
default:
|
|
1189
1164
|
const parsedBody = parsedOutput.body;
|
|
1190
|
-
throwDefaultError({
|
|
1165
|
+
return throwDefaultError({
|
|
1191
1166
|
output,
|
|
1192
1167
|
parsedBody,
|
|
1193
|
-
exceptionCtor: __BaseException,
|
|
1194
1168
|
errorCode,
|
|
1195
1169
|
});
|
|
1196
1170
|
}
|
|
1197
1171
|
};
|
|
1198
1172
|
const de_CustomHealthNotFoundRes = async (parsedOutput, context) => {
|
|
1199
1173
|
const body = parsedOutput.body;
|
|
1200
|
-
const deserialized =
|
|
1174
|
+
const deserialized = _json(body);
|
|
1201
1175
|
const exception = new CustomHealthNotFound({
|
|
1202
1176
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1203
1177
|
...deserialized,
|
|
@@ -1206,7 +1180,7 @@ const de_CustomHealthNotFoundRes = async (parsedOutput, context) => {
|
|
|
1206
1180
|
};
|
|
1207
1181
|
const de_DuplicateRequestRes = async (parsedOutput, context) => {
|
|
1208
1182
|
const body = parsedOutput.body;
|
|
1209
|
-
const deserialized =
|
|
1183
|
+
const deserialized = _json(body);
|
|
1210
1184
|
const exception = new DuplicateRequest({
|
|
1211
1185
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1212
1186
|
...deserialized,
|
|
@@ -1215,7 +1189,7 @@ const de_DuplicateRequestRes = async (parsedOutput, context) => {
|
|
|
1215
1189
|
};
|
|
1216
1190
|
const de_InstanceNotFoundRes = async (parsedOutput, context) => {
|
|
1217
1191
|
const body = parsedOutput.body;
|
|
1218
|
-
const deserialized =
|
|
1192
|
+
const deserialized = _json(body);
|
|
1219
1193
|
const exception = new InstanceNotFound({
|
|
1220
1194
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1221
1195
|
...deserialized,
|
|
@@ -1224,7 +1198,7 @@ const de_InstanceNotFoundRes = async (parsedOutput, context) => {
|
|
|
1224
1198
|
};
|
|
1225
1199
|
const de_InvalidInputRes = async (parsedOutput, context) => {
|
|
1226
1200
|
const body = parsedOutput.body;
|
|
1227
|
-
const deserialized =
|
|
1201
|
+
const deserialized = _json(body);
|
|
1228
1202
|
const exception = new InvalidInput({
|
|
1229
1203
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1230
1204
|
...deserialized,
|
|
@@ -1233,7 +1207,7 @@ const de_InvalidInputRes = async (parsedOutput, context) => {
|
|
|
1233
1207
|
};
|
|
1234
1208
|
const de_NamespaceAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1235
1209
|
const body = parsedOutput.body;
|
|
1236
|
-
const deserialized =
|
|
1210
|
+
const deserialized = _json(body);
|
|
1237
1211
|
const exception = new NamespaceAlreadyExists({
|
|
1238
1212
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1239
1213
|
...deserialized,
|
|
@@ -1242,7 +1216,7 @@ const de_NamespaceAlreadyExistsRes = async (parsedOutput, context) => {
|
|
|
1242
1216
|
};
|
|
1243
1217
|
const de_NamespaceNotFoundRes = async (parsedOutput, context) => {
|
|
1244
1218
|
const body = parsedOutput.body;
|
|
1245
|
-
const deserialized =
|
|
1219
|
+
const deserialized = _json(body);
|
|
1246
1220
|
const exception = new NamespaceNotFound({
|
|
1247
1221
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1248
1222
|
...deserialized,
|
|
@@ -1251,7 +1225,7 @@ const de_NamespaceNotFoundRes = async (parsedOutput, context) => {
|
|
|
1251
1225
|
};
|
|
1252
1226
|
const de_OperationNotFoundRes = async (parsedOutput, context) => {
|
|
1253
1227
|
const body = parsedOutput.body;
|
|
1254
|
-
const deserialized =
|
|
1228
|
+
const deserialized = _json(body);
|
|
1255
1229
|
const exception = new OperationNotFound({
|
|
1256
1230
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1257
1231
|
...deserialized,
|
|
@@ -1260,7 +1234,7 @@ const de_OperationNotFoundRes = async (parsedOutput, context) => {
|
|
|
1260
1234
|
};
|
|
1261
1235
|
const de_RequestLimitExceededRes = async (parsedOutput, context) => {
|
|
1262
1236
|
const body = parsedOutput.body;
|
|
1263
|
-
const deserialized =
|
|
1237
|
+
const deserialized = _json(body);
|
|
1264
1238
|
const exception = new RequestLimitExceeded({
|
|
1265
1239
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1266
1240
|
...deserialized,
|
|
@@ -1269,7 +1243,7 @@ const de_RequestLimitExceededRes = async (parsedOutput, context) => {
|
|
|
1269
1243
|
};
|
|
1270
1244
|
const de_ResourceInUseRes = async (parsedOutput, context) => {
|
|
1271
1245
|
const body = parsedOutput.body;
|
|
1272
|
-
const deserialized =
|
|
1246
|
+
const deserialized = _json(body);
|
|
1273
1247
|
const exception = new ResourceInUse({
|
|
1274
1248
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1275
1249
|
...deserialized,
|
|
@@ -1278,7 +1252,7 @@ const de_ResourceInUseRes = async (parsedOutput, context) => {
|
|
|
1278
1252
|
};
|
|
1279
1253
|
const de_ResourceLimitExceededRes = async (parsedOutput, context) => {
|
|
1280
1254
|
const body = parsedOutput.body;
|
|
1281
|
-
const deserialized =
|
|
1255
|
+
const deserialized = _json(body);
|
|
1282
1256
|
const exception = new ResourceLimitExceeded({
|
|
1283
1257
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1284
1258
|
...deserialized,
|
|
@@ -1287,7 +1261,7 @@ const de_ResourceLimitExceededRes = async (parsedOutput, context) => {
|
|
|
1287
1261
|
};
|
|
1288
1262
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1289
1263
|
const body = parsedOutput.body;
|
|
1290
|
-
const deserialized =
|
|
1264
|
+
const deserialized = _json(body);
|
|
1291
1265
|
const exception = new ResourceNotFoundException({
|
|
1292
1266
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1293
1267
|
...deserialized,
|
|
@@ -1296,7 +1270,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1296
1270
|
};
|
|
1297
1271
|
const de_ServiceAlreadyExistsRes = async (parsedOutput, context) => {
|
|
1298
1272
|
const body = parsedOutput.body;
|
|
1299
|
-
const deserialized =
|
|
1273
|
+
const deserialized = _json(body);
|
|
1300
1274
|
const exception = new ServiceAlreadyExists({
|
|
1301
1275
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1302
1276
|
...deserialized,
|
|
@@ -1305,7 +1279,7 @@ const de_ServiceAlreadyExistsRes = async (parsedOutput, context) => {
|
|
|
1305
1279
|
};
|
|
1306
1280
|
const de_ServiceNotFoundRes = async (parsedOutput, context) => {
|
|
1307
1281
|
const body = parsedOutput.body;
|
|
1308
|
-
const deserialized =
|
|
1282
|
+
const deserialized = _json(body);
|
|
1309
1283
|
const exception = new ServiceNotFound({
|
|
1310
1284
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1311
1285
|
...deserialized,
|
|
@@ -1314,856 +1288,196 @@ const de_ServiceNotFoundRes = async (parsedOutput, context) => {
|
|
|
1314
1288
|
};
|
|
1315
1289
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1316
1290
|
const body = parsedOutput.body;
|
|
1317
|
-
const deserialized =
|
|
1291
|
+
const deserialized = _json(body);
|
|
1318
1292
|
const exception = new TooManyTagsException({
|
|
1319
1293
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1320
1294
|
...deserialized,
|
|
1321
1295
|
});
|
|
1322
1296
|
return __decorateServiceException(exception, body);
|
|
1323
1297
|
};
|
|
1324
|
-
const se_Attributes = (input, context) => {
|
|
1325
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1326
|
-
if (value === null) {
|
|
1327
|
-
return acc;
|
|
1328
|
-
}
|
|
1329
|
-
acc[key] = value;
|
|
1330
|
-
return acc;
|
|
1331
|
-
}, {});
|
|
1332
|
-
};
|
|
1333
1298
|
const se_CreateHttpNamespaceRequest = (input, context) => {
|
|
1334
|
-
return {
|
|
1335
|
-
CreatorRequestId:
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
};
|
|
1340
|
-
};
|
|
1341
|
-
const se_CreatePrivateDnsNamespaceRequest = (input, context) => {
|
|
1342
|
-
return {
|
|
1343
|
-
CreatorRequestId: input.CreatorRequestId ?? generateIdempotencyToken(),
|
|
1344
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1345
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1346
|
-
...(input.Properties != null && { Properties: se_PrivateDnsNamespaceProperties(input.Properties, context) }),
|
|
1347
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1348
|
-
...(input.Vpc != null && { Vpc: input.Vpc }),
|
|
1349
|
-
};
|
|
1350
|
-
};
|
|
1351
|
-
const se_CreatePublicDnsNamespaceRequest = (input, context) => {
|
|
1352
|
-
return {
|
|
1353
|
-
CreatorRequestId: input.CreatorRequestId ?? generateIdempotencyToken(),
|
|
1354
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1355
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1356
|
-
...(input.Properties != null && { Properties: se_PublicDnsNamespaceProperties(input.Properties, context) }),
|
|
1357
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1358
|
-
};
|
|
1359
|
-
};
|
|
1360
|
-
const se_CreateServiceRequest = (input, context) => {
|
|
1361
|
-
return {
|
|
1362
|
-
CreatorRequestId: input.CreatorRequestId ?? generateIdempotencyToken(),
|
|
1363
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1364
|
-
...(input.DnsConfig != null && { DnsConfig: se_DnsConfig(input.DnsConfig, context) }),
|
|
1365
|
-
...(input.HealthCheckConfig != null && {
|
|
1366
|
-
HealthCheckConfig: se_HealthCheckConfig(input.HealthCheckConfig, context),
|
|
1367
|
-
}),
|
|
1368
|
-
...(input.HealthCheckCustomConfig != null && {
|
|
1369
|
-
HealthCheckCustomConfig: se_HealthCheckCustomConfig(input.HealthCheckCustomConfig, context),
|
|
1370
|
-
}),
|
|
1371
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1372
|
-
...(input.NamespaceId != null && { NamespaceId: input.NamespaceId }),
|
|
1373
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1374
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1375
|
-
};
|
|
1376
|
-
};
|
|
1377
|
-
const se_DeleteNamespaceRequest = (input, context) => {
|
|
1378
|
-
return {
|
|
1379
|
-
...(input.Id != null && { Id: input.Id }),
|
|
1380
|
-
};
|
|
1381
|
-
};
|
|
1382
|
-
const se_DeleteServiceRequest = (input, context) => {
|
|
1383
|
-
return {
|
|
1384
|
-
...(input.Id != null && { Id: input.Id }),
|
|
1385
|
-
};
|
|
1386
|
-
};
|
|
1387
|
-
const se_DeregisterInstanceRequest = (input, context) => {
|
|
1388
|
-
return {
|
|
1389
|
-
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
1390
|
-
...(input.ServiceId != null && { ServiceId: input.ServiceId }),
|
|
1391
|
-
};
|
|
1392
|
-
};
|
|
1393
|
-
const se_DiscoverInstancesRequest = (input, context) => {
|
|
1394
|
-
return {
|
|
1395
|
-
...(input.HealthStatus != null && { HealthStatus: input.HealthStatus }),
|
|
1396
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1397
|
-
...(input.NamespaceName != null && { NamespaceName: input.NamespaceName }),
|
|
1398
|
-
...(input.OptionalParameters != null && { OptionalParameters: se_Attributes(input.OptionalParameters, context) }),
|
|
1399
|
-
...(input.QueryParameters != null && { QueryParameters: se_Attributes(input.QueryParameters, context) }),
|
|
1400
|
-
...(input.ServiceName != null && { ServiceName: input.ServiceName }),
|
|
1401
|
-
};
|
|
1402
|
-
};
|
|
1403
|
-
const se_DnsConfig = (input, context) => {
|
|
1404
|
-
return {
|
|
1405
|
-
...(input.DnsRecords != null && { DnsRecords: se_DnsRecordList(input.DnsRecords, context) }),
|
|
1406
|
-
...(input.NamespaceId != null && { NamespaceId: input.NamespaceId }),
|
|
1407
|
-
...(input.RoutingPolicy != null && { RoutingPolicy: input.RoutingPolicy }),
|
|
1408
|
-
};
|
|
1409
|
-
};
|
|
1410
|
-
const se_DnsConfigChange = (input, context) => {
|
|
1411
|
-
return {
|
|
1412
|
-
...(input.DnsRecords != null && { DnsRecords: se_DnsRecordList(input.DnsRecords, context) }),
|
|
1413
|
-
};
|
|
1414
|
-
};
|
|
1415
|
-
const se_DnsRecord = (input, context) => {
|
|
1416
|
-
return {
|
|
1417
|
-
...(input.TTL != null && { TTL: input.TTL }),
|
|
1418
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1419
|
-
};
|
|
1420
|
-
};
|
|
1421
|
-
const se_DnsRecordList = (input, context) => {
|
|
1422
|
-
return input
|
|
1423
|
-
.filter((e) => e != null)
|
|
1424
|
-
.map((entry) => {
|
|
1425
|
-
return se_DnsRecord(entry, context);
|
|
1426
|
-
});
|
|
1427
|
-
};
|
|
1428
|
-
const se_FilterValues = (input, context) => {
|
|
1429
|
-
return input
|
|
1430
|
-
.filter((e) => e != null)
|
|
1431
|
-
.map((entry) => {
|
|
1432
|
-
return entry;
|
|
1299
|
+
return take(input, {
|
|
1300
|
+
CreatorRequestId: (_) => _ ?? generateIdempotencyToken(),
|
|
1301
|
+
Description: [],
|
|
1302
|
+
Name: [],
|
|
1303
|
+
Tags: _json,
|
|
1433
1304
|
});
|
|
1434
1305
|
};
|
|
1435
|
-
const
|
|
1436
|
-
return {
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
...(input.Instances != null && { Instances: se_InstanceIdList(input.Instances, context) }),
|
|
1444
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1445
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1446
|
-
...(input.ServiceId != null && { ServiceId: input.ServiceId }),
|
|
1447
|
-
};
|
|
1448
|
-
};
|
|
1449
|
-
const se_GetNamespaceRequest = (input, context) => {
|
|
1450
|
-
return {
|
|
1451
|
-
...(input.Id != null && { Id: input.Id }),
|
|
1452
|
-
};
|
|
1453
|
-
};
|
|
1454
|
-
const se_GetOperationRequest = (input, context) => {
|
|
1455
|
-
return {
|
|
1456
|
-
...(input.OperationId != null && { OperationId: input.OperationId }),
|
|
1457
|
-
};
|
|
1458
|
-
};
|
|
1459
|
-
const se_GetServiceRequest = (input, context) => {
|
|
1460
|
-
return {
|
|
1461
|
-
...(input.Id != null && { Id: input.Id }),
|
|
1462
|
-
};
|
|
1463
|
-
};
|
|
1464
|
-
const se_HealthCheckConfig = (input, context) => {
|
|
1465
|
-
return {
|
|
1466
|
-
...(input.FailureThreshold != null && { FailureThreshold: input.FailureThreshold }),
|
|
1467
|
-
...(input.ResourcePath != null && { ResourcePath: input.ResourcePath }),
|
|
1468
|
-
...(input.Type != null && { Type: input.Type }),
|
|
1469
|
-
};
|
|
1470
|
-
};
|
|
1471
|
-
const se_HealthCheckCustomConfig = (input, context) => {
|
|
1472
|
-
return {
|
|
1473
|
-
...(input.FailureThreshold != null && { FailureThreshold: input.FailureThreshold }),
|
|
1474
|
-
};
|
|
1475
|
-
};
|
|
1476
|
-
const se_HttpNamespaceChange = (input, context) => {
|
|
1477
|
-
return {
|
|
1478
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1479
|
-
};
|
|
1480
|
-
};
|
|
1481
|
-
const se_InstanceIdList = (input, context) => {
|
|
1482
|
-
return input
|
|
1483
|
-
.filter((e) => e != null)
|
|
1484
|
-
.map((entry) => {
|
|
1485
|
-
return entry;
|
|
1306
|
+
const se_CreatePrivateDnsNamespaceRequest = (input, context) => {
|
|
1307
|
+
return take(input, {
|
|
1308
|
+
CreatorRequestId: (_) => _ ?? generateIdempotencyToken(),
|
|
1309
|
+
Description: [],
|
|
1310
|
+
Name: [],
|
|
1311
|
+
Properties: _json,
|
|
1312
|
+
Tags: _json,
|
|
1313
|
+
Vpc: [],
|
|
1486
1314
|
});
|
|
1487
1315
|
};
|
|
1488
|
-
const
|
|
1489
|
-
return {
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
const se_ListNamespacesRequest = (input, context) => {
|
|
1496
|
-
return {
|
|
1497
|
-
...(input.Filters != null && { Filters: se_NamespaceFilters(input.Filters, context) }),
|
|
1498
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1499
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1500
|
-
};
|
|
1501
|
-
};
|
|
1502
|
-
const se_ListOperationsRequest = (input, context) => {
|
|
1503
|
-
return {
|
|
1504
|
-
...(input.Filters != null && { Filters: se_OperationFilters(input.Filters, context) }),
|
|
1505
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1506
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1507
|
-
};
|
|
1508
|
-
};
|
|
1509
|
-
const se_ListServicesRequest = (input, context) => {
|
|
1510
|
-
return {
|
|
1511
|
-
...(input.Filters != null && { Filters: se_ServiceFilters(input.Filters, context) }),
|
|
1512
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1513
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1514
|
-
};
|
|
1515
|
-
};
|
|
1516
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
1517
|
-
return {
|
|
1518
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1519
|
-
};
|
|
1520
|
-
};
|
|
1521
|
-
const se_NamespaceFilter = (input, context) => {
|
|
1522
|
-
return {
|
|
1523
|
-
...(input.Condition != null && { Condition: input.Condition }),
|
|
1524
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1525
|
-
...(input.Values != null && { Values: se_FilterValues(input.Values, context) }),
|
|
1526
|
-
};
|
|
1527
|
-
};
|
|
1528
|
-
const se_NamespaceFilters = (input, context) => {
|
|
1529
|
-
return input
|
|
1530
|
-
.filter((e) => e != null)
|
|
1531
|
-
.map((entry) => {
|
|
1532
|
-
return se_NamespaceFilter(entry, context);
|
|
1316
|
+
const se_CreatePublicDnsNamespaceRequest = (input, context) => {
|
|
1317
|
+
return take(input, {
|
|
1318
|
+
CreatorRequestId: (_) => _ ?? generateIdempotencyToken(),
|
|
1319
|
+
Description: [],
|
|
1320
|
+
Name: [],
|
|
1321
|
+
Properties: _json,
|
|
1322
|
+
Tags: _json,
|
|
1533
1323
|
});
|
|
1534
1324
|
};
|
|
1535
|
-
const
|
|
1536
|
-
return {
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
return se_OperationFilter(entry, context);
|
|
1325
|
+
const se_CreateServiceRequest = (input, context) => {
|
|
1326
|
+
return take(input, {
|
|
1327
|
+
CreatorRequestId: (_) => _ ?? generateIdempotencyToken(),
|
|
1328
|
+
Description: [],
|
|
1329
|
+
DnsConfig: _json,
|
|
1330
|
+
HealthCheckConfig: _json,
|
|
1331
|
+
HealthCheckCustomConfig: _json,
|
|
1332
|
+
Name: [],
|
|
1333
|
+
NamespaceId: [],
|
|
1334
|
+
Tags: _json,
|
|
1335
|
+
Type: [],
|
|
1547
1336
|
});
|
|
1548
1337
|
};
|
|
1549
|
-
const se_PrivateDnsNamespaceChange = (input, context) => {
|
|
1550
|
-
return {
|
|
1551
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1552
|
-
...(input.Properties != null && { Properties: se_PrivateDnsNamespacePropertiesChange(input.Properties, context) }),
|
|
1553
|
-
};
|
|
1554
|
-
};
|
|
1555
|
-
const se_PrivateDnsNamespaceProperties = (input, context) => {
|
|
1556
|
-
return {
|
|
1557
|
-
...(input.DnsProperties != null && { DnsProperties: se_PrivateDnsPropertiesMutable(input.DnsProperties, context) }),
|
|
1558
|
-
};
|
|
1559
|
-
};
|
|
1560
|
-
const se_PrivateDnsNamespacePropertiesChange = (input, context) => {
|
|
1561
|
-
return {
|
|
1562
|
-
...(input.DnsProperties != null && {
|
|
1563
|
-
DnsProperties: se_PrivateDnsPropertiesMutableChange(input.DnsProperties, context),
|
|
1564
|
-
}),
|
|
1565
|
-
};
|
|
1566
|
-
};
|
|
1567
|
-
const se_PrivateDnsPropertiesMutable = (input, context) => {
|
|
1568
|
-
return {
|
|
1569
|
-
...(input.SOA != null && { SOA: se_SOA(input.SOA, context) }),
|
|
1570
|
-
};
|
|
1571
|
-
};
|
|
1572
|
-
const se_PrivateDnsPropertiesMutableChange = (input, context) => {
|
|
1573
|
-
return {
|
|
1574
|
-
...(input.SOA != null && { SOA: se_SOAChange(input.SOA, context) }),
|
|
1575
|
-
};
|
|
1576
|
-
};
|
|
1577
|
-
const se_PublicDnsNamespaceChange = (input, context) => {
|
|
1578
|
-
return {
|
|
1579
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1580
|
-
...(input.Properties != null && { Properties: se_PublicDnsNamespacePropertiesChange(input.Properties, context) }),
|
|
1581
|
-
};
|
|
1582
|
-
};
|
|
1583
|
-
const se_PublicDnsNamespaceProperties = (input, context) => {
|
|
1584
|
-
return {
|
|
1585
|
-
...(input.DnsProperties != null && { DnsProperties: se_PublicDnsPropertiesMutable(input.DnsProperties, context) }),
|
|
1586
|
-
};
|
|
1587
|
-
};
|
|
1588
|
-
const se_PublicDnsNamespacePropertiesChange = (input, context) => {
|
|
1589
|
-
return {
|
|
1590
|
-
...(input.DnsProperties != null && {
|
|
1591
|
-
DnsProperties: se_PublicDnsPropertiesMutableChange(input.DnsProperties, context),
|
|
1592
|
-
}),
|
|
1593
|
-
};
|
|
1594
|
-
};
|
|
1595
|
-
const se_PublicDnsPropertiesMutable = (input, context) => {
|
|
1596
|
-
return {
|
|
1597
|
-
...(input.SOA != null && { SOA: se_SOA(input.SOA, context) }),
|
|
1598
|
-
};
|
|
1599
|
-
};
|
|
1600
|
-
const se_PublicDnsPropertiesMutableChange = (input, context) => {
|
|
1601
|
-
return {
|
|
1602
|
-
...(input.SOA != null && { SOA: se_SOAChange(input.SOA, context) }),
|
|
1603
|
-
};
|
|
1604
|
-
};
|
|
1605
1338
|
const se_RegisterInstanceRequest = (input, context) => {
|
|
1606
|
-
return {
|
|
1607
|
-
|
|
1608
|
-
CreatorRequestId:
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
};
|
|
1612
|
-
};
|
|
1613
|
-
const se_ServiceChange = (input, context) => {
|
|
1614
|
-
return {
|
|
1615
|
-
...(input.Description != null && { Description: input.Description }),
|
|
1616
|
-
...(input.DnsConfig != null && { DnsConfig: se_DnsConfigChange(input.DnsConfig, context) }),
|
|
1617
|
-
...(input.HealthCheckConfig != null && {
|
|
1618
|
-
HealthCheckConfig: se_HealthCheckConfig(input.HealthCheckConfig, context),
|
|
1619
|
-
}),
|
|
1620
|
-
};
|
|
1621
|
-
};
|
|
1622
|
-
const se_ServiceFilter = (input, context) => {
|
|
1623
|
-
return {
|
|
1624
|
-
...(input.Condition != null && { Condition: input.Condition }),
|
|
1625
|
-
...(input.Name != null && { Name: input.Name }),
|
|
1626
|
-
...(input.Values != null && { Values: se_FilterValues(input.Values, context) }),
|
|
1627
|
-
};
|
|
1628
|
-
};
|
|
1629
|
-
const se_ServiceFilters = (input, context) => {
|
|
1630
|
-
return input
|
|
1631
|
-
.filter((e) => e != null)
|
|
1632
|
-
.map((entry) => {
|
|
1633
|
-
return se_ServiceFilter(entry, context);
|
|
1339
|
+
return take(input, {
|
|
1340
|
+
Attributes: _json,
|
|
1341
|
+
CreatorRequestId: (_) => _ ?? generateIdempotencyToken(),
|
|
1342
|
+
InstanceId: [],
|
|
1343
|
+
ServiceId: [],
|
|
1634
1344
|
});
|
|
1635
1345
|
};
|
|
1636
|
-
const se_SOA = (input, context) => {
|
|
1637
|
-
return {
|
|
1638
|
-
...(input.TTL != null && { TTL: input.TTL }),
|
|
1639
|
-
};
|
|
1640
|
-
};
|
|
1641
|
-
const se_SOAChange = (input, context) => {
|
|
1642
|
-
return {
|
|
1643
|
-
...(input.TTL != null && { TTL: input.TTL }),
|
|
1644
|
-
};
|
|
1645
|
-
};
|
|
1646
|
-
const se_Tag = (input, context) => {
|
|
1647
|
-
return {
|
|
1648
|
-
...(input.Key != null && { Key: input.Key }),
|
|
1649
|
-
...(input.Value != null && { Value: input.Value }),
|
|
1650
|
-
};
|
|
1651
|
-
};
|
|
1652
|
-
const se_TagKeyList = (input, context) => {
|
|
1653
|
-
return input
|
|
1654
|
-
.filter((e) => e != null)
|
|
1655
|
-
.map((entry) => {
|
|
1656
|
-
return entry;
|
|
1657
|
-
});
|
|
1658
|
-
};
|
|
1659
|
-
const se_TagList = (input, context) => {
|
|
1660
|
-
return input
|
|
1661
|
-
.filter((e) => e != null)
|
|
1662
|
-
.map((entry) => {
|
|
1663
|
-
return se_Tag(entry, context);
|
|
1664
|
-
});
|
|
1665
|
-
};
|
|
1666
|
-
const se_TagResourceRequest = (input, context) => {
|
|
1667
|
-
return {
|
|
1668
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1669
|
-
...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
|
|
1670
|
-
};
|
|
1671
|
-
};
|
|
1672
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
1673
|
-
return {
|
|
1674
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
1675
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
1676
|
-
};
|
|
1677
|
-
};
|
|
1678
1346
|
const se_UpdateHttpNamespaceRequest = (input, context) => {
|
|
1679
|
-
return {
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
UpdaterRequestId:
|
|
1683
|
-
};
|
|
1684
|
-
};
|
|
1685
|
-
const se_UpdateInstanceCustomHealthStatusRequest = (input, context) => {
|
|
1686
|
-
return {
|
|
1687
|
-
...(input.InstanceId != null && { InstanceId: input.InstanceId }),
|
|
1688
|
-
...(input.ServiceId != null && { ServiceId: input.ServiceId }),
|
|
1689
|
-
...(input.Status != null && { Status: input.Status }),
|
|
1690
|
-
};
|
|
1347
|
+
return take(input, {
|
|
1348
|
+
Id: [],
|
|
1349
|
+
Namespace: _json,
|
|
1350
|
+
UpdaterRequestId: (_) => _ ?? generateIdempotencyToken(),
|
|
1351
|
+
});
|
|
1691
1352
|
};
|
|
1692
1353
|
const se_UpdatePrivateDnsNamespaceRequest = (input, context) => {
|
|
1693
|
-
return {
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
UpdaterRequestId:
|
|
1697
|
-
};
|
|
1354
|
+
return take(input, {
|
|
1355
|
+
Id: [],
|
|
1356
|
+
Namespace: _json,
|
|
1357
|
+
UpdaterRequestId: (_) => _ ?? generateIdempotencyToken(),
|
|
1358
|
+
});
|
|
1698
1359
|
};
|
|
1699
1360
|
const se_UpdatePublicDnsNamespaceRequest = (input, context) => {
|
|
1700
|
-
return {
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
UpdaterRequestId:
|
|
1704
|
-
};
|
|
1705
|
-
};
|
|
1706
|
-
const se_UpdateServiceRequest = (input, context) => {
|
|
1707
|
-
return {
|
|
1708
|
-
...(input.Id != null && { Id: input.Id }),
|
|
1709
|
-
...(input.Service != null && { Service: se_ServiceChange(input.Service, context) }),
|
|
1710
|
-
};
|
|
1711
|
-
};
|
|
1712
|
-
const de_Attributes = (output, context) => {
|
|
1713
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1714
|
-
if (value === null) {
|
|
1715
|
-
return acc;
|
|
1716
|
-
}
|
|
1717
|
-
acc[key] = __expectString(value);
|
|
1718
|
-
return acc;
|
|
1719
|
-
}, {});
|
|
1720
|
-
};
|
|
1721
|
-
const de_CreateHttpNamespaceResponse = (output, context) => {
|
|
1722
|
-
return {
|
|
1723
|
-
OperationId: __expectString(output.OperationId),
|
|
1724
|
-
};
|
|
1725
|
-
};
|
|
1726
|
-
const de_CreatePrivateDnsNamespaceResponse = (output, context) => {
|
|
1727
|
-
return {
|
|
1728
|
-
OperationId: __expectString(output.OperationId),
|
|
1729
|
-
};
|
|
1730
|
-
};
|
|
1731
|
-
const de_CreatePublicDnsNamespaceResponse = (output, context) => {
|
|
1732
|
-
return {
|
|
1733
|
-
OperationId: __expectString(output.OperationId),
|
|
1734
|
-
};
|
|
1361
|
+
return take(input, {
|
|
1362
|
+
Id: [],
|
|
1363
|
+
Namespace: _json,
|
|
1364
|
+
UpdaterRequestId: (_) => _ ?? generateIdempotencyToken(),
|
|
1365
|
+
});
|
|
1735
1366
|
};
|
|
1736
1367
|
const de_CreateServiceResponse = (output, context) => {
|
|
1737
|
-
return {
|
|
1738
|
-
Service:
|
|
1739
|
-
};
|
|
1740
|
-
};
|
|
1741
|
-
const de_CustomHealthNotFound = (output, context) => {
|
|
1742
|
-
return {
|
|
1743
|
-
Message: __expectString(output.Message),
|
|
1744
|
-
};
|
|
1745
|
-
};
|
|
1746
|
-
const de_DeleteNamespaceResponse = (output, context) => {
|
|
1747
|
-
return {
|
|
1748
|
-
OperationId: __expectString(output.OperationId),
|
|
1749
|
-
};
|
|
1750
|
-
};
|
|
1751
|
-
const de_DeleteServiceResponse = (output, context) => {
|
|
1752
|
-
return {};
|
|
1753
|
-
};
|
|
1754
|
-
const de_DeregisterInstanceResponse = (output, context) => {
|
|
1755
|
-
return {
|
|
1756
|
-
OperationId: __expectString(output.OperationId),
|
|
1757
|
-
};
|
|
1758
|
-
};
|
|
1759
|
-
const de_DiscoverInstancesResponse = (output, context) => {
|
|
1760
|
-
return {
|
|
1761
|
-
Instances: output.Instances != null ? de_HttpInstanceSummaryList(output.Instances, context) : undefined,
|
|
1762
|
-
};
|
|
1763
|
-
};
|
|
1764
|
-
const de_DnsConfig = (output, context) => {
|
|
1765
|
-
return {
|
|
1766
|
-
DnsRecords: output.DnsRecords != null ? de_DnsRecordList(output.DnsRecords, context) : undefined,
|
|
1767
|
-
NamespaceId: __expectString(output.NamespaceId),
|
|
1768
|
-
RoutingPolicy: __expectString(output.RoutingPolicy),
|
|
1769
|
-
};
|
|
1770
|
-
};
|
|
1771
|
-
const de_DnsProperties = (output, context) => {
|
|
1772
|
-
return {
|
|
1773
|
-
HostedZoneId: __expectString(output.HostedZoneId),
|
|
1774
|
-
SOA: output.SOA != null ? de_SOA(output.SOA, context) : undefined,
|
|
1775
|
-
};
|
|
1776
|
-
};
|
|
1777
|
-
const de_DnsRecord = (output, context) => {
|
|
1778
|
-
return {
|
|
1779
|
-
TTL: __expectLong(output.TTL),
|
|
1780
|
-
Type: __expectString(output.Type),
|
|
1781
|
-
};
|
|
1782
|
-
};
|
|
1783
|
-
const de_DnsRecordList = (output, context) => {
|
|
1784
|
-
const retVal = (output || [])
|
|
1785
|
-
.filter((e) => e != null)
|
|
1786
|
-
.map((entry) => {
|
|
1787
|
-
if (entry === null) {
|
|
1788
|
-
return null;
|
|
1789
|
-
}
|
|
1790
|
-
return de_DnsRecord(entry, context);
|
|
1368
|
+
return take(output, {
|
|
1369
|
+
Service: (_) => de_Service(_, context),
|
|
1791
1370
|
});
|
|
1792
|
-
return retVal;
|
|
1793
|
-
};
|
|
1794
|
-
const de_DuplicateRequest = (output, context) => {
|
|
1795
|
-
return {
|
|
1796
|
-
DuplicateOperationId: __expectString(output.DuplicateOperationId),
|
|
1797
|
-
Message: __expectString(output.Message),
|
|
1798
|
-
};
|
|
1799
|
-
};
|
|
1800
|
-
const de_GetInstanceResponse = (output, context) => {
|
|
1801
|
-
return {
|
|
1802
|
-
Instance: output.Instance != null ? de_Instance(output.Instance, context) : undefined,
|
|
1803
|
-
};
|
|
1804
|
-
};
|
|
1805
|
-
const de_GetInstancesHealthStatusResponse = (output, context) => {
|
|
1806
|
-
return {
|
|
1807
|
-
NextToken: __expectString(output.NextToken),
|
|
1808
|
-
Status: output.Status != null ? de_InstanceHealthStatusMap(output.Status, context) : undefined,
|
|
1809
|
-
};
|
|
1810
1371
|
};
|
|
1811
1372
|
const de_GetNamespaceResponse = (output, context) => {
|
|
1812
|
-
return {
|
|
1813
|
-
Namespace:
|
|
1814
|
-
};
|
|
1373
|
+
return take(output, {
|
|
1374
|
+
Namespace: (_) => de_Namespace(_, context),
|
|
1375
|
+
});
|
|
1815
1376
|
};
|
|
1816
1377
|
const de_GetOperationResponse = (output, context) => {
|
|
1817
|
-
return {
|
|
1818
|
-
Operation:
|
|
1819
|
-
};
|
|
1820
|
-
};
|
|
1821
|
-
const de_GetServiceResponse = (output, context) => {
|
|
1822
|
-
return {
|
|
1823
|
-
Service: output.Service != null ? de_Service(output.Service, context) : undefined,
|
|
1824
|
-
};
|
|
1825
|
-
};
|
|
1826
|
-
const de_HealthCheckConfig = (output, context) => {
|
|
1827
|
-
return {
|
|
1828
|
-
FailureThreshold: __expectInt32(output.FailureThreshold),
|
|
1829
|
-
ResourcePath: __expectString(output.ResourcePath),
|
|
1830
|
-
Type: __expectString(output.Type),
|
|
1831
|
-
};
|
|
1832
|
-
};
|
|
1833
|
-
const de_HealthCheckCustomConfig = (output, context) => {
|
|
1834
|
-
return {
|
|
1835
|
-
FailureThreshold: __expectInt32(output.FailureThreshold),
|
|
1836
|
-
};
|
|
1837
|
-
};
|
|
1838
|
-
const de_HttpInstanceSummary = (output, context) => {
|
|
1839
|
-
return {
|
|
1840
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
1841
|
-
HealthStatus: __expectString(output.HealthStatus),
|
|
1842
|
-
InstanceId: __expectString(output.InstanceId),
|
|
1843
|
-
NamespaceName: __expectString(output.NamespaceName),
|
|
1844
|
-
ServiceName: __expectString(output.ServiceName),
|
|
1845
|
-
};
|
|
1846
|
-
};
|
|
1847
|
-
const de_HttpInstanceSummaryList = (output, context) => {
|
|
1848
|
-
const retVal = (output || [])
|
|
1849
|
-
.filter((e) => e != null)
|
|
1850
|
-
.map((entry) => {
|
|
1851
|
-
if (entry === null) {
|
|
1852
|
-
return null;
|
|
1853
|
-
}
|
|
1854
|
-
return de_HttpInstanceSummary(entry, context);
|
|
1378
|
+
return take(output, {
|
|
1379
|
+
Operation: (_) => de_Operation(_, context),
|
|
1855
1380
|
});
|
|
1856
|
-
return retVal;
|
|
1857
|
-
};
|
|
1858
|
-
const de_HttpProperties = (output, context) => {
|
|
1859
|
-
return {
|
|
1860
|
-
HttpName: __expectString(output.HttpName),
|
|
1861
|
-
};
|
|
1862
|
-
};
|
|
1863
|
-
const de_Instance = (output, context) => {
|
|
1864
|
-
return {
|
|
1865
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
1866
|
-
CreatorRequestId: __expectString(output.CreatorRequestId),
|
|
1867
|
-
Id: __expectString(output.Id),
|
|
1868
|
-
};
|
|
1869
|
-
};
|
|
1870
|
-
const de_InstanceHealthStatusMap = (output, context) => {
|
|
1871
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1872
|
-
if (value === null) {
|
|
1873
|
-
return acc;
|
|
1874
|
-
}
|
|
1875
|
-
acc[key] = __expectString(value);
|
|
1876
|
-
return acc;
|
|
1877
|
-
}, {});
|
|
1878
1381
|
};
|
|
1879
|
-
const
|
|
1880
|
-
return {
|
|
1881
|
-
|
|
1882
|
-
};
|
|
1883
|
-
};
|
|
1884
|
-
const de_InstanceSummary = (output, context) => {
|
|
1885
|
-
return {
|
|
1886
|
-
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
1887
|
-
Id: __expectString(output.Id),
|
|
1888
|
-
};
|
|
1889
|
-
};
|
|
1890
|
-
const de_InstanceSummaryList = (output, context) => {
|
|
1891
|
-
const retVal = (output || [])
|
|
1892
|
-
.filter((e) => e != null)
|
|
1893
|
-
.map((entry) => {
|
|
1894
|
-
if (entry === null) {
|
|
1895
|
-
return null;
|
|
1896
|
-
}
|
|
1897
|
-
return de_InstanceSummary(entry, context);
|
|
1382
|
+
const de_GetServiceResponse = (output, context) => {
|
|
1383
|
+
return take(output, {
|
|
1384
|
+
Service: (_) => de_Service(_, context),
|
|
1898
1385
|
});
|
|
1899
|
-
return retVal;
|
|
1900
|
-
};
|
|
1901
|
-
const de_InvalidInput = (output, context) => {
|
|
1902
|
-
return {
|
|
1903
|
-
Message: __expectString(output.Message),
|
|
1904
|
-
};
|
|
1905
|
-
};
|
|
1906
|
-
const de_ListInstancesResponse = (output, context) => {
|
|
1907
|
-
return {
|
|
1908
|
-
Instances: output.Instances != null ? de_InstanceSummaryList(output.Instances, context) : undefined,
|
|
1909
|
-
NextToken: __expectString(output.NextToken),
|
|
1910
|
-
};
|
|
1911
1386
|
};
|
|
1912
1387
|
const de_ListNamespacesResponse = (output, context) => {
|
|
1913
|
-
return {
|
|
1914
|
-
Namespaces:
|
|
1915
|
-
NextToken: __expectString
|
|
1916
|
-
};
|
|
1917
|
-
};
|
|
1918
|
-
const de_ListOperationsResponse = (output, context) => {
|
|
1919
|
-
return {
|
|
1920
|
-
NextToken: __expectString(output.NextToken),
|
|
1921
|
-
Operations: output.Operations != null ? de_OperationSummaryList(output.Operations, context) : undefined,
|
|
1922
|
-
};
|
|
1388
|
+
return take(output, {
|
|
1389
|
+
Namespaces: (_) => de_NamespaceSummariesList(_, context),
|
|
1390
|
+
NextToken: __expectString,
|
|
1391
|
+
});
|
|
1923
1392
|
};
|
|
1924
1393
|
const de_ListServicesResponse = (output, context) => {
|
|
1925
|
-
return {
|
|
1926
|
-
NextToken: __expectString
|
|
1927
|
-
Services:
|
|
1928
|
-
};
|
|
1929
|
-
};
|
|
1930
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1931
|
-
return {
|
|
1932
|
-
Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
|
|
1933
|
-
};
|
|
1394
|
+
return take(output, {
|
|
1395
|
+
NextToken: __expectString,
|
|
1396
|
+
Services: (_) => de_ServiceSummariesList(_, context),
|
|
1397
|
+
});
|
|
1934
1398
|
};
|
|
1935
1399
|
const de_Namespace = (output, context) => {
|
|
1936
|
-
return {
|
|
1937
|
-
Arn: __expectString
|
|
1938
|
-
CreateDate:
|
|
1939
|
-
CreatorRequestId: __expectString
|
|
1940
|
-
Description: __expectString
|
|
1941
|
-
Id: __expectString
|
|
1942
|
-
Name: __expectString
|
|
1943
|
-
Properties:
|
|
1944
|
-
ServiceCount: __expectInt32
|
|
1945
|
-
Type: __expectString
|
|
1946
|
-
};
|
|
1947
|
-
};
|
|
1948
|
-
const de_NamespaceAlreadyExists = (output, context) => {
|
|
1949
|
-
return {
|
|
1950
|
-
CreatorRequestId: __expectString(output.CreatorRequestId),
|
|
1951
|
-
Message: __expectString(output.Message),
|
|
1952
|
-
NamespaceId: __expectString(output.NamespaceId),
|
|
1953
|
-
};
|
|
1954
|
-
};
|
|
1955
|
-
const de_NamespaceNotFound = (output, context) => {
|
|
1956
|
-
return {
|
|
1957
|
-
Message: __expectString(output.Message),
|
|
1958
|
-
};
|
|
1959
|
-
};
|
|
1960
|
-
const de_NamespaceProperties = (output, context) => {
|
|
1961
|
-
return {
|
|
1962
|
-
DnsProperties: output.DnsProperties != null ? de_DnsProperties(output.DnsProperties, context) : undefined,
|
|
1963
|
-
HttpProperties: output.HttpProperties != null ? de_HttpProperties(output.HttpProperties, context) : undefined,
|
|
1964
|
-
};
|
|
1400
|
+
return take(output, {
|
|
1401
|
+
Arn: __expectString,
|
|
1402
|
+
CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1403
|
+
CreatorRequestId: __expectString,
|
|
1404
|
+
Description: __expectString,
|
|
1405
|
+
Id: __expectString,
|
|
1406
|
+
Name: __expectString,
|
|
1407
|
+
Properties: _json,
|
|
1408
|
+
ServiceCount: __expectInt32,
|
|
1409
|
+
Type: __expectString,
|
|
1410
|
+
});
|
|
1965
1411
|
};
|
|
1966
1412
|
const de_NamespaceSummariesList = (output, context) => {
|
|
1967
1413
|
const retVal = (output || [])
|
|
1968
1414
|
.filter((e) => e != null)
|
|
1969
1415
|
.map((entry) => {
|
|
1970
|
-
if (entry === null) {
|
|
1971
|
-
return null;
|
|
1972
|
-
}
|
|
1973
1416
|
return de_NamespaceSummary(entry, context);
|
|
1974
1417
|
});
|
|
1975
1418
|
return retVal;
|
|
1976
1419
|
};
|
|
1977
1420
|
const de_NamespaceSummary = (output, context) => {
|
|
1978
|
-
return {
|
|
1979
|
-
Arn: __expectString
|
|
1980
|
-
CreateDate:
|
|
1981
|
-
Description: __expectString
|
|
1982
|
-
Id: __expectString
|
|
1983
|
-
Name: __expectString
|
|
1984
|
-
Properties:
|
|
1985
|
-
ServiceCount: __expectInt32
|
|
1986
|
-
Type: __expectString
|
|
1987
|
-
};
|
|
1421
|
+
return take(output, {
|
|
1422
|
+
Arn: __expectString,
|
|
1423
|
+
CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1424
|
+
Description: __expectString,
|
|
1425
|
+
Id: __expectString,
|
|
1426
|
+
Name: __expectString,
|
|
1427
|
+
Properties: _json,
|
|
1428
|
+
ServiceCount: __expectInt32,
|
|
1429
|
+
Type: __expectString,
|
|
1430
|
+
});
|
|
1988
1431
|
};
|
|
1989
1432
|
const de_Operation = (output, context) => {
|
|
1990
|
-
return {
|
|
1991
|
-
CreateDate:
|
|
1992
|
-
ErrorCode: __expectString
|
|
1993
|
-
ErrorMessage: __expectString
|
|
1994
|
-
Id: __expectString
|
|
1995
|
-
Status: __expectString
|
|
1996
|
-
Targets:
|
|
1997
|
-
Type: __expectString
|
|
1998
|
-
UpdateDate:
|
|
1999
|
-
};
|
|
2000
|
-
};
|
|
2001
|
-
const de_OperationNotFound = (output, context) => {
|
|
2002
|
-
return {
|
|
2003
|
-
Message: __expectString(output.Message),
|
|
2004
|
-
};
|
|
2005
|
-
};
|
|
2006
|
-
const de_OperationSummary = (output, context) => {
|
|
2007
|
-
return {
|
|
2008
|
-
Id: __expectString(output.Id),
|
|
2009
|
-
Status: __expectString(output.Status),
|
|
2010
|
-
};
|
|
2011
|
-
};
|
|
2012
|
-
const de_OperationSummaryList = (output, context) => {
|
|
2013
|
-
const retVal = (output || [])
|
|
2014
|
-
.filter((e) => e != null)
|
|
2015
|
-
.map((entry) => {
|
|
2016
|
-
if (entry === null) {
|
|
2017
|
-
return null;
|
|
2018
|
-
}
|
|
2019
|
-
return de_OperationSummary(entry, context);
|
|
1433
|
+
return take(output, {
|
|
1434
|
+
CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1435
|
+
ErrorCode: __expectString,
|
|
1436
|
+
ErrorMessage: __expectString,
|
|
1437
|
+
Id: __expectString,
|
|
1438
|
+
Status: __expectString,
|
|
1439
|
+
Targets: _json,
|
|
1440
|
+
Type: __expectString,
|
|
1441
|
+
UpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2020
1442
|
});
|
|
2021
|
-
return retVal;
|
|
2022
|
-
};
|
|
2023
|
-
const de_OperationTargetsMap = (output, context) => {
|
|
2024
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2025
|
-
if (value === null) {
|
|
2026
|
-
return acc;
|
|
2027
|
-
}
|
|
2028
|
-
acc[key] = __expectString(value);
|
|
2029
|
-
return acc;
|
|
2030
|
-
}, {});
|
|
2031
|
-
};
|
|
2032
|
-
const de_RegisterInstanceResponse = (output, context) => {
|
|
2033
|
-
return {
|
|
2034
|
-
OperationId: __expectString(output.OperationId),
|
|
2035
|
-
};
|
|
2036
|
-
};
|
|
2037
|
-
const de_RequestLimitExceeded = (output, context) => {
|
|
2038
|
-
return {
|
|
2039
|
-
Message: __expectString(output.Message),
|
|
2040
|
-
};
|
|
2041
|
-
};
|
|
2042
|
-
const de_ResourceInUse = (output, context) => {
|
|
2043
|
-
return {
|
|
2044
|
-
Message: __expectString(output.Message),
|
|
2045
|
-
};
|
|
2046
|
-
};
|
|
2047
|
-
const de_ResourceLimitExceeded = (output, context) => {
|
|
2048
|
-
return {
|
|
2049
|
-
Message: __expectString(output.Message),
|
|
2050
|
-
};
|
|
2051
|
-
};
|
|
2052
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2053
|
-
return {
|
|
2054
|
-
Message: __expectString(output.Message),
|
|
2055
|
-
};
|
|
2056
1443
|
};
|
|
2057
1444
|
const de_Service = (output, context) => {
|
|
2058
|
-
return {
|
|
2059
|
-
Arn: __expectString
|
|
2060
|
-
CreateDate:
|
|
2061
|
-
CreatorRequestId: __expectString
|
|
2062
|
-
Description: __expectString
|
|
2063
|
-
DnsConfig:
|
|
2064
|
-
HealthCheckConfig:
|
|
2065
|
-
HealthCheckCustomConfig:
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
Type: __expectString(output.Type),
|
|
2073
|
-
};
|
|
2074
|
-
};
|
|
2075
|
-
const de_ServiceAlreadyExists = (output, context) => {
|
|
2076
|
-
return {
|
|
2077
|
-
CreatorRequestId: __expectString(output.CreatorRequestId),
|
|
2078
|
-
Message: __expectString(output.Message),
|
|
2079
|
-
ServiceId: __expectString(output.ServiceId),
|
|
2080
|
-
};
|
|
2081
|
-
};
|
|
2082
|
-
const de_ServiceNotFound = (output, context) => {
|
|
2083
|
-
return {
|
|
2084
|
-
Message: __expectString(output.Message),
|
|
2085
|
-
};
|
|
1445
|
+
return take(output, {
|
|
1446
|
+
Arn: __expectString,
|
|
1447
|
+
CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1448
|
+
CreatorRequestId: __expectString,
|
|
1449
|
+
Description: __expectString,
|
|
1450
|
+
DnsConfig: _json,
|
|
1451
|
+
HealthCheckConfig: _json,
|
|
1452
|
+
HealthCheckCustomConfig: _json,
|
|
1453
|
+
Id: __expectString,
|
|
1454
|
+
InstanceCount: __expectInt32,
|
|
1455
|
+
Name: __expectString,
|
|
1456
|
+
NamespaceId: __expectString,
|
|
1457
|
+
Type: __expectString,
|
|
1458
|
+
});
|
|
2086
1459
|
};
|
|
2087
1460
|
const de_ServiceSummariesList = (output, context) => {
|
|
2088
1461
|
const retVal = (output || [])
|
|
2089
1462
|
.filter((e) => e != null)
|
|
2090
1463
|
.map((entry) => {
|
|
2091
|
-
if (entry === null) {
|
|
2092
|
-
return null;
|
|
2093
|
-
}
|
|
2094
1464
|
return de_ServiceSummary(entry, context);
|
|
2095
1465
|
});
|
|
2096
1466
|
return retVal;
|
|
2097
1467
|
};
|
|
2098
1468
|
const de_ServiceSummary = (output, context) => {
|
|
2099
|
-
return {
|
|
2100
|
-
Arn: __expectString
|
|
2101
|
-
CreateDate:
|
|
2102
|
-
Description: __expectString
|
|
2103
|
-
DnsConfig:
|
|
2104
|
-
HealthCheckConfig:
|
|
2105
|
-
HealthCheckCustomConfig:
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
Name: __expectString(output.Name),
|
|
2111
|
-
Type: __expectString(output.Type),
|
|
2112
|
-
};
|
|
2113
|
-
};
|
|
2114
|
-
const de_SOA = (output, context) => {
|
|
2115
|
-
return {
|
|
2116
|
-
TTL: __expectLong(output.TTL),
|
|
2117
|
-
};
|
|
2118
|
-
};
|
|
2119
|
-
const de_Tag = (output, context) => {
|
|
2120
|
-
return {
|
|
2121
|
-
Key: __expectString(output.Key),
|
|
2122
|
-
Value: __expectString(output.Value),
|
|
2123
|
-
};
|
|
2124
|
-
};
|
|
2125
|
-
const de_TagList = (output, context) => {
|
|
2126
|
-
const retVal = (output || [])
|
|
2127
|
-
.filter((e) => e != null)
|
|
2128
|
-
.map((entry) => {
|
|
2129
|
-
if (entry === null) {
|
|
2130
|
-
return null;
|
|
2131
|
-
}
|
|
2132
|
-
return de_Tag(entry, context);
|
|
1469
|
+
return take(output, {
|
|
1470
|
+
Arn: __expectString,
|
|
1471
|
+
CreateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1472
|
+
Description: __expectString,
|
|
1473
|
+
DnsConfig: _json,
|
|
1474
|
+
HealthCheckConfig: _json,
|
|
1475
|
+
HealthCheckCustomConfig: _json,
|
|
1476
|
+
Id: __expectString,
|
|
1477
|
+
InstanceCount: __expectInt32,
|
|
1478
|
+
Name: __expectString,
|
|
1479
|
+
Type: __expectString,
|
|
2133
1480
|
});
|
|
2134
|
-
return retVal;
|
|
2135
|
-
};
|
|
2136
|
-
const de_TagResourceResponse = (output, context) => {
|
|
2137
|
-
return {};
|
|
2138
|
-
};
|
|
2139
|
-
const de_TooManyTagsException = (output, context) => {
|
|
2140
|
-
return {
|
|
2141
|
-
Message: __expectString(output.Message),
|
|
2142
|
-
ResourceName: __expectString(output.ResourceName),
|
|
2143
|
-
};
|
|
2144
|
-
};
|
|
2145
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
2146
|
-
return {};
|
|
2147
|
-
};
|
|
2148
|
-
const de_UpdateHttpNamespaceResponse = (output, context) => {
|
|
2149
|
-
return {
|
|
2150
|
-
OperationId: __expectString(output.OperationId),
|
|
2151
|
-
};
|
|
2152
|
-
};
|
|
2153
|
-
const de_UpdatePrivateDnsNamespaceResponse = (output, context) => {
|
|
2154
|
-
return {
|
|
2155
|
-
OperationId: __expectString(output.OperationId),
|
|
2156
|
-
};
|
|
2157
|
-
};
|
|
2158
|
-
const de_UpdatePublicDnsNamespaceResponse = (output, context) => {
|
|
2159
|
-
return {
|
|
2160
|
-
OperationId: __expectString(output.OperationId),
|
|
2161
|
-
};
|
|
2162
|
-
};
|
|
2163
|
-
const de_UpdateServiceResponse = (output, context) => {
|
|
2164
|
-
return {
|
|
2165
|
-
OperationId: __expectString(output.OperationId),
|
|
2166
|
-
};
|
|
2167
1481
|
};
|
|
2168
1482
|
const deserializeMetadata = (output) => ({
|
|
2169
1483
|
httpStatusCode: output.statusCode,
|
|
@@ -2178,6 +1492,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2178
1492
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2179
1493
|
};
|
|
2180
1494
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1495
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2181
1496
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2182
1497
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2183
1498
|
const contents = {
|