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