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