@aws-sdk/client-appintegrations 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CreateDataIntegrationCommand.js +2 -2
- package/dist-cjs/commands/CreateEventIntegrationCommand.js +2 -2
- package/dist-cjs/commands/DeleteDataIntegrationCommand.js +2 -2
- package/dist-cjs/commands/DeleteEventIntegrationCommand.js +2 -2
- package/dist-cjs/commands/GetDataIntegrationCommand.js +2 -2
- package/dist-cjs/commands/GetEventIntegrationCommand.js +2 -2
- package/dist-cjs/commands/ListDataIntegrationAssociationsCommand.js +2 -2
- package/dist-cjs/commands/ListDataIntegrationsCommand.js +2 -2
- package/dist-cjs/commands/ListEventIntegrationAssociationsCommand.js +2 -2
- package/dist-cjs/commands/ListEventIntegrationsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDataIntegrationCommand.js +2 -2
- package/dist-cjs/commands/UpdateEventIntegrationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +232 -234
- package/dist-es/commands/CreateDataIntegrationCommand.js +3 -3
- package/dist-es/commands/CreateEventIntegrationCommand.js +3 -3
- package/dist-es/commands/DeleteDataIntegrationCommand.js +3 -3
- package/dist-es/commands/DeleteEventIntegrationCommand.js +3 -3
- package/dist-es/commands/GetDataIntegrationCommand.js +3 -3
- package/dist-es/commands/GetEventIntegrationCommand.js +3 -3
- package/dist-es/commands/ListDataIntegrationAssociationsCommand.js +3 -3
- package/dist-es/commands/ListDataIntegrationsCommand.js +3 -3
- package/dist-es/commands/ListEventIntegrationAssociationsCommand.js +3 -3
- package/dist-es/commands/ListEventIntegrationsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDataIntegrationCommand.js +3 -3
- package/dist-es/commands/UpdateEventIntegrationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +201 -203
- package/dist-types/protocols/Aws_restJson1.d.ts +120 -30
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +30 -30
- package/package.json +29 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateEventIntegrationCommand = exports.de_UpdateDataIntegrationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEventIntegrationsCommand = exports.de_ListEventIntegrationAssociationsCommand = exports.de_ListDataIntegrationsCommand = exports.de_ListDataIntegrationAssociationsCommand = exports.de_GetEventIntegrationCommand = exports.de_GetDataIntegrationCommand = exports.de_DeleteEventIntegrationCommand = exports.de_DeleteDataIntegrationCommand = exports.de_CreateEventIntegrationCommand = exports.de_CreateDataIntegrationCommand = exports.se_UpdateEventIntegrationCommand = exports.se_UpdateDataIntegrationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEventIntegrationsCommand = exports.se_ListEventIntegrationAssociationsCommand = exports.se_ListDataIntegrationsCommand = exports.se_ListDataIntegrationAssociationsCommand = exports.se_GetEventIntegrationCommand = exports.se_GetDataIntegrationCommand = exports.se_DeleteEventIntegrationCommand = exports.se_DeleteDataIntegrationCommand = exports.se_CreateEventIntegrationCommand = exports.se_CreateDataIntegrationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const AppIntegrationsServiceException_1 = require("../models/AppIntegrationsServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateDataIntegrationCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -17,18 +17,16 @@ const serializeAws_restJson1CreateDataIntegrationCommand = async (input, context
|
|
|
17
17
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
18
18
|
...(input.Description != null && { Description: input.Description }),
|
|
19
19
|
...(input.FileConfiguration != null && {
|
|
20
|
-
FileConfiguration:
|
|
20
|
+
FileConfiguration: se_FileConfiguration(input.FileConfiguration, context),
|
|
21
21
|
}),
|
|
22
22
|
...(input.KmsKey != null && { KmsKey: input.KmsKey }),
|
|
23
23
|
...(input.Name != null && { Name: input.Name }),
|
|
24
24
|
...(input.ObjectConfiguration != null && {
|
|
25
|
-
ObjectConfiguration:
|
|
26
|
-
}),
|
|
27
|
-
...(input.ScheduleConfig != null && {
|
|
28
|
-
ScheduleConfig: serializeAws_restJson1ScheduleConfiguration(input.ScheduleConfig, context),
|
|
25
|
+
ObjectConfiguration: se_ObjectConfiguration(input.ObjectConfiguration, context),
|
|
29
26
|
}),
|
|
27
|
+
...(input.ScheduleConfig != null && { ScheduleConfig: se_ScheduleConfiguration(input.ScheduleConfig, context) }),
|
|
30
28
|
...(input.SourceURI != null && { SourceURI: input.SourceURI }),
|
|
31
|
-
...(input.Tags != null && { Tags:
|
|
29
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
32
30
|
});
|
|
33
31
|
return new protocol_http_1.HttpRequest({
|
|
34
32
|
protocol,
|
|
@@ -40,8 +38,8 @@ const serializeAws_restJson1CreateDataIntegrationCommand = async (input, context
|
|
|
40
38
|
body,
|
|
41
39
|
});
|
|
42
40
|
};
|
|
43
|
-
exports.
|
|
44
|
-
const
|
|
41
|
+
exports.se_CreateDataIntegrationCommand = se_CreateDataIntegrationCommand;
|
|
42
|
+
const se_CreateEventIntegrationCommand = async (input, context) => {
|
|
45
43
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
46
44
|
const headers = {
|
|
47
45
|
"content-type": "application/json",
|
|
@@ -52,9 +50,9 @@ const serializeAws_restJson1CreateEventIntegrationCommand = async (input, contex
|
|
|
52
50
|
ClientToken: input.ClientToken ?? (0, uuid_1.v4)(),
|
|
53
51
|
...(input.Description != null && { Description: input.Description }),
|
|
54
52
|
...(input.EventBridgeBus != null && { EventBridgeBus: input.EventBridgeBus }),
|
|
55
|
-
...(input.EventFilter != null && { EventFilter:
|
|
53
|
+
...(input.EventFilter != null && { EventFilter: se_EventFilter(input.EventFilter, context) }),
|
|
56
54
|
...(input.Name != null && { Name: input.Name }),
|
|
57
|
-
...(input.Tags != null && { Tags:
|
|
55
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
58
56
|
});
|
|
59
57
|
return new protocol_http_1.HttpRequest({
|
|
60
58
|
protocol,
|
|
@@ -66,8 +64,8 @@ const serializeAws_restJson1CreateEventIntegrationCommand = async (input, contex
|
|
|
66
64
|
body,
|
|
67
65
|
});
|
|
68
66
|
};
|
|
69
|
-
exports.
|
|
70
|
-
const
|
|
67
|
+
exports.se_CreateEventIntegrationCommand = se_CreateEventIntegrationCommand;
|
|
68
|
+
const se_DeleteDataIntegrationCommand = async (input, context) => {
|
|
71
69
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
72
70
|
const headers = {};
|
|
73
71
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -84,8 +82,8 @@ const serializeAws_restJson1DeleteDataIntegrationCommand = async (input, context
|
|
|
84
82
|
body,
|
|
85
83
|
});
|
|
86
84
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
85
|
+
exports.se_DeleteDataIntegrationCommand = se_DeleteDataIntegrationCommand;
|
|
86
|
+
const se_DeleteEventIntegrationCommand = async (input, context) => {
|
|
89
87
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
90
88
|
const headers = {};
|
|
91
89
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
|
|
@@ -101,8 +99,8 @@ const serializeAws_restJson1DeleteEventIntegrationCommand = async (input, contex
|
|
|
101
99
|
body,
|
|
102
100
|
});
|
|
103
101
|
};
|
|
104
|
-
exports.
|
|
105
|
-
const
|
|
102
|
+
exports.se_DeleteEventIntegrationCommand = se_DeleteEventIntegrationCommand;
|
|
103
|
+
const se_GetDataIntegrationCommand = async (input, context) => {
|
|
106
104
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
107
105
|
const headers = {};
|
|
108
106
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations/{Identifier}";
|
|
@@ -118,8 +116,8 @@ const serializeAws_restJson1GetDataIntegrationCommand = async (input, context) =
|
|
|
118
116
|
body,
|
|
119
117
|
});
|
|
120
118
|
};
|
|
121
|
-
exports.
|
|
122
|
-
const
|
|
119
|
+
exports.se_GetDataIntegrationCommand = se_GetDataIntegrationCommand;
|
|
120
|
+
const se_GetEventIntegrationCommand = async (input, context) => {
|
|
123
121
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
122
|
const headers = {};
|
|
125
123
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations/{Name}";
|
|
@@ -135,8 +133,8 @@ const serializeAws_restJson1GetEventIntegrationCommand = async (input, context)
|
|
|
135
133
|
body,
|
|
136
134
|
});
|
|
137
135
|
};
|
|
138
|
-
exports.
|
|
139
|
-
const
|
|
136
|
+
exports.se_GetEventIntegrationCommand = se_GetEventIntegrationCommand;
|
|
137
|
+
const se_ListDataIntegrationAssociationsCommand = async (input, context) => {
|
|
140
138
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
141
139
|
const headers = {};
|
|
142
140
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -158,8 +156,8 @@ const serializeAws_restJson1ListDataIntegrationAssociationsCommand = async (inpu
|
|
|
158
156
|
body,
|
|
159
157
|
});
|
|
160
158
|
};
|
|
161
|
-
exports.
|
|
162
|
-
const
|
|
159
|
+
exports.se_ListDataIntegrationAssociationsCommand = se_ListDataIntegrationAssociationsCommand;
|
|
160
|
+
const se_ListDataIntegrationsCommand = async (input, context) => {
|
|
163
161
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
164
162
|
const headers = {};
|
|
165
163
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataIntegrations";
|
|
@@ -179,8 +177,8 @@ const serializeAws_restJson1ListDataIntegrationsCommand = async (input, context)
|
|
|
179
177
|
body,
|
|
180
178
|
});
|
|
181
179
|
};
|
|
182
|
-
exports.
|
|
183
|
-
const
|
|
180
|
+
exports.se_ListDataIntegrationsCommand = se_ListDataIntegrationsCommand;
|
|
181
|
+
const se_ListEventIntegrationAssociationsCommand = async (input, context) => {
|
|
184
182
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
185
183
|
const headers = {};
|
|
186
184
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -202,8 +200,8 @@ const serializeAws_restJson1ListEventIntegrationAssociationsCommand = async (inp
|
|
|
202
200
|
body,
|
|
203
201
|
});
|
|
204
202
|
};
|
|
205
|
-
exports.
|
|
206
|
-
const
|
|
203
|
+
exports.se_ListEventIntegrationAssociationsCommand = se_ListEventIntegrationAssociationsCommand;
|
|
204
|
+
const se_ListEventIntegrationsCommand = async (input, context) => {
|
|
207
205
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
208
206
|
const headers = {};
|
|
209
207
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/eventIntegrations";
|
|
@@ -223,8 +221,8 @@ const serializeAws_restJson1ListEventIntegrationsCommand = async (input, context
|
|
|
223
221
|
body,
|
|
224
222
|
});
|
|
225
223
|
};
|
|
226
|
-
exports.
|
|
227
|
-
const
|
|
224
|
+
exports.se_ListEventIntegrationsCommand = se_ListEventIntegrationsCommand;
|
|
225
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
228
226
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
229
227
|
const headers = {};
|
|
230
228
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -240,8 +238,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
240
238
|
body,
|
|
241
239
|
});
|
|
242
240
|
};
|
|
243
|
-
exports.
|
|
244
|
-
const
|
|
241
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
242
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
245
243
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
246
244
|
const headers = {
|
|
247
245
|
"content-type": "application/json",
|
|
@@ -250,7 +248,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
250
248
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
251
249
|
let body;
|
|
252
250
|
body = JSON.stringify({
|
|
253
|
-
...(input.tags != null && { tags:
|
|
251
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
254
252
|
});
|
|
255
253
|
return new protocol_http_1.HttpRequest({
|
|
256
254
|
protocol,
|
|
@@ -262,8 +260,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
262
260
|
body,
|
|
263
261
|
});
|
|
264
262
|
};
|
|
265
|
-
exports.
|
|
266
|
-
const
|
|
263
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
264
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
267
265
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
266
|
const headers = {};
|
|
269
267
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -286,8 +284,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
286
284
|
body,
|
|
287
285
|
});
|
|
288
286
|
};
|
|
289
|
-
exports.
|
|
290
|
-
const
|
|
287
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
288
|
+
const se_UpdateDataIntegrationCommand = async (input, context) => {
|
|
291
289
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
292
290
|
const headers = {
|
|
293
291
|
"content-type": "application/json",
|
|
@@ -309,8 +307,8 @@ const serializeAws_restJson1UpdateDataIntegrationCommand = async (input, context
|
|
|
309
307
|
body,
|
|
310
308
|
});
|
|
311
309
|
};
|
|
312
|
-
exports.
|
|
313
|
-
const
|
|
310
|
+
exports.se_UpdateDataIntegrationCommand = se_UpdateDataIntegrationCommand;
|
|
311
|
+
const se_UpdateEventIntegrationCommand = async (input, context) => {
|
|
314
312
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
315
313
|
const headers = {
|
|
316
314
|
"content-type": "application/json",
|
|
@@ -331,10 +329,10 @@ const serializeAws_restJson1UpdateEventIntegrationCommand = async (input, contex
|
|
|
331
329
|
body,
|
|
332
330
|
});
|
|
333
331
|
};
|
|
334
|
-
exports.
|
|
335
|
-
const
|
|
332
|
+
exports.se_UpdateEventIntegrationCommand = se_UpdateEventIntegrationCommand;
|
|
333
|
+
const de_CreateDataIntegrationCommand = async (output, context) => {
|
|
336
334
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
337
|
-
return
|
|
335
|
+
return de_CreateDataIntegrationCommandError(output, context);
|
|
338
336
|
}
|
|
339
337
|
const contents = map({
|
|
340
338
|
$metadata: deserializeMetadata(output),
|
|
@@ -350,7 +348,7 @@ const deserializeAws_restJson1CreateDataIntegrationCommand = async (output, cont
|
|
|
350
348
|
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
351
349
|
}
|
|
352
350
|
if (data.FileConfiguration != null) {
|
|
353
|
-
contents.FileConfiguration =
|
|
351
|
+
contents.FileConfiguration = de_FileConfiguration(data.FileConfiguration, context);
|
|
354
352
|
}
|
|
355
353
|
if (data.Id != null) {
|
|
356
354
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
@@ -362,21 +360,21 @@ const deserializeAws_restJson1CreateDataIntegrationCommand = async (output, cont
|
|
|
362
360
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
363
361
|
}
|
|
364
362
|
if (data.ObjectConfiguration != null) {
|
|
365
|
-
contents.ObjectConfiguration =
|
|
363
|
+
contents.ObjectConfiguration = de_ObjectConfiguration(data.ObjectConfiguration, context);
|
|
366
364
|
}
|
|
367
365
|
if (data.ScheduleConfiguration != null) {
|
|
368
|
-
contents.ScheduleConfiguration =
|
|
366
|
+
contents.ScheduleConfiguration = de_ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
369
367
|
}
|
|
370
368
|
if (data.SourceURI != null) {
|
|
371
369
|
contents.SourceURI = (0, smithy_client_1.expectString)(data.SourceURI);
|
|
372
370
|
}
|
|
373
371
|
if (data.Tags != null) {
|
|
374
|
-
contents.Tags =
|
|
372
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
375
373
|
}
|
|
376
374
|
return contents;
|
|
377
375
|
};
|
|
378
|
-
exports.
|
|
379
|
-
const
|
|
376
|
+
exports.de_CreateDataIntegrationCommand = de_CreateDataIntegrationCommand;
|
|
377
|
+
const de_CreateDataIntegrationCommandError = async (output, context) => {
|
|
380
378
|
const parsedOutput = {
|
|
381
379
|
...output,
|
|
382
380
|
body: await parseErrorBody(output.body, context),
|
|
@@ -385,22 +383,22 @@ const deserializeAws_restJson1CreateDataIntegrationCommandError = async (output,
|
|
|
385
383
|
switch (errorCode) {
|
|
386
384
|
case "AccessDeniedException":
|
|
387
385
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
388
|
-
throw await
|
|
386
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
389
387
|
case "DuplicateResourceException":
|
|
390
388
|
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
391
|
-
throw await
|
|
389
|
+
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
392
390
|
case "InternalServiceError":
|
|
393
391
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
394
|
-
throw await
|
|
392
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
395
393
|
case "InvalidRequestException":
|
|
396
394
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
397
|
-
throw await
|
|
395
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
398
396
|
case "ResourceQuotaExceededException":
|
|
399
397
|
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
400
|
-
throw await
|
|
398
|
+
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
401
399
|
case "ThrottlingException":
|
|
402
400
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
403
|
-
throw await
|
|
401
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
404
402
|
default:
|
|
405
403
|
const parsedBody = parsedOutput.body;
|
|
406
404
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -411,9 +409,9 @@ const deserializeAws_restJson1CreateDataIntegrationCommandError = async (output,
|
|
|
411
409
|
});
|
|
412
410
|
}
|
|
413
411
|
};
|
|
414
|
-
const
|
|
412
|
+
const de_CreateEventIntegrationCommand = async (output, context) => {
|
|
415
413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
|
-
return
|
|
414
|
+
return de_CreateEventIntegrationCommandError(output, context);
|
|
417
415
|
}
|
|
418
416
|
const contents = map({
|
|
419
417
|
$metadata: deserializeMetadata(output),
|
|
@@ -424,8 +422,8 @@ const deserializeAws_restJson1CreateEventIntegrationCommand = async (output, con
|
|
|
424
422
|
}
|
|
425
423
|
return contents;
|
|
426
424
|
};
|
|
427
|
-
exports.
|
|
428
|
-
const
|
|
425
|
+
exports.de_CreateEventIntegrationCommand = de_CreateEventIntegrationCommand;
|
|
426
|
+
const de_CreateEventIntegrationCommandError = async (output, context) => {
|
|
429
427
|
const parsedOutput = {
|
|
430
428
|
...output,
|
|
431
429
|
body: await parseErrorBody(output.body, context),
|
|
@@ -434,22 +432,22 @@ const deserializeAws_restJson1CreateEventIntegrationCommandError = async (output
|
|
|
434
432
|
switch (errorCode) {
|
|
435
433
|
case "AccessDeniedException":
|
|
436
434
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
437
|
-
throw await
|
|
435
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
438
436
|
case "DuplicateResourceException":
|
|
439
437
|
case "com.amazonaws.appintegrations#DuplicateResourceException":
|
|
440
|
-
throw await
|
|
438
|
+
throw await de_DuplicateResourceExceptionRes(parsedOutput, context);
|
|
441
439
|
case "InternalServiceError":
|
|
442
440
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
443
|
-
throw await
|
|
441
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
444
442
|
case "InvalidRequestException":
|
|
445
443
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
446
|
-
throw await
|
|
444
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
447
445
|
case "ResourceQuotaExceededException":
|
|
448
446
|
case "com.amazonaws.appintegrations#ResourceQuotaExceededException":
|
|
449
|
-
throw await
|
|
447
|
+
throw await de_ResourceQuotaExceededExceptionRes(parsedOutput, context);
|
|
450
448
|
case "ThrottlingException":
|
|
451
449
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
452
|
-
throw await
|
|
450
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
453
451
|
default:
|
|
454
452
|
const parsedBody = parsedOutput.body;
|
|
455
453
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -460,9 +458,9 @@ const deserializeAws_restJson1CreateEventIntegrationCommandError = async (output
|
|
|
460
458
|
});
|
|
461
459
|
}
|
|
462
460
|
};
|
|
463
|
-
const
|
|
461
|
+
const de_DeleteDataIntegrationCommand = async (output, context) => {
|
|
464
462
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
465
|
-
return
|
|
463
|
+
return de_DeleteDataIntegrationCommandError(output, context);
|
|
466
464
|
}
|
|
467
465
|
const contents = map({
|
|
468
466
|
$metadata: deserializeMetadata(output),
|
|
@@ -470,8 +468,8 @@ const deserializeAws_restJson1DeleteDataIntegrationCommand = async (output, cont
|
|
|
470
468
|
await collectBody(output.body, context);
|
|
471
469
|
return contents;
|
|
472
470
|
};
|
|
473
|
-
exports.
|
|
474
|
-
const
|
|
471
|
+
exports.de_DeleteDataIntegrationCommand = de_DeleteDataIntegrationCommand;
|
|
472
|
+
const de_DeleteDataIntegrationCommandError = async (output, context) => {
|
|
475
473
|
const parsedOutput = {
|
|
476
474
|
...output,
|
|
477
475
|
body: await parseErrorBody(output.body, context),
|
|
@@ -480,19 +478,19 @@ const deserializeAws_restJson1DeleteDataIntegrationCommandError = async (output,
|
|
|
480
478
|
switch (errorCode) {
|
|
481
479
|
case "AccessDeniedException":
|
|
482
480
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
483
|
-
throw await
|
|
481
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
484
482
|
case "InternalServiceError":
|
|
485
483
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
486
|
-
throw await
|
|
484
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
487
485
|
case "InvalidRequestException":
|
|
488
486
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
489
|
-
throw await
|
|
487
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
490
488
|
case "ResourceNotFoundException":
|
|
491
489
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
492
|
-
throw await
|
|
490
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
493
491
|
case "ThrottlingException":
|
|
494
492
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
495
|
-
throw await
|
|
493
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
496
494
|
default:
|
|
497
495
|
const parsedBody = parsedOutput.body;
|
|
498
496
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -503,9 +501,9 @@ const deserializeAws_restJson1DeleteDataIntegrationCommandError = async (output,
|
|
|
503
501
|
});
|
|
504
502
|
}
|
|
505
503
|
};
|
|
506
|
-
const
|
|
504
|
+
const de_DeleteEventIntegrationCommand = async (output, context) => {
|
|
507
505
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
508
|
-
return
|
|
506
|
+
return de_DeleteEventIntegrationCommandError(output, context);
|
|
509
507
|
}
|
|
510
508
|
const contents = map({
|
|
511
509
|
$metadata: deserializeMetadata(output),
|
|
@@ -513,8 +511,8 @@ const deserializeAws_restJson1DeleteEventIntegrationCommand = async (output, con
|
|
|
513
511
|
await collectBody(output.body, context);
|
|
514
512
|
return contents;
|
|
515
513
|
};
|
|
516
|
-
exports.
|
|
517
|
-
const
|
|
514
|
+
exports.de_DeleteEventIntegrationCommand = de_DeleteEventIntegrationCommand;
|
|
515
|
+
const de_DeleteEventIntegrationCommandError = async (output, context) => {
|
|
518
516
|
const parsedOutput = {
|
|
519
517
|
...output,
|
|
520
518
|
body: await parseErrorBody(output.body, context),
|
|
@@ -523,19 +521,19 @@ const deserializeAws_restJson1DeleteEventIntegrationCommandError = async (output
|
|
|
523
521
|
switch (errorCode) {
|
|
524
522
|
case "AccessDeniedException":
|
|
525
523
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
526
|
-
throw await
|
|
524
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
527
525
|
case "InternalServiceError":
|
|
528
526
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
529
|
-
throw await
|
|
527
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
530
528
|
case "InvalidRequestException":
|
|
531
529
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
532
|
-
throw await
|
|
530
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
533
531
|
case "ResourceNotFoundException":
|
|
534
532
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
535
|
-
throw await
|
|
533
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
536
534
|
case "ThrottlingException":
|
|
537
535
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
538
|
-
throw await
|
|
536
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
539
537
|
default:
|
|
540
538
|
const parsedBody = parsedOutput.body;
|
|
541
539
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -546,9 +544,9 @@ const deserializeAws_restJson1DeleteEventIntegrationCommandError = async (output
|
|
|
546
544
|
});
|
|
547
545
|
}
|
|
548
546
|
};
|
|
549
|
-
const
|
|
547
|
+
const de_GetDataIntegrationCommand = async (output, context) => {
|
|
550
548
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
551
|
-
return
|
|
549
|
+
return de_GetDataIntegrationCommandError(output, context);
|
|
552
550
|
}
|
|
553
551
|
const contents = map({
|
|
554
552
|
$metadata: deserializeMetadata(output),
|
|
@@ -561,7 +559,7 @@ const deserializeAws_restJson1GetDataIntegrationCommand = async (output, context
|
|
|
561
559
|
contents.Description = (0, smithy_client_1.expectString)(data.Description);
|
|
562
560
|
}
|
|
563
561
|
if (data.FileConfiguration != null) {
|
|
564
|
-
contents.FileConfiguration =
|
|
562
|
+
contents.FileConfiguration = de_FileConfiguration(data.FileConfiguration, context);
|
|
565
563
|
}
|
|
566
564
|
if (data.Id != null) {
|
|
567
565
|
contents.Id = (0, smithy_client_1.expectString)(data.Id);
|
|
@@ -573,21 +571,21 @@ const deserializeAws_restJson1GetDataIntegrationCommand = async (output, context
|
|
|
573
571
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
574
572
|
}
|
|
575
573
|
if (data.ObjectConfiguration != null) {
|
|
576
|
-
contents.ObjectConfiguration =
|
|
574
|
+
contents.ObjectConfiguration = de_ObjectConfiguration(data.ObjectConfiguration, context);
|
|
577
575
|
}
|
|
578
576
|
if (data.ScheduleConfiguration != null) {
|
|
579
|
-
contents.ScheduleConfiguration =
|
|
577
|
+
contents.ScheduleConfiguration = de_ScheduleConfiguration(data.ScheduleConfiguration, context);
|
|
580
578
|
}
|
|
581
579
|
if (data.SourceURI != null) {
|
|
582
580
|
contents.SourceURI = (0, smithy_client_1.expectString)(data.SourceURI);
|
|
583
581
|
}
|
|
584
582
|
if (data.Tags != null) {
|
|
585
|
-
contents.Tags =
|
|
583
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
586
584
|
}
|
|
587
585
|
return contents;
|
|
588
586
|
};
|
|
589
|
-
exports.
|
|
590
|
-
const
|
|
587
|
+
exports.de_GetDataIntegrationCommand = de_GetDataIntegrationCommand;
|
|
588
|
+
const de_GetDataIntegrationCommandError = async (output, context) => {
|
|
591
589
|
const parsedOutput = {
|
|
592
590
|
...output,
|
|
593
591
|
body: await parseErrorBody(output.body, context),
|
|
@@ -596,19 +594,19 @@ const deserializeAws_restJson1GetDataIntegrationCommandError = async (output, co
|
|
|
596
594
|
switch (errorCode) {
|
|
597
595
|
case "AccessDeniedException":
|
|
598
596
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
599
|
-
throw await
|
|
597
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
600
598
|
case "InternalServiceError":
|
|
601
599
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
602
|
-
throw await
|
|
600
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
603
601
|
case "InvalidRequestException":
|
|
604
602
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
605
|
-
throw await
|
|
603
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
606
604
|
case "ResourceNotFoundException":
|
|
607
605
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
608
|
-
throw await
|
|
606
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
609
607
|
case "ThrottlingException":
|
|
610
608
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
611
|
-
throw await
|
|
609
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
612
610
|
default:
|
|
613
611
|
const parsedBody = parsedOutput.body;
|
|
614
612
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -619,9 +617,9 @@ const deserializeAws_restJson1GetDataIntegrationCommandError = async (output, co
|
|
|
619
617
|
});
|
|
620
618
|
}
|
|
621
619
|
};
|
|
622
|
-
const
|
|
620
|
+
const de_GetEventIntegrationCommand = async (output, context) => {
|
|
623
621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
624
|
-
return
|
|
622
|
+
return de_GetEventIntegrationCommandError(output, context);
|
|
625
623
|
}
|
|
626
624
|
const contents = map({
|
|
627
625
|
$metadata: deserializeMetadata(output),
|
|
@@ -634,7 +632,7 @@ const deserializeAws_restJson1GetEventIntegrationCommand = async (output, contex
|
|
|
634
632
|
contents.EventBridgeBus = (0, smithy_client_1.expectString)(data.EventBridgeBus);
|
|
635
633
|
}
|
|
636
634
|
if (data.EventFilter != null) {
|
|
637
|
-
contents.EventFilter =
|
|
635
|
+
contents.EventFilter = de_EventFilter(data.EventFilter, context);
|
|
638
636
|
}
|
|
639
637
|
if (data.EventIntegrationArn != null) {
|
|
640
638
|
contents.EventIntegrationArn = (0, smithy_client_1.expectString)(data.EventIntegrationArn);
|
|
@@ -643,12 +641,12 @@ const deserializeAws_restJson1GetEventIntegrationCommand = async (output, contex
|
|
|
643
641
|
contents.Name = (0, smithy_client_1.expectString)(data.Name);
|
|
644
642
|
}
|
|
645
643
|
if (data.Tags != null) {
|
|
646
|
-
contents.Tags =
|
|
644
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
647
645
|
}
|
|
648
646
|
return contents;
|
|
649
647
|
};
|
|
650
|
-
exports.
|
|
651
|
-
const
|
|
648
|
+
exports.de_GetEventIntegrationCommand = de_GetEventIntegrationCommand;
|
|
649
|
+
const de_GetEventIntegrationCommandError = async (output, context) => {
|
|
652
650
|
const parsedOutput = {
|
|
653
651
|
...output,
|
|
654
652
|
body: await parseErrorBody(output.body, context),
|
|
@@ -657,19 +655,19 @@ const deserializeAws_restJson1GetEventIntegrationCommandError = async (output, c
|
|
|
657
655
|
switch (errorCode) {
|
|
658
656
|
case "AccessDeniedException":
|
|
659
657
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
660
|
-
throw await
|
|
658
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
661
659
|
case "InternalServiceError":
|
|
662
660
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
663
|
-
throw await
|
|
661
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
664
662
|
case "InvalidRequestException":
|
|
665
663
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
666
|
-
throw await
|
|
664
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
667
665
|
case "ResourceNotFoundException":
|
|
668
666
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
669
|
-
throw await
|
|
667
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
670
668
|
case "ThrottlingException":
|
|
671
669
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
672
|
-
throw await
|
|
670
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
673
671
|
default:
|
|
674
672
|
const parsedBody = parsedOutput.body;
|
|
675
673
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -680,24 +678,24 @@ const deserializeAws_restJson1GetEventIntegrationCommandError = async (output, c
|
|
|
680
678
|
});
|
|
681
679
|
}
|
|
682
680
|
};
|
|
683
|
-
const
|
|
681
|
+
const de_ListDataIntegrationAssociationsCommand = async (output, context) => {
|
|
684
682
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
685
|
-
return
|
|
683
|
+
return de_ListDataIntegrationAssociationsCommandError(output, context);
|
|
686
684
|
}
|
|
687
685
|
const contents = map({
|
|
688
686
|
$metadata: deserializeMetadata(output),
|
|
689
687
|
});
|
|
690
688
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
691
689
|
if (data.DataIntegrationAssociations != null) {
|
|
692
|
-
contents.DataIntegrationAssociations =
|
|
690
|
+
contents.DataIntegrationAssociations = de_DataIntegrationAssociationsList(data.DataIntegrationAssociations, context);
|
|
693
691
|
}
|
|
694
692
|
if (data.NextToken != null) {
|
|
695
693
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
696
694
|
}
|
|
697
695
|
return contents;
|
|
698
696
|
};
|
|
699
|
-
exports.
|
|
700
|
-
const
|
|
697
|
+
exports.de_ListDataIntegrationAssociationsCommand = de_ListDataIntegrationAssociationsCommand;
|
|
698
|
+
const de_ListDataIntegrationAssociationsCommandError = async (output, context) => {
|
|
701
699
|
const parsedOutput = {
|
|
702
700
|
...output,
|
|
703
701
|
body: await parseErrorBody(output.body, context),
|
|
@@ -706,19 +704,19 @@ const deserializeAws_restJson1ListDataIntegrationAssociationsCommandError = asyn
|
|
|
706
704
|
switch (errorCode) {
|
|
707
705
|
case "AccessDeniedException":
|
|
708
706
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
709
|
-
throw await
|
|
707
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
710
708
|
case "InternalServiceError":
|
|
711
709
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
712
|
-
throw await
|
|
710
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
713
711
|
case "InvalidRequestException":
|
|
714
712
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
715
|
-
throw await
|
|
713
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
716
714
|
case "ResourceNotFoundException":
|
|
717
715
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
718
|
-
throw await
|
|
716
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
719
717
|
case "ThrottlingException":
|
|
720
718
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
721
|
-
throw await
|
|
719
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
722
720
|
default:
|
|
723
721
|
const parsedBody = parsedOutput.body;
|
|
724
722
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -729,24 +727,24 @@ const deserializeAws_restJson1ListDataIntegrationAssociationsCommandError = asyn
|
|
|
729
727
|
});
|
|
730
728
|
}
|
|
731
729
|
};
|
|
732
|
-
const
|
|
730
|
+
const de_ListDataIntegrationsCommand = async (output, context) => {
|
|
733
731
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
734
|
-
return
|
|
732
|
+
return de_ListDataIntegrationsCommandError(output, context);
|
|
735
733
|
}
|
|
736
734
|
const contents = map({
|
|
737
735
|
$metadata: deserializeMetadata(output),
|
|
738
736
|
});
|
|
739
737
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
740
738
|
if (data.DataIntegrations != null) {
|
|
741
|
-
contents.DataIntegrations =
|
|
739
|
+
contents.DataIntegrations = de_DataIntegrationsList(data.DataIntegrations, context);
|
|
742
740
|
}
|
|
743
741
|
if (data.NextToken != null) {
|
|
744
742
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
745
743
|
}
|
|
746
744
|
return contents;
|
|
747
745
|
};
|
|
748
|
-
exports.
|
|
749
|
-
const
|
|
746
|
+
exports.de_ListDataIntegrationsCommand = de_ListDataIntegrationsCommand;
|
|
747
|
+
const de_ListDataIntegrationsCommandError = async (output, context) => {
|
|
750
748
|
const parsedOutput = {
|
|
751
749
|
...output,
|
|
752
750
|
body: await parseErrorBody(output.body, context),
|
|
@@ -755,16 +753,16 @@ const deserializeAws_restJson1ListDataIntegrationsCommandError = async (output,
|
|
|
755
753
|
switch (errorCode) {
|
|
756
754
|
case "AccessDeniedException":
|
|
757
755
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
758
|
-
throw await
|
|
756
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
759
757
|
case "InternalServiceError":
|
|
760
758
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
761
|
-
throw await
|
|
759
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
762
760
|
case "InvalidRequestException":
|
|
763
761
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
764
|
-
throw await
|
|
762
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
765
763
|
case "ThrottlingException":
|
|
766
764
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
767
|
-
throw await
|
|
765
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
768
766
|
default:
|
|
769
767
|
const parsedBody = parsedOutput.body;
|
|
770
768
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -775,24 +773,24 @@ const deserializeAws_restJson1ListDataIntegrationsCommandError = async (output,
|
|
|
775
773
|
});
|
|
776
774
|
}
|
|
777
775
|
};
|
|
778
|
-
const
|
|
776
|
+
const de_ListEventIntegrationAssociationsCommand = async (output, context) => {
|
|
779
777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
780
|
-
return
|
|
778
|
+
return de_ListEventIntegrationAssociationsCommandError(output, context);
|
|
781
779
|
}
|
|
782
780
|
const contents = map({
|
|
783
781
|
$metadata: deserializeMetadata(output),
|
|
784
782
|
});
|
|
785
783
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
786
784
|
if (data.EventIntegrationAssociations != null) {
|
|
787
|
-
contents.EventIntegrationAssociations =
|
|
785
|
+
contents.EventIntegrationAssociations = de_EventIntegrationAssociationsList(data.EventIntegrationAssociations, context);
|
|
788
786
|
}
|
|
789
787
|
if (data.NextToken != null) {
|
|
790
788
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
791
789
|
}
|
|
792
790
|
return contents;
|
|
793
791
|
};
|
|
794
|
-
exports.
|
|
795
|
-
const
|
|
792
|
+
exports.de_ListEventIntegrationAssociationsCommand = de_ListEventIntegrationAssociationsCommand;
|
|
793
|
+
const de_ListEventIntegrationAssociationsCommandError = async (output, context) => {
|
|
796
794
|
const parsedOutput = {
|
|
797
795
|
...output,
|
|
798
796
|
body: await parseErrorBody(output.body, context),
|
|
@@ -801,19 +799,19 @@ const deserializeAws_restJson1ListEventIntegrationAssociationsCommandError = asy
|
|
|
801
799
|
switch (errorCode) {
|
|
802
800
|
case "AccessDeniedException":
|
|
803
801
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
804
|
-
throw await
|
|
802
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
805
803
|
case "InternalServiceError":
|
|
806
804
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
807
|
-
throw await
|
|
805
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
808
806
|
case "InvalidRequestException":
|
|
809
807
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
810
|
-
throw await
|
|
808
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
811
809
|
case "ResourceNotFoundException":
|
|
812
810
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
813
|
-
throw await
|
|
811
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
814
812
|
case "ThrottlingException":
|
|
815
813
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
816
|
-
throw await
|
|
814
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
817
815
|
default:
|
|
818
816
|
const parsedBody = parsedOutput.body;
|
|
819
817
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -824,24 +822,24 @@ const deserializeAws_restJson1ListEventIntegrationAssociationsCommandError = asy
|
|
|
824
822
|
});
|
|
825
823
|
}
|
|
826
824
|
};
|
|
827
|
-
const
|
|
825
|
+
const de_ListEventIntegrationsCommand = async (output, context) => {
|
|
828
826
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return
|
|
827
|
+
return de_ListEventIntegrationsCommandError(output, context);
|
|
830
828
|
}
|
|
831
829
|
const contents = map({
|
|
832
830
|
$metadata: deserializeMetadata(output),
|
|
833
831
|
});
|
|
834
832
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
835
833
|
if (data.EventIntegrations != null) {
|
|
836
|
-
contents.EventIntegrations =
|
|
834
|
+
contents.EventIntegrations = de_EventIntegrationsList(data.EventIntegrations, context);
|
|
837
835
|
}
|
|
838
836
|
if (data.NextToken != null) {
|
|
839
837
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
840
838
|
}
|
|
841
839
|
return contents;
|
|
842
840
|
};
|
|
843
|
-
exports.
|
|
844
|
-
const
|
|
841
|
+
exports.de_ListEventIntegrationsCommand = de_ListEventIntegrationsCommand;
|
|
842
|
+
const de_ListEventIntegrationsCommandError = async (output, context) => {
|
|
845
843
|
const parsedOutput = {
|
|
846
844
|
...output,
|
|
847
845
|
body: await parseErrorBody(output.body, context),
|
|
@@ -850,16 +848,16 @@ const deserializeAws_restJson1ListEventIntegrationsCommandError = async (output,
|
|
|
850
848
|
switch (errorCode) {
|
|
851
849
|
case "AccessDeniedException":
|
|
852
850
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
853
|
-
throw await
|
|
851
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
854
852
|
case "InternalServiceError":
|
|
855
853
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
856
|
-
throw await
|
|
854
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
857
855
|
case "InvalidRequestException":
|
|
858
856
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
859
|
-
throw await
|
|
857
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
860
858
|
case "ThrottlingException":
|
|
861
859
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
862
|
-
throw await
|
|
860
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
863
861
|
default:
|
|
864
862
|
const parsedBody = parsedOutput.body;
|
|
865
863
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -870,21 +868,21 @@ const deserializeAws_restJson1ListEventIntegrationsCommandError = async (output,
|
|
|
870
868
|
});
|
|
871
869
|
}
|
|
872
870
|
};
|
|
873
|
-
const
|
|
871
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
874
872
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
875
|
-
return
|
|
873
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
876
874
|
}
|
|
877
875
|
const contents = map({
|
|
878
876
|
$metadata: deserializeMetadata(output),
|
|
879
877
|
});
|
|
880
878
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
881
879
|
if (data.tags != null) {
|
|
882
|
-
contents.tags =
|
|
880
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
883
881
|
}
|
|
884
882
|
return contents;
|
|
885
883
|
};
|
|
886
|
-
exports.
|
|
887
|
-
const
|
|
884
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
885
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
888
886
|
const parsedOutput = {
|
|
889
887
|
...output,
|
|
890
888
|
body: await parseErrorBody(output.body, context),
|
|
@@ -893,16 +891,16 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
893
891
|
switch (errorCode) {
|
|
894
892
|
case "InternalServiceError":
|
|
895
893
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
896
|
-
throw await
|
|
894
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
897
895
|
case "InvalidRequestException":
|
|
898
896
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
899
|
-
throw await
|
|
897
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
900
898
|
case "ResourceNotFoundException":
|
|
901
899
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
902
|
-
throw await
|
|
900
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
903
901
|
case "ThrottlingException":
|
|
904
902
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
905
|
-
throw await
|
|
903
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
906
904
|
default:
|
|
907
905
|
const parsedBody = parsedOutput.body;
|
|
908
906
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -913,9 +911,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
913
911
|
});
|
|
914
912
|
}
|
|
915
913
|
};
|
|
916
|
-
const
|
|
914
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
917
915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
918
|
-
return
|
|
916
|
+
return de_TagResourceCommandError(output, context);
|
|
919
917
|
}
|
|
920
918
|
const contents = map({
|
|
921
919
|
$metadata: deserializeMetadata(output),
|
|
@@ -923,8 +921,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
923
921
|
await collectBody(output.body, context);
|
|
924
922
|
return contents;
|
|
925
923
|
};
|
|
926
|
-
exports.
|
|
927
|
-
const
|
|
924
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
925
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
928
926
|
const parsedOutput = {
|
|
929
927
|
...output,
|
|
930
928
|
body: await parseErrorBody(output.body, context),
|
|
@@ -933,16 +931,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
933
931
|
switch (errorCode) {
|
|
934
932
|
case "InternalServiceError":
|
|
935
933
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
936
|
-
throw await
|
|
934
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
937
935
|
case "InvalidRequestException":
|
|
938
936
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
939
|
-
throw await
|
|
937
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
940
938
|
case "ResourceNotFoundException":
|
|
941
939
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
942
|
-
throw await
|
|
940
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
943
941
|
case "ThrottlingException":
|
|
944
942
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
945
|
-
throw await
|
|
943
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
946
944
|
default:
|
|
947
945
|
const parsedBody = parsedOutput.body;
|
|
948
946
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -953,9 +951,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
953
951
|
});
|
|
954
952
|
}
|
|
955
953
|
};
|
|
956
|
-
const
|
|
954
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
957
955
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
|
-
return
|
|
956
|
+
return de_UntagResourceCommandError(output, context);
|
|
959
957
|
}
|
|
960
958
|
const contents = map({
|
|
961
959
|
$metadata: deserializeMetadata(output),
|
|
@@ -963,8 +961,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
963
961
|
await collectBody(output.body, context);
|
|
964
962
|
return contents;
|
|
965
963
|
};
|
|
966
|
-
exports.
|
|
967
|
-
const
|
|
964
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
965
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
968
966
|
const parsedOutput = {
|
|
969
967
|
...output,
|
|
970
968
|
body: await parseErrorBody(output.body, context),
|
|
@@ -973,16 +971,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
973
971
|
switch (errorCode) {
|
|
974
972
|
case "InternalServiceError":
|
|
975
973
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
976
|
-
throw await
|
|
974
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
977
975
|
case "InvalidRequestException":
|
|
978
976
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
979
|
-
throw await
|
|
977
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
980
978
|
case "ResourceNotFoundException":
|
|
981
979
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
982
|
-
throw await
|
|
980
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
983
981
|
case "ThrottlingException":
|
|
984
982
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
985
|
-
throw await
|
|
983
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
986
984
|
default:
|
|
987
985
|
const parsedBody = parsedOutput.body;
|
|
988
986
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -993,9 +991,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
993
991
|
});
|
|
994
992
|
}
|
|
995
993
|
};
|
|
996
|
-
const
|
|
994
|
+
const de_UpdateDataIntegrationCommand = async (output, context) => {
|
|
997
995
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
998
|
-
return
|
|
996
|
+
return de_UpdateDataIntegrationCommandError(output, context);
|
|
999
997
|
}
|
|
1000
998
|
const contents = map({
|
|
1001
999
|
$metadata: deserializeMetadata(output),
|
|
@@ -1003,8 +1001,8 @@ const deserializeAws_restJson1UpdateDataIntegrationCommand = async (output, cont
|
|
|
1003
1001
|
await collectBody(output.body, context);
|
|
1004
1002
|
return contents;
|
|
1005
1003
|
};
|
|
1006
|
-
exports.
|
|
1007
|
-
const
|
|
1004
|
+
exports.de_UpdateDataIntegrationCommand = de_UpdateDataIntegrationCommand;
|
|
1005
|
+
const de_UpdateDataIntegrationCommandError = async (output, context) => {
|
|
1008
1006
|
const parsedOutput = {
|
|
1009
1007
|
...output,
|
|
1010
1008
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1013,19 +1011,19 @@ const deserializeAws_restJson1UpdateDataIntegrationCommandError = async (output,
|
|
|
1013
1011
|
switch (errorCode) {
|
|
1014
1012
|
case "AccessDeniedException":
|
|
1015
1013
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1016
|
-
throw await
|
|
1014
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1017
1015
|
case "InternalServiceError":
|
|
1018
1016
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1019
|
-
throw await
|
|
1017
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1020
1018
|
case "InvalidRequestException":
|
|
1021
1019
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1022
|
-
throw await
|
|
1020
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1023
1021
|
case "ResourceNotFoundException":
|
|
1024
1022
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1025
|
-
throw await
|
|
1023
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1026
1024
|
case "ThrottlingException":
|
|
1027
1025
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1028
|
-
throw await
|
|
1026
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1029
1027
|
default:
|
|
1030
1028
|
const parsedBody = parsedOutput.body;
|
|
1031
1029
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1036,9 +1034,9 @@ const deserializeAws_restJson1UpdateDataIntegrationCommandError = async (output,
|
|
|
1036
1034
|
});
|
|
1037
1035
|
}
|
|
1038
1036
|
};
|
|
1039
|
-
const
|
|
1037
|
+
const de_UpdateEventIntegrationCommand = async (output, context) => {
|
|
1040
1038
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1041
|
-
return
|
|
1039
|
+
return de_UpdateEventIntegrationCommandError(output, context);
|
|
1042
1040
|
}
|
|
1043
1041
|
const contents = map({
|
|
1044
1042
|
$metadata: deserializeMetadata(output),
|
|
@@ -1046,8 +1044,8 @@ const deserializeAws_restJson1UpdateEventIntegrationCommand = async (output, con
|
|
|
1046
1044
|
await collectBody(output.body, context);
|
|
1047
1045
|
return contents;
|
|
1048
1046
|
};
|
|
1049
|
-
exports.
|
|
1050
|
-
const
|
|
1047
|
+
exports.de_UpdateEventIntegrationCommand = de_UpdateEventIntegrationCommand;
|
|
1048
|
+
const de_UpdateEventIntegrationCommandError = async (output, context) => {
|
|
1051
1049
|
const parsedOutput = {
|
|
1052
1050
|
...output,
|
|
1053
1051
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1056,19 +1054,19 @@ const deserializeAws_restJson1UpdateEventIntegrationCommandError = async (output
|
|
|
1056
1054
|
switch (errorCode) {
|
|
1057
1055
|
case "AccessDeniedException":
|
|
1058
1056
|
case "com.amazonaws.appintegrations#AccessDeniedException":
|
|
1059
|
-
throw await
|
|
1057
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1060
1058
|
case "InternalServiceError":
|
|
1061
1059
|
case "com.amazonaws.appintegrations#InternalServiceError":
|
|
1062
|
-
throw await
|
|
1060
|
+
throw await de_InternalServiceErrorRes(parsedOutput, context);
|
|
1063
1061
|
case "InvalidRequestException":
|
|
1064
1062
|
case "com.amazonaws.appintegrations#InvalidRequestException":
|
|
1065
|
-
throw await
|
|
1063
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1066
1064
|
case "ResourceNotFoundException":
|
|
1067
1065
|
case "com.amazonaws.appintegrations#ResourceNotFoundException":
|
|
1068
|
-
throw await
|
|
1066
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1069
1067
|
case "ThrottlingException":
|
|
1070
1068
|
case "com.amazonaws.appintegrations#ThrottlingException":
|
|
1071
|
-
throw await
|
|
1069
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1072
1070
|
default:
|
|
1073
1071
|
const parsedBody = parsedOutput.body;
|
|
1074
1072
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1080,7 +1078,7 @@ const deserializeAws_restJson1UpdateEventIntegrationCommandError = async (output
|
|
|
1080
1078
|
}
|
|
1081
1079
|
};
|
|
1082
1080
|
const map = smithy_client_1.map;
|
|
1083
|
-
const
|
|
1081
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1084
1082
|
const contents = map({});
|
|
1085
1083
|
const data = parsedOutput.body;
|
|
1086
1084
|
if (data.Message != null) {
|
|
@@ -1092,7 +1090,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
1092
1090
|
});
|
|
1093
1091
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1094
1092
|
};
|
|
1095
|
-
const
|
|
1093
|
+
const de_DuplicateResourceExceptionRes = async (parsedOutput, context) => {
|
|
1096
1094
|
const contents = map({});
|
|
1097
1095
|
const data = parsedOutput.body;
|
|
1098
1096
|
if (data.Message != null) {
|
|
@@ -1104,7 +1102,7 @@ const deserializeAws_restJson1DuplicateResourceExceptionResponse = async (parsed
|
|
|
1104
1102
|
});
|
|
1105
1103
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1106
1104
|
};
|
|
1107
|
-
const
|
|
1105
|
+
const de_InternalServiceErrorRes = async (parsedOutput, context) => {
|
|
1108
1106
|
const contents = map({});
|
|
1109
1107
|
const data = parsedOutput.body;
|
|
1110
1108
|
if (data.Message != null) {
|
|
@@ -1116,7 +1114,7 @@ const deserializeAws_restJson1InternalServiceErrorResponse = async (parsedOutput
|
|
|
1116
1114
|
});
|
|
1117
1115
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1118
1116
|
};
|
|
1119
|
-
const
|
|
1117
|
+
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1120
1118
|
const contents = map({});
|
|
1121
1119
|
const data = parsedOutput.body;
|
|
1122
1120
|
if (data.Message != null) {
|
|
@@ -1128,7 +1126,7 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
1128
1126
|
});
|
|
1129
1127
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1130
1128
|
};
|
|
1131
|
-
const
|
|
1129
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1132
1130
|
const contents = map({});
|
|
1133
1131
|
const data = parsedOutput.body;
|
|
1134
1132
|
if (data.Message != null) {
|
|
@@ -1140,7 +1138,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1140
1138
|
});
|
|
1141
1139
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1142
1140
|
};
|
|
1143
|
-
const
|
|
1141
|
+
const de_ResourceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1144
1142
|
const contents = map({});
|
|
1145
1143
|
const data = parsedOutput.body;
|
|
1146
1144
|
if (data.Message != null) {
|
|
@@ -1152,7 +1150,7 @@ const deserializeAws_restJson1ResourceQuotaExceededExceptionResponse = async (pa
|
|
|
1152
1150
|
});
|
|
1153
1151
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1154
1152
|
};
|
|
1155
|
-
const
|
|
1153
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1156
1154
|
const contents = map({});
|
|
1157
1155
|
const data = parsedOutput.body;
|
|
1158
1156
|
if (data.Message != null) {
|
|
@@ -1164,57 +1162,57 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
1164
1162
|
});
|
|
1165
1163
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1166
1164
|
};
|
|
1167
|
-
const
|
|
1165
|
+
const se_EventFilter = (input, context) => {
|
|
1168
1166
|
return {
|
|
1169
1167
|
...(input.Source != null && { Source: input.Source }),
|
|
1170
1168
|
};
|
|
1171
1169
|
};
|
|
1172
|
-
const
|
|
1170
|
+
const se_FieldsList = (input, context) => {
|
|
1173
1171
|
return input
|
|
1174
1172
|
.filter((e) => e != null)
|
|
1175
1173
|
.map((entry) => {
|
|
1176
1174
|
return entry;
|
|
1177
1175
|
});
|
|
1178
1176
|
};
|
|
1179
|
-
const
|
|
1177
|
+
const se_FieldsMap = (input, context) => {
|
|
1180
1178
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1181
1179
|
if (value === null) {
|
|
1182
1180
|
return acc;
|
|
1183
1181
|
}
|
|
1184
|
-
acc[key] =
|
|
1182
|
+
acc[key] = se_FieldsList(value, context);
|
|
1185
1183
|
return acc;
|
|
1186
1184
|
}, {});
|
|
1187
1185
|
};
|
|
1188
|
-
const
|
|
1186
|
+
const se_FileConfiguration = (input, context) => {
|
|
1189
1187
|
return {
|
|
1190
|
-
...(input.Filters != null && { Filters:
|
|
1191
|
-
...(input.Folders != null && { Folders:
|
|
1188
|
+
...(input.Filters != null && { Filters: se_FieldsMap(input.Filters, context) }),
|
|
1189
|
+
...(input.Folders != null && { Folders: se_FolderList(input.Folders, context) }),
|
|
1192
1190
|
};
|
|
1193
1191
|
};
|
|
1194
|
-
const
|
|
1192
|
+
const se_FolderList = (input, context) => {
|
|
1195
1193
|
return input
|
|
1196
1194
|
.filter((e) => e != null)
|
|
1197
1195
|
.map((entry) => {
|
|
1198
1196
|
return entry;
|
|
1199
1197
|
});
|
|
1200
1198
|
};
|
|
1201
|
-
const
|
|
1199
|
+
const se_ObjectConfiguration = (input, context) => {
|
|
1202
1200
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1203
1201
|
if (value === null) {
|
|
1204
1202
|
return acc;
|
|
1205
1203
|
}
|
|
1206
|
-
acc[key] =
|
|
1204
|
+
acc[key] = se_FieldsMap(value, context);
|
|
1207
1205
|
return acc;
|
|
1208
1206
|
}, {});
|
|
1209
1207
|
};
|
|
1210
|
-
const
|
|
1208
|
+
const se_ScheduleConfiguration = (input, context) => {
|
|
1211
1209
|
return {
|
|
1212
1210
|
...(input.FirstExecutionFrom != null && { FirstExecutionFrom: input.FirstExecutionFrom }),
|
|
1213
1211
|
...(input.Object != null && { Object: input.Object }),
|
|
1214
1212
|
...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
|
|
1215
1213
|
};
|
|
1216
1214
|
};
|
|
1217
|
-
const
|
|
1215
|
+
const se_TagMap = (input, context) => {
|
|
1218
1216
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1219
1217
|
if (value === null) {
|
|
1220
1218
|
return acc;
|
|
@@ -1223,7 +1221,7 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1223
1221
|
return acc;
|
|
1224
1222
|
}, {});
|
|
1225
1223
|
};
|
|
1226
|
-
const
|
|
1224
|
+
const de_ClientAssociationMetadata = (output, context) => {
|
|
1227
1225
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1228
1226
|
if (value === null) {
|
|
1229
1227
|
return acc;
|
|
@@ -1232,61 +1230,61 @@ const deserializeAws_restJson1ClientAssociationMetadata = (output, context) => {
|
|
|
1232
1230
|
return acc;
|
|
1233
1231
|
}, {});
|
|
1234
1232
|
};
|
|
1235
|
-
const
|
|
1233
|
+
const de_DataIntegrationAssociationsList = (output, context) => {
|
|
1236
1234
|
const retVal = (output || [])
|
|
1237
1235
|
.filter((e) => e != null)
|
|
1238
1236
|
.map((entry) => {
|
|
1239
1237
|
if (entry === null) {
|
|
1240
1238
|
return null;
|
|
1241
1239
|
}
|
|
1242
|
-
return
|
|
1240
|
+
return de_DataIntegrationAssociationSummary(entry, context);
|
|
1243
1241
|
});
|
|
1244
1242
|
return retVal;
|
|
1245
1243
|
};
|
|
1246
|
-
const
|
|
1244
|
+
const de_DataIntegrationAssociationSummary = (output, context) => {
|
|
1247
1245
|
return {
|
|
1248
1246
|
ClientId: (0, smithy_client_1.expectString)(output.ClientId),
|
|
1249
1247
|
DataIntegrationArn: (0, smithy_client_1.expectString)(output.DataIntegrationArn),
|
|
1250
1248
|
DataIntegrationAssociationArn: (0, smithy_client_1.expectString)(output.DataIntegrationAssociationArn),
|
|
1251
1249
|
};
|
|
1252
1250
|
};
|
|
1253
|
-
const
|
|
1251
|
+
const de_DataIntegrationsList = (output, context) => {
|
|
1254
1252
|
const retVal = (output || [])
|
|
1255
1253
|
.filter((e) => e != null)
|
|
1256
1254
|
.map((entry) => {
|
|
1257
1255
|
if (entry === null) {
|
|
1258
1256
|
return null;
|
|
1259
1257
|
}
|
|
1260
|
-
return
|
|
1258
|
+
return de_DataIntegrationSummary(entry, context);
|
|
1261
1259
|
});
|
|
1262
1260
|
return retVal;
|
|
1263
1261
|
};
|
|
1264
|
-
const
|
|
1262
|
+
const de_DataIntegrationSummary = (output, context) => {
|
|
1265
1263
|
return {
|
|
1266
1264
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
1267
1265
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1268
1266
|
SourceURI: (0, smithy_client_1.expectString)(output.SourceURI),
|
|
1269
1267
|
};
|
|
1270
1268
|
};
|
|
1271
|
-
const
|
|
1269
|
+
const de_EventFilter = (output, context) => {
|
|
1272
1270
|
return {
|
|
1273
1271
|
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
1274
1272
|
};
|
|
1275
1273
|
};
|
|
1276
|
-
const
|
|
1274
|
+
const de_EventIntegration = (output, context) => {
|
|
1277
1275
|
return {
|
|
1278
1276
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1279
1277
|
EventBridgeBus: (0, smithy_client_1.expectString)(output.EventBridgeBus),
|
|
1280
|
-
EventFilter: output.EventFilter != null ?
|
|
1278
|
+
EventFilter: output.EventFilter != null ? de_EventFilter(output.EventFilter, context) : undefined,
|
|
1281
1279
|
EventIntegrationArn: (0, smithy_client_1.expectString)(output.EventIntegrationArn),
|
|
1282
1280
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1283
|
-
Tags: output.Tags != null ?
|
|
1281
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1284
1282
|
};
|
|
1285
1283
|
};
|
|
1286
|
-
const
|
|
1284
|
+
const de_EventIntegrationAssociation = (output, context) => {
|
|
1287
1285
|
return {
|
|
1288
1286
|
ClientAssociationMetadata: output.ClientAssociationMetadata != null
|
|
1289
|
-
?
|
|
1287
|
+
? de_ClientAssociationMetadata(output.ClientAssociationMetadata, context)
|
|
1290
1288
|
: undefined,
|
|
1291
1289
|
ClientId: (0, smithy_client_1.expectString)(output.ClientId),
|
|
1292
1290
|
EventBridgeRuleName: (0, smithy_client_1.expectString)(output.EventBridgeRuleName),
|
|
@@ -1295,29 +1293,29 @@ const deserializeAws_restJson1EventIntegrationAssociation = (output, context) =>
|
|
|
1295
1293
|
EventIntegrationName: (0, smithy_client_1.expectString)(output.EventIntegrationName),
|
|
1296
1294
|
};
|
|
1297
1295
|
};
|
|
1298
|
-
const
|
|
1296
|
+
const de_EventIntegrationAssociationsList = (output, context) => {
|
|
1299
1297
|
const retVal = (output || [])
|
|
1300
1298
|
.filter((e) => e != null)
|
|
1301
1299
|
.map((entry) => {
|
|
1302
1300
|
if (entry === null) {
|
|
1303
1301
|
return null;
|
|
1304
1302
|
}
|
|
1305
|
-
return
|
|
1303
|
+
return de_EventIntegrationAssociation(entry, context);
|
|
1306
1304
|
});
|
|
1307
1305
|
return retVal;
|
|
1308
1306
|
};
|
|
1309
|
-
const
|
|
1307
|
+
const de_EventIntegrationsList = (output, context) => {
|
|
1310
1308
|
const retVal = (output || [])
|
|
1311
1309
|
.filter((e) => e != null)
|
|
1312
1310
|
.map((entry) => {
|
|
1313
1311
|
if (entry === null) {
|
|
1314
1312
|
return null;
|
|
1315
1313
|
}
|
|
1316
|
-
return
|
|
1314
|
+
return de_EventIntegration(entry, context);
|
|
1317
1315
|
});
|
|
1318
1316
|
return retVal;
|
|
1319
1317
|
};
|
|
1320
|
-
const
|
|
1318
|
+
const de_FieldsList = (output, context) => {
|
|
1321
1319
|
const retVal = (output || [])
|
|
1322
1320
|
.filter((e) => e != null)
|
|
1323
1321
|
.map((entry) => {
|
|
@@ -1328,22 +1326,22 @@ const deserializeAws_restJson1FieldsList = (output, context) => {
|
|
|
1328
1326
|
});
|
|
1329
1327
|
return retVal;
|
|
1330
1328
|
};
|
|
1331
|
-
const
|
|
1329
|
+
const de_FieldsMap = (output, context) => {
|
|
1332
1330
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1333
1331
|
if (value === null) {
|
|
1334
1332
|
return acc;
|
|
1335
1333
|
}
|
|
1336
|
-
acc[key] =
|
|
1334
|
+
acc[key] = de_FieldsList(value, context);
|
|
1337
1335
|
return acc;
|
|
1338
1336
|
}, {});
|
|
1339
1337
|
};
|
|
1340
|
-
const
|
|
1338
|
+
const de_FileConfiguration = (output, context) => {
|
|
1341
1339
|
return {
|
|
1342
|
-
Filters: output.Filters != null ?
|
|
1343
|
-
Folders: output.Folders != null ?
|
|
1340
|
+
Filters: output.Filters != null ? de_FieldsMap(output.Filters, context) : undefined,
|
|
1341
|
+
Folders: output.Folders != null ? de_FolderList(output.Folders, context) : undefined,
|
|
1344
1342
|
};
|
|
1345
1343
|
};
|
|
1346
|
-
const
|
|
1344
|
+
const de_FolderList = (output, context) => {
|
|
1347
1345
|
const retVal = (output || [])
|
|
1348
1346
|
.filter((e) => e != null)
|
|
1349
1347
|
.map((entry) => {
|
|
@@ -1354,23 +1352,23 @@ const deserializeAws_restJson1FolderList = (output, context) => {
|
|
|
1354
1352
|
});
|
|
1355
1353
|
return retVal;
|
|
1356
1354
|
};
|
|
1357
|
-
const
|
|
1355
|
+
const de_ObjectConfiguration = (output, context) => {
|
|
1358
1356
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1359
1357
|
if (value === null) {
|
|
1360
1358
|
return acc;
|
|
1361
1359
|
}
|
|
1362
|
-
acc[key] =
|
|
1360
|
+
acc[key] = de_FieldsMap(value, context);
|
|
1363
1361
|
return acc;
|
|
1364
1362
|
}, {});
|
|
1365
1363
|
};
|
|
1366
|
-
const
|
|
1364
|
+
const de_ScheduleConfiguration = (output, context) => {
|
|
1367
1365
|
return {
|
|
1368
1366
|
FirstExecutionFrom: (0, smithy_client_1.expectString)(output.FirstExecutionFrom),
|
|
1369
1367
|
Object: (0, smithy_client_1.expectString)(output.Object),
|
|
1370
1368
|
ScheduleExpression: (0, smithy_client_1.expectString)(output.ScheduleExpression),
|
|
1371
1369
|
};
|
|
1372
1370
|
};
|
|
1373
|
-
const
|
|
1371
|
+
const de_TagMap = (output, context) => {
|
|
1374
1372
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1375
1373
|
if (value === null) {
|
|
1376
1374
|
return acc;
|