@aws-sdk/client-appintegrations 3.141.0 → 3.150.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +198 -374
- package/dist-es/protocols/Aws_restJson1.js +255 -372
- package/package.json +11 -6
|
@@ -68,16 +68,7 @@ const serializeAws_restJson1DeleteDataIntegrationCommand = async (input, context
|
|
|
68
68
|
const headers = {};
|
|
69
69
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
70
70
|
"/dataIntegrations/{DataIntegrationIdentifier}";
|
|
71
|
-
|
|
72
|
-
const labelValue = input.DataIntegrationIdentifier;
|
|
73
|
-
if (labelValue.length <= 0) {
|
|
74
|
-
throw new Error("Empty value provided for input HTTP label: DataIntegrationIdentifier.");
|
|
75
|
-
}
|
|
76
|
-
resolvedPath = resolvedPath.replace("{DataIntegrationIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
throw new Error("No value provided for input HTTP label: DataIntegrationIdentifier.");
|
|
80
|
-
}
|
|
71
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
|
|
81
72
|
let body;
|
|
82
73
|
return new protocol_http_1.HttpRequest({
|
|
83
74
|
protocol,
|
|
@@ -94,16 +85,7 @@ const serializeAws_restJson1DeleteEventIntegrationCommand = async (input, contex
|
|
|
94
85
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
95
86
|
const headers = {};
|
|
96
87
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
|
|
97
|
-
|
|
98
|
-
const labelValue = input.Name;
|
|
99
|
-
if (labelValue.length <= 0) {
|
|
100
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
101
|
-
}
|
|
102
|
-
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
106
|
-
}
|
|
88
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
107
89
|
let body;
|
|
108
90
|
return new protocol_http_1.HttpRequest({
|
|
109
91
|
protocol,
|
|
@@ -120,16 +102,7 @@ const serializeAws_restJson1GetDataIntegrationCommand = async (input, context) =
|
|
|
120
102
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
121
103
|
const headers = {};
|
|
122
104
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}";
|
|
123
|
-
|
|
124
|
-
const labelValue = input.Identifier;
|
|
125
|
-
if (labelValue.length <= 0) {
|
|
126
|
-
throw new Error("Empty value provided for input HTTP label: Identifier.");
|
|
127
|
-
}
|
|
128
|
-
resolvedPath = resolvedPath.replace("{Identifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
throw new Error("No value provided for input HTTP label: Identifier.");
|
|
132
|
-
}
|
|
105
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
133
106
|
let body;
|
|
134
107
|
return new protocol_http_1.HttpRequest({
|
|
135
108
|
protocol,
|
|
@@ -146,16 +119,7 @@ const serializeAws_restJson1GetEventIntegrationCommand = async (input, context)
|
|
|
146
119
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
147
120
|
const headers = {};
|
|
148
121
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
|
|
149
|
-
|
|
150
|
-
const labelValue = input.Name;
|
|
151
|
-
if (labelValue.length <= 0) {
|
|
152
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
153
|
-
}
|
|
154
|
-
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
158
|
-
}
|
|
122
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
159
123
|
let body;
|
|
160
124
|
return new protocol_http_1.HttpRequest({
|
|
161
125
|
protocol,
|
|
@@ -173,20 +137,11 @@ const serializeAws_restJson1ListDataIntegrationAssociationsCommand = async (inpu
|
|
|
173
137
|
const headers = {};
|
|
174
138
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
175
139
|
"/dataIntegrations/{DataIntegrationIdentifier}/associations";
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
resolvedPath = resolvedPath.replace("{DataIntegrationIdentifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
throw new Error("No value provided for input HTTP label: DataIntegrationIdentifier.");
|
|
185
|
-
}
|
|
186
|
-
const query = {
|
|
187
|
-
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
188
|
-
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
189
|
-
};
|
|
140
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DataIntegrationIdentifier", () => input.DataIntegrationIdentifier, "{DataIntegrationIdentifier}", false);
|
|
141
|
+
const query = map({
|
|
142
|
+
nextToken: [, input.NextToken],
|
|
143
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
144
|
+
});
|
|
190
145
|
let body;
|
|
191
146
|
return new protocol_http_1.HttpRequest({
|
|
192
147
|
protocol,
|
|
@@ -204,10 +159,10 @@ const serializeAws_restJson1ListDataIntegrationsCommand = async (input, context)
|
|
|
204
159
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
205
160
|
const headers = {};
|
|
206
161
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations";
|
|
207
|
-
const query = {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
};
|
|
162
|
+
const query = map({
|
|
163
|
+
nextToken: [, input.NextToken],
|
|
164
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
165
|
+
});
|
|
211
166
|
let body;
|
|
212
167
|
return new protocol_http_1.HttpRequest({
|
|
213
168
|
protocol,
|
|
@@ -226,20 +181,11 @@ const serializeAws_restJson1ListEventIntegrationAssociationsCommand = async (inp
|
|
|
226
181
|
const headers = {};
|
|
227
182
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
228
183
|
"/eventIntegrations/{EventIntegrationName}/associations";
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
resolvedPath = resolvedPath.replace("{EventIntegrationName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
235
|
-
}
|
|
236
|
-
else {
|
|
237
|
-
throw new Error("No value provided for input HTTP label: EventIntegrationName.");
|
|
238
|
-
}
|
|
239
|
-
const query = {
|
|
240
|
-
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
241
|
-
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
242
|
-
};
|
|
184
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "EventIntegrationName", () => input.EventIntegrationName, "{EventIntegrationName}", false);
|
|
185
|
+
const query = map({
|
|
186
|
+
nextToken: [, input.NextToken],
|
|
187
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
188
|
+
});
|
|
243
189
|
let body;
|
|
244
190
|
return new protocol_http_1.HttpRequest({
|
|
245
191
|
protocol,
|
|
@@ -257,10 +203,10 @@ const serializeAws_restJson1ListEventIntegrationsCommand = async (input, context
|
|
|
257
203
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
258
204
|
const headers = {};
|
|
259
205
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations";
|
|
260
|
-
const query = {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
};
|
|
206
|
+
const query = map({
|
|
207
|
+
nextToken: [, input.NextToken],
|
|
208
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
209
|
+
});
|
|
264
210
|
let body;
|
|
265
211
|
return new protocol_http_1.HttpRequest({
|
|
266
212
|
protocol,
|
|
@@ -278,16 +224,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
278
224
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
279
225
|
const headers = {};
|
|
280
226
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
281
|
-
|
|
282
|
-
const labelValue = input.resourceArn;
|
|
283
|
-
if (labelValue.length <= 0) {
|
|
284
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
285
|
-
}
|
|
286
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
290
|
-
}
|
|
227
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
291
228
|
let body;
|
|
292
229
|
return new protocol_http_1.HttpRequest({
|
|
293
230
|
protocol,
|
|
@@ -306,16 +243,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
306
243
|
"content-type": "application/json",
|
|
307
244
|
};
|
|
308
245
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
309
|
-
|
|
310
|
-
const labelValue = input.resourceArn;
|
|
311
|
-
if (labelValue.length <= 0) {
|
|
312
|
-
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
313
|
-
}
|
|
314
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
318
|
-
}
|
|
246
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
319
247
|
let body;
|
|
320
248
|
body = JSON.stringify({
|
|
321
249
|
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
@@ -335,19 +263,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
335
263
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
336
264
|
const headers = {};
|
|
337
265
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
}
|
|
343
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
344
|
-
}
|
|
345
|
-
else {
|
|
346
|
-
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
347
|
-
}
|
|
348
|
-
const query = {
|
|
349
|
-
...(input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map((_entry) => _entry) }),
|
|
350
|
-
};
|
|
266
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
267
|
+
const query = map({
|
|
268
|
+
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
269
|
+
});
|
|
351
270
|
let body;
|
|
352
271
|
return new protocol_http_1.HttpRequest({
|
|
353
272
|
protocol,
|
|
@@ -367,16 +286,7 @@ const serializeAws_restJson1UpdateDataIntegrationCommand = async (input, context
|
|
|
367
286
|
"content-type": "application/json",
|
|
368
287
|
};
|
|
369
288
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}";
|
|
370
|
-
|
|
371
|
-
const labelValue = input.Identifier;
|
|
372
|
-
if (labelValue.length <= 0) {
|
|
373
|
-
throw new Error("Empty value provided for input HTTP label: Identifier.");
|
|
374
|
-
}
|
|
375
|
-
resolvedPath = resolvedPath.replace("{Identifier}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
throw new Error("No value provided for input HTTP label: Identifier.");
|
|
379
|
-
}
|
|
289
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Identifier", () => input.Identifier, "{Identifier}", false);
|
|
380
290
|
let body;
|
|
381
291
|
body = JSON.stringify({
|
|
382
292
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -399,16 +309,7 @@ const serializeAws_restJson1UpdateEventIntegrationCommand = async (input, contex
|
|
|
399
309
|
"content-type": "application/json",
|
|
400
310
|
};
|
|
401
311
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
|
|
402
|
-
|
|
403
|
-
const labelValue = input.Name;
|
|
404
|
-
if (labelValue.length <= 0) {
|
|
405
|
-
throw new Error("Empty value provided for input HTTP label: Name.");
|
|
406
|
-
}
|
|
407
|
-
resolvedPath = resolvedPath.replace("{Name}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
408
|
-
}
|
|
409
|
-
else {
|
|
410
|
-
throw new Error("No value provided for input HTTP label: Name.");
|
|
411
|
-
}
|
|
312
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Name", () => input.Name, "{Name}", false);
|
|
412
313
|
let body;
|
|
413
314
|
body = JSON.stringify({
|
|
414
315
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -428,47 +329,38 @@ const deserializeAws_restJson1CreateDataIntegrationCommand = async (output, cont
|
|
|
428
329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
429
330
|
return deserializeAws_restJson1CreateDataIntegrationCommandError(output, context);
|
|
430
331
|
}
|
|
431
|
-
const contents = {
|
|
332
|
+
const contents = map({
|
|
432
333
|
$metadata: deserializeMetadata(output),
|
|
433
|
-
|
|
434
|
-
ClientToken: undefined,
|
|
435
|
-
Description: undefined,
|
|
436
|
-
Id: undefined,
|
|
437
|
-
KmsKey: undefined,
|
|
438
|
-
Name: undefined,
|
|
439
|
-
ScheduleConfiguration: undefined,
|
|
440
|
-
SourceURI: undefined,
|
|
441
|
-
Tags: undefined,
|
|
442
|
-
};
|
|
334
|
+
});
|
|
443
335
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
444
|
-
if (data.Arn
|
|
336
|
+
if (data.Arn != null) {
|
|
445
337
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
446
338
|
}
|
|
447
|
-
if (data.ClientToken
|
|
339
|
+
if (data.ClientToken != null) {
|
|
448
340
|
contents.ClientToken = (0, smithy_client_1.expectString)(data.ClientToken);
|
|
449
341
|
}
|
|
450
|
-
if (data.Description
|
|
342
|
+
if (data.Description != null) {
|
|
451
343
|
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
452
344
|
}
|
|
453
|
-
if (data.Id
|
|
345
|
+
if (data.Id != null) {
|
|
454
346
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
455
347
|
}
|
|
456
|
-
if (data.KmsKey
|
|
348
|
+
if (data.KmsKey != null) {
|
|
457
349
|
contents.KmsKey = (0, smithy_client_1.expectString)(data.KmsKey);
|
|
458
350
|
}
|
|
459
|
-
if (data.Name
|
|
351
|
+
if (data.Name != null) {
|
|
460
352
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
461
353
|
}
|
|
462
|
-
if (data.ScheduleConfiguration
|
|
354
|
+
if (data.ScheduleConfiguration != null) {
|
|
463
355
|
contents.ScheduleConfiguration = deserializeAws_restJson1ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
464
356
|
}
|
|
465
|
-
if (data.SourceURI
|
|
357
|
+
if (data.SourceURI != null) {
|
|
466
358
|
contents.SourceURI = (0, smithy_client_1.expectString)(data.SourceURI);
|
|
467
359
|
}
|
|
468
|
-
if (data.Tags
|
|
360
|
+
if (data.Tags != null) {
|
|
469
361
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
470
362
|
}
|
|
471
|
-
return
|
|
363
|
+
return contents;
|
|
472
364
|
};
|
|
473
365
|
exports.deserializeAws_restJson1CreateDataIntegrationCommand = deserializeAws_restJson1CreateDataIntegrationCommand;
|
|
474
366
|
const deserializeAws_restJson1CreateDataIntegrationCommandError = async (output, context) => {
|
|
@@ -476,7 +368,6 @@ const deserializeAws_restJson1CreateDataIntegrationCommandError = async (output,
|
|
|
476
368
|
...output,
|
|
477
369
|
body: await parseBody(output.body, context),
|
|
478
370
|
};
|
|
479
|
-
let response;
|
|
480
371
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
481
372
|
switch (errorCode) {
|
|
482
373
|
case "AccessDeniedException":
|
|
@@ -499,29 +390,26 @@ const deserializeAws_restJson1CreateDataIntegrationCommandError = async (output,
|
|
|
499
390
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
500
391
|
default:
|
|
501
392
|
const parsedBody = parsedOutput.body;
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
$metadata,
|
|
393
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
394
|
+
output,
|
|
395
|
+
parsedBody,
|
|
396
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
397
|
+
errorCode,
|
|
508
398
|
});
|
|
509
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
510
399
|
}
|
|
511
400
|
};
|
|
512
401
|
const deserializeAws_restJson1CreateEventIntegrationCommand = async (output, context) => {
|
|
513
402
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
514
403
|
return deserializeAws_restJson1CreateEventIntegrationCommandError(output, context);
|
|
515
404
|
}
|
|
516
|
-
const contents = {
|
|
405
|
+
const contents = map({
|
|
517
406
|
$metadata: deserializeMetadata(output),
|
|
518
|
-
|
|
519
|
-
};
|
|
407
|
+
});
|
|
520
408
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
521
|
-
if (data.EventIntegrationArn
|
|
409
|
+
if (data.EventIntegrationArn != null) {
|
|
522
410
|
contents.EventIntegrationArn = (0, smithy_client_1.expectString)(data.EventIntegrationArn);
|
|
523
411
|
}
|
|
524
|
-
return
|
|
412
|
+
return contents;
|
|
525
413
|
};
|
|
526
414
|
exports.deserializeAws_restJson1CreateEventIntegrationCommand = deserializeAws_restJson1CreateEventIntegrationCommand;
|
|
527
415
|
const deserializeAws_restJson1CreateEventIntegrationCommandError = async (output, context) => {
|
|
@@ -529,7 +417,6 @@ const deserializeAws_restJson1CreateEventIntegrationCommandError = async (output
|
|
|
529
417
|
...output,
|
|
530
418
|
body: await parseBody(output.body, context),
|
|
531
419
|
};
|
|
532
|
-
let response;
|
|
533
420
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
534
421
|
switch (errorCode) {
|
|
535
422
|
case "AccessDeniedException":
|
|
@@ -552,25 +439,23 @@ const deserializeAws_restJson1CreateEventIntegrationCommandError = async (output
|
|
|
552
439
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
553
440
|
default:
|
|
554
441
|
const parsedBody = parsedOutput.body;
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
$metadata,
|
|
442
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
443
|
+
output,
|
|
444
|
+
parsedBody,
|
|
445
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
446
|
+
errorCode,
|
|
561
447
|
});
|
|
562
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
563
448
|
}
|
|
564
449
|
};
|
|
565
450
|
const deserializeAws_restJson1DeleteDataIntegrationCommand = async (output, context) => {
|
|
566
451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
452
|
return deserializeAws_restJson1DeleteDataIntegrationCommandError(output, context);
|
|
568
453
|
}
|
|
569
|
-
const contents = {
|
|
454
|
+
const contents = map({
|
|
570
455
|
$metadata: deserializeMetadata(output),
|
|
571
|
-
};
|
|
456
|
+
});
|
|
572
457
|
await collectBody(output.body, context);
|
|
573
|
-
return
|
|
458
|
+
return contents;
|
|
574
459
|
};
|
|
575
460
|
exports.deserializeAws_restJson1DeleteDataIntegrationCommand = deserializeAws_restJson1DeleteDataIntegrationCommand;
|
|
576
461
|
const deserializeAws_restJson1DeleteDataIntegrationCommandError = async (output, context) => {
|
|
@@ -578,7 +463,6 @@ const deserializeAws_restJson1DeleteDataIntegrationCommandError = async (output,
|
|
|
578
463
|
...output,
|
|
579
464
|
body: await parseBody(output.body, context),
|
|
580
465
|
};
|
|
581
|
-
let response;
|
|
582
466
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
583
467
|
switch (errorCode) {
|
|
584
468
|
case "AccessDeniedException":
|
|
@@ -598,25 +482,23 @@ const deserializeAws_restJson1DeleteDataIntegrationCommandError = async (output,
|
|
|
598
482
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
599
483
|
default:
|
|
600
484
|
const parsedBody = parsedOutput.body;
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
$metadata,
|
|
485
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
486
|
+
output,
|
|
487
|
+
parsedBody,
|
|
488
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
489
|
+
errorCode,
|
|
607
490
|
});
|
|
608
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
609
491
|
}
|
|
610
492
|
};
|
|
611
493
|
const deserializeAws_restJson1DeleteEventIntegrationCommand = async (output, context) => {
|
|
612
494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
613
495
|
return deserializeAws_restJson1DeleteEventIntegrationCommandError(output, context);
|
|
614
496
|
}
|
|
615
|
-
const contents = {
|
|
497
|
+
const contents = map({
|
|
616
498
|
$metadata: deserializeMetadata(output),
|
|
617
|
-
};
|
|
499
|
+
});
|
|
618
500
|
await collectBody(output.body, context);
|
|
619
|
-
return
|
|
501
|
+
return contents;
|
|
620
502
|
};
|
|
621
503
|
exports.deserializeAws_restJson1DeleteEventIntegrationCommand = deserializeAws_restJson1DeleteEventIntegrationCommand;
|
|
622
504
|
const deserializeAws_restJson1DeleteEventIntegrationCommandError = async (output, context) => {
|
|
@@ -624,7 +506,6 @@ const deserializeAws_restJson1DeleteEventIntegrationCommandError = async (output
|
|
|
624
506
|
...output,
|
|
625
507
|
body: await parseBody(output.body, context),
|
|
626
508
|
};
|
|
627
|
-
let response;
|
|
628
509
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
629
510
|
switch (errorCode) {
|
|
630
511
|
case "AccessDeniedException":
|
|
@@ -644,57 +525,47 @@ const deserializeAws_restJson1DeleteEventIntegrationCommandError = async (output
|
|
|
644
525
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
645
526
|
default:
|
|
646
527
|
const parsedBody = parsedOutput.body;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
$metadata,
|
|
528
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
529
|
+
output,
|
|
530
|
+
parsedBody,
|
|
531
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
532
|
+
errorCode,
|
|
653
533
|
});
|
|
654
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
655
534
|
}
|
|
656
535
|
};
|
|
657
536
|
const deserializeAws_restJson1GetDataIntegrationCommand = async (output, context) => {
|
|
658
537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
659
538
|
return deserializeAws_restJson1GetDataIntegrationCommandError(output, context);
|
|
660
539
|
}
|
|
661
|
-
const contents = {
|
|
540
|
+
const contents = map({
|
|
662
541
|
$metadata: deserializeMetadata(output),
|
|
663
|
-
|
|
664
|
-
Description: undefined,
|
|
665
|
-
Id: undefined,
|
|
666
|
-
KmsKey: undefined,
|
|
667
|
-
Name: undefined,
|
|
668
|
-
ScheduleConfiguration: undefined,
|
|
669
|
-
SourceURI: undefined,
|
|
670
|
-
Tags: undefined,
|
|
671
|
-
};
|
|
542
|
+
});
|
|
672
543
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
673
|
-
if (data.Arn
|
|
544
|
+
if (data.Arn != null) {
|
|
674
545
|
contents.Arn = (0, smithy_client_1.expectString)(data.Arn);
|
|
675
546
|
}
|
|
676
|
-
if (data.Description
|
|
547
|
+
if (data.Description != null) {
|
|
677
548
|
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
678
549
|
}
|
|
679
|
-
if (data.Id
|
|
550
|
+
if (data.Id != null) {
|
|
680
551
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
681
552
|
}
|
|
682
|
-
if (data.KmsKey
|
|
553
|
+
if (data.KmsKey != null) {
|
|
683
554
|
contents.KmsKey = (0, smithy_client_1.expectString)(data.KmsKey);
|
|
684
555
|
}
|
|
685
|
-
if (data.Name
|
|
556
|
+
if (data.Name != null) {
|
|
686
557
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
687
558
|
}
|
|
688
|
-
if (data.ScheduleConfiguration
|
|
559
|
+
if (data.ScheduleConfiguration != null) {
|
|
689
560
|
contents.ScheduleConfiguration = deserializeAws_restJson1ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
690
561
|
}
|
|
691
|
-
if (data.SourceURI
|
|
562
|
+
if (data.SourceURI != null) {
|
|
692
563
|
contents.SourceURI = (0, smithy_client_1.expectString)(data.SourceURI);
|
|
693
564
|
}
|
|
694
|
-
if (data.Tags
|
|
565
|
+
if (data.Tags != null) {
|
|
695
566
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
696
567
|
}
|
|
697
|
-
return
|
|
568
|
+
return contents;
|
|
698
569
|
};
|
|
699
570
|
exports.deserializeAws_restJson1GetDataIntegrationCommand = deserializeAws_restJson1GetDataIntegrationCommand;
|
|
700
571
|
const deserializeAws_restJson1GetDataIntegrationCommandError = async (output, context) => {
|
|
@@ -702,7 +573,6 @@ const deserializeAws_restJson1GetDataIntegrationCommandError = async (output, co
|
|
|
702
573
|
...output,
|
|
703
574
|
body: await parseBody(output.body, context),
|
|
704
575
|
};
|
|
705
|
-
let response;
|
|
706
576
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
707
577
|
switch (errorCode) {
|
|
708
578
|
case "AccessDeniedException":
|
|
@@ -722,49 +592,41 @@ const deserializeAws_restJson1GetDataIntegrationCommandError = async (output, co
|
|
|
722
592
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
723
593
|
default:
|
|
724
594
|
const parsedBody = parsedOutput.body;
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
$metadata,
|
|
595
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
596
|
+
output,
|
|
597
|
+
parsedBody,
|
|
598
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
599
|
+
errorCode,
|
|
731
600
|
});
|
|
732
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
733
601
|
}
|
|
734
602
|
};
|
|
735
603
|
const deserializeAws_restJson1GetEventIntegrationCommand = async (output, context) => {
|
|
736
604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
605
|
return deserializeAws_restJson1GetEventIntegrationCommandError(output, context);
|
|
738
606
|
}
|
|
739
|
-
const contents = {
|
|
607
|
+
const contents = map({
|
|
740
608
|
$metadata: deserializeMetadata(output),
|
|
741
|
-
|
|
742
|
-
EventBridgeBus: undefined,
|
|
743
|
-
EventFilter: undefined,
|
|
744
|
-
EventIntegrationArn: undefined,
|
|
745
|
-
Name: undefined,
|
|
746
|
-
Tags: undefined,
|
|
747
|
-
};
|
|
609
|
+
});
|
|
748
610
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
749
|
-
if (data.Description
|
|
611
|
+
if (data.Description != null) {
|
|
750
612
|
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
751
613
|
}
|
|
752
|
-
if (data.EventBridgeBus
|
|
614
|
+
if (data.EventBridgeBus != null) {
|
|
753
615
|
contents.EventBridgeBus = (0, smithy_client_1.expectString)(data.EventBridgeBus);
|
|
754
616
|
}
|
|
755
|
-
if (data.EventFilter
|
|
617
|
+
if (data.EventFilter != null) {
|
|
756
618
|
contents.EventFilter = deserializeAws_restJson1EventFilter(data.EventFilter, context);
|
|
757
619
|
}
|
|
758
|
-
if (data.EventIntegrationArn
|
|
620
|
+
if (data.EventIntegrationArn != null) {
|
|
759
621
|
contents.EventIntegrationArn = (0, smithy_client_1.expectString)(data.EventIntegrationArn);
|
|
760
622
|
}
|
|
761
|
-
if (data.Name
|
|
623
|
+
if (data.Name != null) {
|
|
762
624
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
763
625
|
}
|
|
764
|
-
if (data.Tags
|
|
626
|
+
if (data.Tags != null) {
|
|
765
627
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
766
628
|
}
|
|
767
|
-
return
|
|
629
|
+
return contents;
|
|
768
630
|
};
|
|
769
631
|
exports.deserializeAws_restJson1GetEventIntegrationCommand = deserializeAws_restJson1GetEventIntegrationCommand;
|
|
770
632
|
const deserializeAws_restJson1GetEventIntegrationCommandError = async (output, context) => {
|
|
@@ -772,7 +634,6 @@ const deserializeAws_restJson1GetEventIntegrationCommandError = async (output, c
|
|
|
772
634
|
...output,
|
|
773
635
|
body: await parseBody(output.body, context),
|
|
774
636
|
};
|
|
775
|
-
let response;
|
|
776
637
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
777
638
|
switch (errorCode) {
|
|
778
639
|
case "AccessDeniedException":
|
|
@@ -792,33 +653,29 @@ const deserializeAws_restJson1GetEventIntegrationCommandError = async (output, c
|
|
|
792
653
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
793
654
|
default:
|
|
794
655
|
const parsedBody = parsedOutput.body;
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
$metadata,
|
|
656
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
657
|
+
output,
|
|
658
|
+
parsedBody,
|
|
659
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
660
|
+
errorCode,
|
|
801
661
|
});
|
|
802
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
803
662
|
}
|
|
804
663
|
};
|
|
805
664
|
const deserializeAws_restJson1ListDataIntegrationAssociationsCommand = async (output, context) => {
|
|
806
665
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
807
666
|
return deserializeAws_restJson1ListDataIntegrationAssociationsCommandError(output, context);
|
|
808
667
|
}
|
|
809
|
-
const contents = {
|
|
668
|
+
const contents = map({
|
|
810
669
|
$metadata: deserializeMetadata(output),
|
|
811
|
-
|
|
812
|
-
NextToken: undefined,
|
|
813
|
-
};
|
|
670
|
+
});
|
|
814
671
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
815
|
-
if (data.DataIntegrationAssociations
|
|
672
|
+
if (data.DataIntegrationAssociations != null) {
|
|
816
673
|
contents.DataIntegrationAssociations = deserializeAws_restJson1DataIntegrationAssociationsList(data.DataIntegrationAssociations, context);
|
|
817
674
|
}
|
|
818
|
-
if (data.NextToken
|
|
675
|
+
if (data.NextToken != null) {
|
|
819
676
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
820
677
|
}
|
|
821
|
-
return
|
|
678
|
+
return contents;
|
|
822
679
|
};
|
|
823
680
|
exports.deserializeAws_restJson1ListDataIntegrationAssociationsCommand = deserializeAws_restJson1ListDataIntegrationAssociationsCommand;
|
|
824
681
|
const deserializeAws_restJson1ListDataIntegrationAssociationsCommandError = async (output, context) => {
|
|
@@ -826,7 +683,6 @@ const deserializeAws_restJson1ListDataIntegrationAssociationsCommandError = asyn
|
|
|
826
683
|
...output,
|
|
827
684
|
body: await parseBody(output.body, context),
|
|
828
685
|
};
|
|
829
|
-
let response;
|
|
830
686
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
687
|
switch (errorCode) {
|
|
832
688
|
case "AccessDeniedException":
|
|
@@ -846,33 +702,29 @@ const deserializeAws_restJson1ListDataIntegrationAssociationsCommandError = asyn
|
|
|
846
702
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
847
703
|
default:
|
|
848
704
|
const parsedBody = parsedOutput.body;
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
$metadata,
|
|
705
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
706
|
+
output,
|
|
707
|
+
parsedBody,
|
|
708
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
709
|
+
errorCode,
|
|
855
710
|
});
|
|
856
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
857
711
|
}
|
|
858
712
|
};
|
|
859
713
|
const deserializeAws_restJson1ListDataIntegrationsCommand = async (output, context) => {
|
|
860
714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
715
|
return deserializeAws_restJson1ListDataIntegrationsCommandError(output, context);
|
|
862
716
|
}
|
|
863
|
-
const contents = {
|
|
717
|
+
const contents = map({
|
|
864
718
|
$metadata: deserializeMetadata(output),
|
|
865
|
-
|
|
866
|
-
NextToken: undefined,
|
|
867
|
-
};
|
|
719
|
+
});
|
|
868
720
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
869
|
-
if (data.DataIntegrations
|
|
721
|
+
if (data.DataIntegrations != null) {
|
|
870
722
|
contents.DataIntegrations = deserializeAws_restJson1DataIntegrationsList(data.DataIntegrations, context);
|
|
871
723
|
}
|
|
872
|
-
if (data.NextToken
|
|
724
|
+
if (data.NextToken != null) {
|
|
873
725
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
874
726
|
}
|
|
875
|
-
return
|
|
727
|
+
return contents;
|
|
876
728
|
};
|
|
877
729
|
exports.deserializeAws_restJson1ListDataIntegrationsCommand = deserializeAws_restJson1ListDataIntegrationsCommand;
|
|
878
730
|
const deserializeAws_restJson1ListDataIntegrationsCommandError = async (output, context) => {
|
|
@@ -880,7 +732,6 @@ const deserializeAws_restJson1ListDataIntegrationsCommandError = async (output,
|
|
|
880
732
|
...output,
|
|
881
733
|
body: await parseBody(output.body, context),
|
|
882
734
|
};
|
|
883
|
-
let response;
|
|
884
735
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
736
|
switch (errorCode) {
|
|
886
737
|
case "AccessDeniedException":
|
|
@@ -897,33 +748,29 @@ const deserializeAws_restJson1ListDataIntegrationsCommandError = async (output,
|
|
|
897
748
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
898
749
|
default:
|
|
899
750
|
const parsedBody = parsedOutput.body;
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
$metadata,
|
|
751
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
752
|
+
output,
|
|
753
|
+
parsedBody,
|
|
754
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
755
|
+
errorCode,
|
|
906
756
|
});
|
|
907
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
908
757
|
}
|
|
909
758
|
};
|
|
910
759
|
const deserializeAws_restJson1ListEventIntegrationAssociationsCommand = async (output, context) => {
|
|
911
760
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
912
761
|
return deserializeAws_restJson1ListEventIntegrationAssociationsCommandError(output, context);
|
|
913
762
|
}
|
|
914
|
-
const contents = {
|
|
763
|
+
const contents = map({
|
|
915
764
|
$metadata: deserializeMetadata(output),
|
|
916
|
-
|
|
917
|
-
NextToken: undefined,
|
|
918
|
-
};
|
|
765
|
+
});
|
|
919
766
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
920
|
-
if (data.EventIntegrationAssociations
|
|
767
|
+
if (data.EventIntegrationAssociations != null) {
|
|
921
768
|
contents.EventIntegrationAssociations = deserializeAws_restJson1EventIntegrationAssociationsList(data.EventIntegrationAssociations, context);
|
|
922
769
|
}
|
|
923
|
-
if (data.NextToken
|
|
770
|
+
if (data.NextToken != null) {
|
|
924
771
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
925
772
|
}
|
|
926
|
-
return
|
|
773
|
+
return contents;
|
|
927
774
|
};
|
|
928
775
|
exports.deserializeAws_restJson1ListEventIntegrationAssociationsCommand = deserializeAws_restJson1ListEventIntegrationAssociationsCommand;
|
|
929
776
|
const deserializeAws_restJson1ListEventIntegrationAssociationsCommandError = async (output, context) => {
|
|
@@ -931,7 +778,6 @@ const deserializeAws_restJson1ListEventIntegrationAssociationsCommandError = asy
|
|
|
931
778
|
...output,
|
|
932
779
|
body: await parseBody(output.body, context),
|
|
933
780
|
};
|
|
934
|
-
let response;
|
|
935
781
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
936
782
|
switch (errorCode) {
|
|
937
783
|
case "AccessDeniedException":
|
|
@@ -951,33 +797,29 @@ const deserializeAws_restJson1ListEventIntegrationAssociationsCommandError = asy
|
|
|
951
797
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
952
798
|
default:
|
|
953
799
|
const parsedBody = parsedOutput.body;
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
$metadata,
|
|
800
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
801
|
+
output,
|
|
802
|
+
parsedBody,
|
|
803
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
804
|
+
errorCode,
|
|
960
805
|
});
|
|
961
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
962
806
|
}
|
|
963
807
|
};
|
|
964
808
|
const deserializeAws_restJson1ListEventIntegrationsCommand = async (output, context) => {
|
|
965
809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
966
810
|
return deserializeAws_restJson1ListEventIntegrationsCommandError(output, context);
|
|
967
811
|
}
|
|
968
|
-
const contents = {
|
|
812
|
+
const contents = map({
|
|
969
813
|
$metadata: deserializeMetadata(output),
|
|
970
|
-
|
|
971
|
-
NextToken: undefined,
|
|
972
|
-
};
|
|
814
|
+
});
|
|
973
815
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
974
|
-
if (data.EventIntegrations
|
|
816
|
+
if (data.EventIntegrations != null) {
|
|
975
817
|
contents.EventIntegrations = deserializeAws_restJson1EventIntegrationsList(data.EventIntegrations, context);
|
|
976
818
|
}
|
|
977
|
-
if (data.NextToken
|
|
819
|
+
if (data.NextToken != null) {
|
|
978
820
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
979
821
|
}
|
|
980
|
-
return
|
|
822
|
+
return contents;
|
|
981
823
|
};
|
|
982
824
|
exports.deserializeAws_restJson1ListEventIntegrationsCommand = deserializeAws_restJson1ListEventIntegrationsCommand;
|
|
983
825
|
const deserializeAws_restJson1ListEventIntegrationsCommandError = async (output, context) => {
|
|
@@ -985,7 +827,6 @@ const deserializeAws_restJson1ListEventIntegrationsCommandError = async (output,
|
|
|
985
827
|
...output,
|
|
986
828
|
body: await parseBody(output.body, context),
|
|
987
829
|
};
|
|
988
|
-
let response;
|
|
989
830
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
831
|
switch (errorCode) {
|
|
991
832
|
case "AccessDeniedException":
|
|
@@ -1002,29 +843,26 @@ const deserializeAws_restJson1ListEventIntegrationsCommandError = async (output,
|
|
|
1002
843
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1003
844
|
default:
|
|
1004
845
|
const parsedBody = parsedOutput.body;
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
$metadata,
|
|
846
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
847
|
+
output,
|
|
848
|
+
parsedBody,
|
|
849
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
850
|
+
errorCode,
|
|
1011
851
|
});
|
|
1012
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1013
852
|
}
|
|
1014
853
|
};
|
|
1015
854
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1016
855
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1017
856
|
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
1018
857
|
}
|
|
1019
|
-
const contents = {
|
|
858
|
+
const contents = map({
|
|
1020
859
|
$metadata: deserializeMetadata(output),
|
|
1021
|
-
|
|
1022
|
-
};
|
|
860
|
+
});
|
|
1023
861
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1024
|
-
if (data.tags
|
|
862
|
+
if (data.tags != null) {
|
|
1025
863
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
1026
864
|
}
|
|
1027
|
-
return
|
|
865
|
+
return contents;
|
|
1028
866
|
};
|
|
1029
867
|
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
1030
868
|
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1032,7 +870,6 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1032
870
|
...output,
|
|
1033
871
|
body: await parseBody(output.body, context),
|
|
1034
872
|
};
|
|
1035
|
-
let response;
|
|
1036
873
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1037
874
|
switch (errorCode) {
|
|
1038
875
|
case "InternalServiceError":
|
|
@@ -1049,25 +886,23 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1049
886
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1050
887
|
default:
|
|
1051
888
|
const parsedBody = parsedOutput.body;
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
$metadata,
|
|
889
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
890
|
+
output,
|
|
891
|
+
parsedBody,
|
|
892
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
893
|
+
errorCode,
|
|
1058
894
|
});
|
|
1059
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1060
895
|
}
|
|
1061
896
|
};
|
|
1062
897
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
1063
898
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1064
899
|
return deserializeAws_restJson1TagResourceCommandError(output, context);
|
|
1065
900
|
}
|
|
1066
|
-
const contents = {
|
|
901
|
+
const contents = map({
|
|
1067
902
|
$metadata: deserializeMetadata(output),
|
|
1068
|
-
};
|
|
903
|
+
});
|
|
1069
904
|
await collectBody(output.body, context);
|
|
1070
|
-
return
|
|
905
|
+
return contents;
|
|
1071
906
|
};
|
|
1072
907
|
exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1TagResourceCommand;
|
|
1073
908
|
const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
|
|
@@ -1075,7 +910,6 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1075
910
|
...output,
|
|
1076
911
|
body: await parseBody(output.body, context),
|
|
1077
912
|
};
|
|
1078
|
-
let response;
|
|
1079
913
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1080
914
|
switch (errorCode) {
|
|
1081
915
|
case "InternalServiceError":
|
|
@@ -1092,25 +926,23 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
1092
926
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1093
927
|
default:
|
|
1094
928
|
const parsedBody = parsedOutput.body;
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
$metadata,
|
|
929
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
930
|
+
output,
|
|
931
|
+
parsedBody,
|
|
932
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
933
|
+
errorCode,
|
|
1101
934
|
});
|
|
1102
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1103
935
|
}
|
|
1104
936
|
};
|
|
1105
937
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
1106
938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1107
939
|
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
1108
940
|
}
|
|
1109
|
-
const contents = {
|
|
941
|
+
const contents = map({
|
|
1110
942
|
$metadata: deserializeMetadata(output),
|
|
1111
|
-
};
|
|
943
|
+
});
|
|
1112
944
|
await collectBody(output.body, context);
|
|
1113
|
-
return
|
|
945
|
+
return contents;
|
|
1114
946
|
};
|
|
1115
947
|
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
1116
948
|
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
@@ -1118,7 +950,6 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1118
950
|
...output,
|
|
1119
951
|
body: await parseBody(output.body, context),
|
|
1120
952
|
};
|
|
1121
|
-
let response;
|
|
1122
953
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
954
|
switch (errorCode) {
|
|
1124
955
|
case "InternalServiceError":
|
|
@@ -1135,25 +966,23 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
1135
966
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1136
967
|
default:
|
|
1137
968
|
const parsedBody = parsedOutput.body;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
$metadata,
|
|
969
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
970
|
+
output,
|
|
971
|
+
parsedBody,
|
|
972
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
973
|
+
errorCode,
|
|
1144
974
|
});
|
|
1145
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1146
975
|
}
|
|
1147
976
|
};
|
|
1148
977
|
const deserializeAws_restJson1UpdateDataIntegrationCommand = async (output, context) => {
|
|
1149
978
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1150
979
|
return deserializeAws_restJson1UpdateDataIntegrationCommandError(output, context);
|
|
1151
980
|
}
|
|
1152
|
-
const contents = {
|
|
981
|
+
const contents = map({
|
|
1153
982
|
$metadata: deserializeMetadata(output),
|
|
1154
|
-
};
|
|
983
|
+
});
|
|
1155
984
|
await collectBody(output.body, context);
|
|
1156
|
-
return
|
|
985
|
+
return contents;
|
|
1157
986
|
};
|
|
1158
987
|
exports.deserializeAws_restJson1UpdateDataIntegrationCommand = deserializeAws_restJson1UpdateDataIntegrationCommand;
|
|
1159
988
|
const deserializeAws_restJson1UpdateDataIntegrationCommandError = async (output, context) => {
|
|
@@ -1161,7 +990,6 @@ const deserializeAws_restJson1UpdateDataIntegrationCommandError = async (output,
|
|
|
1161
990
|
...output,
|
|
1162
991
|
body: await parseBody(output.body, context),
|
|
1163
992
|
};
|
|
1164
|
-
let response;
|
|
1165
993
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1166
994
|
switch (errorCode) {
|
|
1167
995
|
case "AccessDeniedException":
|
|
@@ -1181,25 +1009,23 @@ const deserializeAws_restJson1UpdateDataIntegrationCommandError = async (output,
|
|
|
1181
1009
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1182
1010
|
default:
|
|
1183
1011
|
const parsedBody = parsedOutput.body;
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
$metadata,
|
|
1012
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1013
|
+
output,
|
|
1014
|
+
parsedBody,
|
|
1015
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
1016
|
+
errorCode,
|
|
1190
1017
|
});
|
|
1191
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1192
1018
|
}
|
|
1193
1019
|
};
|
|
1194
1020
|
const deserializeAws_restJson1UpdateEventIntegrationCommand = async (output, context) => {
|
|
1195
1021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1196
1022
|
return deserializeAws_restJson1UpdateEventIntegrationCommandError(output, context);
|
|
1197
1023
|
}
|
|
1198
|
-
const contents = {
|
|
1024
|
+
const contents = map({
|
|
1199
1025
|
$metadata: deserializeMetadata(output),
|
|
1200
|
-
};
|
|
1026
|
+
});
|
|
1201
1027
|
await collectBody(output.body, context);
|
|
1202
|
-
return
|
|
1028
|
+
return contents;
|
|
1203
1029
|
};
|
|
1204
1030
|
exports.deserializeAws_restJson1UpdateEventIntegrationCommand = deserializeAws_restJson1UpdateEventIntegrationCommand;
|
|
1205
1031
|
const deserializeAws_restJson1UpdateEventIntegrationCommandError = async (output, context) => {
|
|
@@ -1207,7 +1033,6 @@ const deserializeAws_restJson1UpdateEventIntegrationCommandError = async (output
|
|
|
1207
1033
|
...output,
|
|
1208
1034
|
body: await parseBody(output.body, context),
|
|
1209
1035
|
};
|
|
1210
|
-
let response;
|
|
1211
1036
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1212
1037
|
switch (errorCode) {
|
|
1213
1038
|
case "AccessDeniedException":
|
|
@@ -1227,20 +1052,19 @@ const deserializeAws_restJson1UpdateEventIntegrationCommandError = async (output
|
|
|
1227
1052
|
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1228
1053
|
default:
|
|
1229
1054
|
const parsedBody = parsedOutput.body;
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
$metadata,
|
|
1055
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1056
|
+
output,
|
|
1057
|
+
parsedBody,
|
|
1058
|
+
exceptionCtor: AppIntegrationsServiceException_1.AppIntegrationsServiceException,
|
|
1059
|
+
errorCode,
|
|
1236
1060
|
});
|
|
1237
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1238
1061
|
}
|
|
1239
1062
|
};
|
|
1063
|
+
const map = smithy_client_1.map;
|
|
1240
1064
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1241
|
-
const contents = {};
|
|
1065
|
+
const contents = map({});
|
|
1242
1066
|
const data = parsedOutput.body;
|
|
1243
|
-
if (data.Message
|
|
1067
|
+
if (data.Message != null) {
|
|
1244
1068
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1245
1069
|
}
|
|
1246
1070
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -1250,9 +1074,9 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1250
1074
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1251
1075
|
};
|
|
1252
1076
|
const deserializeAws_restJson1DuplicateResourceExceptionResponse = async (parsedOutput, context) => {
|
|
1253
|
-
const contents = {};
|
|
1077
|
+
const contents = map({});
|
|
1254
1078
|
const data = parsedOutput.body;
|
|
1255
|
-
if (data.Message
|
|
1079
|
+
if (data.Message != null) {
|
|
1256
1080
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1257
1081
|
}
|
|
1258
1082
|
const exception = new models_0_1.DuplicateResourceException({
|
|
@@ -1262,9 +1086,9 @@ const deserializeAws_restJson1DuplicateResourceExceptionResponse = async (parsed
|
|
|
1262
1086
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1263
1087
|
};
|
|
1264
1088
|
const deserializeAws_restJson1InternalServiceErrorResponse = async (parsedOutput, context) => {
|
|
1265
|
-
const contents = {};
|
|
1089
|
+
const contents = map({});
|
|
1266
1090
|
const data = parsedOutput.body;
|
|
1267
|
-
if (data.Message
|
|
1091
|
+
if (data.Message != null) {
|
|
1268
1092
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1269
1093
|
}
|
|
1270
1094
|
const exception = new models_0_1.InternalServiceError({
|
|
@@ -1274,9 +1098,9 @@ const deserializeAws_restJson1InternalServiceErrorResponse = async (parsedOutput
|
|
|
1274
1098
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1275
1099
|
};
|
|
1276
1100
|
const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1277
|
-
const contents = {};
|
|
1101
|
+
const contents = map({});
|
|
1278
1102
|
const data = parsedOutput.body;
|
|
1279
|
-
if (data.Message
|
|
1103
|
+
if (data.Message != null) {
|
|
1280
1104
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1281
1105
|
}
|
|
1282
1106
|
const exception = new models_0_1.InvalidRequestException({
|
|
@@ -1286,9 +1110,9 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
1286
1110
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1287
1111
|
};
|
|
1288
1112
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1289
|
-
const contents = {};
|
|
1113
|
+
const contents = map({});
|
|
1290
1114
|
const data = parsedOutput.body;
|
|
1291
|
-
if (data.Message
|
|
1115
|
+
if (data.Message != null) {
|
|
1292
1116
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1293
1117
|
}
|
|
1294
1118
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -1298,9 +1122,9 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1298
1122
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1299
1123
|
};
|
|
1300
1124
|
const deserializeAws_restJson1ResourceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1301
|
-
const contents = {};
|
|
1125
|
+
const contents = map({});
|
|
1302
1126
|
const data = parsedOutput.body;
|
|
1303
|
-
if (data.Message
|
|
1127
|
+
if (data.Message != null) {
|
|
1304
1128
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1305
1129
|
}
|
|
1306
1130
|
const exception = new models_0_1.ResourceQuotaExceededException({
|
|
@@ -1310,9 +1134,9 @@ const deserializeAws_restJson1ResourceQuotaExceededExceptionResponse = async (pa
|
|
|
1310
1134
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1311
1135
|
};
|
|
1312
1136
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
1313
|
-
const contents = {};
|
|
1137
|
+
const contents = map({});
|
|
1314
1138
|
const data = parsedOutput.body;
|
|
1315
|
-
if (data.Message
|
|
1139
|
+
if (data.Message != null) {
|
|
1316
1140
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
1317
1141
|
}
|
|
1318
1142
|
const exception = new models_0_1.ThrottlingException({
|