@aws-sdk/client-appintegrations 3.137.0 → 3.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +198 -374
- package/dist-es/protocols/Aws_restJson1.js +255 -372
- package/package.json +11 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { AppIntegrationsServiceException as __BaseException } from "../models/AppIntegrationsServiceException";
|
|
6
6
|
import { AccessDeniedException, DuplicateResourceException, InternalServiceError, InvalidRequestException, ResourceNotFoundException, ResourceQuotaExceededException, ThrottlingException, } from "../models/models_0";
|
|
@@ -57,7 +57,7 @@ export var serializeAws_restJson1CreateEventIntegrationCommand = function (input
|
|
|
57
57
|
});
|
|
58
58
|
}); };
|
|
59
59
|
export var serializeAws_restJson1DeleteDataIntegrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
60
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
60
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
61
61
|
return __generator(this, function (_c) {
|
|
62
62
|
switch (_c.label) {
|
|
63
63
|
case 0: return [4, context.endpoint()];
|
|
@@ -66,16 +66,7 @@ export var serializeAws_restJson1DeleteDataIntegrationCommand = function (input,
|
|
|
66
66
|
headers = {};
|
|
67
67
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
68
68
|
"/dataIntegrations/{DataIntegrationIdentifier}";
|
|
69
|
-
|
|
70
|
-
labelValue = input.DataIntegrationIdentifier;
|
|
71
|
-
if (labelValue.length <= 0) {
|
|
72
|
-
throw new Error("Empty value provided for input HTTP label: DataIntegrationIdentifier.");
|
|
73
|
-
}
|
|
74
|
-
resolvedPath = resolvedPath.replace("{DataIntegrationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
throw new Error("No value provided for input HTTP label: DataIntegrationIdentifier.");
|
|
78
|
-
}
|
|
69
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DataIntegrationIdentifier", function () { return input.DataIntegrationIdentifier; }, "{DataIntegrationIdentifier}", false);
|
|
79
70
|
return [2, new __HttpRequest({
|
|
80
71
|
protocol: protocol,
|
|
81
72
|
hostname: hostname,
|
|
@@ -89,7 +80,7 @@ export var serializeAws_restJson1DeleteDataIntegrationCommand = function (input,
|
|
|
89
80
|
});
|
|
90
81
|
}); };
|
|
91
82
|
export var serializeAws_restJson1DeleteEventIntegrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
92
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
83
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
93
84
|
return __generator(this, function (_c) {
|
|
94
85
|
switch (_c.label) {
|
|
95
86
|
case 0: return [4, context.endpoint()];
|
|
@@ -97,16 +88,7 @@ export var serializeAws_restJson1DeleteEventIntegrationCommand = function (input
|
|
|
97
88
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
98
89
|
headers = {};
|
|
99
90
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/eventIntegrations/{Name}";
|
|
100
|
-
|
|
101
|
-
labelValue = input.Name;
|
|
102
|
-
if (labelValue.length <= 0) {
|
|
103
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
104
|
-
}
|
|
105
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
109
|
-
}
|
|
91
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
110
92
|
return [2, new __HttpRequest({
|
|
111
93
|
protocol: protocol,
|
|
112
94
|
hostname: hostname,
|
|
@@ -120,7 +102,7 @@ export var serializeAws_restJson1DeleteEventIntegrationCommand = function (input
|
|
|
120
102
|
});
|
|
121
103
|
}); };
|
|
122
104
|
export var serializeAws_restJson1GetDataIntegrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
123
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
105
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
124
106
|
return __generator(this, function (_c) {
|
|
125
107
|
switch (_c.label) {
|
|
126
108
|
case 0: return [4, context.endpoint()];
|
|
@@ -128,16 +110,7 @@ export var serializeAws_restJson1GetDataIntegrationCommand = function (input, co
|
|
|
128
110
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
129
111
|
headers = {};
|
|
130
112
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dataIntegrations/{Identifier}";
|
|
131
|
-
|
|
132
|
-
labelValue = input.Identifier;
|
|
133
|
-
if (labelValue.length <= 0) {
|
|
134
|
-
throw new Error("Empty value provided for input HTTP label: Identifier.");
|
|
135
|
-
}
|
|
136
|
-
resolvedPath = resolvedPath.replace("{Identifier}", __extendedEncodeURIComponent(labelValue));
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
throw new Error("No value provided for input HTTP label: Identifier.");
|
|
140
|
-
}
|
|
113
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", function () { return input.Identifier; }, "{Identifier}", false);
|
|
141
114
|
return [2, new __HttpRequest({
|
|
142
115
|
protocol: protocol,
|
|
143
116
|
hostname: hostname,
|
|
@@ -151,7 +124,7 @@ export var serializeAws_restJson1GetDataIntegrationCommand = function (input, co
|
|
|
151
124
|
});
|
|
152
125
|
}); };
|
|
153
126
|
export var serializeAws_restJson1GetEventIntegrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
154
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
127
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
155
128
|
return __generator(this, function (_c) {
|
|
156
129
|
switch (_c.label) {
|
|
157
130
|
case 0: return [4, context.endpoint()];
|
|
@@ -159,16 +132,7 @@ export var serializeAws_restJson1GetEventIntegrationCommand = function (input, c
|
|
|
159
132
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
160
133
|
headers = {};
|
|
161
134
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/eventIntegrations/{Name}";
|
|
162
|
-
|
|
163
|
-
labelValue = input.Name;
|
|
164
|
-
if (labelValue.length <= 0) {
|
|
165
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
166
|
-
}
|
|
167
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
171
|
-
}
|
|
135
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
172
136
|
return [2, new __HttpRequest({
|
|
173
137
|
protocol: protocol,
|
|
174
138
|
hostname: hostname,
|
|
@@ -182,7 +146,7 @@ export var serializeAws_restJson1GetEventIntegrationCommand = function (input, c
|
|
|
182
146
|
});
|
|
183
147
|
}); };
|
|
184
148
|
export var serializeAws_restJson1ListDataIntegrationAssociationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
185
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
149
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
186
150
|
return __generator(this, function (_c) {
|
|
187
151
|
switch (_c.label) {
|
|
188
152
|
case 0: return [4, context.endpoint()];
|
|
@@ -191,17 +155,11 @@ export var serializeAws_restJson1ListDataIntegrationAssociationsCommand = functi
|
|
|
191
155
|
headers = {};
|
|
192
156
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
193
157
|
"/dataIntegrations/{DataIntegrationIdentifier}/associations";
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
resolvedPath = resolvedPath.replace("{DataIntegrationIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
200
|
-
}
|
|
201
|
-
else {
|
|
202
|
-
throw new Error("No value provided for input HTTP label: DataIntegrationIdentifier.");
|
|
203
|
-
}
|
|
204
|
-
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
158
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DataIntegrationIdentifier", function () { return input.DataIntegrationIdentifier; }, "{DataIntegrationIdentifier}", false);
|
|
159
|
+
query = map({
|
|
160
|
+
nextToken: [, input.NextToken],
|
|
161
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
162
|
+
});
|
|
205
163
|
return [2, new __HttpRequest({
|
|
206
164
|
protocol: protocol,
|
|
207
165
|
hostname: hostname,
|
|
@@ -224,7 +182,10 @@ export var serializeAws_restJson1ListDataIntegrationsCommand = function (input,
|
|
|
224
182
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
225
183
|
headers = {};
|
|
226
184
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dataIntegrations";
|
|
227
|
-
query =
|
|
185
|
+
query = map({
|
|
186
|
+
nextToken: [, input.NextToken],
|
|
187
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
188
|
+
});
|
|
228
189
|
return [2, new __HttpRequest({
|
|
229
190
|
protocol: protocol,
|
|
230
191
|
hostname: hostname,
|
|
@@ -239,7 +200,7 @@ export var serializeAws_restJson1ListDataIntegrationsCommand = function (input,
|
|
|
239
200
|
});
|
|
240
201
|
}); };
|
|
241
202
|
export var serializeAws_restJson1ListEventIntegrationAssociationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
242
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
203
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
243
204
|
return __generator(this, function (_c) {
|
|
244
205
|
switch (_c.label) {
|
|
245
206
|
case 0: return [4, context.endpoint()];
|
|
@@ -248,17 +209,11 @@ export var serializeAws_restJson1ListEventIntegrationAssociationsCommand = funct
|
|
|
248
209
|
headers = {};
|
|
249
210
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
250
211
|
"/eventIntegrations/{EventIntegrationName}/associations";
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
resolvedPath = resolvedPath.replace("{EventIntegrationName}", __extendedEncodeURIComponent(labelValue));
|
|
257
|
-
}
|
|
258
|
-
else {
|
|
259
|
-
throw new Error("No value provided for input HTTP label: EventIntegrationName.");
|
|
260
|
-
}
|
|
261
|
-
query = __assign(__assign({}, (input.NextToken !== undefined && { nextToken: input.NextToken })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }));
|
|
212
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "EventIntegrationName", function () { return input.EventIntegrationName; }, "{EventIntegrationName}", false);
|
|
213
|
+
query = map({
|
|
214
|
+
nextToken: [, input.NextToken],
|
|
215
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
216
|
+
});
|
|
262
217
|
return [2, new __HttpRequest({
|
|
263
218
|
protocol: protocol,
|
|
264
219
|
hostname: hostname,
|
|
@@ -281,7 +236,10 @@ export var serializeAws_restJson1ListEventIntegrationsCommand = function (input,
|
|
|
281
236
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
282
237
|
headers = {};
|
|
283
238
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/eventIntegrations";
|
|
284
|
-
query =
|
|
239
|
+
query = map({
|
|
240
|
+
nextToken: [, input.NextToken],
|
|
241
|
+
maxResults: [function () { return input.MaxResults !== void 0; }, function () { return input.MaxResults.toString(); }],
|
|
242
|
+
});
|
|
285
243
|
return [2, new __HttpRequest({
|
|
286
244
|
protocol: protocol,
|
|
287
245
|
hostname: hostname,
|
|
@@ -296,7 +254,7 @@ export var serializeAws_restJson1ListEventIntegrationsCommand = function (input,
|
|
|
296
254
|
});
|
|
297
255
|
}); };
|
|
298
256
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
299
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
257
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
300
258
|
return __generator(this, function (_c) {
|
|
301
259
|
switch (_c.label) {
|
|
302
260
|
case 0: return [4, context.endpoint()];
|
|
@@ -304,16 +262,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
304
262
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
305
263
|
headers = {};
|
|
306
264
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
307
|
-
|
|
308
|
-
labelValue = input.resourceArn;
|
|
309
|
-
if (labelValue.length <= 0) {
|
|
310
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
311
|
-
}
|
|
312
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
313
|
-
}
|
|
314
|
-
else {
|
|
315
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
316
|
-
}
|
|
265
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
317
266
|
return [2, new __HttpRequest({
|
|
318
267
|
protocol: protocol,
|
|
319
268
|
hostname: hostname,
|
|
@@ -327,7 +276,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
327
276
|
});
|
|
328
277
|
}); };
|
|
329
278
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
330
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
279
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
331
280
|
return __generator(this, function (_c) {
|
|
332
281
|
switch (_c.label) {
|
|
333
282
|
case 0: return [4, context.endpoint()];
|
|
@@ -337,16 +286,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
337
286
|
"content-type": "application/json",
|
|
338
287
|
};
|
|
339
288
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
340
|
-
|
|
341
|
-
labelValue = input.resourceArn;
|
|
342
|
-
if (labelValue.length <= 0) {
|
|
343
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
344
|
-
}
|
|
345
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
349
|
-
}
|
|
289
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
350
290
|
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
351
291
|
return [2, new __HttpRequest({
|
|
352
292
|
protocol: protocol,
|
|
@@ -361,7 +301,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
361
301
|
});
|
|
362
302
|
}); };
|
|
363
303
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
364
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
304
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
365
305
|
return __generator(this, function (_c) {
|
|
366
306
|
switch (_c.label) {
|
|
367
307
|
case 0: return [4, context.endpoint()];
|
|
@@ -369,17 +309,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
369
309
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
370
310
|
headers = {};
|
|
371
311
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
377
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
378
|
-
}
|
|
379
|
-
else {
|
|
380
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
381
|
-
}
|
|
382
|
-
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
312
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", function () { return input.resourceArn; }, "{resourceArn}", false);
|
|
313
|
+
query = map({
|
|
314
|
+
tagKeys: [function () { return input.tagKeys !== void 0; }, function () { return (input.tagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
315
|
+
});
|
|
383
316
|
return [2, new __HttpRequest({
|
|
384
317
|
protocol: protocol,
|
|
385
318
|
hostname: hostname,
|
|
@@ -394,7 +327,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
394
327
|
});
|
|
395
328
|
}); };
|
|
396
329
|
export var serializeAws_restJson1UpdateDataIntegrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
397
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
330
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
398
331
|
return __generator(this, function (_c) {
|
|
399
332
|
switch (_c.label) {
|
|
400
333
|
case 0: return [4, context.endpoint()];
|
|
@@ -404,16 +337,7 @@ export var serializeAws_restJson1UpdateDataIntegrationCommand = function (input,
|
|
|
404
337
|
"content-type": "application/json",
|
|
405
338
|
};
|
|
406
339
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/dataIntegrations/{Identifier}";
|
|
407
|
-
|
|
408
|
-
labelValue = input.Identifier;
|
|
409
|
-
if (labelValue.length <= 0) {
|
|
410
|
-
throw new Error("Empty value provided for input HTTP label: Identifier.");
|
|
411
|
-
}
|
|
412
|
-
resolvedPath = resolvedPath.replace("{Identifier}", __extendedEncodeURIComponent(labelValue));
|
|
413
|
-
}
|
|
414
|
-
else {
|
|
415
|
-
throw new Error("No value provided for input HTTP label: Identifier.");
|
|
416
|
-
}
|
|
340
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Identifier", function () { return input.Identifier; }, "{Identifier}", false);
|
|
417
341
|
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
418
342
|
return [2, new __HttpRequest({
|
|
419
343
|
protocol: protocol,
|
|
@@ -428,7 +352,7 @@ export var serializeAws_restJson1UpdateDataIntegrationCommand = function (input,
|
|
|
428
352
|
});
|
|
429
353
|
}); };
|
|
430
354
|
export var serializeAws_restJson1UpdateEventIntegrationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
431
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
355
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
432
356
|
return __generator(this, function (_c) {
|
|
433
357
|
switch (_c.label) {
|
|
434
358
|
case 0: return [4, context.endpoint()];
|
|
@@ -438,16 +362,7 @@ export var serializeAws_restJson1UpdateEventIntegrationCommand = function (input
|
|
|
438
362
|
"content-type": "application/json",
|
|
439
363
|
};
|
|
440
364
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/eventIntegrations/{Name}";
|
|
441
|
-
|
|
442
|
-
labelValue = input.Name;
|
|
443
|
-
if (labelValue.length <= 0) {
|
|
444
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
445
|
-
}
|
|
446
|
-
resolvedPath = resolvedPath.replace("{Name}", __extendedEncodeURIComponent(labelValue));
|
|
447
|
-
}
|
|
448
|
-
else {
|
|
449
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
450
|
-
}
|
|
365
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Name", function () { return input.Name; }, "{Name}", false);
|
|
451
366
|
body = JSON.stringify(__assign({}, (input.Description != null && { Description: input.Description })));
|
|
452
367
|
return [2, new __HttpRequest({
|
|
453
368
|
protocol: protocol,
|
|
@@ -469,56 +384,47 @@ export var deserializeAws_restJson1CreateDataIntegrationCommand = function (outp
|
|
|
469
384
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
470
385
|
return [2, deserializeAws_restJson1CreateDataIntegrationCommandError(output, context)];
|
|
471
386
|
}
|
|
472
|
-
contents = {
|
|
387
|
+
contents = map({
|
|
473
388
|
$metadata: deserializeMetadata(output),
|
|
474
|
-
|
|
475
|
-
ClientToken: undefined,
|
|
476
|
-
Description: undefined,
|
|
477
|
-
Id: undefined,
|
|
478
|
-
KmsKey: undefined,
|
|
479
|
-
Name: undefined,
|
|
480
|
-
ScheduleConfiguration: undefined,
|
|
481
|
-
SourceURI: undefined,
|
|
482
|
-
Tags: undefined,
|
|
483
|
-
};
|
|
389
|
+
});
|
|
484
390
|
_a = __expectNonNull;
|
|
485
391
|
_b = __expectObject;
|
|
486
392
|
return [4, parseBody(output.body, context)];
|
|
487
393
|
case 1:
|
|
488
394
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
489
|
-
if (data.Arn
|
|
395
|
+
if (data.Arn != null) {
|
|
490
396
|
contents.Arn = __expectString(data.Arn);
|
|
491
397
|
}
|
|
492
|
-
if (data.ClientToken
|
|
398
|
+
if (data.ClientToken != null) {
|
|
493
399
|
contents.ClientToken = __expectString(data.ClientToken);
|
|
494
400
|
}
|
|
495
|
-
if (data.Description
|
|
401
|
+
if (data.Description != null) {
|
|
496
402
|
contents.Description = __expectString(data.Description);
|
|
497
403
|
}
|
|
498
|
-
if (data.Id
|
|
404
|
+
if (data.Id != null) {
|
|
499
405
|
contents.Id = __expectString(data.Id);
|
|
500
406
|
}
|
|
501
|
-
if (data.KmsKey
|
|
407
|
+
if (data.KmsKey != null) {
|
|
502
408
|
contents.KmsKey = __expectString(data.KmsKey);
|
|
503
409
|
}
|
|
504
|
-
if (data.Name
|
|
410
|
+
if (data.Name != null) {
|
|
505
411
|
contents.Name = __expectString(data.Name);
|
|
506
412
|
}
|
|
507
|
-
if (data.ScheduleConfiguration
|
|
413
|
+
if (data.ScheduleConfiguration != null) {
|
|
508
414
|
contents.ScheduleConfiguration = deserializeAws_restJson1ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
509
415
|
}
|
|
510
|
-
if (data.SourceURI
|
|
416
|
+
if (data.SourceURI != null) {
|
|
511
417
|
contents.SourceURI = __expectString(data.SourceURI);
|
|
512
418
|
}
|
|
513
|
-
if (data.Tags
|
|
419
|
+
if (data.Tags != null) {
|
|
514
420
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
515
421
|
}
|
|
516
|
-
return [2,
|
|
422
|
+
return [2, contents];
|
|
517
423
|
}
|
|
518
424
|
});
|
|
519
425
|
}); };
|
|
520
426
|
var deserializeAws_restJson1CreateDataIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
521
|
-
var parsedOutput, _a,
|
|
427
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
522
428
|
var _c;
|
|
523
429
|
return __generator(this, function (_d) {
|
|
524
430
|
switch (_d.label) {
|
|
@@ -559,14 +465,14 @@ var deserializeAws_restJson1CreateDataIntegrationCommandError = function (output
|
|
|
559
465
|
case 13: throw _d.sent();
|
|
560
466
|
case 14:
|
|
561
467
|
parsedBody = parsedOutput.body;
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
$metadata: $metadata,
|
|
468
|
+
throwDefaultError({
|
|
469
|
+
output: output,
|
|
470
|
+
parsedBody: parsedBody,
|
|
471
|
+
exceptionCtor: __BaseException,
|
|
472
|
+
errorCode: errorCode,
|
|
568
473
|
});
|
|
569
|
-
|
|
474
|
+
_d.label = 15;
|
|
475
|
+
case 15: return [2];
|
|
570
476
|
}
|
|
571
477
|
});
|
|
572
478
|
}); };
|
|
@@ -578,24 +484,23 @@ export var deserializeAws_restJson1CreateEventIntegrationCommand = function (out
|
|
|
578
484
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
579
485
|
return [2, deserializeAws_restJson1CreateEventIntegrationCommandError(output, context)];
|
|
580
486
|
}
|
|
581
|
-
contents = {
|
|
487
|
+
contents = map({
|
|
582
488
|
$metadata: deserializeMetadata(output),
|
|
583
|
-
|
|
584
|
-
};
|
|
489
|
+
});
|
|
585
490
|
_a = __expectNonNull;
|
|
586
491
|
_b = __expectObject;
|
|
587
492
|
return [4, parseBody(output.body, context)];
|
|
588
493
|
case 1:
|
|
589
494
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
590
|
-
if (data.EventIntegrationArn
|
|
495
|
+
if (data.EventIntegrationArn != null) {
|
|
591
496
|
contents.EventIntegrationArn = __expectString(data.EventIntegrationArn);
|
|
592
497
|
}
|
|
593
|
-
return [2,
|
|
498
|
+
return [2, contents];
|
|
594
499
|
}
|
|
595
500
|
});
|
|
596
501
|
}); };
|
|
597
502
|
var deserializeAws_restJson1CreateEventIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
598
|
-
var parsedOutput, _a,
|
|
503
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
599
504
|
var _c;
|
|
600
505
|
return __generator(this, function (_d) {
|
|
601
506
|
switch (_d.label) {
|
|
@@ -636,14 +541,14 @@ var deserializeAws_restJson1CreateEventIntegrationCommandError = function (outpu
|
|
|
636
541
|
case 13: throw _d.sent();
|
|
637
542
|
case 14:
|
|
638
543
|
parsedBody = parsedOutput.body;
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
$metadata: $metadata,
|
|
544
|
+
throwDefaultError({
|
|
545
|
+
output: output,
|
|
546
|
+
parsedBody: parsedBody,
|
|
547
|
+
exceptionCtor: __BaseException,
|
|
548
|
+
errorCode: errorCode,
|
|
645
549
|
});
|
|
646
|
-
|
|
550
|
+
_d.label = 15;
|
|
551
|
+
case 15: return [2];
|
|
647
552
|
}
|
|
648
553
|
});
|
|
649
554
|
}); };
|
|
@@ -655,18 +560,18 @@ export var deserializeAws_restJson1DeleteDataIntegrationCommand = function (outp
|
|
|
655
560
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
656
561
|
return [2, deserializeAws_restJson1DeleteDataIntegrationCommandError(output, context)];
|
|
657
562
|
}
|
|
658
|
-
contents = {
|
|
563
|
+
contents = map({
|
|
659
564
|
$metadata: deserializeMetadata(output),
|
|
660
|
-
};
|
|
565
|
+
});
|
|
661
566
|
return [4, collectBody(output.body, context)];
|
|
662
567
|
case 1:
|
|
663
568
|
_a.sent();
|
|
664
|
-
return [2,
|
|
569
|
+
return [2, contents];
|
|
665
570
|
}
|
|
666
571
|
});
|
|
667
572
|
}); };
|
|
668
573
|
var deserializeAws_restJson1DeleteDataIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
669
|
-
var parsedOutput, _a,
|
|
574
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
670
575
|
var _c;
|
|
671
576
|
return __generator(this, function (_d) {
|
|
672
577
|
switch (_d.label) {
|
|
@@ -703,14 +608,14 @@ var deserializeAws_restJson1DeleteDataIntegrationCommandError = function (output
|
|
|
703
608
|
case 11: throw _d.sent();
|
|
704
609
|
case 12:
|
|
705
610
|
parsedBody = parsedOutput.body;
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
$metadata: $metadata,
|
|
611
|
+
throwDefaultError({
|
|
612
|
+
output: output,
|
|
613
|
+
parsedBody: parsedBody,
|
|
614
|
+
exceptionCtor: __BaseException,
|
|
615
|
+
errorCode: errorCode,
|
|
712
616
|
});
|
|
713
|
-
|
|
617
|
+
_d.label = 13;
|
|
618
|
+
case 13: return [2];
|
|
714
619
|
}
|
|
715
620
|
});
|
|
716
621
|
}); };
|
|
@@ -722,18 +627,18 @@ export var deserializeAws_restJson1DeleteEventIntegrationCommand = function (out
|
|
|
722
627
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
628
|
return [2, deserializeAws_restJson1DeleteEventIntegrationCommandError(output, context)];
|
|
724
629
|
}
|
|
725
|
-
contents = {
|
|
630
|
+
contents = map({
|
|
726
631
|
$metadata: deserializeMetadata(output),
|
|
727
|
-
};
|
|
632
|
+
});
|
|
728
633
|
return [4, collectBody(output.body, context)];
|
|
729
634
|
case 1:
|
|
730
635
|
_a.sent();
|
|
731
|
-
return [2,
|
|
636
|
+
return [2, contents];
|
|
732
637
|
}
|
|
733
638
|
});
|
|
734
639
|
}); };
|
|
735
640
|
var deserializeAws_restJson1DeleteEventIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
736
|
-
var parsedOutput, _a,
|
|
641
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
737
642
|
var _c;
|
|
738
643
|
return __generator(this, function (_d) {
|
|
739
644
|
switch (_d.label) {
|
|
@@ -770,14 +675,14 @@ var deserializeAws_restJson1DeleteEventIntegrationCommandError = function (outpu
|
|
|
770
675
|
case 11: throw _d.sent();
|
|
771
676
|
case 12:
|
|
772
677
|
parsedBody = parsedOutput.body;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
$metadata: $metadata,
|
|
678
|
+
throwDefaultError({
|
|
679
|
+
output: output,
|
|
680
|
+
parsedBody: parsedBody,
|
|
681
|
+
exceptionCtor: __BaseException,
|
|
682
|
+
errorCode: errorCode,
|
|
779
683
|
});
|
|
780
|
-
|
|
684
|
+
_d.label = 13;
|
|
685
|
+
case 13: return [2];
|
|
781
686
|
}
|
|
782
687
|
});
|
|
783
688
|
}); };
|
|
@@ -789,52 +694,44 @@ export var deserializeAws_restJson1GetDataIntegrationCommand = function (output,
|
|
|
789
694
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
695
|
return [2, deserializeAws_restJson1GetDataIntegrationCommandError(output, context)];
|
|
791
696
|
}
|
|
792
|
-
contents = {
|
|
697
|
+
contents = map({
|
|
793
698
|
$metadata: deserializeMetadata(output),
|
|
794
|
-
|
|
795
|
-
Description: undefined,
|
|
796
|
-
Id: undefined,
|
|
797
|
-
KmsKey: undefined,
|
|
798
|
-
Name: undefined,
|
|
799
|
-
ScheduleConfiguration: undefined,
|
|
800
|
-
SourceURI: undefined,
|
|
801
|
-
Tags: undefined,
|
|
802
|
-
};
|
|
699
|
+
});
|
|
803
700
|
_a = __expectNonNull;
|
|
804
701
|
_b = __expectObject;
|
|
805
702
|
return [4, parseBody(output.body, context)];
|
|
806
703
|
case 1:
|
|
807
704
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
808
|
-
if (data.Arn
|
|
705
|
+
if (data.Arn != null) {
|
|
809
706
|
contents.Arn = __expectString(data.Arn);
|
|
810
707
|
}
|
|
811
|
-
if (data.Description
|
|
708
|
+
if (data.Description != null) {
|
|
812
709
|
contents.Description = __expectString(data.Description);
|
|
813
710
|
}
|
|
814
|
-
if (data.Id
|
|
711
|
+
if (data.Id != null) {
|
|
815
712
|
contents.Id = __expectString(data.Id);
|
|
816
713
|
}
|
|
817
|
-
if (data.KmsKey
|
|
714
|
+
if (data.KmsKey != null) {
|
|
818
715
|
contents.KmsKey = __expectString(data.KmsKey);
|
|
819
716
|
}
|
|
820
|
-
if (data.Name
|
|
717
|
+
if (data.Name != null) {
|
|
821
718
|
contents.Name = __expectString(data.Name);
|
|
822
719
|
}
|
|
823
|
-
if (data.ScheduleConfiguration
|
|
720
|
+
if (data.ScheduleConfiguration != null) {
|
|
824
721
|
contents.ScheduleConfiguration = deserializeAws_restJson1ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
825
722
|
}
|
|
826
|
-
if (data.SourceURI
|
|
723
|
+
if (data.SourceURI != null) {
|
|
827
724
|
contents.SourceURI = __expectString(data.SourceURI);
|
|
828
725
|
}
|
|
829
|
-
if (data.Tags
|
|
726
|
+
if (data.Tags != null) {
|
|
830
727
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
831
728
|
}
|
|
832
|
-
return [2,
|
|
729
|
+
return [2, contents];
|
|
833
730
|
}
|
|
834
731
|
});
|
|
835
732
|
}); };
|
|
836
733
|
var deserializeAws_restJson1GetDataIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
837
|
-
var parsedOutput, _a,
|
|
734
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
838
735
|
var _c;
|
|
839
736
|
return __generator(this, function (_d) {
|
|
840
737
|
switch (_d.label) {
|
|
@@ -871,14 +768,14 @@ var deserializeAws_restJson1GetDataIntegrationCommandError = function (output, c
|
|
|
871
768
|
case 11: throw _d.sent();
|
|
872
769
|
case 12:
|
|
873
770
|
parsedBody = parsedOutput.body;
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
$metadata: $metadata,
|
|
771
|
+
throwDefaultError({
|
|
772
|
+
output: output,
|
|
773
|
+
parsedBody: parsedBody,
|
|
774
|
+
exceptionCtor: __BaseException,
|
|
775
|
+
errorCode: errorCode,
|
|
880
776
|
});
|
|
881
|
-
|
|
777
|
+
_d.label = 13;
|
|
778
|
+
case 13: return [2];
|
|
882
779
|
}
|
|
883
780
|
});
|
|
884
781
|
}); };
|
|
@@ -890,44 +787,38 @@ export var deserializeAws_restJson1GetEventIntegrationCommand = function (output
|
|
|
890
787
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
891
788
|
return [2, deserializeAws_restJson1GetEventIntegrationCommandError(output, context)];
|
|
892
789
|
}
|
|
893
|
-
contents = {
|
|
790
|
+
contents = map({
|
|
894
791
|
$metadata: deserializeMetadata(output),
|
|
895
|
-
|
|
896
|
-
EventBridgeBus: undefined,
|
|
897
|
-
EventFilter: undefined,
|
|
898
|
-
EventIntegrationArn: undefined,
|
|
899
|
-
Name: undefined,
|
|
900
|
-
Tags: undefined,
|
|
901
|
-
};
|
|
792
|
+
});
|
|
902
793
|
_a = __expectNonNull;
|
|
903
794
|
_b = __expectObject;
|
|
904
795
|
return [4, parseBody(output.body, context)];
|
|
905
796
|
case 1:
|
|
906
797
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
907
|
-
if (data.Description
|
|
798
|
+
if (data.Description != null) {
|
|
908
799
|
contents.Description = __expectString(data.Description);
|
|
909
800
|
}
|
|
910
|
-
if (data.EventBridgeBus
|
|
801
|
+
if (data.EventBridgeBus != null) {
|
|
911
802
|
contents.EventBridgeBus = __expectString(data.EventBridgeBus);
|
|
912
803
|
}
|
|
913
|
-
if (data.EventFilter
|
|
804
|
+
if (data.EventFilter != null) {
|
|
914
805
|
contents.EventFilter = deserializeAws_restJson1EventFilter(data.EventFilter, context);
|
|
915
806
|
}
|
|
916
|
-
if (data.EventIntegrationArn
|
|
807
|
+
if (data.EventIntegrationArn != null) {
|
|
917
808
|
contents.EventIntegrationArn = __expectString(data.EventIntegrationArn);
|
|
918
809
|
}
|
|
919
|
-
if (data.Name
|
|
810
|
+
if (data.Name != null) {
|
|
920
811
|
contents.Name = __expectString(data.Name);
|
|
921
812
|
}
|
|
922
|
-
if (data.Tags
|
|
813
|
+
if (data.Tags != null) {
|
|
923
814
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
924
815
|
}
|
|
925
|
-
return [2,
|
|
816
|
+
return [2, contents];
|
|
926
817
|
}
|
|
927
818
|
});
|
|
928
819
|
}); };
|
|
929
820
|
var deserializeAws_restJson1GetEventIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
930
|
-
var parsedOutput, _a,
|
|
821
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
931
822
|
var _c;
|
|
932
823
|
return __generator(this, function (_d) {
|
|
933
824
|
switch (_d.label) {
|
|
@@ -964,14 +855,14 @@ var deserializeAws_restJson1GetEventIntegrationCommandError = function (output,
|
|
|
964
855
|
case 11: throw _d.sent();
|
|
965
856
|
case 12:
|
|
966
857
|
parsedBody = parsedOutput.body;
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
$metadata: $metadata,
|
|
858
|
+
throwDefaultError({
|
|
859
|
+
output: output,
|
|
860
|
+
parsedBody: parsedBody,
|
|
861
|
+
exceptionCtor: __BaseException,
|
|
862
|
+
errorCode: errorCode,
|
|
973
863
|
});
|
|
974
|
-
|
|
864
|
+
_d.label = 13;
|
|
865
|
+
case 13: return [2];
|
|
975
866
|
}
|
|
976
867
|
});
|
|
977
868
|
}); };
|
|
@@ -983,28 +874,26 @@ export var deserializeAws_restJson1ListDataIntegrationAssociationsCommand = func
|
|
|
983
874
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
875
|
return [2, deserializeAws_restJson1ListDataIntegrationAssociationsCommandError(output, context)];
|
|
985
876
|
}
|
|
986
|
-
contents = {
|
|
877
|
+
contents = map({
|
|
987
878
|
$metadata: deserializeMetadata(output),
|
|
988
|
-
|
|
989
|
-
NextToken: undefined,
|
|
990
|
-
};
|
|
879
|
+
});
|
|
991
880
|
_a = __expectNonNull;
|
|
992
881
|
_b = __expectObject;
|
|
993
882
|
return [4, parseBody(output.body, context)];
|
|
994
883
|
case 1:
|
|
995
884
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
996
|
-
if (data.DataIntegrationAssociations
|
|
885
|
+
if (data.DataIntegrationAssociations != null) {
|
|
997
886
|
contents.DataIntegrationAssociations = deserializeAws_restJson1DataIntegrationAssociationsList(data.DataIntegrationAssociations, context);
|
|
998
887
|
}
|
|
999
|
-
if (data.NextToken
|
|
888
|
+
if (data.NextToken != null) {
|
|
1000
889
|
contents.NextToken = __expectString(data.NextToken);
|
|
1001
890
|
}
|
|
1002
|
-
return [2,
|
|
891
|
+
return [2, contents];
|
|
1003
892
|
}
|
|
1004
893
|
});
|
|
1005
894
|
}); };
|
|
1006
895
|
var deserializeAws_restJson1ListDataIntegrationAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1007
|
-
var parsedOutput, _a,
|
|
896
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1008
897
|
var _c;
|
|
1009
898
|
return __generator(this, function (_d) {
|
|
1010
899
|
switch (_d.label) {
|
|
@@ -1041,14 +930,14 @@ var deserializeAws_restJson1ListDataIntegrationAssociationsCommandError = functi
|
|
|
1041
930
|
case 11: throw _d.sent();
|
|
1042
931
|
case 12:
|
|
1043
932
|
parsedBody = parsedOutput.body;
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
$metadata: $metadata,
|
|
933
|
+
throwDefaultError({
|
|
934
|
+
output: output,
|
|
935
|
+
parsedBody: parsedBody,
|
|
936
|
+
exceptionCtor: __BaseException,
|
|
937
|
+
errorCode: errorCode,
|
|
1050
938
|
});
|
|
1051
|
-
|
|
939
|
+
_d.label = 13;
|
|
940
|
+
case 13: return [2];
|
|
1052
941
|
}
|
|
1053
942
|
});
|
|
1054
943
|
}); };
|
|
@@ -1060,28 +949,26 @@ export var deserializeAws_restJson1ListDataIntegrationsCommand = function (outpu
|
|
|
1060
949
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
950
|
return [2, deserializeAws_restJson1ListDataIntegrationsCommandError(output, context)];
|
|
1062
951
|
}
|
|
1063
|
-
contents = {
|
|
952
|
+
contents = map({
|
|
1064
953
|
$metadata: deserializeMetadata(output),
|
|
1065
|
-
|
|
1066
|
-
NextToken: undefined,
|
|
1067
|
-
};
|
|
954
|
+
});
|
|
1068
955
|
_a = __expectNonNull;
|
|
1069
956
|
_b = __expectObject;
|
|
1070
957
|
return [4, parseBody(output.body, context)];
|
|
1071
958
|
case 1:
|
|
1072
959
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1073
|
-
if (data.DataIntegrations
|
|
960
|
+
if (data.DataIntegrations != null) {
|
|
1074
961
|
contents.DataIntegrations = deserializeAws_restJson1DataIntegrationsList(data.DataIntegrations, context);
|
|
1075
962
|
}
|
|
1076
|
-
if (data.NextToken
|
|
963
|
+
if (data.NextToken != null) {
|
|
1077
964
|
contents.NextToken = __expectString(data.NextToken);
|
|
1078
965
|
}
|
|
1079
|
-
return [2,
|
|
966
|
+
return [2, contents];
|
|
1080
967
|
}
|
|
1081
968
|
});
|
|
1082
969
|
}); };
|
|
1083
970
|
var deserializeAws_restJson1ListDataIntegrationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1084
|
-
var parsedOutput, _a,
|
|
971
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1085
972
|
var _c;
|
|
1086
973
|
return __generator(this, function (_d) {
|
|
1087
974
|
switch (_d.label) {
|
|
@@ -1114,14 +1001,14 @@ var deserializeAws_restJson1ListDataIntegrationsCommandError = function (output,
|
|
|
1114
1001
|
case 9: throw _d.sent();
|
|
1115
1002
|
case 10:
|
|
1116
1003
|
parsedBody = parsedOutput.body;
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
$metadata: $metadata,
|
|
1004
|
+
throwDefaultError({
|
|
1005
|
+
output: output,
|
|
1006
|
+
parsedBody: parsedBody,
|
|
1007
|
+
exceptionCtor: __BaseException,
|
|
1008
|
+
errorCode: errorCode,
|
|
1123
1009
|
});
|
|
1124
|
-
|
|
1010
|
+
_d.label = 11;
|
|
1011
|
+
case 11: return [2];
|
|
1125
1012
|
}
|
|
1126
1013
|
});
|
|
1127
1014
|
}); };
|
|
@@ -1133,28 +1020,26 @@ export var deserializeAws_restJson1ListEventIntegrationAssociationsCommand = fun
|
|
|
1133
1020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1134
1021
|
return [2, deserializeAws_restJson1ListEventIntegrationAssociationsCommandError(output, context)];
|
|
1135
1022
|
}
|
|
1136
|
-
contents = {
|
|
1023
|
+
contents = map({
|
|
1137
1024
|
$metadata: deserializeMetadata(output),
|
|
1138
|
-
|
|
1139
|
-
NextToken: undefined,
|
|
1140
|
-
};
|
|
1025
|
+
});
|
|
1141
1026
|
_a = __expectNonNull;
|
|
1142
1027
|
_b = __expectObject;
|
|
1143
1028
|
return [4, parseBody(output.body, context)];
|
|
1144
1029
|
case 1:
|
|
1145
1030
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1146
|
-
if (data.EventIntegrationAssociations
|
|
1031
|
+
if (data.EventIntegrationAssociations != null) {
|
|
1147
1032
|
contents.EventIntegrationAssociations = deserializeAws_restJson1EventIntegrationAssociationsList(data.EventIntegrationAssociations, context);
|
|
1148
1033
|
}
|
|
1149
|
-
if (data.NextToken
|
|
1034
|
+
if (data.NextToken != null) {
|
|
1150
1035
|
contents.NextToken = __expectString(data.NextToken);
|
|
1151
1036
|
}
|
|
1152
|
-
return [2,
|
|
1037
|
+
return [2, contents];
|
|
1153
1038
|
}
|
|
1154
1039
|
});
|
|
1155
1040
|
}); };
|
|
1156
1041
|
var deserializeAws_restJson1ListEventIntegrationAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1157
|
-
var parsedOutput, _a,
|
|
1042
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1158
1043
|
var _c;
|
|
1159
1044
|
return __generator(this, function (_d) {
|
|
1160
1045
|
switch (_d.label) {
|
|
@@ -1191,14 +1076,14 @@ var deserializeAws_restJson1ListEventIntegrationAssociationsCommandError = funct
|
|
|
1191
1076
|
case 11: throw _d.sent();
|
|
1192
1077
|
case 12:
|
|
1193
1078
|
parsedBody = parsedOutput.body;
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
$metadata: $metadata,
|
|
1079
|
+
throwDefaultError({
|
|
1080
|
+
output: output,
|
|
1081
|
+
parsedBody: parsedBody,
|
|
1082
|
+
exceptionCtor: __BaseException,
|
|
1083
|
+
errorCode: errorCode,
|
|
1200
1084
|
});
|
|
1201
|
-
|
|
1085
|
+
_d.label = 13;
|
|
1086
|
+
case 13: return [2];
|
|
1202
1087
|
}
|
|
1203
1088
|
});
|
|
1204
1089
|
}); };
|
|
@@ -1210,28 +1095,26 @@ export var deserializeAws_restJson1ListEventIntegrationsCommand = function (outp
|
|
|
1210
1095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1211
1096
|
return [2, deserializeAws_restJson1ListEventIntegrationsCommandError(output, context)];
|
|
1212
1097
|
}
|
|
1213
|
-
contents = {
|
|
1098
|
+
contents = map({
|
|
1214
1099
|
$metadata: deserializeMetadata(output),
|
|
1215
|
-
|
|
1216
|
-
NextToken: undefined,
|
|
1217
|
-
};
|
|
1100
|
+
});
|
|
1218
1101
|
_a = __expectNonNull;
|
|
1219
1102
|
_b = __expectObject;
|
|
1220
1103
|
return [4, parseBody(output.body, context)];
|
|
1221
1104
|
case 1:
|
|
1222
1105
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1223
|
-
if (data.EventIntegrations
|
|
1106
|
+
if (data.EventIntegrations != null) {
|
|
1224
1107
|
contents.EventIntegrations = deserializeAws_restJson1EventIntegrationsList(data.EventIntegrations, context);
|
|
1225
1108
|
}
|
|
1226
|
-
if (data.NextToken
|
|
1109
|
+
if (data.NextToken != null) {
|
|
1227
1110
|
contents.NextToken = __expectString(data.NextToken);
|
|
1228
1111
|
}
|
|
1229
|
-
return [2,
|
|
1112
|
+
return [2, contents];
|
|
1230
1113
|
}
|
|
1231
1114
|
});
|
|
1232
1115
|
}); };
|
|
1233
1116
|
var deserializeAws_restJson1ListEventIntegrationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1234
|
-
var parsedOutput, _a,
|
|
1117
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1235
1118
|
var _c;
|
|
1236
1119
|
return __generator(this, function (_d) {
|
|
1237
1120
|
switch (_d.label) {
|
|
@@ -1264,14 +1147,14 @@ var deserializeAws_restJson1ListEventIntegrationsCommandError = function (output
|
|
|
1264
1147
|
case 9: throw _d.sent();
|
|
1265
1148
|
case 10:
|
|
1266
1149
|
parsedBody = parsedOutput.body;
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
$metadata: $metadata,
|
|
1150
|
+
throwDefaultError({
|
|
1151
|
+
output: output,
|
|
1152
|
+
parsedBody: parsedBody,
|
|
1153
|
+
exceptionCtor: __BaseException,
|
|
1154
|
+
errorCode: errorCode,
|
|
1273
1155
|
});
|
|
1274
|
-
|
|
1156
|
+
_d.label = 11;
|
|
1157
|
+
case 11: return [2];
|
|
1275
1158
|
}
|
|
1276
1159
|
});
|
|
1277
1160
|
}); };
|
|
@@ -1283,24 +1166,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1283
1166
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1284
1167
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
1285
1168
|
}
|
|
1286
|
-
contents = {
|
|
1169
|
+
contents = map({
|
|
1287
1170
|
$metadata: deserializeMetadata(output),
|
|
1288
|
-
|
|
1289
|
-
};
|
|
1171
|
+
});
|
|
1290
1172
|
_a = __expectNonNull;
|
|
1291
1173
|
_b = __expectObject;
|
|
1292
1174
|
return [4, parseBody(output.body, context)];
|
|
1293
1175
|
case 1:
|
|
1294
1176
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1295
|
-
if (data.tags
|
|
1177
|
+
if (data.tags != null) {
|
|
1296
1178
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1297
1179
|
}
|
|
1298
|
-
return [2,
|
|
1180
|
+
return [2, contents];
|
|
1299
1181
|
}
|
|
1300
1182
|
});
|
|
1301
1183
|
}); };
|
|
1302
1184
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1303
|
-
var parsedOutput, _a,
|
|
1185
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1304
1186
|
var _c;
|
|
1305
1187
|
return __generator(this, function (_d) {
|
|
1306
1188
|
switch (_d.label) {
|
|
@@ -1333,14 +1215,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1333
1215
|
case 9: throw _d.sent();
|
|
1334
1216
|
case 10:
|
|
1335
1217
|
parsedBody = parsedOutput.body;
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
$metadata: $metadata,
|
|
1218
|
+
throwDefaultError({
|
|
1219
|
+
output: output,
|
|
1220
|
+
parsedBody: parsedBody,
|
|
1221
|
+
exceptionCtor: __BaseException,
|
|
1222
|
+
errorCode: errorCode,
|
|
1342
1223
|
});
|
|
1343
|
-
|
|
1224
|
+
_d.label = 11;
|
|
1225
|
+
case 11: return [2];
|
|
1344
1226
|
}
|
|
1345
1227
|
});
|
|
1346
1228
|
}); };
|
|
@@ -1352,18 +1234,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1352
1234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
1235
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1354
1236
|
}
|
|
1355
|
-
contents = {
|
|
1237
|
+
contents = map({
|
|
1356
1238
|
$metadata: deserializeMetadata(output),
|
|
1357
|
-
};
|
|
1239
|
+
});
|
|
1358
1240
|
return [4, collectBody(output.body, context)];
|
|
1359
1241
|
case 1:
|
|
1360
1242
|
_a.sent();
|
|
1361
|
-
return [2,
|
|
1243
|
+
return [2, contents];
|
|
1362
1244
|
}
|
|
1363
1245
|
});
|
|
1364
1246
|
}); };
|
|
1365
1247
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1366
|
-
var parsedOutput, _a,
|
|
1248
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1367
1249
|
var _c;
|
|
1368
1250
|
return __generator(this, function (_d) {
|
|
1369
1251
|
switch (_d.label) {
|
|
@@ -1396,14 +1278,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1396
1278
|
case 9: throw _d.sent();
|
|
1397
1279
|
case 10:
|
|
1398
1280
|
parsedBody = parsedOutput.body;
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
$metadata: $metadata,
|
|
1281
|
+
throwDefaultError({
|
|
1282
|
+
output: output,
|
|
1283
|
+
parsedBody: parsedBody,
|
|
1284
|
+
exceptionCtor: __BaseException,
|
|
1285
|
+
errorCode: errorCode,
|
|
1405
1286
|
});
|
|
1406
|
-
|
|
1287
|
+
_d.label = 11;
|
|
1288
|
+
case 11: return [2];
|
|
1407
1289
|
}
|
|
1408
1290
|
});
|
|
1409
1291
|
}); };
|
|
@@ -1415,18 +1297,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1415
1297
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1416
1298
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1417
1299
|
}
|
|
1418
|
-
contents = {
|
|
1300
|
+
contents = map({
|
|
1419
1301
|
$metadata: deserializeMetadata(output),
|
|
1420
|
-
};
|
|
1302
|
+
});
|
|
1421
1303
|
return [4, collectBody(output.body, context)];
|
|
1422
1304
|
case 1:
|
|
1423
1305
|
_a.sent();
|
|
1424
|
-
return [2,
|
|
1306
|
+
return [2, contents];
|
|
1425
1307
|
}
|
|
1426
1308
|
});
|
|
1427
1309
|
}); };
|
|
1428
1310
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1429
|
-
var parsedOutput, _a,
|
|
1311
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1430
1312
|
var _c;
|
|
1431
1313
|
return __generator(this, function (_d) {
|
|
1432
1314
|
switch (_d.label) {
|
|
@@ -1459,14 +1341,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1459
1341
|
case 9: throw _d.sent();
|
|
1460
1342
|
case 10:
|
|
1461
1343
|
parsedBody = parsedOutput.body;
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
$metadata: $metadata,
|
|
1344
|
+
throwDefaultError({
|
|
1345
|
+
output: output,
|
|
1346
|
+
parsedBody: parsedBody,
|
|
1347
|
+
exceptionCtor: __BaseException,
|
|
1348
|
+
errorCode: errorCode,
|
|
1468
1349
|
});
|
|
1469
|
-
|
|
1350
|
+
_d.label = 11;
|
|
1351
|
+
case 11: return [2];
|
|
1470
1352
|
}
|
|
1471
1353
|
});
|
|
1472
1354
|
}); };
|
|
@@ -1478,18 +1360,18 @@ export var deserializeAws_restJson1UpdateDataIntegrationCommand = function (outp
|
|
|
1478
1360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1479
1361
|
return [2, deserializeAws_restJson1UpdateDataIntegrationCommandError(output, context)];
|
|
1480
1362
|
}
|
|
1481
|
-
contents = {
|
|
1363
|
+
contents = map({
|
|
1482
1364
|
$metadata: deserializeMetadata(output),
|
|
1483
|
-
};
|
|
1365
|
+
});
|
|
1484
1366
|
return [4, collectBody(output.body, context)];
|
|
1485
1367
|
case 1:
|
|
1486
1368
|
_a.sent();
|
|
1487
|
-
return [2,
|
|
1369
|
+
return [2, contents];
|
|
1488
1370
|
}
|
|
1489
1371
|
});
|
|
1490
1372
|
}); };
|
|
1491
1373
|
var deserializeAws_restJson1UpdateDataIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1492
|
-
var parsedOutput, _a,
|
|
1374
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1493
1375
|
var _c;
|
|
1494
1376
|
return __generator(this, function (_d) {
|
|
1495
1377
|
switch (_d.label) {
|
|
@@ -1526,14 +1408,14 @@ var deserializeAws_restJson1UpdateDataIntegrationCommandError = function (output
|
|
|
1526
1408
|
case 11: throw _d.sent();
|
|
1527
1409
|
case 12:
|
|
1528
1410
|
parsedBody = parsedOutput.body;
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
$metadata: $metadata,
|
|
1411
|
+
throwDefaultError({
|
|
1412
|
+
output: output,
|
|
1413
|
+
parsedBody: parsedBody,
|
|
1414
|
+
exceptionCtor: __BaseException,
|
|
1415
|
+
errorCode: errorCode,
|
|
1535
1416
|
});
|
|
1536
|
-
|
|
1417
|
+
_d.label = 13;
|
|
1418
|
+
case 13: return [2];
|
|
1537
1419
|
}
|
|
1538
1420
|
});
|
|
1539
1421
|
}); };
|
|
@@ -1545,18 +1427,18 @@ export var deserializeAws_restJson1UpdateEventIntegrationCommand = function (out
|
|
|
1545
1427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1546
1428
|
return [2, deserializeAws_restJson1UpdateEventIntegrationCommandError(output, context)];
|
|
1547
1429
|
}
|
|
1548
|
-
contents = {
|
|
1430
|
+
contents = map({
|
|
1549
1431
|
$metadata: deserializeMetadata(output),
|
|
1550
|
-
};
|
|
1432
|
+
});
|
|
1551
1433
|
return [4, collectBody(output.body, context)];
|
|
1552
1434
|
case 1:
|
|
1553
1435
|
_a.sent();
|
|
1554
|
-
return [2,
|
|
1436
|
+
return [2, contents];
|
|
1555
1437
|
}
|
|
1556
1438
|
});
|
|
1557
1439
|
}); };
|
|
1558
1440
|
var deserializeAws_restJson1UpdateEventIntegrationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1559
|
-
var parsedOutput, _a,
|
|
1441
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1560
1442
|
var _c;
|
|
1561
1443
|
return __generator(this, function (_d) {
|
|
1562
1444
|
switch (_d.label) {
|
|
@@ -1593,23 +1475,24 @@ var deserializeAws_restJson1UpdateEventIntegrationCommandError = function (outpu
|
|
|
1593
1475
|
case 11: throw _d.sent();
|
|
1594
1476
|
case 12:
|
|
1595
1477
|
parsedBody = parsedOutput.body;
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
$metadata: $metadata,
|
|
1478
|
+
throwDefaultError({
|
|
1479
|
+
output: output,
|
|
1480
|
+
parsedBody: parsedBody,
|
|
1481
|
+
exceptionCtor: __BaseException,
|
|
1482
|
+
errorCode: errorCode,
|
|
1602
1483
|
});
|
|
1603
|
-
|
|
1484
|
+
_d.label = 13;
|
|
1485
|
+
case 13: return [2];
|
|
1604
1486
|
}
|
|
1605
1487
|
});
|
|
1606
1488
|
}); };
|
|
1489
|
+
var map = __map;
|
|
1607
1490
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1608
1491
|
var contents, data, exception;
|
|
1609
1492
|
return __generator(this, function (_a) {
|
|
1610
|
-
contents = {};
|
|
1493
|
+
contents = map({});
|
|
1611
1494
|
data = parsedOutput.body;
|
|
1612
|
-
if (data.Message
|
|
1495
|
+
if (data.Message != null) {
|
|
1613
1496
|
contents.Message = __expectString(data.Message);
|
|
1614
1497
|
}
|
|
1615
1498
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1619,9 +1502,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
1619
1502
|
var deserializeAws_restJson1DuplicateResourceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1620
1503
|
var contents, data, exception;
|
|
1621
1504
|
return __generator(this, function (_a) {
|
|
1622
|
-
contents = {};
|
|
1505
|
+
contents = map({});
|
|
1623
1506
|
data = parsedOutput.body;
|
|
1624
|
-
if (data.Message
|
|
1507
|
+
if (data.Message != null) {
|
|
1625
1508
|
contents.Message = __expectString(data.Message);
|
|
1626
1509
|
}
|
|
1627
1510
|
exception = new DuplicateResourceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1631,9 +1514,9 @@ var deserializeAws_restJson1DuplicateResourceExceptionResponse = function (parse
|
|
|
1631
1514
|
var deserializeAws_restJson1InternalServiceErrorResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1632
1515
|
var contents, data, exception;
|
|
1633
1516
|
return __generator(this, function (_a) {
|
|
1634
|
-
contents = {};
|
|
1517
|
+
contents = map({});
|
|
1635
1518
|
data = parsedOutput.body;
|
|
1636
|
-
if (data.Message
|
|
1519
|
+
if (data.Message != null) {
|
|
1637
1520
|
contents.Message = __expectString(data.Message);
|
|
1638
1521
|
}
|
|
1639
1522
|
exception = new InternalServiceError(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1643,9 +1526,9 @@ var deserializeAws_restJson1InternalServiceErrorResponse = function (parsedOutpu
|
|
|
1643
1526
|
var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1644
1527
|
var contents, data, exception;
|
|
1645
1528
|
return __generator(this, function (_a) {
|
|
1646
|
-
contents = {};
|
|
1529
|
+
contents = map({});
|
|
1647
1530
|
data = parsedOutput.body;
|
|
1648
|
-
if (data.Message
|
|
1531
|
+
if (data.Message != null) {
|
|
1649
1532
|
contents.Message = __expectString(data.Message);
|
|
1650
1533
|
}
|
|
1651
1534
|
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1655,9 +1538,9 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
|
|
|
1655
1538
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1656
1539
|
var contents, data, exception;
|
|
1657
1540
|
return __generator(this, function (_a) {
|
|
1658
|
-
contents = {};
|
|
1541
|
+
contents = map({});
|
|
1659
1542
|
data = parsedOutput.body;
|
|
1660
|
-
if (data.Message
|
|
1543
|
+
if (data.Message != null) {
|
|
1661
1544
|
contents.Message = __expectString(data.Message);
|
|
1662
1545
|
}
|
|
1663
1546
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1667,9 +1550,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1667
1550
|
var deserializeAws_restJson1ResourceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1668
1551
|
var contents, data, exception;
|
|
1669
1552
|
return __generator(this, function (_a) {
|
|
1670
|
-
contents = {};
|
|
1553
|
+
contents = map({});
|
|
1671
1554
|
data = parsedOutput.body;
|
|
1672
|
-
if (data.Message
|
|
1555
|
+
if (data.Message != null) {
|
|
1673
1556
|
contents.Message = __expectString(data.Message);
|
|
1674
1557
|
}
|
|
1675
1558
|
exception = new ResourceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -1679,9 +1562,9 @@ var deserializeAws_restJson1ResourceQuotaExceededExceptionResponse = function (p
|
|
|
1679
1562
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1680
1563
|
var contents, data, exception;
|
|
1681
1564
|
return __generator(this, function (_a) {
|
|
1682
|
-
contents = {};
|
|
1565
|
+
contents = map({});
|
|
1683
1566
|
data = parsedOutput.body;
|
|
1684
|
-
if (data.Message
|
|
1567
|
+
if (data.Message != null) {
|
|
1685
1568
|
contents.Message = __expectString(data.Message);
|
|
1686
1569
|
}
|
|
1687
1570
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|